Fix date in changelog
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
8690e634 554ac_unique_file="import/memmem.c"
c971b7fa
PA
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
e26b6bb0 591ac_header_list=
8690e634 592gl_fnmatch_required=POSIX
3574124b 593ac_func_list=
c971b7fa
PA
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596gltests_LTLIBOBJS
597gltests_LIBOBJS
598gl_LTLIBOBJS
599gl_LIBOBJS
600LTLIBOBJS
601LIBOBJS
602LN_S
603am__fastdepCC_FALSE
604am__fastdepCC_TRUE
605CCDEPMODE
606AMDEPBACKSLASH
607AMDEP_FALSE
608AMDEP_TRUE
609am__quote
610am__include
611DEPDIR
612am__untar
613am__tar
614AMTAR
615am__leading_dot
616SET_MAKE
617AWK
618mkdir_p
c971b7fa
PA
619INSTALL_STRIP_PROGRAM
620STRIP
621install_sh
622MAKEINFO
623AUTOHEADER
624AUTOMAKE
625AUTOCONF
626ACLOCAL
627VERSION
628PACKAGE
629CYGPATH_W
630am__isrc
631INSTALL_DATA
632INSTALL_SCRIPT
633INSTALL_PROGRAM
634LIBGNU_LTLIBDEPS
635LIBGNU_LIBDEPS
636gltests_WITNESS
8690e634
JK
637REPLACE_TOWLOWER
638REPLACE_ISWCNTRL
639HAVE_WCTYPE_H
640NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641NEXT_WCTYPE_H
642HAVE_ISWCNTRL
643REPLACE_ISWBLANK
644HAVE_WCTRANS_T
645HAVE_WCTYPE_T
646HAVE_ISWBLANK
647GNULIB_TOWCTRANS
648GNULIB_WCTRANS
649GNULIB_ISWCTYPE
650GNULIB_WCTYPE
651GNULIB_ISWBLANK
652HAVE_WINT_T
653HAVE_FEATURES_H
654NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655NEXT_WCHAR_H
8839a007
PA
656HAVE_UNISTD_H
657NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658NEXT_UNISTD_H
09607c9e
TT
659PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661TIME_H_DEFINES_STRUCT_TIMESPEC
662NEXT_AS_FIRST_DIRECTIVE_TIME_H
663NEXT_TIME_H
664REPLACE_TIMEGM
665REPLACE_NANOSLEEP
666REPLACE_MKTIME
667REPLACE_LOCALTIME_R
668HAVE_TIMEGM
669HAVE_STRPTIME
670HAVE_NANOSLEEP
671HAVE_DECL_LOCALTIME_R
672GNULIB_TIME_R
673GNULIB_TIMEGM
674GNULIB_STRPTIME
675GNULIB_NANOSLEEP
676GNULIB_MKTIME
63ce7108
TT
677WINDOWS_64_BIT_OFF_T
678NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679NEXT_SYS_TYPES_H
09607c9e
TT
680MKDIR_P
681WINDOWS_64_BIT_ST_SIZE
682NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683NEXT_SYS_STAT_H
684REPLACE_UTIMENSAT
685REPLACE_STAT
686REPLACE_MKNOD
687REPLACE_MKFIFO
688REPLACE_MKDIR
689REPLACE_LSTAT
690REPLACE_FUTIMENS
691REPLACE_FSTATAT
692REPLACE_FSTAT
693HAVE_UTIMENSAT
694HAVE_MKNODAT
695HAVE_MKNOD
696HAVE_MKFIFOAT
697HAVE_MKFIFO
698HAVE_MKDIRAT
699HAVE_LSTAT
700HAVE_LCHMOD
701HAVE_FUTIMENS
702HAVE_FSTATAT
703HAVE_FCHMODAT
704GNULIB_UTIMENSAT
705GNULIB_STAT
706GNULIB_MKNODAT
707GNULIB_MKNOD
708GNULIB_MKFIFOAT
709GNULIB_MKFIFO
710GNULIB_MKDIRAT
711GNULIB_LSTAT
712GNULIB_LCHMOD
713GNULIB_FUTIMENS
714GNULIB_FSTATAT
715GNULIB_FSTAT
716GNULIB_FCHMODAT
63ce7108
TT
717NEXT_AS_FIRST_DIRECTIVE_STRING_H
718NEXT_STRING_H
c971b7fa
PA
719NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
720NEXT_STDDEF_H
721GL_GENERATE_STDDEF_H_FALSE
722GL_GENERATE_STDDEF_H_TRUE
723STDDEF_H
724HAVE_WCHAR_T
725REPLACE_NULL
8690e634
JK
726HAVE__BOOL
727GL_GENERATE_STDBOOL_H_FALSE
728GL_GENERATE_STDBOOL_H_TRUE
729STDBOOL_H
c971b7fa
PA
730UNDEFINE_STRTOK_R
731REPLACE_STRTOK_R
732REPLACE_STRSIGNAL
733REPLACE_STRNLEN
734REPLACE_STRNDUP
735REPLACE_STRNCAT
736REPLACE_STRERROR_R
737REPLACE_STRERROR
738REPLACE_STRCHRNUL
739REPLACE_STRCASESTR
740REPLACE_STRSTR
741REPLACE_STRDUP
742REPLACE_STPNCPY
743REPLACE_MEMMEM
744REPLACE_MEMCHR
745HAVE_STRVERSCMP
746HAVE_DECL_STRSIGNAL
747HAVE_DECL_STRERROR_R
748HAVE_DECL_STRTOK_R
749HAVE_STRCASESTR
750HAVE_STRSEP
751HAVE_STRPBRK
752HAVE_DECL_STRNLEN
753HAVE_DECL_STRNDUP
754HAVE_DECL_STRDUP
755HAVE_STRCHRNUL
756HAVE_STPNCPY
757HAVE_STPCPY
758HAVE_RAWMEMCHR
759HAVE_DECL_MEMRCHR
760HAVE_MEMPCPY
761HAVE_DECL_MEMMEM
762HAVE_MEMCHR
763HAVE_FFSLL
764HAVE_FFSL
765HAVE_MBSLEN
766GNULIB_STRVERSCMP
767GNULIB_STRSIGNAL
768GNULIB_STRERROR_R
769GNULIB_STRERROR
770GNULIB_MBSTOK_R
771GNULIB_MBSSEP
772GNULIB_MBSSPN
773GNULIB_MBSPBRK
774GNULIB_MBSCSPN
775GNULIB_MBSCASESTR
776GNULIB_MBSPCASECMP
777GNULIB_MBSNCASECMP
778GNULIB_MBSCASECMP
779GNULIB_MBSSTR
780GNULIB_MBSRCHR
781GNULIB_MBSCHR
782GNULIB_MBSNLEN
783GNULIB_MBSLEN
784GNULIB_STRTOK_R
785GNULIB_STRCASESTR
786GNULIB_STRSTR
787GNULIB_STRSEP
788GNULIB_STRPBRK
789GNULIB_STRNLEN
790GNULIB_STRNDUP
791GNULIB_STRNCAT
792GNULIB_STRDUP
793GNULIB_STRCHRNUL
794GNULIB_STPNCPY
795GNULIB_STPCPY
796GNULIB_RAWMEMCHR
797GNULIB_MEMRCHR
798GNULIB_MEMPCPY
799GNULIB_MEMMEM
800GNULIB_MEMCHR
801GNULIB_FFSLL
802GNULIB_FFSL
8690e634
JK
803LOCALE_FR
804LOCALE_FR_UTF8
805LOCALE_ZH_CN
806LOCALE_JA
807REPLACE_WCSWIDTH
808REPLACE_WCWIDTH
809REPLACE_WCSNRTOMBS
810REPLACE_WCSRTOMBS
811REPLACE_WCRTOMB
812REPLACE_MBSNRTOWCS
813REPLACE_MBSRTOWCS
814REPLACE_MBRLEN
815REPLACE_MBRTOWC
816REPLACE_MBSINIT
817REPLACE_WCTOB
818REPLACE_BTOWC
819REPLACE_MBSTATE_T
820HAVE_DECL_WCWIDTH
821HAVE_DECL_WCTOB
822HAVE_WCSWIDTH
823HAVE_WCSTOK
824HAVE_WCSSTR
825HAVE_WCSPBRK
826HAVE_WCSSPN
827HAVE_WCSCSPN
828HAVE_WCSRCHR
829HAVE_WCSCHR
830HAVE_WCSDUP
831HAVE_WCSXFRM
832HAVE_WCSCOLL
833HAVE_WCSNCASECMP
834HAVE_WCSCASECMP
835HAVE_WCSNCMP
836HAVE_WCSCMP
837HAVE_WCSNCAT
838HAVE_WCSCAT
839HAVE_WCPNCPY
840HAVE_WCSNCPY
841HAVE_WCPCPY
842HAVE_WCSCPY
843HAVE_WCSNLEN
844HAVE_WCSLEN
845HAVE_WMEMSET
846HAVE_WMEMMOVE
847HAVE_WMEMCPY
848HAVE_WMEMCMP
849HAVE_WMEMCHR
850HAVE_WCSNRTOMBS
851HAVE_WCSRTOMBS
852HAVE_WCRTOMB
853HAVE_MBSNRTOWCS
854HAVE_MBSRTOWCS
855HAVE_MBRLEN
856HAVE_MBRTOWC
857HAVE_MBSINIT
858HAVE_BTOWC
859GNULIB_WCSWIDTH
860GNULIB_WCSTOK
861GNULIB_WCSSTR
862GNULIB_WCSPBRK
863GNULIB_WCSSPN
864GNULIB_WCSCSPN
865GNULIB_WCSRCHR
866GNULIB_WCSCHR
867GNULIB_WCSDUP
868GNULIB_WCSXFRM
869GNULIB_WCSCOLL
870GNULIB_WCSNCASECMP
871GNULIB_WCSCASECMP
872GNULIB_WCSNCMP
873GNULIB_WCSCMP
874GNULIB_WCSNCAT
875GNULIB_WCSCAT
876GNULIB_WCPNCPY
877GNULIB_WCSNCPY
878GNULIB_WCPCPY
879GNULIB_WCSCPY
880GNULIB_WCSNLEN
881GNULIB_WCSLEN
882GNULIB_WMEMSET
883GNULIB_WMEMMOVE
884GNULIB_WMEMCPY
885GNULIB_WMEMCMP
886GNULIB_WMEMCHR
887GNULIB_WCWIDTH
888GNULIB_WCSNRTOMBS
889GNULIB_WCSRTOMBS
890GNULIB_WCRTOMB
891GNULIB_MBSNRTOWCS
892GNULIB_MBSRTOWCS
893GNULIB_MBRLEN
894GNULIB_MBRTOWC
895GNULIB_MBSINIT
896GNULIB_WCTOB
897GNULIB_BTOWC
88b48903
WN
898NEXT_AS_FIRST_DIRECTIVE_MATH_H
899NEXT_MATH_H
8690e634
JK
900LOCALCHARSET_TESTS_ENVIRONMENT
901GLIBC21
c971b7fa
PA
902NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
903NEXT_INTTYPES_H
904UINT64_MAX_EQ_ULONG_MAX
905UINT32_MAX_LT_UINTMAX_MAX
906PRIPTR_PREFIX
907PRI_MACROS_BROKEN
908INT64_MAX_EQ_LONG_MAX
909INT32_MAX_LT_INTMAX_MAX
910REPLACE_STRTOIMAX
911HAVE_DECL_STRTOUMAX
912HAVE_DECL_STRTOIMAX
913HAVE_DECL_IMAXDIV
914HAVE_DECL_IMAXABS
915GNULIB_STRTOUMAX
916GNULIB_STRTOIMAX
917GNULIB_IMAXDIV
918GNULIB_IMAXABS
919GL_GENERATE_STDINT_H_FALSE
920GL_GENERATE_STDINT_H_TRUE
921STDINT_H
922WINT_T_SUFFIX
923WCHAR_T_SUFFIX
924SIG_ATOMIC_T_SUFFIX
925SIZE_T_SUFFIX
926PTRDIFF_T_SUFFIX
927HAVE_SIGNED_WINT_T
928HAVE_SIGNED_WCHAR_T
929HAVE_SIGNED_SIG_ATOMIC_T
930BITSIZEOF_WINT_T
931BITSIZEOF_WCHAR_T
932BITSIZEOF_SIG_ATOMIC_T
933BITSIZEOF_SIZE_T
934BITSIZEOF_PTRDIFF_T
935APPLE_UNIVERSAL_BUILD
936HAVE_SYS_BITYPES_H
937HAVE_SYS_INTTYPES_H
938HAVE_STDINT_H
939NEXT_AS_FIRST_DIRECTIVE_STDINT_H
940NEXT_STDINT_H
c971b7fa
PA
941HAVE_SYS_TYPES_H
942HAVE_INTTYPES_H
943HAVE_WCHAR_H
944HAVE_UNSIGNED_LONG_LONG_INT
945HAVE_LONG_LONG_INT
88b48903
WN
946FREXPL_LIBM
947HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
948FREXP_LIBM
949REPLACE_TRUNCL
950REPLACE_TRUNCF
951REPLACE_TRUNC
952REPLACE_SQRTL
953REPLACE_SIGNBIT_USING_GCC
954REPLACE_SIGNBIT
955REPLACE_ROUNDL
956REPLACE_ROUNDF
957REPLACE_ROUND
958REPLACE_REMAINDERL
959REPLACE_REMAINDERF
960REPLACE_REMAINDER
961REPLACE_NAN
962REPLACE_MODFL
963REPLACE_MODFF
964REPLACE_MODF
965REPLACE_LOGBL
966REPLACE_LOGBF
967REPLACE_LOGB
968REPLACE_LOG2L
969REPLACE_LOG2F
970REPLACE_LOG2
971REPLACE_LOG1PL
972REPLACE_LOG1PF
973REPLACE_LOG1P
974REPLACE_LOG10L
975REPLACE_LOG10F
976REPLACE_LOG10
977REPLACE_LOGL
978REPLACE_LOGF
979REPLACE_LOG
980REPLACE_LDEXPL
981REPLACE_ISNAN
982REPLACE_ISINF
983REPLACE_ISFINITE
984REPLACE_ILOGBF
985REPLACE_ILOGB
986REPLACE_HYPOTL
987REPLACE_HYPOTF
988REPLACE_HYPOT
989REPLACE_HUGE_VAL
990REPLACE_FREXPL
991REPLACE_FREXP
992REPLACE_FREXPF
993REPLACE_FMODL
994REPLACE_FMODF
995REPLACE_FMOD
996REPLACE_FMAL
997REPLACE_FMAF
998REPLACE_FMA
999REPLACE_FLOORL
1000REPLACE_FLOORF
1001REPLACE_FLOOR
1002REPLACE_FABSL
1003REPLACE_EXP2L
1004REPLACE_EXP2
1005REPLACE_EXPM1F
1006REPLACE_EXPM1
1007REPLACE_CEILL
1008REPLACE_CEILF
1009REPLACE_CEIL
1010REPLACE_CBRTL
1011REPLACE_CBRTF
1012HAVE_DECL_TRUNCL
1013HAVE_DECL_TRUNCF
1014HAVE_DECL_TRUNC
1015HAVE_DECL_TANL
1016HAVE_DECL_SQRTL
1017HAVE_DECL_SINL
1018HAVE_DECL_ROUNDL
1019HAVE_DECL_ROUNDF
1020HAVE_DECL_ROUND
1021HAVE_DECL_RINTF
1022HAVE_DECL_REMAINDERL
1023HAVE_DECL_REMAINDER
1024HAVE_DECL_LOGB
1025HAVE_DECL_LOG2L
1026HAVE_DECL_LOG2F
1027HAVE_DECL_LOG2
1028HAVE_DECL_LOG10L
1029HAVE_DECL_LOGL
1030HAVE_DECL_LDEXPL
1031HAVE_DECL_FREXPL
1032HAVE_DECL_FLOORL
1033HAVE_DECL_FLOORF
1034HAVE_DECL_EXPM1L
1035HAVE_DECL_EXP2L
1036HAVE_DECL_EXP2F
1037HAVE_DECL_EXP2
1038HAVE_DECL_EXPL
1039HAVE_DECL_COSL
1040HAVE_DECL_COPYSIGNF
1041HAVE_DECL_CEILL
1042HAVE_DECL_CEILF
1043HAVE_DECL_CBRTL
1044HAVE_DECL_CBRTF
1045HAVE_DECL_ATANL
1046HAVE_DECL_ASINL
1047HAVE_DECL_ACOSL
1048HAVE_TANHF
1049HAVE_TANL
1050HAVE_TANF
1051HAVE_SQRTL
1052HAVE_SQRTF
1053HAVE_SINHF
1054HAVE_SINL
1055HAVE_SINF
1056HAVE_RINTL
1057HAVE_RINT
1058HAVE_REMAINDERF
1059HAVE_REMAINDER
1060HAVE_POWF
1061HAVE_MODFL
1062HAVE_MODFF
1063HAVE_LOGBL
1064HAVE_LOGBF
1065HAVE_LOG1PL
1066HAVE_LOG1PF
1067HAVE_LOG1P
1068HAVE_LOG10L
1069HAVE_LOG10F
1070HAVE_LOGL
1071HAVE_LOGF
1072HAVE_LDEXPF
1073HAVE_ISNANL
1074HAVE_ISNAND
1075HAVE_ISNANF
1076HAVE_ILOGBL
1077HAVE_ILOGBF
1078HAVE_ILOGB
1079HAVE_HYPOTL
1080HAVE_HYPOTF
1081HAVE_FREXPF
1082HAVE_FMODL
1083HAVE_FMODF
1084HAVE_FMAL
1085HAVE_FMAF
1086HAVE_FMA
1087HAVE_FABSL
1088HAVE_FABSF
1089HAVE_EXPM1F
1090HAVE_EXPM1
1091HAVE_EXPL
1092HAVE_EXPF
1093HAVE_COSHF
1094HAVE_COSL
1095HAVE_COSF
1096HAVE_COPYSIGNL
1097HAVE_COPYSIGN
1098HAVE_CBRTL
1099HAVE_CBRTF
1100HAVE_CBRT
1101HAVE_ATAN2F
1102HAVE_ATANL
1103HAVE_ATANF
1104HAVE_ASINL
1105HAVE_ASINF
1106HAVE_ACOSL
1107HAVE_ACOSF
1108GNULIB_TRUNCL
1109GNULIB_TRUNCF
1110GNULIB_TRUNC
1111GNULIB_TANHF
1112GNULIB_TANL
1113GNULIB_TANF
1114GNULIB_SQRTL
1115GNULIB_SQRTF
1116GNULIB_SINHF
1117GNULIB_SINL
1118GNULIB_SINF
1119GNULIB_SIGNBIT
1120GNULIB_ROUNDL
1121GNULIB_ROUNDF
1122GNULIB_ROUND
1123GNULIB_RINTL
1124GNULIB_RINTF
1125GNULIB_RINT
1126GNULIB_REMAINDERL
1127GNULIB_REMAINDERF
1128GNULIB_REMAINDER
1129GNULIB_POWF
1130GNULIB_MODFL
1131GNULIB_MODFF
1132GNULIB_MODF
1133GNULIB_LOGBL
1134GNULIB_LOGBF
1135GNULIB_LOGB
1136GNULIB_LOG2L
1137GNULIB_LOG2F
1138GNULIB_LOG2
1139GNULIB_LOG1PL
1140GNULIB_LOG1PF
1141GNULIB_LOG1P
1142GNULIB_LOG10L
1143GNULIB_LOG10F
1144GNULIB_LOG10
1145GNULIB_LOGL
1146GNULIB_LOGF
1147GNULIB_LOG
1148GNULIB_LDEXPL
1149GNULIB_LDEXPF
1150GNULIB_ISNANL
1151GNULIB_ISNAND
1152GNULIB_ISNANF
1153GNULIB_ISNAN
1154GNULIB_ISINF
1155GNULIB_ISFINITE
1156GNULIB_ILOGBL
1157GNULIB_ILOGBF
1158GNULIB_ILOGB
1159GNULIB_HYPOTL
1160GNULIB_HYPOTF
1161GNULIB_HYPOT
1162GNULIB_FREXPL
1163GNULIB_FREXP
1164GNULIB_FREXPF
1165GNULIB_FMODL
1166GNULIB_FMODF
1167GNULIB_FMOD
1168GNULIB_FMAL
1169GNULIB_FMAF
1170GNULIB_FMA
1171GNULIB_FLOORL
1172GNULIB_FLOORF
1173GNULIB_FLOOR
1174GNULIB_FABSL
1175GNULIB_FABSF
1176GNULIB_EXPM1L
1177GNULIB_EXPM1F
1178GNULIB_EXPM1
1179GNULIB_EXP2L
1180GNULIB_EXP2F
1181GNULIB_EXP2
1182GNULIB_EXPL
1183GNULIB_EXPF
1184GNULIB_COSHF
1185GNULIB_COSL
1186GNULIB_COSF
1187GNULIB_COPYSIGNL
1188GNULIB_COPYSIGNF
1189GNULIB_COPYSIGN
1190GNULIB_CEILL
1191GNULIB_CEILF
1192GNULIB_CEIL
1193GNULIB_CBRTL
1194GNULIB_CBRTF
1195GNULIB_CBRT
1196GNULIB_ATAN2F
1197GNULIB_ATANL
1198GNULIB_ATANF
1199GNULIB_ASINL
1200GNULIB_ASINF
1201GNULIB_ACOSL
1202GNULIB_ACOSF
8690e634
JK
1203GL_GENERATE_FNMATCH_H_FALSE
1204GL_GENERATE_FNMATCH_H_TRUE
1205FNMATCH_H
88b48903
WN
1206REPLACE_ITOLD
1207GL_GENERATE_FLOAT_H_FALSE
1208GL_GENERATE_FLOAT_H_TRUE
1209FLOAT_H
1210NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1211NEXT_FLOAT_H
18848e28
GF
1212EOVERFLOW_VALUE
1213EOVERFLOW_HIDDEN
1214ENOLINK_VALUE
1215ENOLINK_HIDDEN
1216EMULTIHOP_VALUE
1217EMULTIHOP_HIDDEN
1218GL_GENERATE_ERRNO_H_FALSE
1219GL_GENERATE_ERRNO_H_TRUE
1220ERRNO_H
1221NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1222NEXT_ERRNO_H
e26b6bb0
TT
1223HAVE_DIRENT_H
1224NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1225NEXT_DIRENT_H
88b48903
WN
1226PRAGMA_COLUMNS
1227PRAGMA_SYSTEM_HEADER
1228INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1229INCLUDE_NEXT
e26b6bb0
TT
1230REPLACE_FDOPENDIR
1231REPLACE_DIRFD
1232REPLACE_CLOSEDIR
1233REPLACE_OPENDIR
1234HAVE_ALPHASORT
1235HAVE_SCANDIR
1236HAVE_FDOPENDIR
1237HAVE_DECL_FDOPENDIR
1238HAVE_DECL_DIRFD
1239HAVE_CLOSEDIR
1240HAVE_REWINDDIR
1241HAVE_READDIR
1242HAVE_OPENDIR
1243GNULIB_ALPHASORT
1244GNULIB_SCANDIR
1245GNULIB_FDOPENDIR
1246GNULIB_DIRFD
1247GNULIB_CLOSEDIR
1248GNULIB_REWINDDIR
1249GNULIB_READDIR
1250GNULIB_OPENDIR
1251UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1252UNISTD_H_HAVE_WINSOCK2_H
1253REPLACE_WRITE
1254REPLACE_USLEEP
1255REPLACE_UNLINKAT
1256REPLACE_UNLINK
1257REPLACE_TTYNAME_R
1258REPLACE_SYMLINK
1259REPLACE_SLEEP
1260REPLACE_RMDIR
1261REPLACE_READLINK
1262REPLACE_READ
1263REPLACE_PWRITE
1264REPLACE_PREAD
1265REPLACE_LSEEK
1266REPLACE_LINKAT
1267REPLACE_LINK
1268REPLACE_LCHOWN
1269REPLACE_ISATTY
1270REPLACE_GETPAGESIZE
1271REPLACE_GETGROUPS
1272REPLACE_GETLOGIN_R
1273REPLACE_GETDOMAINNAME
1274REPLACE_GETCWD
1275REPLACE_FTRUNCATE
1276REPLACE_FCHOWNAT
1277REPLACE_DUP2
1278REPLACE_DUP
1279REPLACE_CLOSE
1280REPLACE_CHOWN
1281HAVE_SYS_PARAM_H
1282HAVE_OS_H
1283HAVE_DECL_TTYNAME_R
1284HAVE_DECL_SETHOSTNAME
1285HAVE_DECL_GETUSERSHELL
1286HAVE_DECL_GETPAGESIZE
1287HAVE_DECL_GETLOGIN_R
1288HAVE_DECL_GETDOMAINNAME
1289HAVE_DECL_FDATASYNC
1290HAVE_DECL_FCHDIR
1291HAVE_DECL_ENVIRON
1292HAVE_USLEEP
1293HAVE_UNLINKAT
1294HAVE_SYMLINKAT
1295HAVE_SYMLINK
1296HAVE_SLEEP
1297HAVE_SETHOSTNAME
1298HAVE_READLINKAT
1299HAVE_READLINK
1300HAVE_PWRITE
1301HAVE_PREAD
1302HAVE_PIPE2
1303HAVE_PIPE
1304HAVE_LINKAT
1305HAVE_LINK
1306HAVE_LCHOWN
1307HAVE_GROUP_MEMBER
1308HAVE_GETPAGESIZE
1309HAVE_GETLOGIN
1310HAVE_GETHOSTNAME
1311HAVE_GETGROUPS
1312HAVE_GETDTABLESIZE
1313HAVE_FTRUNCATE
1314HAVE_FSYNC
1315HAVE_FDATASYNC
1316HAVE_FCHOWNAT
1317HAVE_FCHDIR
1318HAVE_FACCESSAT
1319HAVE_EUIDACCESS
1320HAVE_DUP3
1321HAVE_DUP2
1322HAVE_CHOWN
1323GNULIB_WRITE
1324GNULIB_USLEEP
1325GNULIB_UNLINKAT
1326GNULIB_UNLINK
1327GNULIB_UNISTD_H_SIGPIPE
1328GNULIB_UNISTD_H_NONBLOCKING
1329GNULIB_TTYNAME_R
1330GNULIB_SYMLINKAT
1331GNULIB_SYMLINK
1332GNULIB_SLEEP
1333GNULIB_SETHOSTNAME
1334GNULIB_RMDIR
1335GNULIB_READLINKAT
1336GNULIB_READLINK
1337GNULIB_READ
1338GNULIB_PWRITE
1339GNULIB_PREAD
1340GNULIB_PIPE2
1341GNULIB_PIPE
1342GNULIB_LSEEK
1343GNULIB_LINKAT
1344GNULIB_LINK
1345GNULIB_LCHOWN
1346GNULIB_ISATTY
1347GNULIB_GROUP_MEMBER
1348GNULIB_GETUSERSHELL
1349GNULIB_GETPAGESIZE
1350GNULIB_GETLOGIN_R
1351GNULIB_GETLOGIN
1352GNULIB_GETHOSTNAME
1353GNULIB_GETGROUPS
1354GNULIB_GETDTABLESIZE
1355GNULIB_GETDOMAINNAME
1356GNULIB_GETCWD
1357GNULIB_FTRUNCATE
1358GNULIB_FSYNC
1359GNULIB_FDATASYNC
1360GNULIB_FCHOWNAT
1361GNULIB_FCHDIR
1362GNULIB_FACCESSAT
1363GNULIB_EUIDACCESS
1364GNULIB_ENVIRON
1365GNULIB_DUP3
1366GNULIB_DUP2
1367GNULIB_DUP
1368GNULIB_CLOSE
1369GNULIB_CHOWN
1370GNULIB_CHDIR
8690e634
JK
1371pkglibexecdir
1372lispdir
1373GL_GENERATE_ALLOCA_H_FALSE
1374GL_GENERATE_ALLOCA_H_TRUE
1375ALLOCA_H
1376ALLOCA
c971b7fa
PA
1377GL_COND_LIBTOOL_FALSE
1378GL_COND_LIBTOOL_TRUE
1379target_os
1380target_vendor
1381target_cpu
1382target
1383RANLIB
1384ARFLAGS
1385AR
1386EGREP
1387GREP
1388CPP
1389host_os
1390host_vendor
1391host_cpu
1392host
1393build_os
1394build_vendor
1395build_cpu
1396build
1397OBJEXT
1398EXEEXT
1399ac_ct_CC
1400CPPFLAGS
1401LDFLAGS
1402CFLAGS
1403CC
1404MAINT
1405MAINTAINER_MODE_FALSE
1406MAINTAINER_MODE_TRUE
1407target_alias
1408host_alias
1409build_alias
1410LIBS
1411ECHO_T
1412ECHO_N
1413ECHO_C
1414DEFS
1415mandir
1416localedir
1417libdir
1418psdir
1419pdfdir
1420dvidir
1421htmldir
1422infodir
1423docdir
1424oldincludedir
1425includedir
1426localstatedir
1427sharedstatedir
1428sysconfdir
1429datadir
1430datarootdir
1431libexecdir
1432sbindir
1433bindir
1434program_transform_name
1435prefix
1436exec_prefix
1437PACKAGE_URL
1438PACKAGE_BUGREPORT
1439PACKAGE_STRING
1440PACKAGE_VERSION
1441PACKAGE_TARNAME
1442PACKAGE_NAME
1443PATH_SEPARATOR
1444SHELL'
1445ac_subst_files=''
1446ac_user_opts='
1447enable_option_checking
1448enable_maintainer_mode
1449enable_dependency_tracking
1450'
1451 ac_precious_vars='build_alias
1452host_alias
1453target_alias
1454CC
1455CFLAGS
1456LDFLAGS
1457LIBS
1458CPPFLAGS
1459CPP'
1460
1461
1462# Initialize some variables set by options.
1463ac_init_help=
1464ac_init_version=false
1465ac_unrecognized_opts=
1466ac_unrecognized_sep=
1467# The variables have the same names as the options, with
1468# dashes changed to underlines.
1469cache_file=/dev/null
1470exec_prefix=NONE
1471no_create=
1472no_recursion=
1473prefix=NONE
1474program_prefix=NONE
1475program_suffix=NONE
1476program_transform_name=s,x,x,
1477silent=
1478site=
1479srcdir=
1480verbose=
1481x_includes=NONE
1482x_libraries=NONE
1483
1484# Installation directory options.
1485# These are left unexpanded so users can "make install exec_prefix=/foo"
1486# and all the variables that are supposed to be based on exec_prefix
1487# by default will actually change.
1488# Use braces instead of parens because sh, perl, etc. also accept them.
1489# (The list follows the same order as the GNU Coding Standards.)
1490bindir='${exec_prefix}/bin'
1491sbindir='${exec_prefix}/sbin'
1492libexecdir='${exec_prefix}/libexec'
1493datarootdir='${prefix}/share'
1494datadir='${datarootdir}'
1495sysconfdir='${prefix}/etc'
1496sharedstatedir='${prefix}/com'
1497localstatedir='${prefix}/var'
1498includedir='${prefix}/include'
1499oldincludedir='/usr/include'
1500docdir='${datarootdir}/doc/${PACKAGE}'
1501infodir='${datarootdir}/info'
1502htmldir='${docdir}'
1503dvidir='${docdir}'
1504pdfdir='${docdir}'
1505psdir='${docdir}'
1506libdir='${exec_prefix}/lib'
1507localedir='${datarootdir}/locale'
1508mandir='${datarootdir}/man'
1509
1510ac_prev=
1511ac_dashdash=
1512for ac_option
1513do
1514 # If the previous option needs an argument, assign it.
1515 if test -n "$ac_prev"; then
1516 eval $ac_prev=\$ac_option
1517 ac_prev=
1518 continue
1519 fi
1520
1521 case $ac_option in
1522 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1523 *) ac_optarg=yes ;;
1524 esac
1525
1526 # Accept the important Cygnus configure options, so we can diagnose typos.
1527
1528 case $ac_dashdash$ac_option in
1529 --)
1530 ac_dashdash=yes ;;
1531
1532 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1533 ac_prev=bindir ;;
1534 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1535 bindir=$ac_optarg ;;
1536
1537 -build | --build | --buil | --bui | --bu)
1538 ac_prev=build_alias ;;
1539 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1540 build_alias=$ac_optarg ;;
1541
1542 -cache-file | --cache-file | --cache-fil | --cache-fi \
1543 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1544 ac_prev=cache_file ;;
1545 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1546 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1547 cache_file=$ac_optarg ;;
1548
1549 --config-cache | -C)
1550 cache_file=config.cache ;;
1551
1552 -datadir | --datadir | --datadi | --datad)
1553 ac_prev=datadir ;;
1554 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1555 datadir=$ac_optarg ;;
1556
1557 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1558 | --dataroo | --dataro | --datar)
1559 ac_prev=datarootdir ;;
1560 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1561 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1562 datarootdir=$ac_optarg ;;
1563
1564 -disable-* | --disable-*)
1565 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1566 # Reject names that are not valid shell variable names.
1567 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1568 as_fn_error "invalid feature name: $ac_useropt"
1569 ac_useropt_orig=$ac_useropt
1570 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571 case $ac_user_opts in
1572 *"
1573"enable_$ac_useropt"
1574"*) ;;
1575 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1576 ac_unrecognized_sep=', ';;
1577 esac
1578 eval enable_$ac_useropt=no ;;
1579
1580 -docdir | --docdir | --docdi | --doc | --do)
1581 ac_prev=docdir ;;
1582 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1583 docdir=$ac_optarg ;;
1584
1585 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1586 ac_prev=dvidir ;;
1587 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1588 dvidir=$ac_optarg ;;
1589
1590 -enable-* | --enable-*)
1591 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1592 # Reject names that are not valid shell variable names.
1593 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1594 as_fn_error "invalid feature name: $ac_useropt"
1595 ac_useropt_orig=$ac_useropt
1596 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1597 case $ac_user_opts in
1598 *"
1599"enable_$ac_useropt"
1600"*) ;;
1601 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1602 ac_unrecognized_sep=', ';;
1603 esac
1604 eval enable_$ac_useropt=\$ac_optarg ;;
1605
1606 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1607 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1608 | --exec | --exe | --ex)
1609 ac_prev=exec_prefix ;;
1610 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1611 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1612 | --exec=* | --exe=* | --ex=*)
1613 exec_prefix=$ac_optarg ;;
1614
1615 -gas | --gas | --ga | --g)
1616 # Obsolete; use --with-gas.
1617 with_gas=yes ;;
1618
1619 -help | --help | --hel | --he | -h)
1620 ac_init_help=long ;;
1621 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1622 ac_init_help=recursive ;;
1623 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1624 ac_init_help=short ;;
1625
1626 -host | --host | --hos | --ho)
1627 ac_prev=host_alias ;;
1628 -host=* | --host=* | --hos=* | --ho=*)
1629 host_alias=$ac_optarg ;;
1630
1631 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1632 ac_prev=htmldir ;;
1633 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1634 | --ht=*)
1635 htmldir=$ac_optarg ;;
1636
1637 -includedir | --includedir | --includedi | --included | --include \
1638 | --includ | --inclu | --incl | --inc)
1639 ac_prev=includedir ;;
1640 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1641 | --includ=* | --inclu=* | --incl=* | --inc=*)
1642 includedir=$ac_optarg ;;
1643
1644 -infodir | --infodir | --infodi | --infod | --info | --inf)
1645 ac_prev=infodir ;;
1646 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1647 infodir=$ac_optarg ;;
1648
1649 -libdir | --libdir | --libdi | --libd)
1650 ac_prev=libdir ;;
1651 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1652 libdir=$ac_optarg ;;
1653
1654 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1655 | --libexe | --libex | --libe)
1656 ac_prev=libexecdir ;;
1657 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1658 | --libexe=* | --libex=* | --libe=*)
1659 libexecdir=$ac_optarg ;;
1660
1661 -localedir | --localedir | --localedi | --localed | --locale)
1662 ac_prev=localedir ;;
1663 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1664 localedir=$ac_optarg ;;
1665
1666 -localstatedir | --localstatedir | --localstatedi | --localstated \
1667 | --localstate | --localstat | --localsta | --localst | --locals)
1668 ac_prev=localstatedir ;;
1669 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1670 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1671 localstatedir=$ac_optarg ;;
1672
1673 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1674 ac_prev=mandir ;;
1675 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1676 mandir=$ac_optarg ;;
1677
1678 -nfp | --nfp | --nf)
1679 # Obsolete; use --without-fp.
1680 with_fp=no ;;
1681
1682 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1683 | --no-cr | --no-c | -n)
1684 no_create=yes ;;
1685
1686 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1687 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1688 no_recursion=yes ;;
1689
1690 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1691 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1692 | --oldin | --oldi | --old | --ol | --o)
1693 ac_prev=oldincludedir ;;
1694 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1695 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1696 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1697 oldincludedir=$ac_optarg ;;
1698
1699 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1700 ac_prev=prefix ;;
1701 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1702 prefix=$ac_optarg ;;
1703
1704 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1705 | --program-pre | --program-pr | --program-p)
1706 ac_prev=program_prefix ;;
1707 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1708 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1709 program_prefix=$ac_optarg ;;
1710
1711 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1712 | --program-suf | --program-su | --program-s)
1713 ac_prev=program_suffix ;;
1714 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1715 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1716 program_suffix=$ac_optarg ;;
1717
1718 -program-transform-name | --program-transform-name \
1719 | --program-transform-nam | --program-transform-na \
1720 | --program-transform-n | --program-transform- \
1721 | --program-transform | --program-transfor \
1722 | --program-transfo | --program-transf \
1723 | --program-trans | --program-tran \
1724 | --progr-tra | --program-tr | --program-t)
1725 ac_prev=program_transform_name ;;
1726 -program-transform-name=* | --program-transform-name=* \
1727 | --program-transform-nam=* | --program-transform-na=* \
1728 | --program-transform-n=* | --program-transform-=* \
1729 | --program-transform=* | --program-transfor=* \
1730 | --program-transfo=* | --program-transf=* \
1731 | --program-trans=* | --program-tran=* \
1732 | --progr-tra=* | --program-tr=* | --program-t=*)
1733 program_transform_name=$ac_optarg ;;
1734
1735 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1736 ac_prev=pdfdir ;;
1737 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1738 pdfdir=$ac_optarg ;;
1739
1740 -psdir | --psdir | --psdi | --psd | --ps)
1741 ac_prev=psdir ;;
1742 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1743 psdir=$ac_optarg ;;
1744
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 silent=yes ;;
1748
1749 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1750 ac_prev=sbindir ;;
1751 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1752 | --sbi=* | --sb=*)
1753 sbindir=$ac_optarg ;;
1754
1755 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1756 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1757 | --sharedst | --shareds | --shared | --share | --shar \
1758 | --sha | --sh)
1759 ac_prev=sharedstatedir ;;
1760 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1761 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1762 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1763 | --sha=* | --sh=*)
1764 sharedstatedir=$ac_optarg ;;
1765
1766 -site | --site | --sit)
1767 ac_prev=site ;;
1768 -site=* | --site=* | --sit=*)
1769 site=$ac_optarg ;;
1770
1771 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1772 ac_prev=srcdir ;;
1773 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1774 srcdir=$ac_optarg ;;
1775
1776 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1777 | --syscon | --sysco | --sysc | --sys | --sy)
1778 ac_prev=sysconfdir ;;
1779 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1780 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1781 sysconfdir=$ac_optarg ;;
1782
1783 -target | --target | --targe | --targ | --tar | --ta | --t)
1784 ac_prev=target_alias ;;
1785 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1786 target_alias=$ac_optarg ;;
1787
1788 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1789 verbose=yes ;;
1790
1791 -version | --version | --versio | --versi | --vers | -V)
1792 ac_init_version=: ;;
1793
1794 -with-* | --with-*)
1795 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1796 # Reject names that are not valid shell variable names.
1797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1798 as_fn_error "invalid package name: $ac_useropt"
1799 ac_useropt_orig=$ac_useropt
1800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801 case $ac_user_opts in
1802 *"
1803"with_$ac_useropt"
1804"*) ;;
1805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1806 ac_unrecognized_sep=', ';;
1807 esac
1808 eval with_$ac_useropt=\$ac_optarg ;;
1809
1810 -without-* | --without-*)
1811 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1812 # Reject names that are not valid shell variable names.
1813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1814 as_fn_error "invalid package name: $ac_useropt"
1815 ac_useropt_orig=$ac_useropt
1816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1817 case $ac_user_opts in
1818 *"
1819"with_$ac_useropt"
1820"*) ;;
1821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1822 ac_unrecognized_sep=', ';;
1823 esac
1824 eval with_$ac_useropt=no ;;
1825
1826 --x)
1827 # Obsolete; use --with-x.
1828 with_x=yes ;;
1829
1830 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1831 | --x-incl | --x-inc | --x-in | --x-i)
1832 ac_prev=x_includes ;;
1833 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1834 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1835 x_includes=$ac_optarg ;;
1836
1837 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1838 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1839 ac_prev=x_libraries ;;
1840 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1841 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1842 x_libraries=$ac_optarg ;;
1843
1844 -*) as_fn_error "unrecognized option: \`$ac_option'
1845Try \`$0 --help' for more information."
1846 ;;
1847
1848 *=*)
1849 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1850 # Reject names that are not valid shell variable names.
1851 case $ac_envvar in #(
1852 '' | [0-9]* | *[!_$as_cr_alnum]* )
1853 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1854 esac
1855 eval $ac_envvar=\$ac_optarg
1856 export $ac_envvar ;;
1857
1858 *)
1859 # FIXME: should be removed in autoconf 3.0.
1860 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1861 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1862 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1863 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1864 ;;
1865
1866 esac
1867done
1868
1869if test -n "$ac_prev"; then
1870 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1871 as_fn_error "missing argument to $ac_option"
1872fi
1873
1874if test -n "$ac_unrecognized_opts"; then
1875 case $enable_option_checking in
1876 no) ;;
1877 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1878 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1879 esac
1880fi
1881
1882# Check all directory arguments for consistency.
1883for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1884 datadir sysconfdir sharedstatedir localstatedir includedir \
1885 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1886 libdir localedir mandir
1887do
1888 eval ac_val=\$$ac_var
1889 # Remove trailing slashes.
1890 case $ac_val in
1891 */ )
1892 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1893 eval $ac_var=\$ac_val;;
1894 esac
1895 # Be sure to have absolute directory names.
1896 case $ac_val in
1897 [\\/$]* | ?:[\\/]* ) continue;;
1898 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1899 esac
1900 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1901done
1902
1903# There might be people who depend on the old broken behavior: `$host'
1904# used to hold the argument of --host etc.
1905# FIXME: To remove some day.
1906build=$build_alias
1907host=$host_alias
1908target=$target_alias
1909
1910# FIXME: To remove some day.
1911if test "x$host_alias" != x; then
1912 if test "x$build_alias" = x; then
1913 cross_compiling=maybe
1914 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1915 If a cross compiler is detected then cross compile mode will be used." >&2
1916 elif test "x$build_alias" != "x$host_alias"; then
1917 cross_compiling=yes
1918 fi
1919fi
1920
1921ac_tool_prefix=
1922test -n "$host_alias" && ac_tool_prefix=$host_alias-
1923
1924test "$silent" = yes && exec 6>/dev/null
1925
1926
1927ac_pwd=`pwd` && test -n "$ac_pwd" &&
1928ac_ls_di=`ls -di .` &&
1929ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1930 as_fn_error "working directory cannot be determined"
1931test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1932 as_fn_error "pwd does not report name of working directory"
1933
1934
1935# Find the source files, if location was not specified.
1936if test -z "$srcdir"; then
1937 ac_srcdir_defaulted=yes
1938 # Try the directory containing this script, then the parent directory.
1939 ac_confdir=`$as_dirname -- "$as_myself" ||
1940$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1941 X"$as_myself" : 'X\(//\)[^/]' \| \
1942 X"$as_myself" : 'X\(//\)$' \| \
1943 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1944$as_echo X"$as_myself" |
1945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1946 s//\1/
1947 q
1948 }
1949 /^X\(\/\/\)[^/].*/{
1950 s//\1/
1951 q
1952 }
1953 /^X\(\/\/\)$/{
1954 s//\1/
1955 q
1956 }
1957 /^X\(\/\).*/{
1958 s//\1/
1959 q
1960 }
1961 s/.*/./; q'`
1962 srcdir=$ac_confdir
1963 if test ! -r "$srcdir/$ac_unique_file"; then
1964 srcdir=..
1965 fi
1966else
1967 ac_srcdir_defaulted=no
1968fi
1969if test ! -r "$srcdir/$ac_unique_file"; then
1970 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1971 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1972fi
1973ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1974ac_abs_confdir=`(
1975 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1976 pwd)`
1977# When building in place, set srcdir=.
1978if test "$ac_abs_confdir" = "$ac_pwd"; then
1979 srcdir=.
1980fi
1981# Remove unnecessary trailing slashes from srcdir.
1982# Double slashes in file names in object file debugging info
1983# mess up M-x gdb in Emacs.
1984case $srcdir in
1985*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1986esac
1987for ac_var in $ac_precious_vars; do
1988 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1989 eval ac_env_${ac_var}_value=\$${ac_var}
1990 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1991 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1992done
1993
1994#
1995# Report the --help message.
1996#
1997if test "$ac_init_help" = "long"; then
1998 # Omit some internal or obsolete options to make the list less imposing.
1999 # This message is too long to be a string in the A/UX 3.1 sh.
2000 cat <<_ACEOF
2001\`configure' configures this package to adapt to many kinds of systems.
2002
2003Usage: $0 [OPTION]... [VAR=VALUE]...
2004
2005To assign environment variables (e.g., CC, CFLAGS...), specify them as
2006VAR=VALUE. See below for descriptions of some of the useful variables.
2007
2008Defaults for the options are specified in brackets.
2009
2010Configuration:
2011 -h, --help display this help and exit
2012 --help=short display options specific to this package
2013 --help=recursive display the short help of all the included packages
2014 -V, --version display version information and exit
2015 -q, --quiet, --silent do not print \`checking...' messages
2016 --cache-file=FILE cache test results in FILE [disabled]
2017 -C, --config-cache alias for \`--cache-file=config.cache'
2018 -n, --no-create do not create output files
2019 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2020
2021Installation directories:
2022 --prefix=PREFIX install architecture-independent files in PREFIX
2023 [$ac_default_prefix]
2024 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2025 [PREFIX]
2026
2027By default, \`make install' will install all the files in
2028\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2029an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2030for instance \`--prefix=\$HOME'.
2031
2032For better control, use the options below.
2033
2034Fine tuning of the installation directories:
2035 --bindir=DIR user executables [EPREFIX/bin]
2036 --sbindir=DIR system admin executables [EPREFIX/sbin]
2037 --libexecdir=DIR program executables [EPREFIX/libexec]
2038 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2039 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2040 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2041 --libdir=DIR object code libraries [EPREFIX/lib]
2042 --includedir=DIR C header files [PREFIX/include]
2043 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2044 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2045 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2046 --infodir=DIR info documentation [DATAROOTDIR/info]
2047 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2048 --mandir=DIR man documentation [DATAROOTDIR/man]
2049 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2050 --htmldir=DIR html documentation [DOCDIR]
2051 --dvidir=DIR dvi documentation [DOCDIR]
2052 --pdfdir=DIR pdf documentation [DOCDIR]
2053 --psdir=DIR ps documentation [DOCDIR]
2054_ACEOF
2055
2056 cat <<\_ACEOF
2057
2058Program names:
2059 --program-prefix=PREFIX prepend PREFIX to installed program names
2060 --program-suffix=SUFFIX append SUFFIX to installed program names
2061 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2062
2063System types:
2064 --build=BUILD configure for building on BUILD [guessed]
2065 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2066 --target=TARGET configure for building compilers for TARGET [HOST]
2067_ACEOF
2068fi
2069
2070if test -n "$ac_init_help"; then
2071
2072 cat <<\_ACEOF
2073
2074Optional Features:
2075 --disable-option-checking ignore unrecognized --enable/--with options
2076 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2077 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2078 --enable-maintainer-mode enable make rules and dependencies not useful
2079 (and sometimes confusing) to the casual installer
2080 --disable-dependency-tracking speeds up one-time build
2081 --enable-dependency-tracking do not reject slow dependency extractors
2082
2083Some influential environment variables:
2084 CC C compiler command
2085 CFLAGS C compiler flags
2086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2087 nonstandard directory <lib dir>
2088 LIBS libraries to pass to the linker, e.g. -l<library>
2089 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2090 you have headers in a nonstandard directory <include dir>
2091 CPP C preprocessor
2092
2093Use these variables to override the choices made by `configure' or to help
2094it to find libraries and programs with nonstandard names/locations.
2095
2096Report bugs to the package provider.
2097_ACEOF
2098ac_status=$?
2099fi
2100
2101if test "$ac_init_help" = "recursive"; then
2102 # If there are subdirs, report their specific --help.
2103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2104 test -d "$ac_dir" ||
2105 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2106 continue
2107 ac_builddir=.
2108
2109case "$ac_dir" in
2110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2111*)
2112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2113 # A ".." for each directory in $ac_dir_suffix.
2114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2115 case $ac_top_builddir_sub in
2116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2118 esac ;;
2119esac
2120ac_abs_top_builddir=$ac_pwd
2121ac_abs_builddir=$ac_pwd$ac_dir_suffix
2122# for backward compatibility:
2123ac_top_builddir=$ac_top_build_prefix
2124
2125case $srcdir in
2126 .) # We are building in place.
2127 ac_srcdir=.
2128 ac_top_srcdir=$ac_top_builddir_sub
2129 ac_abs_top_srcdir=$ac_pwd ;;
2130 [\\/]* | ?:[\\/]* ) # Absolute name.
2131 ac_srcdir=$srcdir$ac_dir_suffix;
2132 ac_top_srcdir=$srcdir
2133 ac_abs_top_srcdir=$srcdir ;;
2134 *) # Relative name.
2135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2136 ac_top_srcdir=$ac_top_build_prefix$srcdir
2137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2138esac
2139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2140
2141 cd "$ac_dir" || { ac_status=$?; continue; }
2142 # Check for guested configure.
2143 if test -f "$ac_srcdir/configure.gnu"; then
2144 echo &&
2145 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2146 elif test -f "$ac_srcdir/configure"; then
2147 echo &&
2148 $SHELL "$ac_srcdir/configure" --help=recursive
2149 else
2150 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2151 fi || ac_status=$?
2152 cd "$ac_pwd" || { ac_status=$?; break; }
2153 done
2154fi
2155
2156test -n "$ac_init_help" && exit $ac_status
2157if $ac_init_version; then
2158 cat <<\_ACEOF
2159configure
2160generated by GNU Autoconf 2.64
2161
2162Copyright (C) 2009 Free Software Foundation, Inc.
2163This configure script is free software; the Free Software Foundation
2164gives unlimited permission to copy, distribute and modify it.
2165_ACEOF
2166 exit
2167fi
2168
2169## ------------------------ ##
2170## Autoconf initialization. ##
2171## ------------------------ ##
2172
2173# ac_fn_c_try_compile LINENO
2174# --------------------------
2175# Try to compile conftest.$ac_ext, and return whether this succeeded.
2176ac_fn_c_try_compile ()
2177{
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 rm -f conftest.$ac_objext
2180 if { { ac_try="$ac_compile"
2181case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184esac
2185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186$as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_compile") 2>conftest.err
2188 ac_status=$?
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2193 fi
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && {
2196 test -z "$ac_c_werror_flag" ||
2197 test ! -s conftest.err
2198 } && test -s conftest.$ac_objext; then :
2199 ac_retval=0
2200else
2201 $as_echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 ac_retval=1
2205fi
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207 return $ac_retval
2208
2209} # ac_fn_c_try_compile
2210
2211# ac_fn_c_try_cpp LINENO
2212# ----------------------
2213# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2214ac_fn_c_try_cpp ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if { { ac_try="$ac_cpp conftest.$ac_ext"
2218case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223$as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2225 ac_status=$?
2226 if test -s conftest.err; then
2227 grep -v '^ *+' conftest.err >conftest.er1
2228 cat conftest.er1 >&5
2229 mv -f conftest.er1 conftest.err
2230 fi
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; } >/dev/null && {
2233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2234 test ! -s conftest.err
2235 }; then :
2236 ac_retval=0
2237else
2238 $as_echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 ac_retval=1
2242fi
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 return $ac_retval
2245
2246} # ac_fn_c_try_cpp
2247
2248# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2249# -------------------------------------------------------
2250# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2251# the include files in INCLUDES and setting the cache variable VAR
2252# accordingly.
2253ac_fn_c_check_header_mongrel ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258$as_echo_n "checking for $2... " >&6; }
2259if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2261fi
2262eval ac_res=\$$3
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264$as_echo "$ac_res" >&6; }
2265else
2266 # Is the header compilable?
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2268$as_echo_n "checking $2 usability... " >&6; }
2269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h. */
2271$4
2272#include <$2>
2273_ACEOF
2274if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_header_compiler=yes
2276else
2277 ac_header_compiler=no
2278fi
2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2281$as_echo "$ac_header_compiler" >&6; }
2282
2283# Is the header present?
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2285$as_echo_n "checking $2 presence... " >&6; }
2286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h. */
2288#include <$2>
2289_ACEOF
2290if ac_fn_c_try_cpp "$LINENO"; then :
2291 ac_header_preproc=yes
2292else
2293 ac_header_preproc=no
2294fi
2295rm -f conftest.err conftest.$ac_ext
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2297$as_echo "$ac_header_preproc" >&6; }
2298
2299# So? What about this header?
2300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2301 yes:no: )
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2303$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2306 ;;
2307 no:yes:* )
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2309$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2311$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2313$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2315$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2317$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2318 ;;
2319esac
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321$as_echo_n "checking for $2... " >&6; }
2322if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323 $as_echo_n "(cached) " >&6
2324else
2325 eval "$3=\$ac_header_compiler"
2326fi
2327eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
2330fi
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332
2333} # ac_fn_c_check_header_mongrel
2334
2335# ac_fn_c_try_run LINENO
2336# ----------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338# that executables *can* be run.
2339ac_fn_c_try_run ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5
2350 ac_status=$?
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353 { { case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5
2360 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=$ac_status
2370fi
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 return $ac_retval
2374
2375} # ac_fn_c_try_run
2376
2377# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2378# -------------------------------------------------------
2379# Tests whether HEADER exists and can be compiled using the include files in
2380# INCLUDES, setting the cache variable VAR accordingly.
2381ac_fn_c_check_header_compile ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385$as_echo_n "checking for $2... " >&6; }
2386if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2387 $as_echo_n "(cached) " >&6
2388else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h. */
2391$4
2392#include <$2>
2393_ACEOF
2394if ac_fn_c_try_compile "$LINENO"; then :
2395 eval "$3=yes"
2396else
2397 eval "$3=no"
2398fi
2399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400fi
2401eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403$as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405
2406} # ac_fn_c_check_header_compile
2407
2408# ac_fn_c_try_link LINENO
2409# -----------------------
2410# Try to link conftest.$ac_ext, and return whether this succeeded.
2411ac_fn_c_try_link ()
2412{
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 rm -f conftest.$ac_objext conftest$ac_exeext
2415 if { { ac_try="$ac_link"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421$as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_link") 2>conftest.err
2423 ac_status=$?
2424 if test -s conftest.err; then
2425 grep -v '^ *+' conftest.err >conftest.er1
2426 cat conftest.er1 >&5
2427 mv -f conftest.er1 conftest.err
2428 fi
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && {
2431 test -z "$ac_c_werror_flag" ||
2432 test ! -s conftest.err
2433 } && test -s conftest$ac_exeext && {
2434 test "$cross_compiling" = yes ||
2435 $as_test_x conftest$ac_exeext
2436 }; then :
2437 ac_retval=0
2438else
2439 $as_echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 ac_retval=1
2443fi
2444 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2445 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2446 # interfere with the next link command; also delete a directory that is
2447 # left behind by Apple's compiler. We do this before executing the actions.
2448 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 return $ac_retval
2451
2452} # ac_fn_c_try_link
2453
8690e634
JK
2454# ac_fn_c_check_func LINENO FUNC VAR
2455# ----------------------------------
2456# Tests whether FUNC exists, setting the cache variable VAR accordingly
2457ac_fn_c_check_func ()
2458{
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461$as_echo_n "checking for $2... " >&6; }
2462if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463 $as_echo_n "(cached) " >&6
2464else
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h. */
2467/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2469#define $2 innocuous_$2
2470
2471/* System header to define __stub macros and hopefully few prototypes,
2472 which can conflict with char $2 (); below.
2473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2474 <limits.h> exists even on freestanding compilers. */
2475
2476#ifdef __STDC__
2477# include <limits.h>
2478#else
2479# include <assert.h>
2480#endif
2481
2482#undef $2
2483
2484/* Override any GCC internal prototype to avoid an error.
2485 Use char because int might match the return type of a GCC
2486 builtin and then its argument prototype would still apply. */
2487#ifdef __cplusplus
2488extern "C"
2489#endif
2490char $2 ();
2491/* The GNU C library defines this for functions which it implements
2492 to always fail with ENOSYS. Some functions are actually named
2493 something starting with __ and the normal name is an alias. */
2494#if defined __stub_$2 || defined __stub___$2
2495choke me
2496#endif
2497
2498int
2499main ()
2500{
2501return $2 ();
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506if ac_fn_c_try_link "$LINENO"; then :
2507 eval "$3=yes"
2508else
2509 eval "$3=no"
2510fi
2511rm -f core conftest.err conftest.$ac_objext \
2512 conftest$ac_exeext conftest.$ac_ext
2513fi
2514eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516$as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518
2519} # ac_fn_c_check_func
2520
8986e351
TT
2521# ac_fn_c_check_decl LINENO SYMBOL VAR
2522# ------------------------------------
2523# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2524ac_fn_c_check_decl ()
2525{
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2528$as_echo_n "checking whether $2 is declared... " >&6; }
2529if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530 $as_echo_n "(cached) " >&6
2531else
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
2538#ifndef $2
2539 (void) $2;
2540#endif
2541
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546if ac_fn_c_try_compile "$LINENO"; then :
2547 eval "$3=yes"
2548else
2549 eval "$3=no"
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558} # ac_fn_c_check_decl
2559
c971b7fa
PA
2560# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2561# --------------------------------------------
2562# Tries to find the compile-time value of EXPR in a program that includes
2563# INCLUDES, setting VAR accordingly. Returns whether the value could be
2564# computed
2565ac_fn_c_compute_int ()
2566{
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 if test "$cross_compiling" = yes; then
2569 # Depending upon the size, compute the lo and hi bounds.
2570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$4
2573int
2574main ()
2575{
2576static int test_array [1 - 2 * !(($2) >= 0)];
2577test_array [0] = 0
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584 ac_lo=0 ac_mid=0
2585 while :; do
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587/* end confdefs.h. */
2588$4
2589int
2590main ()
2591{
2592static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2593test_array [0] = 0
2594
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599if ac_fn_c_try_compile "$LINENO"; then :
2600 ac_hi=$ac_mid; break
2601else
2602 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2603 if test $ac_lo -le $ac_mid; then
2604 ac_lo= ac_hi=
2605 break
2606 fi
2607 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 done
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$4
2615int
2616main ()
2617{
2618static int test_array [1 - 2 * !(($2) < 0)];
2619test_array [0] = 0
2620
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 ac_hi=-1 ac_mid=-1
2627 while :; do
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629/* end confdefs.h. */
2630$4
2631int
2632main ()
2633{
2634static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2635test_array [0] = 0
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641if ac_fn_c_try_compile "$LINENO"; then :
2642 ac_lo=$ac_mid; break
2643else
2644 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2645 if test $ac_mid -le $ac_hi; then
2646 ac_lo= ac_hi=
2647 break
2648 fi
2649 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2650fi
2651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 done
2653else
2654 ac_lo= ac_hi=
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659# Binary search between lo and hi bounds.
2660while test "x$ac_lo" != "x$ac_hi"; do
2661 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2669test_array [0] = 0
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 ac_hi=$ac_mid
2677else
2678 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2679fi
2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681done
2682case $ac_lo in #((
2683?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2684'') ac_retval=1 ;;
2685esac
2686 else
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688/* end confdefs.h. */
2689$4
2690static long int longval () { return $2; }
2691static unsigned long int ulongval () { return $2; }
2692#include <stdio.h>
2693#include <stdlib.h>
2694int
2695main ()
2696{
2697
2698 FILE *f = fopen ("conftest.val", "w");
2699 if (! f)
2700 return 1;
2701 if (($2) < 0)
2702 {
2703 long int i = longval ();
2704 if (i != ($2))
2705 return 1;
2706 fprintf (f, "%ld", i);
2707 }
2708 else
2709 {
2710 unsigned long int i = ulongval ();
2711 if (i != ($2))
2712 return 1;
2713 fprintf (f, "%lu", i);
2714 }
2715 /* Do not output a trailing newline, as this causes \r\n confusion
2716 on some platforms. */
2717 return ferror (f) || fclose (f) != 0;
2718
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723if ac_fn_c_try_run "$LINENO"; then :
2724 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2725else
2726 ac_retval=1
2727fi
2728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2729 conftest.$ac_objext conftest.beam conftest.$ac_ext
2730rm -f conftest.val
2731
2732 fi
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 return $ac_retval
2735
2736} # ac_fn_c_compute_int
2737
8690e634
JK
2738# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2739# -------------------------------------------
2740# Tests whether TYPE exists after having included INCLUDES, setting cache
2741# variable VAR accordingly.
2742ac_fn_c_check_type ()
c971b7fa
PA
2743{
2744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2746$as_echo_n "checking for $2... " >&6; }
2747if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2748 $as_echo_n "(cached) " >&6
2749else
8690e634 2750 eval "$3=no"
c971b7fa
PA
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752/* end confdefs.h. */
8690e634 2753$4
c971b7fa
PA
2754int
2755main ()
2756{
8690e634
JK
2757if (sizeof ($2))
2758 return 0;
c971b7fa
PA
2759 ;
2760 return 0;
2761}
2762_ACEOF
8690e634 2763if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765/* end confdefs.h. */
2766$4
2767int
2768main ()
2769{
8690e634
JK
2770if (sizeof (($2)))
2771 return 0;
c971b7fa
PA
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2777
c971b7fa 2778else
8690e634
JK
2779 eval "$3=yes"
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2782fi
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784fi
2785eval ac_res=\$$3
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787$as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2789
8690e634 2790} # ac_fn_c_check_type
c971b7fa
PA
2791cat >config.log <<_ACEOF
2792This file contains any messages produced by compilers while
2793running configure, to aid debugging if configure makes a mistake.
2794
2795It was created by $as_me, which was
2796generated by GNU Autoconf 2.64. Invocation command line was
2797
2798 $ $0 $@
2799
2800_ACEOF
2801exec 5>>config.log
2802{
2803cat <<_ASUNAME
2804## --------- ##
2805## Platform. ##
2806## --------- ##
2807
2808hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2809uname -m = `(uname -m) 2>/dev/null || echo unknown`
2810uname -r = `(uname -r) 2>/dev/null || echo unknown`
2811uname -s = `(uname -s) 2>/dev/null || echo unknown`
2812uname -v = `(uname -v) 2>/dev/null || echo unknown`
2813
2814/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2815/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2816
2817/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2818/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2819/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2820/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2821/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2822/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2823/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2824
2825_ASUNAME
2826
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 $as_echo "PATH: $as_dir"
2833 done
2834IFS=$as_save_IFS
2835
2836} >&5
2837
2838cat >&5 <<_ACEOF
2839
2840
2841## ----------- ##
2842## Core tests. ##
2843## ----------- ##
2844
2845_ACEOF
2846
2847
2848# Keep a trace of the command line.
2849# Strip out --no-create and --no-recursion so they do not pile up.
2850# Strip out --silent because we don't want to record it for future runs.
2851# Also quote any args containing shell meta-characters.
2852# Make two passes to allow for proper duplicate-argument suppression.
2853ac_configure_args=
2854ac_configure_args0=
2855ac_configure_args1=
2856ac_must_keep_next=false
2857for ac_pass in 1 2
2858do
2859 for ac_arg
2860 do
2861 case $ac_arg in
2862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2864 | -silent | --silent | --silen | --sile | --sil)
2865 continue ;;
2866 *\'*)
2867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2868 esac
2869 case $ac_pass in
2870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2871 2)
2872 as_fn_append ac_configure_args1 " '$ac_arg'"
2873 if test $ac_must_keep_next = true; then
2874 ac_must_keep_next=false # Got value, back to normal.
2875 else
2876 case $ac_arg in
2877 *=* | --config-cache | -C | -disable-* | --disable-* \
2878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2880 | -with-* | --with-* | -without-* | --without-* | --x)
2881 case "$ac_configure_args0 " in
2882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2883 esac
2884 ;;
2885 -* ) ac_must_keep_next=true ;;
2886 esac
2887 fi
2888 as_fn_append ac_configure_args " '$ac_arg'"
2889 ;;
2890 esac
2891 done
2892done
2893{ ac_configure_args0=; unset ac_configure_args0;}
2894{ ac_configure_args1=; unset ac_configure_args1;}
2895
2896# When interrupted or exit'd, cleanup temporary files, and complete
2897# config.log. We remove comments because anyway the quotes in there
2898# would cause problems or look ugly.
2899# WARNING: Use '\'' to represent an apostrophe within the trap.
2900# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2901trap 'exit_status=$?
2902 # Save into config.log some information that might help in debugging.
2903 {
2904 echo
2905
2906 cat <<\_ASBOX
2907## ---------------- ##
2908## Cache variables. ##
2909## ---------------- ##
2910_ASBOX
2911 echo
2912 # The following way of writing the cache mishandles newlines in values,
2913(
2914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2915 eval ac_val=\$$ac_var
2916 case $ac_val in #(
2917 *${as_nl}*)
2918 case $ac_var in #(
2919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2920$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2921 esac
2922 case $ac_var in #(
2923 _ | IFS | as_nl) ;; #(
2924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2925 *) { eval $ac_var=; unset $ac_var;} ;;
2926 esac ;;
2927 esac
2928 done
2929 (set) 2>&1 |
2930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2931 *${as_nl}ac_space=\ *)
2932 sed -n \
2933 "s/'\''/'\''\\\\'\'''\''/g;
2934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2935 ;; #(
2936 *)
2937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2938 ;;
2939 esac |
2940 sort
2941)
2942 echo
2943
2944 cat <<\_ASBOX
2945## ----------------- ##
2946## Output variables. ##
2947## ----------------- ##
2948_ASBOX
2949 echo
2950 for ac_var in $ac_subst_vars
2951 do
2952 eval ac_val=\$$ac_var
2953 case $ac_val in
2954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2955 esac
2956 $as_echo "$ac_var='\''$ac_val'\''"
2957 done | sort
2958 echo
2959
2960 if test -n "$ac_subst_files"; then
2961 cat <<\_ASBOX
2962## ------------------- ##
2963## File substitutions. ##
2964## ------------------- ##
2965_ASBOX
2966 echo
2967 for ac_var in $ac_subst_files
2968 do
2969 eval ac_val=\$$ac_var
2970 case $ac_val in
2971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2972 esac
2973 $as_echo "$ac_var='\''$ac_val'\''"
2974 done | sort
2975 echo
2976 fi
2977
2978 if test -s confdefs.h; then
2979 cat <<\_ASBOX
2980## ----------- ##
2981## confdefs.h. ##
2982## ----------- ##
2983_ASBOX
2984 echo
2985 cat confdefs.h
2986 echo
2987 fi
2988 test "$ac_signal" != 0 &&
2989 $as_echo "$as_me: caught signal $ac_signal"
2990 $as_echo "$as_me: exit $exit_status"
2991 } >&5
2992 rm -f core *.core core.conftest.* &&
2993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2994 exit $exit_status
2995' 0
2996for ac_signal in 1 2 13 15; do
2997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2998done
2999ac_signal=0
3000
3001# confdefs.h avoids OS command line length limits that DEFS can exceed.
3002rm -f -r conftest* confdefs.h
3003
3004$as_echo "/* confdefs.h */" > confdefs.h
3005
3006# Predefined preprocessor variables.
3007
3008cat >>confdefs.h <<_ACEOF
3009#define PACKAGE_NAME "$PACKAGE_NAME"
3010_ACEOF
3011
3012cat >>confdefs.h <<_ACEOF
3013#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3014_ACEOF
3015
3016cat >>confdefs.h <<_ACEOF
3017#define PACKAGE_VERSION "$PACKAGE_VERSION"
3018_ACEOF
3019
3020cat >>confdefs.h <<_ACEOF
3021#define PACKAGE_STRING "$PACKAGE_STRING"
3022_ACEOF
3023
3024cat >>confdefs.h <<_ACEOF
3025#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3026_ACEOF
3027
3028cat >>confdefs.h <<_ACEOF
3029#define PACKAGE_URL "$PACKAGE_URL"
3030_ACEOF
3031
3032
3033# Let the site file select an alternate cache file if it wants to.
3034# Prefer an explicitly selected file to automatically selected ones.
3035ac_site_file1=NONE
3036ac_site_file2=NONE
3037if test -n "$CONFIG_SITE"; then
3038 ac_site_file1=$CONFIG_SITE
3039elif test "x$prefix" != xNONE; then
3040 ac_site_file1=$prefix/share/config.site
3041 ac_site_file2=$prefix/etc/config.site
3042else
3043 ac_site_file1=$ac_default_prefix/share/config.site
3044 ac_site_file2=$ac_default_prefix/etc/config.site
3045fi
3046for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3047do
3048 test "x$ac_site_file" = xNONE && continue
3049 if test -r "$ac_site_file"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3051$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3052 sed 's/^/| /' "$ac_site_file" >&5
3053 . "$ac_site_file"
3054 fi
3055done
3056
3057if test -r "$cache_file"; then
3058 # Some versions of bash will fail to source /dev/null (special
3059 # files actually), so we avoid doing that.
3060 if test -f "$cache_file"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3062$as_echo "$as_me: loading cache $cache_file" >&6;}
3063 case $cache_file in
3064 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3065 *) . "./$cache_file";;
3066 esac
3067 fi
3068else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3070$as_echo "$as_me: creating cache $cache_file" >&6;}
3071 >$cache_file
3072fi
3073
e26b6bb0 3074as_fn_append ac_header_list " dirent.h"
3574124b
PA
3075as_fn_append ac_func_list " btowc"
3076as_fn_append ac_func_list " isblank"
3077as_fn_append ac_func_list " iswctype"
3078as_fn_append ac_func_list " mbsrtowcs"
3079as_fn_append ac_func_list " mempcpy"
3080as_fn_append ac_func_list " wmemchr"
3081as_fn_append ac_func_list " wmemcpy"
3082as_fn_append ac_func_list " wmempcpy"
3083as_fn_append ac_header_list " wctype.h"
8690e634 3084gl_fnmatch_required=GNU
3574124b
PA
3085as_fn_append ac_func_list " alarm"
3086as_fn_append ac_header_list " wchar.h"
3087as_fn_append ac_header_list " stdint.h"
3088as_fn_append ac_header_list " inttypes.h"
3089as_fn_append ac_header_list " unistd.h"
3090as_fn_append ac_func_list " symlink"
3091as_fn_append ac_header_list " math.h"
3092as_fn_append ac_func_list " mbsinit"
3093as_fn_append ac_func_list " mbrtowc"
3094as_fn_append ac_header_list " sys/mman.h"
3095as_fn_append ac_func_list " mprotect"
38ec2207 3096as_fn_append ac_header_list " sys/param.h"
09607c9e
TT
3097as_fn_append ac_header_list " sys/stat.h"
3098as_fn_append ac_header_list " sys/time.h"
3574124b
PA
3099as_fn_append ac_header_list " features.h"
3100as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3101# Check that the precious variables saved in the cache have kept the same
3102# value.
3103ac_cache_corrupted=false
3104for ac_var in $ac_precious_vars; do
3105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3106 eval ac_new_set=\$ac_env_${ac_var}_set
3107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3108 eval ac_new_val=\$ac_env_${ac_var}_value
3109 case $ac_old_set,$ac_new_set in
3110 set,)
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3114 ,set)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,);;
3119 *)
3120 if test "x$ac_old_val" != "x$ac_new_val"; then
3121 # differences in whitespace do not lead to failure.
3122 ac_old_val_w=`echo x $ac_old_val`
3123 ac_new_val_w=`echo x $ac_new_val`
3124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127 ac_cache_corrupted=:
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131 eval $ac_var=\$ac_old_val
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3134$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3136$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3137 fi;;
3138 esac
3139 # Pass precious variables to config.status.
3140 if test "$ac_new_set" = set; then
3141 case $ac_new_val in
3142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143 *) ac_arg=$ac_var=$ac_new_val ;;
3144 esac
3145 case " $ac_configure_args " in
3146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3148 esac
3149 fi
3150done
3151if $ac_cache_corrupted; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3156 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157fi
3158## -------------------- ##
3159## Main body of script. ##
3160## -------------------- ##
3161
3162ac_ext=c
3163ac_cpp='$CPP $CPPFLAGS'
3164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167
3168
3169ac_config_headers="$ac_config_headers config.h:config.in"
3170
3171
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3173$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3174 # Check whether --enable-maintainer-mode was given.
3175if test "${enable_maintainer_mode+set}" = set; then :
3176 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3177else
3178 USE_MAINTAINER_MODE=no
3179fi
3180
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3182$as_echo "$USE_MAINTAINER_MODE" >&6; }
3183 if test $USE_MAINTAINER_MODE = yes; then
3184 MAINTAINER_MODE_TRUE=
3185 MAINTAINER_MODE_FALSE='#'
3186else
3187 MAINTAINER_MODE_TRUE='#'
3188 MAINTAINER_MODE_FALSE=
3189fi
3190
3191 MAINT=$MAINTAINER_MODE_TRUE
3192
3193
3194
3195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3202set dummy ${ac_tool_prefix}gcc; ac_word=$2
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204$as_echo_n "checking for $ac_word... " >&6; }
3205if test "${ac_cv_prog_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3207else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222done
3223 done
3224IFS=$as_save_IFS
3225
3226fi
3227fi
3228CC=$ac_cv_prog_CC
3229if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231$as_echo "$CC" >&6; }
3232else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235fi
3236
3237
3238fi
3239if test -z "$ac_cv_prog_CC"; then
3240 ac_ct_CC=$CC
3241 # Extract the first word of "gcc", so it can be a program name with args.
3242set dummy gcc; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_ac_ct_CC="gcc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263 done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269if test -n "$ac_ct_CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271$as_echo "$ac_ct_CC" >&6; }
3272else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277 if test "x$ac_ct_CC" = x; then
3278 CC=""
3279 else
3280 case $cross_compiling:$ac_tool_warned in
3281yes:)
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284ac_tool_warned=yes ;;
3285esac
3286 CC=$ac_ct_CC
3287 fi
3288else
3289 CC="$ac_cv_prog_CC"
3290fi
3291
3292if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295set dummy ${ac_tool_prefix}cc; ac_word=$2
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297$as_echo_n "checking for $ac_word... " >&6; }
3298if test "${ac_cv_prog_CC+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3300else
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3303else
3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH
3306do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_CC="${ac_tool_prefix}cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315done
3316 done
3317IFS=$as_save_IFS
3318
3319fi
3320fi
3321CC=$ac_cv_prog_CC
3322if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324$as_echo "$CC" >&6; }
3325else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327$as_echo "no" >&6; }
3328fi
3329
3330
3331 fi
3332fi
3333if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335set dummy cc; ac_word=$2
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337$as_echo_n "checking for $ac_word... " >&6; }
3338if test "${ac_cv_prog_CC+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3340else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343else
3344 ac_prog_rejected=no
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected=yes
3354 continue
3355 fi
3356 ac_cv_prog_CC="cc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361 done
3362IFS=$as_save_IFS
3363
3364if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy $ac_cv_prog_CC
3367 shift
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3372 shift
3373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3374 fi
3375fi
3376fi
3377fi
3378CC=$ac_cv_prog_CC
3379if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381$as_echo "$CC" >&6; }
3382else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384$as_echo "no" >&6; }
3385fi
3386
3387
3388fi
3389if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog in cl.exe
3392 do
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if test "${ac_cv_prog_CC+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3399else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415 done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423$as_echo "$CC" >&6; }
3424else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
3427fi
3428
3429
3430 test -n "$CC" && break
3431 done
3432fi
3433if test -z "$CC"; then
3434 ac_ct_CC=$CC
3435 for ac_prog in cl.exe
3436do
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438set dummy $ac_prog; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_ac_ct_CC="$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465if test -n "$ac_ct_CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467$as_echo "$ac_ct_CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474 test -n "$ac_ct_CC" && break
3475done
3476
3477 if test "x$ac_ct_CC" = x; then
3478 CC=""
3479 else
3480 case $cross_compiling:$ac_tool_warned in
3481yes:)
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484ac_tool_warned=yes ;;
3485esac
3486 CC=$ac_ct_CC
3487 fi
3488fi
3489
3490fi
3491
3492
3493test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495as_fn_error "no acceptable C compiler found in \$PATH
3496See \`config.log' for more details." "$LINENO" 5; }
3497
3498# Provide some information about the compiler.
3499$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3500set X $ac_compile
3501ac_compiler=$2
3502for ac_option in --version -v -V -qversion; do
3503 { { ac_try="$ac_compiler $ac_option >&5"
3504case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511 ac_status=$?
3512 if test -s conftest.err; then
3513 sed '10a\
3514... rest of stderr output deleted ...
3515 10q' conftest.err >conftest.er1
3516 cat conftest.er1 >&5
3517 rm -f conftest.er1 conftest.err
3518 fi
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3521done
3522
3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h. */
3525#include <stdio.h>
3526int
3527main ()
3528{
3529FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536ac_clean_files_save=$ac_clean_files
3537ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3538# Try to create an executable without -o first, disregard a.out.
3539# It will help us diagnose broken compilers, and finding out an intuition
3540# of exeext.
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3542$as_echo_n "checking for C compiler default output file name... " >&6; }
3543ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3544
3545# The possible output files:
3546ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3547
3548ac_rmfiles=
3549for ac_file in $ac_files
3550do
3551 case $ac_file in
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3554 esac
3555done
3556rm -f $ac_rmfiles
3557
3558if { { ac_try="$ac_link_default"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564$as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link_default") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571# in a Makefile. We should not override ac_cv_exeext if it was cached,
3572# so that the user can short-circuit this test for compilers unknown to
3573# Autoconf.
3574for ac_file in $ac_files ''
3575do
3576 test -f "$ac_file" || continue
3577 case $ac_file in
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3579 ;;
3580 [ab].out )
3581 # We found the default executable, but exeext='' is most
3582 # certainly right.
3583 break;;
3584 *.* )
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586 then :; else
3587 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 fi
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3593 # actually working.
3594 break;;
3595 * )
3596 break;;
3597 esac
3598done
3599test "$ac_cv_exeext" = no && ac_cv_exeext=
3600
3601else
3602 ac_file=''
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605$as_echo "$ac_file" >&6; }
3606if test -z "$ac_file"; then :
3607 $as_echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612{ as_fn_set_status 77
3613as_fn_error "C compiler cannot create executables
3614See \`config.log' for more details." "$LINENO" 5; }; }
3615fi
3616ac_exeext=$ac_cv_exeext
3617
3618# Check that the compiler produces executables we can run. If not, either
3619# the compiler is broken, or we cross compile.
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3621$as_echo_n "checking whether the C compiler works... " >&6; }
3622# If not cross compiling, check that we can run a simple program.
3623if test "$cross_compiling" != yes; then
3624 if { ac_try='./$ac_file'
3625 { { case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_try") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; }; then
3635 cross_compiling=no
3636 else
3637 if test "$cross_compiling" = maybe; then
3638 cross_compiling=yes
3639 else
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error "cannot run C compiled programs.
3643If you meant to cross compile, use \`--host'.
3644See \`config.log' for more details." "$LINENO" 5; }
3645 fi
3646 fi
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649$as_echo "yes" >&6; }
3650
3651rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3652ac_clean_files=$ac_clean_files_save
3653# Check that the compiler produces executables we can run. If not, either
3654# the compiler is broken, or we cross compile.
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3656$as_echo_n "checking whether we are cross compiling... " >&6; }
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3658$as_echo "$cross_compiling" >&6; }
3659
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661$as_echo_n "checking for suffix of executables... " >&6; }
3662if { { ac_try="$ac_link"
3663case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3675# work properly (i.e., refer to `conftest.exe'), while it won't with
3676# `rm'.
3677for ac_file in conftest.exe conftest conftest.*; do
3678 test -f "$ac_file" || continue
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 break;;
3683 * ) break;;
3684 esac
3685done
3686else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error "cannot compute suffix of executables: cannot compile and link
3690See \`config.log' for more details." "$LINENO" 5; }
3691fi
3692rm -f conftest$ac_cv_exeext
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694$as_echo "$ac_cv_exeext" >&6; }
3695
3696rm -f conftest.$ac_ext
3697EXEEXT=$ac_cv_exeext
3698ac_exeext=$EXEEXT
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3700$as_echo_n "checking for suffix of object files... " >&6; }
3701if test "${ac_cv_objext+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3703else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h. */
3706
3707int
3708main ()
3709{
3710
3711 ;
3712 return 0;
3713}
3714_ACEOF
3715rm -f conftest.o conftest.obj
3716if { { ac_try="$ac_compile"
3717case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722$as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_compile") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; then :
3727 for ac_file in conftest.o conftest.obj conftest.*; do
3728 test -f "$ac_file" || continue;
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732 break;;
3733 esac
3734done
3735else
3736 $as_echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741as_fn_error "cannot compute suffix of object files: cannot compile
3742See \`config.log' for more details." "$LINENO" 5; }
3743fi
3744rm -f conftest.$ac_cv_objext conftest.$ac_ext
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3747$as_echo "$ac_cv_objext" >&6; }
3748OBJEXT=$ac_cv_objext
3749ac_objext=$OBJEXT
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3751$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3752if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h. */
3757
3758int
3759main ()
3760{
3761#ifndef __GNUC__
3762 choke me
3763#endif
3764
3765 ;
3766 return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_compiler_gnu=yes
3771else
3772 ac_compiler_gnu=no
3773fi
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3779$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3780if test $ac_compiler_gnu = yes; then
3781 GCC=yes
3782else
3783 GCC=
3784fi
3785ac_test_CFLAGS=${CFLAGS+set}
3786ac_save_CFLAGS=$CFLAGS
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3788$as_echo_n "checking whether $CC accepts -g... " >&6; }
3789if test "${ac_cv_prog_cc_g+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791else
3792 ac_save_c_werror_flag=$ac_c_werror_flag
3793 ac_c_werror_flag=yes
3794 ac_cv_prog_cc_g=no
3795 CFLAGS="-g"
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798
3799int
3800main ()
3801{
3802
3803 ;
3804 return 0;
3805}
3806_ACEOF
3807if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_g=yes
3809else
3810 CFLAGS=""
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h. */
3813
3814int
3815main ()
3816{
3817
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822if ac_fn_c_try_compile "$LINENO"; then :
3823
3824else
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3826 CFLAGS="-g"
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h. */
3829
3830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
3837_ACEOF
3838if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_prog_cc_g=yes
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844fi
3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_c_werror_flag=$ac_save_c_werror_flag
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849$as_echo "$ac_cv_prog_cc_g" >&6; }
3850if test "$ac_test_CFLAGS" = set; then
3851 CFLAGS=$ac_save_CFLAGS
3852elif test $ac_cv_prog_cc_g = yes; then
3853 if test "$GCC" = yes; then
3854 CFLAGS="-g -O2"
3855 else
3856 CFLAGS="-g"
3857 fi
3858else
3859 if test "$GCC" = yes; then
3860 CFLAGS="-O2"
3861 else
3862 CFLAGS=
3863 fi
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3867if test "${ac_cv_prog_cc_c89+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3869else
3870 ac_cv_prog_cc_c89=no
3871ac_save_CC=$CC
3872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h. */
3874#include <stdarg.h>
3875#include <stdio.h>
3876#include <sys/types.h>
3877#include <sys/stat.h>
3878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3879struct buf { int x; };
3880FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881static char *e (p, i)
3882 char **p;
3883 int i;
3884{
3885 return p[i];
3886}
3887static char *f (char * (*g) (char **, int), char **p, ...)
3888{
3889 char *s;
3890 va_list v;
3891 va_start (v,p);
3892 s = g (p, va_arg (v,int));
3893 va_end (v);
3894 return s;
3895}
3896
3897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3898 function prototypes and stuff, but not '\xHH' hex character constants.
3899 These don't provoke an error unfortunately, instead are silently treated
3900 as 'x'. The following induces an error, until -std is added to get
3901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3902 array size at least. It's necessary to write '\x00'==0 to get something
3903 that's true only with -std. */
3904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
3906/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907 inside strings and character constants. */
3908#define FOO(x) 'x'
3909int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
3911int test (int i, double x);
3912struct s1 {int (*f) (int a);};
3913struct s2 {int (*f) (double a);};
3914int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915int argc;
3916char **argv;
3917int
3918main ()
3919{
3920return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 ;
3922 return 0;
3923}
3924_ACEOF
3925for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927do
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c89=$ac_arg
3931fi
3932rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
3937
3938fi
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c89" in
3941 x)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951esac
3952if test "x$ac_cv_prog_cc_c89" != xno; then :
3953
3954fi
3955
3956ac_ext=c
3957ac_cpp='$CPP $CPPFLAGS'
3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962ac_aux_dir=
3963for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3964 for ac_t in install-sh install.sh shtool; do
3965 if test -f "$ac_dir/$ac_t"; then
3966 ac_aux_dir=$ac_dir
3967 ac_install_sh="$ac_aux_dir/$ac_t -c"
3968 break 2
3969 fi
3970 done
3971done
3972if test -z "$ac_aux_dir"; then
3973 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3974fi
3975
3976# These three variables are undocumented and unsupported,
3977# and are intended to be withdrawn in a future Autoconf release.
3978# They can cause serious problems if a builder's source tree is in a directory
3979# whose full name contains unusual characters.
3980ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3981ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3982ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3983
3984
3985# Make sure we can run config.sub.
3986$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3987 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3988
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3990$as_echo_n "checking build system type... " >&6; }
3991if test "${ac_cv_build+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993else
3994 ac_build_alias=$build_alias
3995test "x$ac_build_alias" = x &&
3996 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3997test "x$ac_build_alias" = x &&
3998 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3999ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4000 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4001
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4004$as_echo "$ac_cv_build" >&6; }
4005case $ac_cv_build in
4006*-*-*) ;;
4007*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4008esac
4009build=$ac_cv_build
4010ac_save_IFS=$IFS; IFS='-'
4011set x $ac_cv_build
4012shift
4013build_cpu=$1
4014build_vendor=$2
4015shift; shift
4016# Remember, the first character of IFS is used to create $*,
4017# except with old shells:
4018build_os=$*
4019IFS=$ac_save_IFS
4020case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4021
4022
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4024$as_echo_n "checking host system type... " >&6; }
4025if test "${ac_cv_host+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027else
4028 if test "x$host_alias" = x; then
4029 ac_cv_host=$ac_cv_build
4030else
4031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4032 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4033fi
4034
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4037$as_echo "$ac_cv_host" >&6; }
4038case $ac_cv_host in
4039*-*-*) ;;
4040*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4041esac
4042host=$ac_cv_host
4043ac_save_IFS=$IFS; IFS='-'
4044set x $ac_cv_host
4045shift
4046host_cpu=$1
4047host_vendor=$2
4048shift; shift
4049# Remember, the first character of IFS is used to create $*,
4050# except with old shells:
4051host_os=$*
4052IFS=$ac_save_IFS
4053case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4054
4055
4056
4057ac_ext=c
4058ac_cpp='$CPP $CPPFLAGS'
4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4063$as_echo_n "checking how to run the C preprocessor... " >&6; }
4064# On Suns, sometimes $CPP names a directory.
4065if test -n "$CPP" && test -d "$CPP"; then
4066 CPP=
4067fi
4068if test -z "$CPP"; then
4069 if test "${ac_cv_prog_CPP+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071else
4072 # Double quotes because CPP needs to be expanded
4073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4074 do
4075 ac_preproc_ok=false
4076for ac_c_preproc_warn_flag in '' yes
4077do
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081 # <limits.h> exists even on freestanding compilers.
4082 # On the NeXT, cc -E runs the code through the compiler's parser,
4083 # not just through cpp. "Syntax error" is here to catch this case.
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086#ifdef __STDC__
4087# include <limits.h>
4088#else
4089# include <assert.h>
4090#endif
4091 Syntax error
4092_ACEOF
4093if ac_fn_c_try_cpp "$LINENO"; then :
4094
4095else
4096 # Broken: fails on valid input.
4097continue
4098fi
4099rm -f conftest.err conftest.$ac_ext
4100
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h. */
4105#include <ac_nonexistent.h>
4106_ACEOF
4107if ac_fn_c_try_cpp "$LINENO"; then :
4108 # Broken: success on invalid input.
4109continue
4110else
4111 # Passes both tests.
4112ac_preproc_ok=:
4113break
4114fi
4115rm -f conftest.err conftest.$ac_ext
4116
4117done
4118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4119rm -f conftest.err conftest.$ac_ext
4120if $ac_preproc_ok; then :
4121 break
4122fi
4123
4124 done
4125 ac_cv_prog_CPP=$CPP
4126
4127fi
4128 CPP=$ac_cv_prog_CPP
4129else
4130 ac_cv_prog_CPP=$CPP
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4133$as_echo "$CPP" >&6; }
4134ac_preproc_ok=false
4135for ac_c_preproc_warn_flag in '' yes
4136do
4137 # Use a header file that comes with gcc, so configuring glibc
4138 # with a fresh cross-compiler works.
4139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 # <limits.h> exists even on freestanding compilers.
4141 # On the NeXT, cc -E runs the code through the compiler's parser,
4142 # not just through cpp. "Syntax error" is here to catch this case.
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h. */
4145#ifdef __STDC__
4146# include <limits.h>
4147#else
4148# include <assert.h>
4149#endif
4150 Syntax error
4151_ACEOF
4152if ac_fn_c_try_cpp "$LINENO"; then :
4153
4154else
4155 # Broken: fails on valid input.
4156continue
4157fi
4158rm -f conftest.err conftest.$ac_ext
4159
4160 # OK, works on sane cases. Now check whether nonexistent headers
4161 # can be detected and how.
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h. */
4164#include <ac_nonexistent.h>
4165_ACEOF
4166if ac_fn_c_try_cpp "$LINENO"; then :
4167 # Broken: success on invalid input.
4168continue
4169else
4170 # Passes both tests.
4171ac_preproc_ok=:
4172break
4173fi
4174rm -f conftest.err conftest.$ac_ext
4175
4176done
4177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178rm -f conftest.err conftest.$ac_ext
4179if $ac_preproc_ok; then :
4180
4181else
4182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184as_fn_error "C preprocessor \"$CPP\" fails sanity check
4185See \`config.log' for more details." "$LINENO" 5; }
4186fi
4187
4188ac_ext=c
4189ac_cpp='$CPP $CPPFLAGS'
4190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4196$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4197if test "${ac_cv_path_GREP+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199else
4200 if test -z "$GREP"; then
4201 ac_path_GREP_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_prog in grep ggrep; do
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4211 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4212# Check for GNU ac_path_GREP and select it if it is found.
4213 # Check for GNU $ac_path_GREP
4214case `"$ac_path_GREP" --version 2>&1` in
4215*GNU*)
4216 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4217*)
4218 ac_count=0
4219 $as_echo_n 0123456789 >"conftest.in"
4220 while :
4221 do
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo 'GREP' >> "conftest.nl"
4226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_GREP="$ac_path_GREP"
4232 ac_path_GREP_max=$ac_count
4233 fi
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4236 done
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238esac
4239
4240 $ac_path_GREP_found && break 3
4241 done
4242 done
4243 done
4244IFS=$as_save_IFS
4245 if test -z "$ac_cv_path_GREP"; then
4246 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247 fi
4248else
4249 ac_cv_path_GREP=$GREP
4250fi
4251
4252fi
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4254$as_echo "$ac_cv_path_GREP" >&6; }
4255 GREP="$ac_cv_path_GREP"
4256
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4259$as_echo_n "checking for egrep... " >&6; }
4260if test "${ac_cv_path_EGREP+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262else
4263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4264 then ac_cv_path_EGREP="$GREP -E"
4265 else
4266 if test -z "$EGREP"; then
4267 ac_path_EGREP_found=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_prog in egrep; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4277 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4278# Check for GNU ac_path_EGREP and select it if it is found.
4279 # Check for GNU $ac_path_EGREP
4280case `"$ac_path_EGREP" --version 2>&1` in
4281*GNU*)
4282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4283*)
4284 ac_count=0
4285 $as_echo_n 0123456789 >"conftest.in"
4286 while :
4287 do
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 $as_echo 'EGREP' >> "conftest.nl"
4292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294 as_fn_arith $ac_count + 1 && ac_count=$as_val
4295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_EGREP="$ac_path_EGREP"
4298 ac_path_EGREP_max=$ac_count
4299 fi
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4302 done
4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304esac
4305
4306 $ac_path_EGREP_found && break 3
4307 done
4308 done
4309 done
4310IFS=$as_save_IFS
4311 if test -z "$ac_cv_path_EGREP"; then
4312 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4313 fi
4314else
4315 ac_cv_path_EGREP=$EGREP
4316fi
4317
4318 fi
4319fi
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4321$as_echo "$ac_cv_path_EGREP" >&6; }
4322 EGREP="$ac_cv_path_EGREP"
4323
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4326$as_echo_n "checking for ANSI C header files... " >&6; }
4327if test "${ac_cv_header_stdc+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329else
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h. */
4332#include <stdlib.h>
4333#include <stdarg.h>
4334#include <string.h>
4335#include <float.h>
4336
4337int
4338main ()
4339{
4340
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_cv_header_stdc=yes
4347else
4348 ac_cv_header_stdc=no
4349fi
4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351
4352if test $ac_cv_header_stdc = yes; then
4353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h. */
4356#include <string.h>
4357
4358_ACEOF
4359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360 $EGREP "memchr" >/dev/null 2>&1; then :
4361
4362else
4363 ac_cv_header_stdc=no
4364fi
4365rm -f conftest*
4366
4367fi
4368
4369if test $ac_cv_header_stdc = yes; then
4370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h. */
4373#include <stdlib.h>
4374
4375_ACEOF
4376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "free" >/dev/null 2>&1; then :
4378
4379else
4380 ac_cv_header_stdc=no
4381fi
4382rm -f conftest*
4383
4384fi
4385
4386if test $ac_cv_header_stdc = yes; then
4387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4388 if test "$cross_compiling" = yes; then :
4389 :
4390else
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
4393#include <ctype.h>
4394#include <stdlib.h>
4395#if ((' ' & 0x0FF) == 0x020)
4396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398#else
4399# define ISLOWER(c) \
4400 (('a' <= (c) && (c) <= 'i') \
4401 || ('j' <= (c) && (c) <= 'r') \
4402 || ('s' <= (c) && (c) <= 'z'))
4403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4404#endif
4405
4406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4407int
4408main ()
4409{
4410 int i;
4411 for (i = 0; i < 256; i++)
4412 if (XOR (islower (i), ISLOWER (i))
4413 || toupper (i) != TOUPPER (i))
4414 return 2;
4415 return 0;
4416}
4417_ACEOF
4418if ac_fn_c_try_run "$LINENO"; then :
4419
4420else
4421 ac_cv_header_stdc=no
4422fi
4423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4424 conftest.$ac_objext conftest.beam conftest.$ac_ext
4425fi
4426
4427fi
4428fi
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4430$as_echo "$ac_cv_header_stdc" >&6; }
4431if test $ac_cv_header_stdc = yes; then
4432
4433$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4434
4435fi
4436
4437# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4439 inttypes.h stdint.h unistd.h
4440do :
4441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4443"
4444eval as_val=\$$as_ac_Header
4445 if test "x$as_val" = x""yes; then :
4446 cat >>confdefs.h <<_ACEOF
4447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448_ACEOF
4449
4450fi
4451
4452done
4453
4454
4455
4456
4457
4458 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4459if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4460 MINIX=yes
4461else
4462 MINIX=
4463fi
4464
4465
4466 if test "$MINIX" = yes; then
4467
4468$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4469
4470
4471$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4472
4473
4474$as_echo "#define _MINIX 1" >>confdefs.h
4475
4476 fi
4477
4478 case "$host_os" in
4479 hpux*)
4480
4481$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4482
4483 ;;
4484 esac
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4488$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4489if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491else
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h. */
4494
4495# define __EXTENSIONS__ 1
4496 $ac_includes_default
4497int
4498main ()
4499{
4500
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_safe_to_define___extensions__=yes
4507else
4508 ac_cv_safe_to_define___extensions__=no
4509fi
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4513$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4514 test $ac_cv_safe_to_define___extensions__ = yes &&
4515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4516
4517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4518
4519 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4520
4521 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4522
4523 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4524
4525 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4526
4527
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4531$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4532if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538
4539#ifdef __ACK__
4540Amsterdam
4541#endif
4542
4543_ACEOF
4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4546 gl_cv_c_amsterdam_compiler=yes
4547else
4548 gl_cv_c_amsterdam_compiler=no
4549fi
4550rm -f conftest*
4551
4552
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4555$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4556 if test -z "$AR"; then
4557 if test $gl_cv_c_amsterdam_compiler = yes; then
4558 AR='cc -c.a'
4559 if test -z "$ARFLAGS"; then
4560 ARFLAGS='-o'
4561 fi
4562 else
4563 if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4565set dummy ${ac_tool_prefix}ar; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if test "${ac_cv_prog_AR+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 if test -n "$AR"; then
4572 ac_cv_prog_AR="$AR" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_AR="${ac_tool_prefix}ar"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586 done
4587IFS=$as_save_IFS
4588
4589fi
4590fi
4591AR=$ac_cv_prog_AR
4592if test -n "$AR"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4594$as_echo "$AR" >&6; }
4595else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
4598fi
4599
4600
4601fi
4602if test -z "$ac_cv_prog_AR"; then
4603 ac_ct_AR=$AR
4604 # Extract the first word of "ar", so it can be a program name with args.
4605set dummy ar; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610else
4611 if test -n "$ac_ct_AR"; then
4612 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_ac_ct_AR="ar"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625done
4626 done
4627IFS=$as_save_IFS
4628
4629fi
4630fi
4631ac_ct_AR=$ac_cv_prog_ac_ct_AR
4632if test -n "$ac_ct_AR"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4634$as_echo "$ac_ct_AR" >&6; }
4635else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640 if test "x$ac_ct_AR" = x; then
4641 AR="ar"
4642 else
4643 case $cross_compiling:$ac_tool_warned in
4644yes:)
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647ac_tool_warned=yes ;;
4648esac
4649 AR=$ac_ct_AR
4650 fi
4651else
4652 AR="$ac_cv_prog_AR"
4653fi
4654
4655 if test -z "$ARFLAGS"; then
4656 ARFLAGS='cru'
4657 fi
4658 fi
4659 else
4660 if test -z "$ARFLAGS"; then
4661 ARFLAGS='cru'
4662 fi
4663 fi
4664
4665
4666 if test -z "$RANLIB"; then
4667 if test $gl_cv_c_amsterdam_compiler = yes; then
4668 RANLIB=':'
4669 else
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4672set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674$as_echo_n "checking for $ac_word... " >&6; }
4675if test "${ac_cv_prog_RANLIB+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677else
4678 if test -n "$RANLIB"; then
4679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4680else
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692done
4693 done
4694IFS=$as_save_IFS
4695
4696fi
4697fi
4698RANLIB=$ac_cv_prog_RANLIB
4699if test -n "$RANLIB"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4701$as_echo "$RANLIB" >&6; }
4702else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
4705fi
4706
4707
4708fi
4709if test -z "$ac_cv_prog_RANLIB"; then
4710 ac_ct_RANLIB=$RANLIB
4711 # Extract the first word of "ranlib", so it can be a program name with args.
4712set dummy ranlib; ac_word=$2
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714$as_echo_n "checking for $ac_word... " >&6; }
4715if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717else
4718 if test -n "$ac_ct_RANLIB"; then
4719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4720else
4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722for as_dir in $PATH
4723do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_ac_ct_RANLIB="ranlib"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732done
4733 done
4734IFS=$as_save_IFS
4735
4736fi
4737fi
4738ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4739if test -n "$ac_ct_RANLIB"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4741$as_echo "$ac_ct_RANLIB" >&6; }
4742else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744$as_echo "no" >&6; }
4745fi
4746
4747 if test "x$ac_ct_RANLIB" = x; then
4748 RANLIB=":"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751yes:)
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754ac_tool_warned=yes ;;
4755esac
4756 RANLIB=$ac_ct_RANLIB
4757 fi
4758else
4759 RANLIB="$ac_cv_prog_RANLIB"
4760fi
4761
4762 fi
4763 fi
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
88b48903
WN
4774
4775 # IEEE behaviour is the default on all CPUs except Alpha and SH
4776 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4777 # and the GCC 4.1.2 manual).
4778 case "$host_cpu" in
4779 alpha*)
4780 # On Alpha systems, a compiler option provides the behaviour.
4781 # See the ieee(3) manual page, also available at
4782 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4783 if test -n "$GCC"; then
4784 # GCC has the option -mieee.
4785 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4786 CPPFLAGS="$CPPFLAGS -mieee"
4787 else
4788 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4789 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4790 CPPFLAGS="$CPPFLAGS -ieee"
4791 fi
4792 ;;
4793 sh*)
4794 if test -n "$GCC"; then
4795 # GCC has the option -mieee.
4796 CPPFLAGS="$CPPFLAGS -mieee"
4797 fi
4798 ;;
4799 esac
4800
4801
4802
8690e634
JK
4803 # Code from module alloca:
4804 # Code from module alloca-opt:
4805 # Code from module configmake:
e26b6bb0 4806 # Code from module dirent:
18848e28
GF
4807 # Code from module dirfd:
4808 # Code from module errno:
c971b7fa
PA
4809 # Code from module extensions:
4810
a512b375 4811 # Code from module extern-inline:
88b48903 4812 # Code from module float:
8690e634
JK
4813 # Code from module fnmatch:
4814 # Code from module fnmatch-gnu:
88b48903
WN
4815 # Code from module fpieee:
4816
4817 # Code from module fpucw:
4818 # Code from module frexp:
4819 # Code from module frexpl:
c971b7fa
PA
4820 # Code from module include_next:
4821 # Code from module inttypes:
4822 # Code from module inttypes-incomplete:
88b48903
WN
4823 # Code from module isnand-nolibm:
4824 # Code from module isnanl-nolibm:
8690e634 4825 # Code from module localcharset:
88b48903 4826 # Code from module math:
8690e634
JK
4827 # Code from module mbrtowc:
4828 # Code from module mbsinit:
4829 # Code from module mbsrtowcs:
c971b7fa
PA
4830 # Code from module memchr:
4831 # Code from module memmem:
4832 # Code from module memmem-simple:
4833 # Code from module multiarch:
38ec2207 4834 # Code from module pathmax:
c971b7fa
PA
4835 # Code from module snippet/arg-nonnull:
4836 # Code from module snippet/c++defs:
4837 # Code from module snippet/warn-on-use:
8839a007 4838 # Code from module ssize_t:
8690e634 4839 # Code from module stdbool:
c971b7fa
PA
4840 # Code from module stddef:
4841 # Code from module stdint:
8690e634 4842 # Code from module streq:
c971b7fa 4843 # Code from module string:
8690e634 4844 # Code from module strnlen1:
63ce7108
TT
4845 # Code from module strstr:
4846 # Code from module strstr-simple:
09607c9e 4847 # Code from module sys_stat:
8839a007 4848 # Code from module sys_types:
09607c9e 4849 # Code from module time:
8839a007 4850 # Code from module unistd:
c971b7fa 4851 # Code from module update-copyright:
8690e634
JK
4852 # Code from module verify:
4853 # Code from module wchar:
4854 # Code from module wctype-h:
c971b7fa
PA
4855
4856ac_ext=c
4857ac_cpp='$CPP $CPPFLAGS'
4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861if test -n "$ac_tool_prefix"; then
4862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4863set dummy ${ac_tool_prefix}gcc; ac_word=$2
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if test "${ac_cv_prog_CC+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868else
4869 if test -n "$CC"; then
4870 ac_cv_prog_CC="$CC" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883done
4884 done
4885IFS=$as_save_IFS
4886
4887fi
4888fi
4889CC=$ac_cv_prog_CC
4890if test -n "$CC"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4892$as_echo "$CC" >&6; }
4893else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896fi
4897
4898
4899fi
4900if test -z "$ac_cv_prog_CC"; then
4901 ac_ct_CC=$CC
4902 # Extract the first word of "gcc", so it can be a program name with args.
4903set dummy gcc; ac_word=$2
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905$as_echo_n "checking for $ac_word... " >&6; }
4906if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 if test -n "$ac_ct_CC"; then
4910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_ac_ct_CC="gcc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923done
4924 done
4925IFS=$as_save_IFS
4926
4927fi
4928fi
4929ac_ct_CC=$ac_cv_prog_ac_ct_CC
4930if test -n "$ac_ct_CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4932$as_echo "$ac_ct_CC" >&6; }
4933else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936fi
4937
4938 if test "x$ac_ct_CC" = x; then
4939 CC=""
4940 else
4941 case $cross_compiling:$ac_tool_warned in
4942yes:)
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945ac_tool_warned=yes ;;
4946esac
4947 CC=$ac_ct_CC
4948 fi
4949else
4950 CC="$ac_cv_prog_CC"
4951fi
4952
4953if test -z "$CC"; then
4954 if test -n "$ac_tool_prefix"; then
4955 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4956set dummy ${ac_tool_prefix}cc; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if test "${ac_cv_prog_CC+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961else
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CC="${ac_tool_prefix}cc"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976done
4977 done
4978IFS=$as_save_IFS
4979
4980fi
4981fi
4982CC=$ac_cv_prog_CC
4983if test -n "$CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985$as_echo "$CC" >&6; }
4986else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991
4992 fi
4993fi
4994if test -z "$CC"; then
4995 # Extract the first word of "cc", so it can be a program name with args.
4996set dummy cc; ac_word=$2
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC="$CC" # Let the user override the test.
5004else
5005 ac_prog_rejected=no
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5014 ac_prog_rejected=yes
5015 continue
5016 fi
5017 ac_cv_prog_CC="cc"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021done
5022 done
5023IFS=$as_save_IFS
5024
5025if test $ac_prog_rejected = yes; then
5026 # We found a bogon in the path, so make sure we never use it.
5027 set dummy $ac_cv_prog_CC
5028 shift
5029 if test $# != 0; then
5030 # We chose a different compiler from the bogus one.
5031 # However, it has the same basename, so the bogon will be chosen
5032 # first if we set CC to just the basename; use the full file name.
5033 shift
5034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5035 fi
5036fi
5037fi
5038fi
5039CC=$ac_cv_prog_CC
5040if test -n "$CC"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5042$as_echo "$CC" >&6; }
5043else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048
5049fi
5050if test -z "$CC"; then
5051 if test -n "$ac_tool_prefix"; then
5052 for ac_prog in cl.exe
5053 do
5054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if test "${ac_cv_prog_CC+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 if test -n "$CC"; then
5062 ac_cv_prog_CC="$CC" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075done
5076 done
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081CC=$ac_cv_prog_CC
5082if test -n "$CC"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5084$as_echo "$CC" >&6; }
5085else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091 test -n "$CC" && break
5092 done
5093fi
5094if test -z "$CC"; then
5095 ac_ct_CC=$CC
5096 for ac_prog in cl.exe
5097do
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099set dummy $ac_prog; ac_word=$2
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101$as_echo_n "checking for $ac_word... " >&6; }
5102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104else
5105 if test -n "$ac_ct_CC"; then
5106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_ac_ct_CC="$ac_prog"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120 done
5121IFS=$as_save_IFS
5122
5123fi
5124fi
5125ac_ct_CC=$ac_cv_prog_ac_ct_CC
5126if test -n "$ac_ct_CC"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5128$as_echo "$ac_ct_CC" >&6; }
5129else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
5132fi
5133
5134
5135 test -n "$ac_ct_CC" && break
5136done
5137
5138 if test "x$ac_ct_CC" = x; then
5139 CC=""
5140 else
5141 case $cross_compiling:$ac_tool_warned in
5142yes:)
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5145ac_tool_warned=yes ;;
5146esac
5147 CC=$ac_ct_CC
5148 fi
5149fi
5150
5151fi
5152
5153
5154test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5156as_fn_error "no acceptable C compiler found in \$PATH
5157See \`config.log' for more details." "$LINENO" 5; }
5158
5159# Provide some information about the compiler.
5160$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5161set X $ac_compile
5162ac_compiler=$2
5163for ac_option in --version -v -V -qversion; do
5164 { { ac_try="$ac_compiler $ac_option >&5"
5165case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168esac
5169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170$as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5172 ac_status=$?
5173 if test -s conftest.err; then
5174 sed '10a\
5175... rest of stderr output deleted ...
5176 10q' conftest.err >conftest.er1
5177 cat conftest.er1 >&5
5178 rm -f conftest.er1 conftest.err
5179 fi
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }
5182done
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5185$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5186if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h. */
5191
5192int
5193main ()
5194{
5195#ifndef __GNUC__
5196 choke me
5197#endif
5198
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204 ac_compiler_gnu=yes
5205else
5206 ac_compiler_gnu=no
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209ac_cv_c_compiler_gnu=$ac_compiler_gnu
5210
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5213$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5214if test $ac_compiler_gnu = yes; then
5215 GCC=yes
5216else
5217 GCC=
5218fi
5219ac_test_CFLAGS=${CFLAGS+set}
5220ac_save_CFLAGS=$CFLAGS
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5222$as_echo_n "checking whether $CC accepts -g... " >&6; }
5223if test "${ac_cv_prog_cc_g+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225else
5226 ac_save_c_werror_flag=$ac_c_werror_flag
5227 ac_c_werror_flag=yes
5228 ac_cv_prog_cc_g=no
5229 CFLAGS="-g"
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h. */
5232
5233int
5234main ()
5235{
5236
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_compile "$LINENO"; then :
5242 ac_cv_prog_cc_g=yes
5243else
5244 CFLAGS=""
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h. */
5247
5248int
5249main ()
5250{
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"; then :
5257
5258else
5259 ac_c_werror_flag=$ac_save_c_werror_flag
5260 CFLAGS="-g"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h. */
5263
5264int
5265main ()
5266{
5267
5268 ;
5269 return 0;
5270}
5271_ACEOF
5272if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_prog_cc_g=yes
5274fi
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278fi
5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 ac_c_werror_flag=$ac_save_c_werror_flag
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5283$as_echo "$ac_cv_prog_cc_g" >&6; }
5284if test "$ac_test_CFLAGS" = set; then
5285 CFLAGS=$ac_save_CFLAGS
5286elif test $ac_cv_prog_cc_g = yes; then
5287 if test "$GCC" = yes; then
5288 CFLAGS="-g -O2"
5289 else
5290 CFLAGS="-g"
5291 fi
5292else
5293 if test "$GCC" = yes; then
5294 CFLAGS="-O2"
5295 else
5296 CFLAGS=
5297 fi
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5300$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5301if test "${ac_cv_prog_cc_c89+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303else
5304 ac_cv_prog_cc_c89=no
5305ac_save_CC=$CC
5306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#include <stdarg.h>
5309#include <stdio.h>
5310#include <sys/types.h>
5311#include <sys/stat.h>
5312/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5313struct buf { int x; };
5314FILE * (*rcsopen) (struct buf *, struct stat *, int);
5315static char *e (p, i)
5316 char **p;
5317 int i;
5318{
5319 return p[i];
5320}
5321static char *f (char * (*g) (char **, int), char **p, ...)
5322{
5323 char *s;
5324 va_list v;
5325 va_start (v,p);
5326 s = g (p, va_arg (v,int));
5327 va_end (v);
5328 return s;
5329}
5330
5331/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5332 function prototypes and stuff, but not '\xHH' hex character constants.
5333 These don't provoke an error unfortunately, instead are silently treated
5334 as 'x'. The following induces an error, until -std is added to get
5335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5336 array size at least. It's necessary to write '\x00'==0 to get something
5337 that's true only with -std. */
5338int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5339
5340/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5341 inside strings and character constants. */
5342#define FOO(x) 'x'
5343int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5344
5345int test (int i, double x);
5346struct s1 {int (*f) (int a);};
5347struct s2 {int (*f) (double a);};
5348int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5349int argc;
5350char **argv;
5351int
5352main ()
5353{
5354return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5355 ;
5356 return 0;
5357}
5358_ACEOF
5359for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5361do
5362 CC="$ac_save_CC $ac_arg"
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 ac_cv_prog_cc_c89=$ac_arg
5365fi
5366rm -f core conftest.err conftest.$ac_objext
5367 test "x$ac_cv_prog_cc_c89" != "xno" && break
5368done
5369rm -f conftest.$ac_ext
5370CC=$ac_save_CC
5371
5372fi
5373# AC_CACHE_VAL
5374case "x$ac_cv_prog_cc_c89" in
5375 x)
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5377$as_echo "none needed" >&6; } ;;
5378 xno)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5380$as_echo "unsupported" >&6; } ;;
5381 *)
5382 CC="$CC $ac_cv_prog_cc_c89"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5384$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5385esac
5386if test "x$ac_cv_prog_cc_c89" != xno; then :
5387
5388fi
5389
5390ac_ext=c
5391ac_cpp='$CPP $CPPFLAGS'
5392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395
5396
5397am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5398
5399
5400ac_aux_dir=
5401for ac_dir in ../.. "$srcdir"/../..; do
5402 for ac_t in install-sh install.sh shtool; do
5403 if test -f "$ac_dir/$ac_t"; then
5404 ac_aux_dir=$ac_dir
5405 ac_install_sh="$ac_aux_dir/$ac_t -c"
5406 break 2
5407 fi
5408 done
5409done
5410if test -z "$ac_aux_dir"; then
5411 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5412fi
5413
5414# These three variables are undocumented and unsupported,
5415# and are intended to be withdrawn in a future Autoconf release.
5416# They can cause serious problems if a builder's source tree is in a directory
5417# whose full name contains unusual characters.
5418ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5419ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5420ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5424$as_echo_n "checking target system type... " >&6; }
5425if test "${ac_cv_target+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427else
5428 if test "x$target_alias" = x; then
5429 ac_cv_target=$ac_cv_host
5430else
5431 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5432 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5433fi
5434
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5437$as_echo "$ac_cv_target" >&6; }
5438case $ac_cv_target in
5439*-*-*) ;;
5440*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5441esac
5442target=$ac_cv_target
5443ac_save_IFS=$IFS; IFS='-'
5444set x $ac_cv_target
5445shift
5446target_cpu=$1
5447target_vendor=$2
5448shift; shift
5449# Remember, the first character of IFS is used to create $*,
5450# except with old shells:
5451target_os=$*
5452IFS=$ac_save_IFS
5453case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5454
5455
5456# The aliases save the names the user supplied, while $host etc.
5457# will get canonicalized.
5458test -n "$target_alias" &&
5459 test "$program_prefix$program_suffix$program_transform_name" = \
5460 NONENONEs,x,x, &&
5461 program_prefix=${target_alias}-
5462
5463
5464
5465
5466
5467
5468
5469 LIBC_FATAL_STDERR_=1
5470 export LIBC_FATAL_STDERR_
5471
8690e634
JK
5472# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5473# for constant arguments. Useless!
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5475$as_echo_n "checking for working alloca.h... " >&6; }
5476if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5477 $as_echo_n "(cached) " >&6
5478else
8690e634 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5480/* end confdefs.h. */
8690e634 5481#include <alloca.h>
c971b7fa
PA
5482int
5483main ()
5484{
8690e634
JK
5485char *p = (char *) alloca (2 * sizeof (int));
5486 if (p) return 0;
c971b7fa
PA
5487 ;
5488 return 0;
5489}
c971b7fa
PA
5490_ACEOF
5491if ac_fn_c_try_link "$LINENO"; then :
8690e634 5492 ac_cv_working_alloca_h=yes
c971b7fa 5493else
8690e634 5494 ac_cv_working_alloca_h=no
c971b7fa
PA
5495fi
5496rm -f core conftest.err conftest.$ac_objext \
5497 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5498fi
8690e634
JK
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5500$as_echo "$ac_cv_working_alloca_h" >&6; }
5501if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5502
8690e634 5503$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5504
8690e634 5505fi
c971b7fa 5506
8690e634
JK
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5508$as_echo_n "checking for alloca... " >&6; }
5509if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5510 $as_echo_n "(cached) " >&6
c971b7fa
PA
5511else
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h. */
8690e634
JK
5514#ifdef __GNUC__
5515# define alloca __builtin_alloca
5516#else
5517# ifdef _MSC_VER
5518# include <malloc.h>
5519# define alloca _alloca
5520# else
5521# ifdef HAVE_ALLOCA_H
5522# include <alloca.h>
5523# else
5524# ifdef _AIX
5525 #pragma alloca
5526# else
5527# ifndef alloca /* predefined by HP cc +Olibcalls */
5528char *alloca ();
5529# endif
5530# endif
5531# endif
5532# endif
5533#endif
5534
c971b7fa
PA
5535int
5536main ()
5537{
8690e634
JK
5538char *p = (char *) alloca (1);
5539 if (p) return 0;
c971b7fa
PA
5540 ;
5541 return 0;
5542}
5543_ACEOF
8690e634
JK
5544if ac_fn_c_try_link "$LINENO"; then :
5545 ac_cv_func_alloca_works=yes
c971b7fa 5546else
8690e634 5547 ac_cv_func_alloca_works=no
c971b7fa 5548fi
8690e634
JK
5549rm -f core conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5551fi
a143c6de
JB
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5553$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5554
a143c6de 5555if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5556
a143c6de 5557$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5558
a143c6de
JB
5559else
5560 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5561# that cause trouble. Some versions do not even contain alloca or
5562# contain a buggy version. If you still want to use their alloca,
5563# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5564
5565
5566
5567
5568
a143c6de 5569ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5570
a143c6de 5571$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5572
c971b7fa 5573
a143c6de
JB
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5575$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5576if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5577 $as_echo_n "(cached) " >&6
5578else
a143c6de 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5580/* end confdefs.h. */
a143c6de
JB
5581#if defined CRAY && ! defined CRAY2
5582webecray
5583#else
5584wenotbecray
8690e634 5585#endif
c971b7fa 5586
8690e634
JK
5587_ACEOF
5588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5589 $EGREP "webecray" >/dev/null 2>&1; then :
5590 ac_cv_os_cray=yes
8690e634 5591else
a143c6de 5592 ac_cv_os_cray=no
8690e634
JK
5593fi
5594rm -f conftest*
c971b7fa 5595
c0fc7f8b 5596fi
a143c6de
JB
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5598$as_echo "$ac_cv_os_cray" >&6; }
5599if test $ac_cv_os_cray = yes; then
5600 for ac_func in _getb67 GETB67 getb67; do
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 :
c0fc7f8b 5605
a143c6de
JB
5606cat >>confdefs.h <<_ACEOF
5607#define CRAY_STACKSEG_END $ac_func
5608_ACEOF
c971b7fa 5609
a143c6de 5610 break
8690e634 5611fi
c971b7fa 5612
a143c6de 5613 done
8690e634 5614fi
c0fc7f8b 5615
a143c6de
JB
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5617$as_echo_n "checking stack direction for C alloca... " >&6; }
5618if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5619 $as_echo_n "(cached) " >&6
5620else
a143c6de
JB
5621 if test "$cross_compiling" = yes; then :
5622 ac_cv_c_stack_direction=0
5623else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5625/* end confdefs.h. */
a143c6de
JB
5626$ac_includes_default
5627int
5628find_stack_direction (int *addr, int depth)
5629{
5630 int dir, dummy = 0;
5631 if (! addr)
5632 addr = &dummy;
5633 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5634 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5635 return dir + dummy;
5636}
8690e634 5637
a143c6de
JB
5638int
5639main (int argc, char **argv)
5640{
5641 return find_stack_direction (0, argc + !argv + 20) < 0;
5642}
c971b7fa 5643_ACEOF
a143c6de
JB
5644if ac_fn_c_try_run "$LINENO"; then :
5645 ac_cv_c_stack_direction=1
c971b7fa 5646else
a143c6de 5647 ac_cv_c_stack_direction=-1
8690e634 5648fi
a143c6de
JB
5649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5650 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5651fi
c971b7fa
PA
5652
5653fi
a143c6de
JB
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5655$as_echo "$ac_cv_c_stack_direction" >&6; }
5656cat >>confdefs.h <<_ACEOF
5657#define STACK_DIRECTION $ac_cv_c_stack_direction
5658_ACEOF
8690e634 5659
c971b7fa
PA
5660
5661fi
c971b7fa
PA
5662
5663
e26b6bb0
TT
5664 GNULIB_CHDIR=0;
5665 GNULIB_CHOWN=0;
5666 GNULIB_CLOSE=0;
5667 GNULIB_DUP=0;
5668 GNULIB_DUP2=0;
5669 GNULIB_DUP3=0;
5670 GNULIB_ENVIRON=0;
5671 GNULIB_EUIDACCESS=0;
5672 GNULIB_FACCESSAT=0;
5673 GNULIB_FCHDIR=0;
5674 GNULIB_FCHOWNAT=0;
5675 GNULIB_FDATASYNC=0;
5676 GNULIB_FSYNC=0;
5677 GNULIB_FTRUNCATE=0;
5678 GNULIB_GETCWD=0;
5679 GNULIB_GETDOMAINNAME=0;
5680 GNULIB_GETDTABLESIZE=0;
5681 GNULIB_GETGROUPS=0;
5682 GNULIB_GETHOSTNAME=0;
5683 GNULIB_GETLOGIN=0;
5684 GNULIB_GETLOGIN_R=0;
5685 GNULIB_GETPAGESIZE=0;
5686 GNULIB_GETUSERSHELL=0;
5687 GNULIB_GROUP_MEMBER=0;
5688 GNULIB_ISATTY=0;
5689 GNULIB_LCHOWN=0;
5690 GNULIB_LINK=0;
5691 GNULIB_LINKAT=0;
5692 GNULIB_LSEEK=0;
5693 GNULIB_PIPE=0;
5694 GNULIB_PIPE2=0;
5695 GNULIB_PREAD=0;
5696 GNULIB_PWRITE=0;
5697 GNULIB_READ=0;
5698 GNULIB_READLINK=0;
5699 GNULIB_READLINKAT=0;
5700 GNULIB_RMDIR=0;
5701 GNULIB_SETHOSTNAME=0;
5702 GNULIB_SLEEP=0;
5703 GNULIB_SYMLINK=0;
5704 GNULIB_SYMLINKAT=0;
5705 GNULIB_TTYNAME_R=0;
5706 GNULIB_UNISTD_H_NONBLOCKING=0;
5707 GNULIB_UNISTD_H_SIGPIPE=0;
5708 GNULIB_UNLINK=0;
5709 GNULIB_UNLINKAT=0;
5710 GNULIB_USLEEP=0;
5711 GNULIB_WRITE=0;
5712 HAVE_CHOWN=1;
5713 HAVE_DUP2=1;
5714 HAVE_DUP3=1;
5715 HAVE_EUIDACCESS=1;
5716 HAVE_FACCESSAT=1;
5717 HAVE_FCHDIR=1;
5718 HAVE_FCHOWNAT=1;
5719 HAVE_FDATASYNC=1;
5720 HAVE_FSYNC=1;
5721 HAVE_FTRUNCATE=1;
5722 HAVE_GETDTABLESIZE=1;
5723 HAVE_GETGROUPS=1;
5724 HAVE_GETHOSTNAME=1;
5725 HAVE_GETLOGIN=1;
5726 HAVE_GETPAGESIZE=1;
5727 HAVE_GROUP_MEMBER=1;
5728 HAVE_LCHOWN=1;
5729 HAVE_LINK=1;
5730 HAVE_LINKAT=1;
5731 HAVE_PIPE=1;
5732 HAVE_PIPE2=1;
5733 HAVE_PREAD=1;
5734 HAVE_PWRITE=1;
5735 HAVE_READLINK=1;
5736 HAVE_READLINKAT=1;
5737 HAVE_SETHOSTNAME=1;
5738 HAVE_SLEEP=1;
5739 HAVE_SYMLINK=1;
5740 HAVE_SYMLINKAT=1;
5741 HAVE_UNLINKAT=1;
5742 HAVE_USLEEP=1;
5743 HAVE_DECL_ENVIRON=1;
5744 HAVE_DECL_FCHDIR=1;
5745 HAVE_DECL_FDATASYNC=1;
5746 HAVE_DECL_GETDOMAINNAME=1;
5747 HAVE_DECL_GETLOGIN_R=1;
5748 HAVE_DECL_GETPAGESIZE=1;
5749 HAVE_DECL_GETUSERSHELL=1;
5750 HAVE_DECL_SETHOSTNAME=1;
5751 HAVE_DECL_TTYNAME_R=1;
5752 HAVE_OS_H=0;
5753 HAVE_SYS_PARAM_H=0;
5754 REPLACE_CHOWN=0;
5755 REPLACE_CLOSE=0;
5756 REPLACE_DUP=0;
5757 REPLACE_DUP2=0;
5758 REPLACE_FCHOWNAT=0;
5759 REPLACE_FTRUNCATE=0;
5760 REPLACE_GETCWD=0;
5761 REPLACE_GETDOMAINNAME=0;
5762 REPLACE_GETLOGIN_R=0;
5763 REPLACE_GETGROUPS=0;
5764 REPLACE_GETPAGESIZE=0;
5765 REPLACE_ISATTY=0;
5766 REPLACE_LCHOWN=0;
5767 REPLACE_LINK=0;
5768 REPLACE_LINKAT=0;
5769 REPLACE_LSEEK=0;
5770 REPLACE_PREAD=0;
5771 REPLACE_PWRITE=0;
5772 REPLACE_READ=0;
5773 REPLACE_READLINK=0;
5774 REPLACE_RMDIR=0;
5775 REPLACE_SLEEP=0;
5776 REPLACE_SYMLINK=0;
5777 REPLACE_TTYNAME_R=0;
5778 REPLACE_UNLINK=0;
5779 REPLACE_UNLINKAT=0;
5780 REPLACE_USLEEP=0;
5781 REPLACE_WRITE=0;
5782 UNISTD_H_HAVE_WINSOCK2_H=0;
5783 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5784
5785
5786
5787 GNULIB_OPENDIR=0;
5788 GNULIB_READDIR=0;
5789 GNULIB_REWINDDIR=0;
5790 GNULIB_CLOSEDIR=0;
5791 GNULIB_DIRFD=0;
5792 GNULIB_FDOPENDIR=0;
5793 GNULIB_SCANDIR=0;
5794 GNULIB_ALPHASORT=0;
5795 HAVE_OPENDIR=1;
5796 HAVE_READDIR=1;
5797 HAVE_REWINDDIR=1;
5798 HAVE_CLOSEDIR=1;
5799 HAVE_DECL_DIRFD=1;
5800 HAVE_DECL_FDOPENDIR=1;
5801 HAVE_FDOPENDIR=1;
5802 HAVE_SCANDIR=1;
5803 HAVE_ALPHASORT=1;
5804 REPLACE_OPENDIR=0;
5805 REPLACE_CLOSEDIR=0;
5806 REPLACE_DIRFD=0;
5807 REPLACE_FDOPENDIR=0;
5808
5809
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5812$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5813if test "${gl_cv_have_include_next+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 rm -rf conftestd1a conftestd1b conftestd2
5817 mkdir conftestd1a conftestd1b conftestd2
5818 cat <<EOF > conftestd1a/conftest.h
5819#define DEFINED_IN_CONFTESTD1
5820#include_next <conftest.h>
5821#ifdef DEFINED_IN_CONFTESTD2
5822int foo;
5823#else
88b48903
WN
5824#error "include_next doesn't work"
5825#endif
5826EOF
5827 cat <<EOF > conftestd1b/conftest.h
5828#define DEFINED_IN_CONFTESTD1
5829#include <stdio.h>
5830#include_next <conftest.h>
5831#ifdef DEFINED_IN_CONFTESTD2
5832int foo;
5833#else
5834#error "include_next doesn't work"
5835#endif
5836EOF
5837 cat <<EOF > conftestd2/conftest.h
5838#ifndef DEFINED_IN_CONFTESTD1
5839#error "include_next test doesn't work"
5840#endif
5841#define DEFINED_IN_CONFTESTD2
5842EOF
5843 gl_save_CPPFLAGS="$CPPFLAGS"
5844 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846/* end confdefs.h. */
5847#include <conftest.h>
5848_ACEOF
5849if ac_fn_c_try_compile "$LINENO"; then :
5850 gl_cv_have_include_next=yes
5851else
5852 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
5855#include <conftest.h>
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"; then :
5858 gl_cv_have_include_next=buggy
5859else
5860 gl_cv_have_include_next=no
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 CPPFLAGS="$gl_save_CPPFLAGS"
5867 rm -rf conftestd1a conftestd1b conftestd2
5868
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5871$as_echo "$gl_cv_have_include_next" >&6; }
5872 PRAGMA_SYSTEM_HEADER=
5873 if test $gl_cv_have_include_next = yes; then
5874 INCLUDE_NEXT=include_next
5875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5876 if test -n "$GCC"; then
5877 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5878 fi
5879 else
5880 if test $gl_cv_have_include_next = buggy; then
5881 INCLUDE_NEXT=include
5882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5883 else
5884 INCLUDE_NEXT=include
5885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5886 fi
5887 fi
5888
5889
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5892$as_echo_n "checking whether system header files limit the line length... " >&6; }
5893if test "${gl_cv_pragma_columns+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h. */
5898
5899#ifdef __TANDEM
5900choke me
5901#endif
5902
5903_ACEOF
5904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "choke me" >/dev/null 2>&1; then :
5906 gl_cv_pragma_columns=yes
5907else
5908 gl_cv_pragma_columns=no
5909fi
5910rm -f conftest*
5911
5912
5913fi
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5915$as_echo "$gl_cv_pragma_columns" >&6; }
5916 if test $gl_cv_pragma_columns = yes; then
5917 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5918 else
5919 PRAGMA_COLUMNS=
5920 fi
5921
5922
5923
5924
e26b6bb0
TT
5925
5926 for ac_header in $ac_header_list
5927do :
5928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5930"
5931eval as_val=\$$as_ac_Header
5932 if test "x$as_val" = x""yes; then :
5933 cat >>confdefs.h <<_ACEOF
5934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935_ACEOF
5936
5937fi
5938
5939done
5940
5941
5942
5943
5944
18848e28
GF
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5946$as_echo_n "checking for complete errno.h... " >&6; }
5947if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949else
5950
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953
5954#include <errno.h>
5955#if !defined ETXTBSY
5956booboo
5957#endif
5958#if !defined ENOMSG
5959booboo
5960#endif
5961#if !defined EIDRM
5962booboo
5963#endif
5964#if !defined ENOLINK
5965booboo
5966#endif
5967#if !defined EPROTO
5968booboo
5969#endif
5970#if !defined EMULTIHOP
5971booboo
5972#endif
5973#if !defined EBADMSG
5974booboo
5975#endif
5976#if !defined EOVERFLOW
5977booboo
5978#endif
5979#if !defined ENOTSUP
5980booboo
5981#endif
5982#if !defined ENETRESET
5983booboo
5984#endif
5985#if !defined ECONNABORTED
5986booboo
5987#endif
5988#if !defined ESTALE
5989booboo
5990#endif
5991#if !defined EDQUOT
5992booboo
5993#endif
5994#if !defined ECANCELED
5995booboo
5996#endif
5997#if !defined EOWNERDEAD
5998booboo
5999#endif
6000#if !defined ENOTRECOVERABLE
6001booboo
6002#endif
6003#if !defined EILSEQ
6004booboo
6005#endif
6006
6007_ACEOF
6008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6009 $EGREP "booboo" >/dev/null 2>&1; then :
6010 gl_cv_header_errno_h_complete=no
6011else
6012 gl_cv_header_errno_h_complete=yes
6013fi
6014rm -f conftest*
6015
6016
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6019$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6020 if test $gl_cv_header_errno_h_complete = yes; then
6021 ERRNO_H=''
6022 else
6023
6024
6025
6026
6027
6028
6029
6030
6031 if test $gl_cv_have_include_next = yes; then
6032 gl_cv_next_errno_h='<'errno.h'>'
6033 else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6035$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6036if test "${gl_cv_next_errno_h+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038else
6039
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h. */
6042#include <errno.h>
6043
6044_ACEOF
6045 case "$host_os" in
6046 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6047 *) gl_absname_cpp="$ac_cpp" ;;
6048 esac
6049
6050 case "$host_os" in
6051 mingw*)
6052 gl_dirsep_regex='[/\\]'
6053 ;;
6054 *)
6055 gl_dirsep_regex='\/'
6056 ;;
6057 esac
6058 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6059
6060 gl_header_literal_regex=`echo 'errno.h' \
6061 | sed -e "$gl_make_literal_regex_sed"`
6062 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6063 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6064 s|^/[^/]|//&|
6065 p
6066 q
6067 }'
6068 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6069 sed -n "$gl_absolute_header_sed"`'"'
6070
6071
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6074$as_echo "$gl_cv_next_errno_h" >&6; }
6075 fi
6076 NEXT_ERRNO_H=$gl_cv_next_errno_h
6077
6078 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6079 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6080 gl_next_as_first_directive='<'errno.h'>'
6081 else
6082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6083 gl_next_as_first_directive=$gl_cv_next_errno_h
6084 fi
6085 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6086
6087
6088
6089
6090 ERRNO_H='errno.h'
6091 fi
6092
6093 if test -n "$ERRNO_H"; then
6094 GL_GENERATE_ERRNO_H_TRUE=
6095 GL_GENERATE_ERRNO_H_FALSE='#'
6096else
6097 GL_GENERATE_ERRNO_H_TRUE='#'
6098 GL_GENERATE_ERRNO_H_FALSE=
6099fi
6100
6101
6102 if test -n "$ERRNO_H"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6104$as_echo_n "checking for EMULTIHOP value... " >&6; }
6105if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107else
6108
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h. */
6111
6112#include <errno.h>
6113#ifdef EMULTIHOP
6114yes
6115#endif
6116
6117_ACEOF
6118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "yes" >/dev/null 2>&1; then :
6120 gl_cv_header_errno_h_EMULTIHOP=yes
6121else
6122 gl_cv_header_errno_h_EMULTIHOP=no
6123fi
6124rm -f conftest*
6125
6126 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h. */
6129
6130#define _XOPEN_SOURCE_EXTENDED 1
6131#include <errno.h>
6132#ifdef EMULTIHOP
6133yes
6134#endif
6135
6136_ACEOF
6137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 $EGREP "yes" >/dev/null 2>&1; then :
6139 gl_cv_header_errno_h_EMULTIHOP=hidden
6140fi
6141rm -f conftest*
6142
6143 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6144 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6145#define _XOPEN_SOURCE_EXTENDED 1
6146#include <errno.h>
6147/* The following two lines are a workaround against an autoconf-2.52 bug. */
6148#include <stdio.h>
6149#include <stdlib.h>
6150"; then :
6151
6152fi
6153
6154 fi
6155 fi
6156
6157fi
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6159$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6160 case $gl_cv_header_errno_h_EMULTIHOP in
6161 yes | no)
6162 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6163 ;;
6164 *)
6165 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6166 ;;
6167 esac
6168
6169
6170 fi
6171
6172
6173 if test -n "$ERRNO_H"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6175$as_echo_n "checking for ENOLINK value... " >&6; }
6176if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178else
6179
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h. */
6182
6183#include <errno.h>
6184#ifdef ENOLINK
6185yes
6186#endif
6187
6188_ACEOF
6189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190 $EGREP "yes" >/dev/null 2>&1; then :
6191 gl_cv_header_errno_h_ENOLINK=yes
6192else
6193 gl_cv_header_errno_h_ENOLINK=no
6194fi
6195rm -f conftest*
6196
6197 if test $gl_cv_header_errno_h_ENOLINK = no; then
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h. */
6200
6201#define _XOPEN_SOURCE_EXTENDED 1
6202#include <errno.h>
6203#ifdef ENOLINK
6204yes
6205#endif
6206
6207_ACEOF
6208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 $EGREP "yes" >/dev/null 2>&1; then :
6210 gl_cv_header_errno_h_ENOLINK=hidden
6211fi
6212rm -f conftest*
6213
6214 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6215 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6216#define _XOPEN_SOURCE_EXTENDED 1
6217#include <errno.h>
6218/* The following two lines are a workaround against an autoconf-2.52 bug. */
6219#include <stdio.h>
6220#include <stdlib.h>
6221"; then :
6222
6223fi
6224
6225 fi
6226 fi
6227
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6230$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6231 case $gl_cv_header_errno_h_ENOLINK in
6232 yes | no)
6233 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6234 ;;
6235 *)
6236 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6237 ;;
6238 esac
6239
6240
6241 fi
6242
6243
6244 if test -n "$ERRNO_H"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6246$as_echo_n "checking for EOVERFLOW value... " >&6; }
6247if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252/* end confdefs.h. */
6253
6254#include <errno.h>
6255#ifdef EOVERFLOW
6256yes
6257#endif
6258
6259_ACEOF
6260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 $EGREP "yes" >/dev/null 2>&1; then :
6262 gl_cv_header_errno_h_EOVERFLOW=yes
6263else
6264 gl_cv_header_errno_h_EOVERFLOW=no
6265fi
6266rm -f conftest*
6267
6268 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h. */
6271
6272#define _XOPEN_SOURCE_EXTENDED 1
6273#include <errno.h>
6274#ifdef EOVERFLOW
6275yes
6276#endif
6277
6278_ACEOF
6279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "yes" >/dev/null 2>&1; then :
6281 gl_cv_header_errno_h_EOVERFLOW=hidden
6282fi
6283rm -f conftest*
6284
6285 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6286 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6287#define _XOPEN_SOURCE_EXTENDED 1
6288#include <errno.h>
6289/* The following two lines are a workaround against an autoconf-2.52 bug. */
6290#include <stdio.h>
6291#include <stdlib.h>
6292"; then :
6293
6294fi
6295
6296 fi
6297 fi
6298
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6301$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6302 case $gl_cv_header_errno_h_EOVERFLOW in
6303 yes | no)
6304 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6305 ;;
6306 *)
6307 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6308 ;;
6309 esac
6310
6311
6312 fi
6313
6314
6315
6316
63ce7108
TT
6317
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6321$as_echo_n "checking for mbstate_t... " >&6; }
6322if test "${ac_cv_type_mbstate_t+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324else
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h. */
6327$ac_includes_default
6328/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6329 <wchar.h>.
6330 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6331 included before <wchar.h>. */
6332#include <stddef.h>
6333#include <stdio.h>
6334#include <time.h>
6335#include <wchar.h>
6336int
6337main ()
6338{
6339mbstate_t x; return sizeof x;
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_c_try_compile "$LINENO"; then :
6345 ac_cv_type_mbstate_t=yes
6346else
6347 ac_cv_type_mbstate_t=no
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6352$as_echo "$ac_cv_type_mbstate_t" >&6; }
6353 if test $ac_cv_type_mbstate_t = yes; then
6354
6355$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6356
6357 else
6358
6359$as_echo "#define mbstate_t int" >>confdefs.h
6360
6361 fi
6362
6363
6364
6365
6366 for ac_func in $ac_func_list
6367do :
6368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6369ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6370eval as_val=\$$as_ac_var
6371 if test "x$as_val" = x""yes; then :
6372 cat >>confdefs.h <<_ACEOF
6373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6374_ACEOF
6375
6376fi
6377done
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
63ce7108
TT
6398 GNULIB_ACOSF=0;
6399 GNULIB_ACOSL=0;
6400 GNULIB_ASINF=0;
6401 GNULIB_ASINL=0;
6402 GNULIB_ATANF=0;
6403 GNULIB_ATANL=0;
6404 GNULIB_ATAN2F=0;
6405 GNULIB_CBRT=0;
6406 GNULIB_CBRTF=0;
6407 GNULIB_CBRTL=0;
6408 GNULIB_CEIL=0;
6409 GNULIB_CEILF=0;
6410 GNULIB_CEILL=0;
6411 GNULIB_COPYSIGN=0;
6412 GNULIB_COPYSIGNF=0;
88b48903
WN
6413 GNULIB_COPYSIGNL=0;
6414 GNULIB_COSF=0;
6415 GNULIB_COSL=0;
6416 GNULIB_COSHF=0;
6417 GNULIB_EXPF=0;
6418 GNULIB_EXPL=0;
6419 GNULIB_EXP2=0;
6420 GNULIB_EXP2F=0;
6421 GNULIB_EXP2L=0;
6422 GNULIB_EXPM1=0;
6423 GNULIB_EXPM1F=0;
6424 GNULIB_EXPM1L=0;
6425 GNULIB_FABSF=0;
6426 GNULIB_FABSL=0;
6427 GNULIB_FLOOR=0;
6428 GNULIB_FLOORF=0;
6429 GNULIB_FLOORL=0;
6430 GNULIB_FMA=0;
6431 GNULIB_FMAF=0;
6432 GNULIB_FMAL=0;
6433 GNULIB_FMOD=0;
6434 GNULIB_FMODF=0;
6435 GNULIB_FMODL=0;
6436 GNULIB_FREXPF=0;
6437 GNULIB_FREXP=0;
6438 GNULIB_FREXPL=0;
6439 GNULIB_HYPOT=0;
6440 GNULIB_HYPOTF=0;
6441 GNULIB_HYPOTL=0;
6442 GNULIB_ILOGB=0;
6443 GNULIB_ILOGBF=0;
6444 GNULIB_ILOGBL=0;
6445 GNULIB_ISFINITE=0;
6446 GNULIB_ISINF=0;
6447 GNULIB_ISNAN=0;
6448 GNULIB_ISNANF=0;
6449 GNULIB_ISNAND=0;
6450 GNULIB_ISNANL=0;
6451 GNULIB_LDEXPF=0;
6452 GNULIB_LDEXPL=0;
6453 GNULIB_LOG=0;
6454 GNULIB_LOGF=0;
6455 GNULIB_LOGL=0;
6456 GNULIB_LOG10=0;
6457 GNULIB_LOG10F=0;
6458 GNULIB_LOG10L=0;
6459 GNULIB_LOG1P=0;
6460 GNULIB_LOG1PF=0;
6461 GNULIB_LOG1PL=0;
6462 GNULIB_LOG2=0;
6463 GNULIB_LOG2F=0;
6464 GNULIB_LOG2L=0;
6465 GNULIB_LOGB=0;
6466 GNULIB_LOGBF=0;
6467 GNULIB_LOGBL=0;
6468 GNULIB_MODF=0;
6469 GNULIB_MODFF=0;
6470 GNULIB_MODFL=0;
6471 GNULIB_POWF=0;
6472 GNULIB_REMAINDER=0;
6473 GNULIB_REMAINDERF=0;
6474 GNULIB_REMAINDERL=0;
6475 GNULIB_RINT=0;
6476 GNULIB_RINTF=0;
6477 GNULIB_RINTL=0;
6478 GNULIB_ROUND=0;
6479 GNULIB_ROUNDF=0;
6480 GNULIB_ROUNDL=0;
6481 GNULIB_SIGNBIT=0;
6482 GNULIB_SINF=0;
6483 GNULIB_SINL=0;
6484 GNULIB_SINHF=0;
6485 GNULIB_SQRTF=0;
6486 GNULIB_SQRTL=0;
6487 GNULIB_TANF=0;
6488 GNULIB_TANL=0;
6489 GNULIB_TANHF=0;
6490 GNULIB_TRUNC=0;
6491 GNULIB_TRUNCF=0;
6492 GNULIB_TRUNCL=0;
6493 HAVE_ACOSF=1;
6494 HAVE_ACOSL=1;
6495 HAVE_ASINF=1;
6496 HAVE_ASINL=1;
6497 HAVE_ATANF=1;
6498 HAVE_ATANL=1;
6499 HAVE_ATAN2F=1;
6500 HAVE_CBRT=1;
6501 HAVE_CBRTF=1;
6502 HAVE_CBRTL=1;
6503 HAVE_COPYSIGN=1;
6504 HAVE_COPYSIGNL=1;
6505 HAVE_COSF=1;
6506 HAVE_COSL=1;
6507 HAVE_COSHF=1;
6508 HAVE_EXPF=1;
6509 HAVE_EXPL=1;
6510 HAVE_EXPM1=1;
6511 HAVE_EXPM1F=1;
6512 HAVE_FABSF=1;
6513 HAVE_FABSL=1;
6514 HAVE_FMA=1;
6515 HAVE_FMAF=1;
6516 HAVE_FMAL=1;
6517 HAVE_FMODF=1;
6518 HAVE_FMODL=1;
6519 HAVE_FREXPF=1;
6520 HAVE_HYPOTF=1;
6521 HAVE_HYPOTL=1;
6522 HAVE_ILOGB=1;
6523 HAVE_ILOGBF=1;
6524 HAVE_ILOGBL=1;
6525 HAVE_ISNANF=1;
6526 HAVE_ISNAND=1;
6527 HAVE_ISNANL=1;
6528 HAVE_LDEXPF=1;
6529 HAVE_LOGF=1;
6530 HAVE_LOGL=1;
6531 HAVE_LOG10F=1;
6532 HAVE_LOG10L=1;
6533 HAVE_LOG1P=1;
6534 HAVE_LOG1PF=1;
6535 HAVE_LOG1PL=1;
6536 HAVE_LOGBF=1;
6537 HAVE_LOGBL=1;
6538 HAVE_MODFF=1;
6539 HAVE_MODFL=1;
6540 HAVE_POWF=1;
6541 HAVE_REMAINDER=1;
6542 HAVE_REMAINDERF=1;
6543 HAVE_RINT=1;
6544 HAVE_RINTL=1;
6545 HAVE_SINF=1;
6546 HAVE_SINL=1;
6547 HAVE_SINHF=1;
6548 HAVE_SQRTF=1;
6549 HAVE_SQRTL=1;
6550 HAVE_TANF=1;
6551 HAVE_TANL=1;
6552 HAVE_TANHF=1;
6553 HAVE_DECL_ACOSL=1;
6554 HAVE_DECL_ASINL=1;
6555 HAVE_DECL_ATANL=1;
6556 HAVE_DECL_CBRTF=1;
6557 HAVE_DECL_CBRTL=1;
6558 HAVE_DECL_CEILF=1;
6559 HAVE_DECL_CEILL=1;
6560 HAVE_DECL_COPYSIGNF=1;
6561 HAVE_DECL_COSL=1;
6562 HAVE_DECL_EXPL=1;
6563 HAVE_DECL_EXP2=1;
6564 HAVE_DECL_EXP2F=1;
6565 HAVE_DECL_EXP2L=1;
6566 HAVE_DECL_EXPM1L=1;
6567 HAVE_DECL_FLOORF=1;
6568 HAVE_DECL_FLOORL=1;
6569 HAVE_DECL_FREXPL=1;
6570 HAVE_DECL_LDEXPL=1;
6571 HAVE_DECL_LOGL=1;
6572 HAVE_DECL_LOG10L=1;
6573 HAVE_DECL_LOG2=1;
6574 HAVE_DECL_LOG2F=1;
6575 HAVE_DECL_LOG2L=1;
6576 HAVE_DECL_LOGB=1;
6577 HAVE_DECL_REMAINDER=1;
6578 HAVE_DECL_REMAINDERL=1;
6579 HAVE_DECL_RINTF=1;
6580 HAVE_DECL_ROUND=1;
6581 HAVE_DECL_ROUNDF=1;
6582 HAVE_DECL_ROUNDL=1;
6583 HAVE_DECL_SINL=1;
6584 HAVE_DECL_SQRTL=1;
6585 HAVE_DECL_TANL=1;
6586 HAVE_DECL_TRUNC=1;
6587 HAVE_DECL_TRUNCF=1;
6588 HAVE_DECL_TRUNCL=1;
6589 REPLACE_CBRTF=0;
6590 REPLACE_CBRTL=0;
6591 REPLACE_CEIL=0;
6592 REPLACE_CEILF=0;
6593 REPLACE_CEILL=0;
6594 REPLACE_EXPM1=0;
6595 REPLACE_EXPM1F=0;
6596 REPLACE_EXP2=0;
6597 REPLACE_EXP2L=0;
6598 REPLACE_FABSL=0;
6599 REPLACE_FLOOR=0;
6600 REPLACE_FLOORF=0;
6601 REPLACE_FLOORL=0;
6602 REPLACE_FMA=0;
6603 REPLACE_FMAF=0;
6604 REPLACE_FMAL=0;
6605 REPLACE_FMOD=0;
6606 REPLACE_FMODF=0;
6607 REPLACE_FMODL=0;
6608 REPLACE_FREXPF=0;
6609 REPLACE_FREXP=0;
6610 REPLACE_FREXPL=0;
6611 REPLACE_HUGE_VAL=0;
6612 REPLACE_HYPOT=0;
6613 REPLACE_HYPOTF=0;
6614 REPLACE_HYPOTL=0;
6615 REPLACE_ILOGB=0;
6616 REPLACE_ILOGBF=0;
6617 REPLACE_ISFINITE=0;
6618 REPLACE_ISINF=0;
6619 REPLACE_ISNAN=0;
6620 REPLACE_LDEXPL=0;
6621 REPLACE_LOG=0;
6622 REPLACE_LOGF=0;
6623 REPLACE_LOGL=0;
6624 REPLACE_LOG10=0;
6625 REPLACE_LOG10F=0;
6626 REPLACE_LOG10L=0;
6627 REPLACE_LOG1P=0;
6628 REPLACE_LOG1PF=0;
6629 REPLACE_LOG1PL=0;
6630 REPLACE_LOG2=0;
6631 REPLACE_LOG2F=0;
6632 REPLACE_LOG2L=0;
6633 REPLACE_LOGB=0;
6634 REPLACE_LOGBF=0;
6635 REPLACE_LOGBL=0;
6636 REPLACE_MODF=0;
6637 REPLACE_MODFF=0;
6638 REPLACE_MODFL=0;
6639 REPLACE_NAN=0;
6640 REPLACE_REMAINDER=0;
6641 REPLACE_REMAINDERF=0;
6642 REPLACE_REMAINDERL=0;
6643 REPLACE_ROUND=0;
6644 REPLACE_ROUNDF=0;
6645 REPLACE_ROUNDL=0;
6646 REPLACE_SIGNBIT=0;
6647 REPLACE_SIGNBIT_USING_GCC=0;
6648 REPLACE_SQRTL=0;
6649 REPLACE_TRUNC=0;
6650 REPLACE_TRUNCF=0;
6651 REPLACE_TRUNCL=0;
6652
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6655$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6656if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6658else
6659
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h. */
6662#include <math.h>
6663 double x;
6664int
6665main ()
6666{
6667int e; return frexp (x, &e) > 0;
6668 ;
6669 return 0;
6670}
6671_ACEOF
6672if ac_fn_c_try_link "$LINENO"; then :
6673 gl_cv_func_frexp_no_libm=yes
6674else
6675 gl_cv_func_frexp_no_libm=no
6676fi
6677rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6679
6680fi
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6682$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6683
6684
6685
6686
88b48903
WN
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6688$as_echo_n "checking whether long double and double are the same... " >&6; }
6689if test "${gl_cv_long_double_equals_double+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h. */
6694#include <float.h>
6695int
6696main ()
6697{
6698typedef int check[sizeof (long double) == sizeof (double)
6699 && LDBL_MANT_DIG == DBL_MANT_DIG
6700 && LDBL_MAX_EXP == DBL_MAX_EXP
6701 && LDBL_MIN_EXP == DBL_MIN_EXP
6702 ? 1 : -1];
6703
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"; then :
6709 gl_cv_long_double_equals_double=yes
6710else
6711 gl_cv_long_double_equals_double=no
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6717$as_echo "$gl_cv_long_double_equals_double" >&6; }
6718 if test $gl_cv_long_double_equals_double = yes; then
6719
6720$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6721
6722 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6723 else
6724 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6725 fi
6726
6727
6728
8690e634
JK
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6730$as_echo_n "checking for unsigned long long int... " >&6; }
6731if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733else
6734 ac_cv_type_unsigned_long_long_int=yes
6735 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738
6739 /* For now, do not test the preprocessor; as of 2007 there are too many
6740 implementations with broken preprocessors. Perhaps this can
6741 be revisited in 2012. In the meantime, code should not expect
6742 #if to work with literals wider than 32 bits. */
6743 /* Test literals. */
6744 long long int ll = 9223372036854775807ll;
6745 long long int nll = -9223372036854775807LL;
6746 unsigned long long int ull = 18446744073709551615ULL;
6747 /* Test constant expressions. */
6748 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6749 ? 1 : -1)];
6750 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6751 ? 1 : -1)];
6752 int i = 63;
6753int
6754main ()
6755{
6756/* Test availability of runtime routines for shift and division. */
6757 long long int llmax = 9223372036854775807ll;
6758 unsigned long long int ullmax = 18446744073709551615ull;
6759 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6760 | (llmax / ll) | (llmax % ll)
6761 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6762 | (ullmax / ull) | (ullmax % ull));
6763 ;
6764 return 0;
6765}
6766
6767_ACEOF
6768if ac_fn_c_try_link "$LINENO"; then :
6769
6770else
6771 ac_cv_type_unsigned_long_long_int=no
6772fi
6773rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6775 fi
6776fi
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6778$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6779 if test $ac_cv_type_unsigned_long_long_int = yes; then
6780
6781$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6782
6783 fi
6784
6785
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6788$as_echo_n "checking for long long int... " >&6; }
6789if test "${ac_cv_type_long_long_int+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791else
6792 ac_cv_type_long_long_int=yes
6793 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6794 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6795 if test $ac_cv_type_long_long_int = yes; then
6796 if test "$cross_compiling" = yes; then :
6797 :
6798else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h. */
6801#include <limits.h>
6802 #ifndef LLONG_MAX
6803 # define HALF \
6804 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6805 # define LLONG_MAX (HALF - 1 + HALF)
6806 #endif
6807int
6808main ()
6809{
6810long long int n = 1;
6811 int i;
6812 for (i = 0; ; i++)
6813 {
6814 long long int m = n << i;
6815 if (m >> i != n)
6816 return 1;
6817 if (LLONG_MAX / 2 < m)
6818 break;
6819 }
6820 return 0;
6821 ;
6822 return 0;
6823}
6824_ACEOF
6825if ac_fn_c_try_run "$LINENO"; then :
6826
6827else
6828 ac_cv_type_long_long_int=no
6829fi
6830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6831 conftest.$ac_objext conftest.beam conftest.$ac_ext
6832fi
6833
6834 fi
6835 fi
6836fi
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6838$as_echo "$ac_cv_type_long_long_int" >&6; }
6839 if test $ac_cv_type_long_long_int = yes; then
6840
6841$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6842
6843 fi
6844
6845
6846
6847
6848
6849
88b48903
WN
6850 gl_cv_c_multiarch=no
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 6852/* end confdefs.h. */
88b48903
WN
6853#ifndef __APPLE_CC__
6854 not a universal capable compiler
6855 #endif
6856 typedef int dummy;
6857
8690e634
JK
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"; then :
6860
6861 arch=
6862 prev=
6863 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6864 if test -n "$prev"; then
6865 case $word in
6866 i?86 | x86_64 | ppc | ppc64)
6867 if test -z "$arch" || test "$arch" = "$word"; then
6868 arch="$word"
6869 else
6870 gl_cv_c_multiarch=yes
6871 fi
6872 ;;
6873 esac
6874 prev=
6875 else
6876 if test "x$word" = "x-arch"; then
6877 prev=arch
6878 fi
6879 fi
6880 done
6881
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 if test $gl_cv_c_multiarch = yes; then
6885 APPLE_UNIVERSAL_BUILD=1
6886 else
6887 APPLE_UNIVERSAL_BUILD=0
6888 fi
6889
6890
6891
6892
6893
6894 if test $ac_cv_type_long_long_int = yes; then
6895 HAVE_LONG_LONG_INT=1
6896 else
6897 HAVE_LONG_LONG_INT=0
6898 fi
6899
6900
6901 if test $ac_cv_type_unsigned_long_long_int = yes; then
6902 HAVE_UNSIGNED_LONG_LONG_INT=1
6903 else
6904 HAVE_UNSIGNED_LONG_LONG_INT=0
6905 fi
6906
6907
6908
8690e634
JK
6909 if test $ac_cv_header_wchar_h = yes; then
6910 HAVE_WCHAR_H=1
6911 else
6912 HAVE_WCHAR_H=0
6913 fi
6914
6915
6916 if test $ac_cv_header_inttypes_h = yes; then
6917 HAVE_INTTYPES_H=1
6918 else
6919 HAVE_INTTYPES_H=0
6920 fi
6921
6922
6923 if test $ac_cv_header_sys_types_h = yes; then
6924 HAVE_SYS_TYPES_H=1
6925 else
6926 HAVE_SYS_TYPES_H=0
6927 fi
6928
6929
6930
6931
6932
6933
6934
6935
8690e634
JK
6936
6937
6938
6939 if test $gl_cv_have_include_next = yes; then
6940 gl_cv_next_stdint_h='<'stdint.h'>'
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6943$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6944if test "${gl_cv_next_stdint_h+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946else
6947
6948 if test $ac_cv_header_stdint_h = yes; then
6949
6950
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h. */
6953#include <stdint.h>
6954
6955_ACEOF
6956 case "$host_os" in
6957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6958 *) gl_absname_cpp="$ac_cpp" ;;
6959 esac
6960
6961 case "$host_os" in
6962 mingw*)
6963 gl_dirsep_regex='[/\\]'
6964 ;;
6965 *)
6966 gl_dirsep_regex='\/'
6967 ;;
6968 esac
6969 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6970
6971 gl_header_literal_regex=`echo 'stdint.h' \
6972 | sed -e "$gl_make_literal_regex_sed"`
6973 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6974 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6975 s|^/[^/]|//&|
6976 p
6977 q
6978 }'
6979 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6980 sed -n "$gl_absolute_header_sed"`'"'
6981 else
6982 gl_cv_next_stdint_h='<'stdint.h'>'
6983 fi
6984
6985
6986fi
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6988$as_echo "$gl_cv_next_stdint_h" >&6; }
6989 fi
6990 NEXT_STDINT_H=$gl_cv_next_stdint_h
6991
6992 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6994 gl_next_as_first_directive='<'stdint.h'>'
6995 else
6996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6997 gl_next_as_first_directive=$gl_cv_next_stdint_h
6998 fi
6999 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7000
7001
7002
7003
7004 if test $ac_cv_header_stdint_h = yes; then
7005 HAVE_STDINT_H=1
7006 else
7007 HAVE_STDINT_H=0
7008 fi
7009
7010
7011 if test $ac_cv_header_stdint_h = yes; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7013$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7014if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016else
7017 gl_cv_header_working_stdint_h=no
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h. */
7020
7021
7022#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7023#include <stdint.h>
7024/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7025#if !(defined WCHAR_MIN && defined WCHAR_MAX)
7026#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7027#endif
7028
7029
7030 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7031 included before <wchar.h>. */
7032 #include <stddef.h>
7033 #include <signal.h>
7034 #if HAVE_WCHAR_H
7035 # include <stdio.h>
7036 # include <time.h>
7037 # include <wchar.h>
7038 #endif
7039
7040
7041#ifdef INT8_MAX
7042int8_t a1 = INT8_MAX;
7043int8_t a1min = INT8_MIN;
7044#endif
7045#ifdef INT16_MAX
7046int16_t a2 = INT16_MAX;
7047int16_t a2min = INT16_MIN;
7048#endif
7049#ifdef INT32_MAX
7050int32_t a3 = INT32_MAX;
7051int32_t a3min = INT32_MIN;
7052#endif
7053#ifdef INT64_MAX
7054int64_t a4 = INT64_MAX;
7055int64_t a4min = INT64_MIN;
7056#endif
7057#ifdef UINT8_MAX
7058uint8_t b1 = UINT8_MAX;
7059#else
7060typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7061#endif
7062#ifdef UINT16_MAX
7063uint16_t b2 = UINT16_MAX;
7064#endif
7065#ifdef UINT32_MAX
7066uint32_t b3 = UINT32_MAX;
7067#endif
7068#ifdef UINT64_MAX
7069uint64_t b4 = UINT64_MAX;
7070#endif
7071int_least8_t c1 = INT8_C (0x7f);
7072int_least8_t c1max = INT_LEAST8_MAX;
7073int_least8_t c1min = INT_LEAST8_MIN;
7074int_least16_t c2 = INT16_C (0x7fff);
7075int_least16_t c2max = INT_LEAST16_MAX;
7076int_least16_t c2min = INT_LEAST16_MIN;
7077int_least32_t c3 = INT32_C (0x7fffffff);
7078int_least32_t c3max = INT_LEAST32_MAX;
7079int_least32_t c3min = INT_LEAST32_MIN;
7080int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7081int_least64_t c4max = INT_LEAST64_MAX;
7082int_least64_t c4min = INT_LEAST64_MIN;
7083uint_least8_t d1 = UINT8_C (0xff);
7084uint_least8_t d1max = UINT_LEAST8_MAX;
7085uint_least16_t d2 = UINT16_C (0xffff);
7086uint_least16_t d2max = UINT_LEAST16_MAX;
7087uint_least32_t d3 = UINT32_C (0xffffffff);
7088uint_least32_t d3max = UINT_LEAST32_MAX;
7089uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7090uint_least64_t d4max = UINT_LEAST64_MAX;
7091int_fast8_t e1 = INT_FAST8_MAX;
7092int_fast8_t e1min = INT_FAST8_MIN;
7093int_fast16_t e2 = INT_FAST16_MAX;
7094int_fast16_t e2min = INT_FAST16_MIN;
7095int_fast32_t e3 = INT_FAST32_MAX;
7096int_fast32_t e3min = INT_FAST32_MIN;
7097int_fast64_t e4 = INT_FAST64_MAX;
7098int_fast64_t e4min = INT_FAST64_MIN;
7099uint_fast8_t f1 = UINT_FAST8_MAX;
7100uint_fast16_t f2 = UINT_FAST16_MAX;
7101uint_fast32_t f3 = UINT_FAST32_MAX;
7102uint_fast64_t f4 = UINT_FAST64_MAX;
7103#ifdef INTPTR_MAX
7104intptr_t g = INTPTR_MAX;
7105intptr_t gmin = INTPTR_MIN;
7106#endif
7107#ifdef UINTPTR_MAX
7108uintptr_t h = UINTPTR_MAX;
7109#endif
7110intmax_t i = INTMAX_MAX;
7111uintmax_t j = UINTMAX_MAX;
7112
7113#include <limits.h> /* for CHAR_BIT */
7114#define TYPE_MINIMUM(t) \
7115 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7116#define TYPE_MAXIMUM(t) \
7117 ((t) ((t) 0 < (t) -1 \
7118 ? (t) -1 \
7119 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7120struct s {
7121 int check_PTRDIFF:
7122 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7123 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7124 ? 1 : -1;
7125 /* Detect bug in FreeBSD 6.0 / ia64. */
7126 int check_SIG_ATOMIC:
7127 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7128 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7129 ? 1 : -1;
7130 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7131 int check_WCHAR:
7132 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7133 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7134 ? 1 : -1;
7135 /* Detect bug in mingw. */
7136 int check_WINT:
7137 WINT_MIN == TYPE_MINIMUM (wint_t)
7138 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7139 ? 1 : -1;
7140
7141 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7142 int check_UINT8_C:
7143 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7144 int check_UINT16_C:
7145 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7146
7147 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7148#ifdef UINT8_MAX
7149 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7150#endif
7151#ifdef UINT16_MAX
7152 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7153#endif
7154#ifdef UINT32_MAX
7155 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7156#endif
7157#ifdef UINT64_MAX
7158 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7159#endif
7160 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7161 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7162 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7163 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7164 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7165 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7166 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7167 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7168 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7169 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7170 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7171};
7172
7173int
7174main ()
7175{
7176
7177 ;
7178 return 0;
7179}
7180_ACEOF
7181if ac_fn_c_try_compile "$LINENO"; then :
7182 if test "$cross_compiling" = yes; then :
7183 gl_cv_header_working_stdint_h=yes
7184
7185else
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h. */
7188
7189
7190#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7191#include <stdint.h>
7192
7193
7194 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7195 included before <wchar.h>. */
7196 #include <stddef.h>
7197 #include <signal.h>
7198 #if HAVE_WCHAR_H
7199 # include <stdio.h>
7200 # include <time.h>
7201 # include <wchar.h>
7202 #endif
7203
7204
7205#include <stdio.h>
7206#include <string.h>
7207#define MVAL(macro) MVAL1(macro)
7208#define MVAL1(expression) #expression
7209static const char *macro_values[] =
7210 {
7211#ifdef INT8_MAX
7212 MVAL (INT8_MAX),
7213#endif
7214#ifdef INT16_MAX
7215 MVAL (INT16_MAX),
7216#endif
7217#ifdef INT32_MAX
7218 MVAL (INT32_MAX),
7219#endif
7220#ifdef INT64_MAX
7221 MVAL (INT64_MAX),
7222#endif
7223#ifdef UINT8_MAX
7224 MVAL (UINT8_MAX),
7225#endif
7226#ifdef UINT16_MAX
7227 MVAL (UINT16_MAX),
7228#endif
7229#ifdef UINT32_MAX
7230 MVAL (UINT32_MAX),
7231#endif
7232#ifdef UINT64_MAX
7233 MVAL (UINT64_MAX),
7234#endif
7235 NULL
7236 };
7237
7238int
7239main ()
7240{
7241
7242 const char **mv;
7243 for (mv = macro_values; *mv != NULL; mv++)
7244 {
7245 const char *value = *mv;
7246 /* Test whether it looks like a cast expression. */
7247 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7248 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7249 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7250 || strncmp (value, "((int)"/*)*/, 6) == 0
7251 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7252 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7253 return mv - macro_values + 1;
7254 }
7255 return 0;
7256
7257 ;
7258 return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_run "$LINENO"; then :
7262 gl_cv_header_working_stdint_h=yes
7263fi
7264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266fi
7267
7268
7269fi
7270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271
7272fi
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7274$as_echo "$gl_cv_header_working_stdint_h" >&6; }
7275 fi
7276 if test "$gl_cv_header_working_stdint_h" = yes; then
7277 STDINT_H=
7278 else
7279 for ac_header in sys/inttypes.h sys/bitypes.h
7280do :
7281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7282ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7283eval as_val=\$$as_ac_Header
7284 if test "x$as_val" = x""yes; then :
7285 cat >>confdefs.h <<_ACEOF
7286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287_ACEOF
7288
7289fi
7290
7291done
7292
7293 if test $ac_cv_header_sys_inttypes_h = yes; then
7294 HAVE_SYS_INTTYPES_H=1
7295 else
7296 HAVE_SYS_INTTYPES_H=0
7297 fi
7298
7299 if test $ac_cv_header_sys_bitypes_h = yes; then
7300 HAVE_SYS_BITYPES_H=1
7301 else
7302 HAVE_SYS_BITYPES_H=0
7303 fi
7304
7305
7306
7307
7308 if test $APPLE_UNIVERSAL_BUILD = 0; then
7309
7310
7311 for gltype in ptrdiff_t size_t ; do
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7313$as_echo_n "checking for bit size of $gltype... " >&6; }
7314if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7315 $as_echo_n "(cached) " >&6
7316else
7317 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7319 included before <wchar.h>. */
7320 #include <stddef.h>
7321 #include <signal.h>
7322 #if HAVE_WCHAR_H
7323 # include <stdio.h>
7324 # include <time.h>
7325 # include <wchar.h>
7326 #endif
7327
7328#include <limits.h>"; then :
7329
7330else
7331 result=unknown
7332fi
7333
7334 eval gl_cv_bitsizeof_${gltype}=\$result
7335
7336fi
7337eval ac_res=\$gl_cv_bitsizeof_${gltype}
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7339$as_echo "$ac_res" >&6; }
7340 eval result=\$gl_cv_bitsizeof_${gltype}
7341 if test $result = unknown; then
7342 result=0
7343 fi
7344 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7345 cat >>confdefs.h <<_ACEOF
7346#define BITSIZEOF_${GLTYPE} $result
7347_ACEOF
7348
7349 eval BITSIZEOF_${GLTYPE}=\$result
7350 done
7351
7352
7353 fi
7354
7355
7356 for gltype in sig_atomic_t wchar_t wint_t ; do
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7358$as_echo_n "checking for bit size of $gltype... " >&6; }
7359if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7363 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7364 included before <wchar.h>. */
7365 #include <stddef.h>
7366 #include <signal.h>
7367 #if HAVE_WCHAR_H
7368 # include <stdio.h>
7369 # include <time.h>
7370 # include <wchar.h>
7371 #endif
7372
7373#include <limits.h>"; then :
7374
7375else
7376 result=unknown
7377fi
7378
7379 eval gl_cv_bitsizeof_${gltype}=\$result
7380
7381fi
7382eval ac_res=\$gl_cv_bitsizeof_${gltype}
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7384$as_echo "$ac_res" >&6; }
7385 eval result=\$gl_cv_bitsizeof_${gltype}
7386 if test $result = unknown; then
7387 result=0
7388 fi
7389 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7390 cat >>confdefs.h <<_ACEOF
7391#define BITSIZEOF_${GLTYPE} $result
7392_ACEOF
7393
7394 eval BITSIZEOF_${GLTYPE}=\$result
7395 done
7396
7397
7398
7399
7400 for gltype in sig_atomic_t wchar_t wint_t ; do
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7402$as_echo_n "checking whether $gltype is signed... " >&6; }
7403if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7404 $as_echo_n "(cached) " >&6
7405else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h. */
7408
7409 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7410 included before <wchar.h>. */
7411 #include <stddef.h>
7412 #include <signal.h>
7413 #if HAVE_WCHAR_H
7414 # include <stdio.h>
7415 # include <time.h>
7416 # include <wchar.h>
7417 #endif
7418
7419 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7420int
7421main ()
7422{
7423
7424 ;
7425 return 0;
7426}
7427_ACEOF
7428if ac_fn_c_try_compile "$LINENO"; then :
7429 result=yes
7430else
7431 result=no
7432fi
7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 eval gl_cv_type_${gltype}_signed=\$result
7435
7436fi
7437eval ac_res=\$gl_cv_type_${gltype}_signed
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7439$as_echo "$ac_res" >&6; }
7440 eval result=\$gl_cv_type_${gltype}_signed
7441 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7442 if test "$result" = yes; then
7443 cat >>confdefs.h <<_ACEOF
7444#define HAVE_SIGNED_${GLTYPE} 1
7445_ACEOF
7446
7447 eval HAVE_SIGNED_${GLTYPE}=1
7448 else
7449 eval HAVE_SIGNED_${GLTYPE}=0
7450 fi
7451 done
7452
7453
7454 gl_cv_type_ptrdiff_t_signed=yes
7455 gl_cv_type_size_t_signed=no
7456 if test $APPLE_UNIVERSAL_BUILD = 0; then
7457
7458
7459 for gltype in ptrdiff_t size_t ; do
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7461$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7462if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7463 $as_echo_n "(cached) " >&6
7464else
7465 eval gl_cv_type_${gltype}_suffix=no
7466 eval result=\$gl_cv_type_${gltype}_signed
7467 if test "$result" = yes; then
7468 glsufu=
7469 else
7470 glsufu=u
7471 fi
7472 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7473 case $glsuf in
7474 '') gltype1='int';;
7475 l) gltype1='long int';;
7476 ll) gltype1='long long int';;
7477 i64) gltype1='__int64';;
7478 u) gltype1='unsigned int';;
7479 ul) gltype1='unsigned long int';;
7480 ull) gltype1='unsigned long long int';;
7481 ui64)gltype1='unsigned __int64';;
7482 esac
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h. */
7485
7486 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7487 included before <wchar.h>. */
7488 #include <stddef.h>
7489 #include <signal.h>
7490 #if HAVE_WCHAR_H
7491 # include <stdio.h>
7492 # include <time.h>
7493 # include <wchar.h>
7494 #endif
7495
7496 extern $gltype foo;
7497 extern $gltype1 foo;
7498int
7499main ()
7500{
7501
7502 ;
7503 return 0;
7504}
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"; then :
7507 eval gl_cv_type_${gltype}_suffix=\$glsuf
7508fi
7509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 eval result=\$gl_cv_type_${gltype}_suffix
7511 test "$result" != no && break
7512 done
7513fi
7514eval ac_res=\$gl_cv_type_${gltype}_suffix
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7516$as_echo "$ac_res" >&6; }
7517 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7518 eval result=\$gl_cv_type_${gltype}_suffix
7519 test "$result" = no && result=
7520 eval ${GLTYPE}_SUFFIX=\$result
7521 cat >>confdefs.h <<_ACEOF
7522#define ${GLTYPE}_SUFFIX $result
7523_ACEOF
7524
7525 done
7526
7527
7528 fi
7529
7530
7531 for gltype in sig_atomic_t wchar_t wint_t ; do
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7533$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7534if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7535 $as_echo_n "(cached) " >&6
7536else
7537 eval gl_cv_type_${gltype}_suffix=no
7538 eval result=\$gl_cv_type_${gltype}_signed
7539 if test "$result" = yes; then
7540 glsufu=
7541 else
7542 glsufu=u
7543 fi
7544 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7545 case $glsuf in
7546 '') gltype1='int';;
7547 l) gltype1='long int';;
7548 ll) gltype1='long long int';;
7549 i64) gltype1='__int64';;
7550 u) gltype1='unsigned int';;
7551 ul) gltype1='unsigned long int';;
7552 ull) gltype1='unsigned long long int';;
7553 ui64)gltype1='unsigned __int64';;
7554 esac
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h. */
7557
7558 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7559 included before <wchar.h>. */
7560 #include <stddef.h>
7561 #include <signal.h>
7562 #if HAVE_WCHAR_H
7563 # include <stdio.h>
7564 # include <time.h>
7565 # include <wchar.h>
7566 #endif
7567
7568 extern $gltype foo;
7569 extern $gltype1 foo;
7570int
7571main ()
7572{
7573
7574 ;
7575 return 0;
7576}
7577_ACEOF
7578if ac_fn_c_try_compile "$LINENO"; then :
7579 eval gl_cv_type_${gltype}_suffix=\$glsuf
7580fi
7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 eval result=\$gl_cv_type_${gltype}_suffix
7583 test "$result" != no && break
7584 done
7585fi
7586eval ac_res=\$gl_cv_type_${gltype}_suffix
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7588$as_echo "$ac_res" >&6; }
7589 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7590 eval result=\$gl_cv_type_${gltype}_suffix
7591 test "$result" = no && result=
7592 eval ${GLTYPE}_SUFFIX=\$result
7593 cat >>confdefs.h <<_ACEOF
7594#define ${GLTYPE}_SUFFIX $result
7595_ACEOF
7596
7597 done
7598
7599
7600
7601 if test $BITSIZEOF_WINT_T -lt 32; then
7602 BITSIZEOF_WINT_T=32
7603 fi
7604
7605 STDINT_H=stdint.h
7606 fi
7607
7608 if test -n "$STDINT_H"; then
7609 GL_GENERATE_STDINT_H_TRUE=
7610 GL_GENERATE_STDINT_H_FALSE='#'
7611else
7612 GL_GENERATE_STDINT_H_TRUE='#'
7613 GL_GENERATE_STDINT_H_FALSE=
7614fi
7615
7616
7617
7618
7619
8690e634
JK
7620 GNULIB_IMAXABS=0;
7621 GNULIB_IMAXDIV=0;
7622 GNULIB_STRTOIMAX=0;
7623 GNULIB_STRTOUMAX=0;
7624 HAVE_DECL_IMAXABS=1;
7625 HAVE_DECL_IMAXDIV=1;
7626 HAVE_DECL_STRTOIMAX=1;
7627 HAVE_DECL_STRTOUMAX=1;
7628 REPLACE_STRTOIMAX=0;
7629 INT32_MAX_LT_INTMAX_MAX=1;
7630 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7631 PRI_MACROS_BROKEN=0;
7632 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7633 UINT32_MAX_LT_UINTMAX_MAX=1;
7634 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7635
7636
7637
7638
8690e634
JK
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
8690e634
JK
7650 if test $gl_cv_have_include_next = yes; then
7651 gl_cv_next_inttypes_h='<'inttypes.h'>'
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7654$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7655if test "${gl_cv_next_inttypes_h+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657else
7658
7659 if test $ac_cv_header_inttypes_h = yes; then
7660
7661
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h. */
7664#include <inttypes.h>
7665
7666_ACEOF
7667 case "$host_os" in
7668 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7669 *) gl_absname_cpp="$ac_cpp" ;;
7670 esac
7671
7672 case "$host_os" in
7673 mingw*)
7674 gl_dirsep_regex='[/\\]'
7675 ;;
7676 *)
7677 gl_dirsep_regex='\/'
7678 ;;
7679 esac
7680 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7681
7682 gl_header_literal_regex=`echo 'inttypes.h' \
7683 | sed -e "$gl_make_literal_regex_sed"`
7684 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7685 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7686 s|^/[^/]|//&|
7687 p
7688 q
7689 }'
7690 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7691 sed -n "$gl_absolute_header_sed"`'"'
7692 else
7693 gl_cv_next_inttypes_h='<'inttypes.h'>'
7694 fi
7695
7696
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7699$as_echo "$gl_cv_next_inttypes_h" >&6; }
7700 fi
7701 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7702
7703 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7704 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7705 gl_next_as_first_directive='<'inttypes.h'>'
7706 else
7707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7708 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7709 fi
7710 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7711
7712
7713
7714
7715
7716
7717
7718
7719 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7720 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7722$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7723if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7724 $as_echo_n "(cached) " >&6
7725else
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h. */
7728#include <inttypes.h>
7729
7730int
7731main ()
7732{
7733#undef $gl_func
7734 (void) $gl_func;
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740 eval "$as_gl_Symbol=yes"
7741else
7742 eval "$as_gl_Symbol=no"
7743fi
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745fi
7746eval ac_res=\$$as_gl_Symbol
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7748$as_echo "$ac_res" >&6; }
7749 eval as_val=\$$as_gl_Symbol
7750 if test "x$as_val" = x""yes; then :
7751 cat >>confdefs.h <<_ACEOF
7752#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7753_ACEOF
7754
7755 eval ac_cv_have_decl_$gl_func=yes
7756fi
7757 done
7758
7759
7760
7761 for ac_header in inttypes.h
7762do :
7763 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7764if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7765 cat >>confdefs.h <<_ACEOF
7766#define HAVE_INTTYPES_H 1
7767_ACEOF
7768
7769fi
7770
7771done
7772
7773 if test $ac_cv_header_inttypes_h = yes; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7775$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7776if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778else
7779
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h. */
7782
7783#include <inttypes.h>
7784#ifdef PRId32
7785char *p = PRId32;
7786#endif
7787
7788int
7789main ()
7790{
7791
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_compile "$LINENO"; then :
7797 gt_cv_inttypes_pri_broken=no
7798else
7799 gt_cv_inttypes_pri_broken=yes
7800fi
7801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7805$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7806 fi
7807 if test "$gt_cv_inttypes_pri_broken" = yes; then
7808
7809cat >>confdefs.h <<_ACEOF
7810#define PRI_MACROS_BROKEN 1
7811_ACEOF
7812
7813 PRI_MACROS_BROKEN=1
7814 else
7815 PRI_MACROS_BROKEN=0
7816 fi
7817
7818
7819
88b48903
WN
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7821$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7822if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
7823 $as_echo_n "(cached) " >&6
7824else
88b48903
WN
7825
7826 if test "$cross_compiling" = yes; then :
7827
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 7829/* end confdefs.h. */
88b48903
WN
7830
7831#if defined arm || defined __arm || defined __arm__
7832 mixed_endianness
7833#endif
7834
7835_ACEOF
7836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7838 gl_cv_cc_double_expbit0="unknown"
7839else
7840
7841 :
7842if test "${ac_cv_c_bigendian+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844else
7845 ac_cv_c_bigendian=unknown
7846 # See if we're dealing with a universal compiler.
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h. */
7849#ifndef __APPLE_CC__
7850 not a universal capable compiler
7851 #endif
7852 typedef int dummy;
7853
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"; then :
7856
7857 # Check for potential -arch flags. It is not universal unless
7858 # there are at least two -arch flags with different values.
7859 ac_arch=
7860 ac_prev=
7861 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7862 if test -n "$ac_prev"; then
7863 case $ac_word in
7864 i?86 | x86_64 | ppc | ppc64)
7865 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7866 ac_arch=$ac_word
7867 else
7868 ac_cv_c_bigendian=universal
7869 break
7870 fi
7871 ;;
7872 esac
7873 ac_prev=
7874 elif test "x$ac_word" = "x-arch"; then
7875 ac_prev=arch
7876 fi
7877 done
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 if test $ac_cv_c_bigendian = unknown; then
7881 # See if sys/param.h defines the BYTE_ORDER macro.
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883/* end confdefs.h. */
7884#include <sys/types.h>
7885 #include <sys/param.h>
7886
8690e634
JK
7887int
7888main ()
7889{
88b48903
WN
7890#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7891 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7892 && LITTLE_ENDIAN)
7893 bogus endian macros
7894 #endif
7895
8690e634
JK
7896 ;
7897 return 0;
7898}
7899_ACEOF
88b48903
WN
7900if ac_fn_c_try_compile "$LINENO"; then :
7901 # It does; now see whether it defined to BIG_ENDIAN or not.
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h. */
7904#include <sys/types.h>
7905 #include <sys/param.h>
7906
7907int
7908main ()
7909{
7910#if BYTE_ORDER != BIG_ENDIAN
7911 not big endian
7912 #endif
7913
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_c_bigendian=yes
8690e634 7920else
88b48903 7921 ac_cv_c_bigendian=no
8690e634 7922fi
88b48903 7923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 7924fi
88b48903
WN
7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 if test $ac_cv_c_bigendian = unknown; then
7928 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931#include <limits.h>
8690e634 7932
88b48903
WN
7933int
7934main ()
7935{
7936#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7937 bogus endian macros
7938 #endif
8690e634 7939
88b48903
WN
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_compile "$LINENO"; then :
7945 # It does; now see whether it defined to _BIG_ENDIAN or not.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h. */
7948#include <limits.h>
8690e634 7949
88b48903
WN
7950int
7951main ()
7952{
7953#ifndef _BIG_ENDIAN
7954 not big endian
7955 #endif
8690e634 7956
88b48903
WN
7957 ;
7958 return 0;
7959}
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"; then :
7962 ac_cv_c_bigendian=yes
7963else
7964 ac_cv_c_bigendian=no
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967fi
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 if test $ac_cv_c_bigendian = unknown; then
7971 # Compile a test program.
7972 if test "$cross_compiling" = yes; then :
7973 # Try to guess by grepping values from an object file.
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975/* end confdefs.h. */
7976short int ascii_mm[] =
7977 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7978 short int ascii_ii[] =
7979 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7980 int use_ascii (int i) {
7981 return ascii_mm[i] + ascii_ii[i];
7982 }
7983 short int ebcdic_ii[] =
7984 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7985 short int ebcdic_mm[] =
7986 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7987 int use_ebcdic (int i) {
7988 return ebcdic_mm[i] + ebcdic_ii[i];
7989 }
7990 extern int foo;
8690e634 7991
88b48903
WN
7992int
7993main ()
7994{
7995return use_ascii (foo) == use_ebcdic (foo);
7996 ;
7997 return 0;
7998}
7999_ACEOF
8000if ac_fn_c_try_compile "$LINENO"; then :
8001 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8002 ac_cv_c_bigendian=yes
8003 fi
8004 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8005 if test "$ac_cv_c_bigendian" = unknown; then
8006 ac_cv_c_bigendian=no
8007 else
8008 # finding both strings is unlikely to happen, but who knows?
8009 ac_cv_c_bigendian=unknown
8010 fi
8011 fi
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014else
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h. */
8017$ac_includes_default
8018int
8019main ()
8020{
8690e634 8021
88b48903
WN
8022 /* Are we little or big endian? From Harbison&Steele. */
8023 union
8024 {
8025 long int l;
8026 char c[sizeof (long int)];
8027 } u;
8028 u.l = 1;
8029 return u.c[sizeof (long int) - 1] == 1;
8690e634 8030
88b48903
WN
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_run "$LINENO"; then :
8036 ac_cv_c_bigendian=no
8037else
8038 ac_cv_c_bigendian=yes
8039fi
8040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8041 conftest.$ac_objext conftest.beam conftest.$ac_ext
8042fi
8690e634 8043
88b48903
WN
8044 fi
8045fi
8046:
8047 case $ac_cv_c_bigendian in #(
8048 yes)
8049 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8050 no)
8051 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8052 universal)
8690e634 8053
88b48903 8054$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 8055
88b48903
WN
8056 ;; #(
8057 *)
8058 gl_cv_cc_double_expbit0="unknown" ;;
8059 esac
8690e634
JK
8060
8061
88b48903
WN
8062fi
8063rm -f conftest*
8690e634 8064
8690e634 8065
88b48903
WN
8066else
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h. */
8690e634 8069
88b48903
WN
8070#include <float.h>
8071#include <stddef.h>
8072#include <stdio.h>
8073#include <string.h>
8074#define NWORDS \
8075 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8076typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8077static unsigned int ored_words[NWORDS];
8078static unsigned int anded_words[NWORDS];
8079static void add_to_ored_words (double x)
8080{
8081 memory_double m;
8082 size_t i;
8083 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8084 memset (&m, 0, sizeof (memory_double));
8085 m.value = x;
8086 for (i = 0; i < NWORDS; i++)
8087 {
8088 ored_words[i] |= m.word[i];
8089 anded_words[i] &= m.word[i];
8090 }
8091}
8092int main ()
8093{
8094 size_t j;
8095 FILE *fp = fopen ("conftest.out", "w");
8096 if (fp == NULL)
8097 return 1;
8098 for (j = 0; j < NWORDS; j++)
8099 anded_words[j] = ~ (unsigned int) 0;
8100 add_to_ored_words (0.25);
8101 add_to_ored_words (0.5);
8102 add_to_ored_words (1.0);
8103 add_to_ored_words (2.0);
8104 add_to_ored_words (4.0);
8105 /* Remove bits that are common (e.g. if representation of the first mantissa
8106 bit is explicit). */
8107 for (j = 0; j < NWORDS; j++)
8108 ored_words[j] &= ~anded_words[j];
8109 /* Now find the nonzero word. */
8110 for (j = 0; j < NWORDS; j++)
8111 if (ored_words[j] != 0)
8112 break;
8113 if (j < NWORDS)
8114 {
8115 size_t i;
8116 for (i = j + 1; i < NWORDS; i++)
8117 if (ored_words[i] != 0)
8118 {
8119 fprintf (fp, "unknown");
8120 return (fclose (fp) != 0);
8121 }
8122 for (i = 0; ; i++)
8123 if ((ored_words[j] >> i) & 1)
8124 {
8125 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8126 return (fclose (fp) != 0);
8127 }
8128 }
8129 fprintf (fp, "unknown");
8130 return (fclose (fp) != 0);
8131}
8690e634 8132
88b48903
WN
8133_ACEOF
8134if ac_fn_c_try_run "$LINENO"; then :
8135 gl_cv_cc_double_expbit0=`cat conftest.out`
8136else
8137 gl_cv_cc_double_expbit0="unknown"
8138fi
8139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8140 conftest.$ac_objext conftest.beam conftest.$ac_ext
8141fi
8690e634 8142
88b48903 8143 rm -f conftest.out
8690e634 8144
88b48903
WN
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8147$as_echo "$gl_cv_cc_double_expbit0" >&6; }
8148 case "$gl_cv_cc_double_expbit0" in
8149 word*bit*)
8150 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8151 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 8152
88b48903
WN
8153cat >>confdefs.h <<_ACEOF
8154#define DBL_EXPBIT0_WORD $word
8155_ACEOF
8690e634
JK
8156
8157
88b48903
WN
8158cat >>confdefs.h <<_ACEOF
8159#define DBL_EXPBIT0_BIT $bit
8160_ACEOF
8690e634 8161
88b48903
WN
8162 ;;
8163 esac
8690e634
JK
8164
8165
88b48903
WN
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8167$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8168if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
8169 $as_echo_n "(cached) " >&6
8170else
88b48903
WN
8171 ac_cv_c_bigendian=unknown
8172 # See if we're dealing with a universal compiler.
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h. */
8175#ifndef __APPLE_CC__
8176 not a universal capable compiler
8177 #endif
8178 typedef int dummy;
8179
8180_ACEOF
8181if ac_fn_c_try_compile "$LINENO"; then :
8182
8183 # Check for potential -arch flags. It is not universal unless
8184 # there are at least two -arch flags with different values.
8185 ac_arch=
8186 ac_prev=
8187 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8188 if test -n "$ac_prev"; then
8189 case $ac_word in
8190 i?86 | x86_64 | ppc | ppc64)
8191 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8192 ac_arch=$ac_word
8193 else
8194 ac_cv_c_bigendian=universal
8195 break
8196 fi
8197 ;;
8198 esac
8199 ac_prev=
8200 elif test "x$ac_word" = "x-arch"; then
8201 ac_prev=arch
8202 fi
8203 done
8204fi
8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 if test $ac_cv_c_bigendian = unknown; then
8207 # See if sys/param.h defines the BYTE_ORDER macro.
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8209/* end confdefs.h. */
8210#include <sys/types.h>
88b48903
WN
8211 #include <sys/param.h>
8212
8213int
8214main ()
8215{
8216#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8217 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8218 && LITTLE_ENDIAN)
8219 bogus endian macros
8220 #endif
8221
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226if ac_fn_c_try_compile "$LINENO"; then :
8227 # It does; now see whether it defined to BIG_ENDIAN or not.
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h. */
8230#include <sys/types.h>
8231 #include <sys/param.h>
8232
8233int
8234main ()
8235{
8236#if BYTE_ORDER != BIG_ENDIAN
8237 not big endian
8238 #endif
8239
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"; then :
8245 ac_cv_c_bigendian=yes
8246else
8247 ac_cv_c_bigendian=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 fi
8253 if test $ac_cv_c_bigendian = unknown; then
8254 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256/* end confdefs.h. */
8257#include <limits.h>
8258
8259int
8260main ()
8261{
8262#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8263 bogus endian macros
8264 #endif
8265
8266 ;
8267 return 0;
8268}
8269_ACEOF
8270if ac_fn_c_try_compile "$LINENO"; then :
8271 # It does; now see whether it defined to _BIG_ENDIAN or not.
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273/* end confdefs.h. */
8274#include <limits.h>
8275
8276int
8277main ()
8278{
8279#ifndef _BIG_ENDIAN
8280 not big endian
8281 #endif
8282
8283 ;
8284 return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_compile "$LINENO"; then :
8288 ac_cv_c_bigendian=yes
8289else
8290 ac_cv_c_bigendian=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296 if test $ac_cv_c_bigendian = unknown; then
8297 # Compile a test program.
8298 if test "$cross_compiling" = yes; then :
8299 # Try to guess by grepping values from an object file.
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h. */
8302short int ascii_mm[] =
8303 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8304 short int ascii_ii[] =
8305 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8306 int use_ascii (int i) {
8307 return ascii_mm[i] + ascii_ii[i];
8308 }
8309 short int ebcdic_ii[] =
8310 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8311 short int ebcdic_mm[] =
8312 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8313 int use_ebcdic (int i) {
8314 return ebcdic_mm[i] + ebcdic_ii[i];
8315 }
8316 extern int foo;
8317
8318int
8319main ()
8320{
8321return use_ascii (foo) == use_ebcdic (foo);
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326if ac_fn_c_try_compile "$LINENO"; then :
8327 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8328 ac_cv_c_bigendian=yes
8329 fi
8330 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8331 if test "$ac_cv_c_bigendian" = unknown; then
8332 ac_cv_c_bigendian=no
8333 else
8334 # finding both strings is unlikely to happen, but who knows?
8335 ac_cv_c_bigendian=unknown
8336 fi
8337 fi
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340else
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h. */
8343$ac_includes_default
8344int
8345main ()
8346{
8347
8348 /* Are we little or big endian? From Harbison&Steele. */
8349 union
8350 {
8351 long int l;
8352 char c[sizeof (long int)];
8353 } u;
8354 u.l = 1;
8355 return u.c[sizeof (long int) - 1] == 1;
8356
8357 ;
8358 return 0;
8359}
8360_ACEOF
8361if ac_fn_c_try_run "$LINENO"; then :
8362 ac_cv_c_bigendian=no
8363else
8364 ac_cv_c_bigendian=yes
8365fi
8366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8367 conftest.$ac_objext conftest.beam conftest.$ac_ext
8368fi
8369
8370 fi
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8373$as_echo "$ac_cv_c_bigendian" >&6; }
8374 case $ac_cv_c_bigendian in #(
8375 yes)
8376 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8377;; #(
8378 no)
8379 ;; #(
8380 universal)
8381
8382$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8383
8384 ;; #(
8385 *)
8386 as_fn_error "unknown endianness
8387 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8388 esac
8389
8390
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8393$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8394if test "${am_cv_langinfo_codeset+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396else
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h. */
8399#include <langinfo.h>
8400int
8401main ()
8402{
8403char* cs = nl_langinfo(CODESET); return !cs;
8404 ;
8405 return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_link "$LINENO"; then :
8409 am_cv_langinfo_codeset=yes
8410else
8411 am_cv_langinfo_codeset=no
8412fi
8413rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415
8416fi
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8418$as_echo "$am_cv_langinfo_codeset" >&6; }
8419 if test $am_cv_langinfo_codeset = yes; then
8420
8421$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8422
8423 fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
88b48903
WN
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8435$as_echo_n "checking for working fcntl.h... " >&6; }
8436if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8437 $as_echo_n "(cached) " >&6
8438else
8439 if test "$cross_compiling" = yes; then :
8440 gl_cv_header_working_fcntl_h=cross-compiling
8441else
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443/* end confdefs.h. */
8444#include <sys/types.h>
8445 #include <sys/stat.h>
8446 #if HAVE_UNISTD_H
8447 # include <unistd.h>
8448 #else /* on Windows with MSVC */
8449 # include <io.h>
8450 # include <stdlib.h>
8690e634
JK
8451 # defined sleep(n) _sleep ((n) * 1000)
8452 #endif
8453 #include <fcntl.h>
8454 #ifndef O_NOATIME
8455 #define O_NOATIME 0
8456 #endif
8457 #ifndef O_NOFOLLOW
8458 #define O_NOFOLLOW 0
8459 #endif
8460 static int const constants[] =
8461 {
8462 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8463 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8464 };
8465
8466int
8467main ()
8468{
8469
8470 int result = !constants;
8471 #if HAVE_SYMLINK
8472 {
8473 static char const sym[] = "conftest.sym";
a512b375
JB
8474 if (symlink ("/dev/null", sym) != 0)
8475 result |= 2;
8476 else
8477 {
8478 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8479 if (fd >= 0)
8480 {
8481 close (fd);
8482 result |= 4;
8483 }
8484 }
8485 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
8486 result |= 2;
8487 else
8488 {
8489 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8490 if (fd >= 0)
8491 {
8492 close (fd);
8493 result |= 4;
8494 }
8495 }
8496 unlink (sym);
8497 }
8498 #endif
8499 {
8500 static char const file[] = "confdefs.h";
8501 int fd = open (file, O_RDONLY | O_NOATIME);
8502 if (fd < 0)
8503 result |= 8;
8504 else
8505 {
8506 struct stat st0;
8507 if (fstat (fd, &st0) != 0)
8508 result |= 16;
8509 else
8510 {
8511 char c;
8512 sleep (1);
8513 if (read (fd, &c, 1) != 1)
8514 result |= 24;
8515 else
8516 {
8517 if (close (fd) != 0)
8518 result |= 32;
8519 else
8520 {
8521 struct stat st1;
8522 if (stat (file, &st1) != 0)
8523 result |= 40;
8524 else
8525 if (st0.st_atime != st1.st_atime)
8526 result |= 64;
8527 }
8528 }
8529 }
8530 }
8531 }
8532 return result;
8533 ;
8534 return 0;
8535}
8536_ACEOF
8537if ac_fn_c_try_run "$LINENO"; then :
8538 gl_cv_header_working_fcntl_h=yes
8539else
8540 case $? in #(
8541 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8542 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8543 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8544 *) gl_cv_header_working_fcntl_h='no';;
8545 esac
8546fi
8547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8548 conftest.$ac_objext conftest.beam conftest.$ac_ext
8549fi
8550
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8553$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8554
8555 case $gl_cv_header_working_fcntl_h in #(
8556 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8557 *) ac_val=1;;
8558 esac
8559
8560cat >>confdefs.h <<_ACEOF
8561#define HAVE_WORKING_O_NOATIME $ac_val
8562_ACEOF
8563
8564
8565 case $gl_cv_header_working_fcntl_h in #(
8566 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8567 *) ac_val=1;;
8568 esac
8569
8570cat >>confdefs.h <<_ACEOF
8571#define HAVE_WORKING_O_NOFOLLOW $ac_val
8572_ACEOF
8573
8574
3574124b 8575ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
8576if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8577 ac_have_decl=1
8578else
8579 ac_have_decl=0
8580fi
8581
8582cat >>confdefs.h <<_ACEOF
8583#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8584_ACEOF
8585
8586
8690e634
JK
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8588$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8589if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593/* end confdefs.h. */
8594
8595#include <features.h>
8596#ifdef __GNU_LIBRARY__
8597 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8598 Lucky GNU user
8599 #endif
8600#endif
8601#ifdef __UCLIBC__
8602 Lucky user
8603#endif
8604
8605_ACEOF
8606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607 $EGREP "Lucky" >/dev/null 2>&1; then :
8608 ac_cv_gnu_library_2_1=yes
8609else
8610 ac_cv_gnu_library_2_1=no
8611fi
8612rm -f conftest*
8613
8614
8615
8616fi
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8618$as_echo "$ac_cv_gnu_library_2_1" >&6; }
8619
8620 GLIBC21="$ac_cv_gnu_library_2_1"
8621
8622
8623
88b48903
WN
8624
8625
8690e634
JK
8626 GNULIB_BTOWC=0;
8627 GNULIB_WCTOB=0;
8628 GNULIB_MBSINIT=0;
8629 GNULIB_MBRTOWC=0;
8630 GNULIB_MBRLEN=0;
8631 GNULIB_MBSRTOWCS=0;
8632 GNULIB_MBSNRTOWCS=0;
8633 GNULIB_WCRTOMB=0;
8634 GNULIB_WCSRTOMBS=0;
8635 GNULIB_WCSNRTOMBS=0;
8636 GNULIB_WCWIDTH=0;
8637 GNULIB_WMEMCHR=0;
8638 GNULIB_WMEMCMP=0;
8639 GNULIB_WMEMCPY=0;
8640 GNULIB_WMEMMOVE=0;
8641 GNULIB_WMEMSET=0;
8642 GNULIB_WCSLEN=0;
8643 GNULIB_WCSNLEN=0;
8644 GNULIB_WCSCPY=0;
8645 GNULIB_WCPCPY=0;
8646 GNULIB_WCSNCPY=0;
8647 GNULIB_WCPNCPY=0;
8648 GNULIB_WCSCAT=0;
8649 GNULIB_WCSNCAT=0;
8650 GNULIB_WCSCMP=0;
8651 GNULIB_WCSNCMP=0;
8652 GNULIB_WCSCASECMP=0;
8653 GNULIB_WCSNCASECMP=0;
8654 GNULIB_WCSCOLL=0;
8655 GNULIB_WCSXFRM=0;
8656 GNULIB_WCSDUP=0;
8657 GNULIB_WCSCHR=0;
8658 GNULIB_WCSRCHR=0;
8659 GNULIB_WCSCSPN=0;
8660 GNULIB_WCSSPN=0;
8661 GNULIB_WCSPBRK=0;
8662 GNULIB_WCSSTR=0;
8663 GNULIB_WCSTOK=0;
8664 GNULIB_WCSWIDTH=0;
8665 HAVE_BTOWC=1;
8666 HAVE_MBSINIT=1;
8667 HAVE_MBRTOWC=1;
8668 HAVE_MBRLEN=1;
8669 HAVE_MBSRTOWCS=1;
8670 HAVE_MBSNRTOWCS=1;
8671 HAVE_WCRTOMB=1;
8672 HAVE_WCSRTOMBS=1;
8673 HAVE_WCSNRTOMBS=1;
8674 HAVE_WMEMCHR=1;
8675 HAVE_WMEMCMP=1;
8676 HAVE_WMEMCPY=1;
8677 HAVE_WMEMMOVE=1;
8678 HAVE_WMEMSET=1;
8679 HAVE_WCSLEN=1;
8680 HAVE_WCSNLEN=1;
8681 HAVE_WCSCPY=1;
8682 HAVE_WCPCPY=1;
8683 HAVE_WCSNCPY=1;
8684 HAVE_WCPNCPY=1;
8685 HAVE_WCSCAT=1;
8686 HAVE_WCSNCAT=1;
8687 HAVE_WCSCMP=1;
8688 HAVE_WCSNCMP=1;
8689 HAVE_WCSCASECMP=1;
8690 HAVE_WCSNCASECMP=1;
8691 HAVE_WCSCOLL=1;
8692 HAVE_WCSXFRM=1;
8693 HAVE_WCSDUP=1;
8694 HAVE_WCSCHR=1;
8695 HAVE_WCSRCHR=1;
8696 HAVE_WCSCSPN=1;
8697 HAVE_WCSSPN=1;
8698 HAVE_WCSPBRK=1;
8699 HAVE_WCSSTR=1;
8700 HAVE_WCSTOK=1;
8701 HAVE_WCSWIDTH=1;
8702 HAVE_DECL_WCTOB=1;
8703 HAVE_DECL_WCWIDTH=1;
8704 REPLACE_MBSTATE_T=0;
8705 REPLACE_BTOWC=0;
8706 REPLACE_WCTOB=0;
8707 REPLACE_MBSINIT=0;
8708 REPLACE_MBRTOWC=0;
8709 REPLACE_MBRLEN=0;
8710 REPLACE_MBSRTOWCS=0;
8711 REPLACE_MBSNRTOWCS=0;
8712 REPLACE_WCRTOMB=0;
8713 REPLACE_WCSRTOMBS=0;
8714 REPLACE_WCSNRTOMBS=0;
8715 REPLACE_WCWIDTH=0;
8716 REPLACE_WCSWIDTH=0;
8717
8718
8719
8720
8721
8722
8723
8724
8690e634
JK
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8726$as_echo_n "checking for a traditional japanese locale... " >&6; }
8727if test "${gt_cv_locale_ja+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8729else
8730
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
8733
8734#include <locale.h>
8735#include <time.h>
8736#if HAVE_LANGINFO_CODESET
8737# include <langinfo.h>
8738#endif
8739#include <stdlib.h>
8740#include <string.h>
8741struct tm t;
8742char buf[16];
8743int main ()
8744{
8745 const char *p;
8746 /* Check whether the given locale name is recognized by the system. */
8747#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8748 /* On native Windows, setlocale(category, "") looks at the system settings,
8749 not at the environment variables. Also, when an encoding suffix such
8750 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8751 category of the locale to "C". */
8752 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8753 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8754 return 1;
8755#else
8756 if (setlocale (LC_ALL, "") == NULL) return 1;
8757#endif
8758 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8759 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8760 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8761 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8762 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8763 some unit tests fail.
8764 On MirBSD 10, when an unsupported locale is specified, setlocale()
8765 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8766#if HAVE_LANGINFO_CODESET
8767 {
8768 const char *cs = nl_langinfo (CODESET);
8769 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8770 || strcmp (cs, "UTF-8") == 0)
8771 return 1;
8772 }
8773#endif
8774#ifdef __CYGWIN__
8775 /* On Cygwin, avoid locale names without encoding suffix, because the
8776 locale_charset() function relies on the encoding suffix. Note that
8777 LC_ALL is set on the command line. */
8778 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8779#endif
8780 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8781 on Cygwin 1.5.x. */
8782 if (MB_CUR_MAX == 1)
8783 return 1;
8784 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8785 This excludes the UTF-8 encoding (except on MirBSD). */
8786 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8787 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8788 for (p = buf; *p != '\0'; p++)
8789 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8790 return 1;
8791 return 0;
8792}
8793
8794_ACEOF
8795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8796 (eval $ac_link) 2>&5
8797 ac_status=$?
8798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8800 case "$host_os" in
8801 # Handle native Windows specially, because there setlocale() interprets
8802 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8803 # "fr" or "fra" as "French" or "French_France.1252",
8804 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8805 # "ja" as "Japanese" or "Japanese_Japan.932",
8806 # and similar.
8807 mingw*)
8808 # Note that on native Windows, the Japanese locale is
8809 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8810 # cannot use it here.
8811 gt_cv_locale_ja=none
8812 ;;
8813 *)
8814 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8815 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8816 # configure script would override the LC_ALL setting. Likewise for
8817 # LC_CTYPE, which is also set at the beginning of the configure script.
8818 # Test for the AIX locale name.
8819 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8820 gt_cv_locale_ja=ja_JP
8821 else
8822 # Test for the locale name with explicit encoding suffix.
8823 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8824 gt_cv_locale_ja=ja_JP.EUC-JP
8825 else
8826 # Test for the HP-UX, OSF/1, NetBSD locale name.
8827 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8828 gt_cv_locale_ja=ja_JP.eucJP
8829 else
8830 # Test for the IRIX, FreeBSD locale name.
8831 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8832 gt_cv_locale_ja=ja_JP.EUC
8833 else
8834 # Test for the Solaris 7 locale name.
8835 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836 gt_cv_locale_ja=ja
8837 else
8838 # Special test for NetBSD 1.6.
8839 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8840 gt_cv_locale_ja=ja_JP.eucJP
8841 else
8842 # None found.
8843 gt_cv_locale_ja=none
8844 fi
8845 fi
8846 fi
8847 fi
8848 fi
8849 fi
8850 ;;
8851 esac
8852 fi
8853 rm -fr conftest*
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8857$as_echo "$gt_cv_locale_ja" >&6; }
8858 LOCALE_JA=$gt_cv_locale_ja
8859
8860
8861
8862
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8865$as_echo_n "checking for a transitional chinese locale... " >&6; }
8866if test "${gt_cv_locale_zh_CN+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868else
8869
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871/* end confdefs.h. */
8872
8873#include <locale.h>
8874#include <stdlib.h>
8875#include <time.h>
8876#if HAVE_LANGINFO_CODESET
8877# include <langinfo.h>
8878#endif
8879#include <stdlib.h>
8880#include <string.h>
8881struct tm t;
8882char buf[16];
8883int main ()
8884{
8885 const char *p;
8886 /* Check whether the given locale name is recognized by the system. */
8887#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8888 /* On native Windows, setlocale(category, "") looks at the system settings,
8889 not at the environment variables. Also, when an encoding suffix such
8890 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8891 category of the locale to "C". */
8892 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8893 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8894 return 1;
8895#else
8896 if (setlocale (LC_ALL, "") == NULL) return 1;
8897#endif
8898 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8899 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8900 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8901 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8902 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8903 some unit tests fail.
8904 On MirBSD 10, when an unsupported locale is specified, setlocale()
8905 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8906#if HAVE_LANGINFO_CODESET
8907 {
8908 const char *cs = nl_langinfo (CODESET);
8909 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8910 || strcmp (cs, "UTF-8") == 0)
8911 return 1;
8912 }
8913#endif
8914#ifdef __CYGWIN__
8915 /* On Cygwin, avoid locale names without encoding suffix, because the
8916 locale_charset() function relies on the encoding suffix. Note that
8917 LC_ALL is set on the command line. */
8918 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8919#endif
8920 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8921 This excludes the UTF-8 encoding (except on MirBSD). */
8922 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8923 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8924 for (p = buf; *p != '\0'; p++)
8925 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8926 return 1;
8927 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8928 single wide character. This excludes the GB2312 and GBK encodings. */
8929 if (mblen ("\203\062\332\066", 5) != 4)
8930 return 1;
8931 return 0;
8932}
8933
8934_ACEOF
8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8936 (eval $ac_link) 2>&5
8937 ac_status=$?
8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8940 case "$host_os" in
8941 # Handle native Windows specially, because there setlocale() interprets
8942 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8943 # "fr" or "fra" as "French" or "French_France.1252",
8944 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8945 # "ja" as "Japanese" or "Japanese_Japan.932",
8946 # and similar.
8947 mingw*)
8948 # Test for the hypothetical native Windows locale name.
8949 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8950 gt_cv_locale_zh_CN=Chinese_China.54936
8951 else
8952 # None found.
8953 gt_cv_locale_zh_CN=none
8954 fi
8955 ;;
8956 solaris2.8)
8957 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8958 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8959 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8960 gt_cv_locale_zh_CN=none
8961 ;;
8962 *)
8963 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8964 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8965 # configure script would override the LC_ALL setting. Likewise for
8966 # LC_CTYPE, which is also set at the beginning of the configure script.
8967 # Test for the locale name without encoding suffix.
8968 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8969 gt_cv_locale_zh_CN=zh_CN
8970 else
8971 # Test for the locale name with explicit encoding suffix.
8972 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8973 gt_cv_locale_zh_CN=zh_CN.GB18030
8974 else
8975 # None found.
8976 gt_cv_locale_zh_CN=none
8977 fi
8978 fi
8979 ;;
8980 esac
8981 else
8982 # If there was a link error, due to mblen(), the system is so old that
8983 # it certainly doesn't have a chinese locale.
8984 gt_cv_locale_zh_CN=none
8985 fi
8986 rm -fr conftest*
8987
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8990$as_echo "$gt_cv_locale_zh_CN" >&6; }
8991 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8992
8993
8994
8995
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8997$as_echo_n "checking for a french Unicode locale... " >&6; }
8998if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000else
9001
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h. */
9004
9005#include <locale.h>
9006#include <time.h>
9007#if HAVE_LANGINFO_CODESET
9008# include <langinfo.h>
9009#endif
9010#include <stdlib.h>
9011#include <string.h>
9012struct tm t;
9013char buf[16];
9014int main () {
9015 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9016 imitates locale dependent behaviour by looking at the environment
9017 variables, and all locales use the UTF-8 encoding. */
9018#if !(defined __BEOS__ || defined __HAIKU__)
9019 /* Check whether the given locale name is recognized by the system. */
9020# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9021 /* On native Windows, setlocale(category, "") looks at the system settings,
9022 not at the environment variables. Also, when an encoding suffix such
9023 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9024 category of the locale to "C". */
9025 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9026 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9027 return 1;
9028# else
9029 if (setlocale (LC_ALL, "") == NULL) return 1;
9030# endif
9031 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9032 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9033 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9034 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9035 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9036 some unit tests fail. */
9037# if HAVE_LANGINFO_CODESET
9038 {
9039 const char *cs = nl_langinfo (CODESET);
9040 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9041 return 1;
9042 }
9043# endif
9044# ifdef __CYGWIN__
9045 /* On Cygwin, avoid locale names without encoding suffix, because the
9046 locale_charset() function relies on the encoding suffix. Note that
9047 LC_ALL is set on the command line. */
9048 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9049# endif
9050 /* Check whether in the abbreviation of the second month, the second
9051 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9052 two bytes long, with UTF-8 encoding. */
9053 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9054 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9055 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9056 return 1;
9057#endif
9058#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9059 /* Check whether the decimal separator is a comma.
9060 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9061 are nl_langinfo(RADIXCHAR) are both ".". */
9062 if (localeconv () ->decimal_point[0] != ',') return 1;
9063#endif
9064 return 0;
9065}
9066
9067_ACEOF
9068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9069 (eval $ac_link) 2>&5
9070 ac_status=$?
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9073 case "$host_os" in
9074 # Handle native Windows specially, because there setlocale() interprets
9075 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9076 # "fr" or "fra" as "French" or "French_France.1252",
9077 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9078 # "ja" as "Japanese" or "Japanese_Japan.932",
9079 # and similar.
9080 mingw*)
9081 # Test for the hypothetical native Windows locale name.
9082 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9083 gt_cv_locale_fr_utf8=French_France.65001
9084 else
9085 # None found.
9086 gt_cv_locale_fr_utf8=none
9087 fi
9088 ;;
9089 *)
9090 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9091 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9092 # configure script would override the LC_ALL setting. Likewise for
9093 # LC_CTYPE, which is also set at the beginning of the configure script.
9094 # Test for the usual locale name.
9095 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9096 gt_cv_locale_fr_utf8=fr_FR
9097 else
9098 # Test for the locale name with explicit encoding suffix.
9099 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9100 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9101 else
9102 # Test for the Solaris 7 locale name.
9103 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9104 gt_cv_locale_fr_utf8=fr.UTF-8
9105 else
9106 # None found.
9107 gt_cv_locale_fr_utf8=none
9108 fi
9109 fi
9110 fi
9111 ;;
9112 esac
9113 fi
9114 rm -fr conftest*
9115
9116fi
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9118$as_echo "$gt_cv_locale_fr_utf8" >&6; }
9119 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9120
9121
9122
9123
9124
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9126$as_echo_n "checking for a traditional french locale... " >&6; }
9127if test "${gt_cv_locale_fr+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9129else
9130
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h. */
9133
9134#include <locale.h>
9135#include <time.h>
9136#if HAVE_LANGINFO_CODESET
9137# include <langinfo.h>
9138#endif
9139#include <stdlib.h>
9140#include <string.h>
9141struct tm t;
9142char buf[16];
9143int main () {
9144 /* Check whether the given locale name is recognized by the system. */
9145#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9146 /* On native Windows, setlocale(category, "") looks at the system settings,
9147 not at the environment variables. Also, when an encoding suffix such
9148 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9149 category of the locale to "C". */
9150 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9151 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9152 return 1;
9153#else
9154 if (setlocale (LC_ALL, "") == NULL) return 1;
9155#endif
9156 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9157 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9158 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9159 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9160 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9161 some unit tests fail.
9162 On MirBSD 10, when an unsupported locale is specified, setlocale()
9163 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9164#if HAVE_LANGINFO_CODESET
9165 {
9166 const char *cs = nl_langinfo (CODESET);
9167 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9168 || strcmp (cs, "UTF-8") == 0)
9169 return 1;
9170 }
9171#endif
9172#ifdef __CYGWIN__
9173 /* On Cygwin, avoid locale names without encoding suffix, because the
9174 locale_charset() function relies on the encoding suffix. Note that
9175 LC_ALL is set on the command line. */
9176 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9177#endif
9178 /* Check whether in the abbreviation of the second month, the second
9179 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9180 one byte long. This excludes the UTF-8 encoding. */
9181 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9182 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9183#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9184 /* Check whether the decimal separator is a comma.
9185 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9186 are nl_langinfo(RADIXCHAR) are both ".". */
9187 if (localeconv () ->decimal_point[0] != ',') return 1;
9188#endif
9189 return 0;
9190}
9191
9192_ACEOF
9193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9194 (eval $ac_link) 2>&5
9195 ac_status=$?
9196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9197 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9198 case "$host_os" in
9199 # Handle native Windows specially, because there setlocale() interprets
9200 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9201 # "fr" or "fra" as "French" or "French_France.1252",
9202 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9203 # "ja" as "Japanese" or "Japanese_Japan.932",
9204 # and similar.
9205 mingw*)
9206 # Test for the native Windows locale name.
9207 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9208 gt_cv_locale_fr=French_France.1252
9209 else
9210 # None found.
9211 gt_cv_locale_fr=none
9212 fi
9213 ;;
9214 *)
9215 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9216 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9217 # configure script would override the LC_ALL setting. Likewise for
9218 # LC_CTYPE, which is also set at the beginning of the configure script.
9219 # Test for the usual locale name.
9220 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9221 gt_cv_locale_fr=fr_FR
9222 else
9223 # Test for the locale name with explicit encoding suffix.
9224 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9225 gt_cv_locale_fr=fr_FR.ISO-8859-1
9226 else
9227 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9228 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9229 gt_cv_locale_fr=fr_FR.ISO8859-1
9230 else
9231 # Test for the HP-UX locale name.
9232 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9233 gt_cv_locale_fr=fr_FR.iso88591
9234 else
9235 # Test for the Solaris 7 locale name.
9236 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9237 gt_cv_locale_fr=fr
9238 else
9239 # None found.
9240 gt_cv_locale_fr=none
9241 fi
9242 fi
9243 fi
9244 fi
9245 fi
9246 ;;
9247 esac
9248 fi
9249 rm -fr conftest*
9250
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9253$as_echo "$gt_cv_locale_fr" >&6; }
9254 LOCALE_FR=$gt_cv_locale_fr
9255
9256
9257
9258
9259
9260
9261
8690e634
JK
9262 GNULIB_FFSL=0;
9263 GNULIB_FFSLL=0;
9264 GNULIB_MEMCHR=0;
9265 GNULIB_MEMMEM=0;
9266 GNULIB_MEMPCPY=0;
9267 GNULIB_MEMRCHR=0;
9268 GNULIB_RAWMEMCHR=0;
9269 GNULIB_STPCPY=0;
9270 GNULIB_STPNCPY=0;
9271 GNULIB_STRCHRNUL=0;
9272 GNULIB_STRDUP=0;
9273 GNULIB_STRNCAT=0;
9274 GNULIB_STRNDUP=0;
9275 GNULIB_STRNLEN=0;
9276 GNULIB_STRPBRK=0;
9277 GNULIB_STRSEP=0;
9278 GNULIB_STRSTR=0;
9279 GNULIB_STRCASESTR=0;
9280 GNULIB_STRTOK_R=0;
9281 GNULIB_MBSLEN=0;
9282 GNULIB_MBSNLEN=0;
9283 GNULIB_MBSCHR=0;
9284 GNULIB_MBSRCHR=0;
9285 GNULIB_MBSSTR=0;
9286 GNULIB_MBSCASECMP=0;
9287 GNULIB_MBSNCASECMP=0;
9288 GNULIB_MBSPCASECMP=0;
9289 GNULIB_MBSCASESTR=0;
9290 GNULIB_MBSCSPN=0;
9291 GNULIB_MBSPBRK=0;
9292 GNULIB_MBSSPN=0;
9293 GNULIB_MBSSEP=0;
9294 GNULIB_MBSTOK_R=0;
9295 GNULIB_STRERROR=0;
9296 GNULIB_STRERROR_R=0;
9297 GNULIB_STRSIGNAL=0;
9298 GNULIB_STRVERSCMP=0;
9299 HAVE_MBSLEN=0;
9300 HAVE_FFSL=1;
9301 HAVE_FFSLL=1;
9302 HAVE_MEMCHR=1;
9303 HAVE_DECL_MEMMEM=1;
9304 HAVE_MEMPCPY=1;
9305 HAVE_DECL_MEMRCHR=1;
9306 HAVE_RAWMEMCHR=1;
9307 HAVE_STPCPY=1;
9308 HAVE_STPNCPY=1;
9309 HAVE_STRCHRNUL=1;
9310 HAVE_DECL_STRDUP=1;
9311 HAVE_DECL_STRNDUP=1;
9312 HAVE_DECL_STRNLEN=1;
9313 HAVE_STRPBRK=1;
9314 HAVE_STRSEP=1;
9315 HAVE_STRCASESTR=1;
9316 HAVE_DECL_STRTOK_R=1;
9317 HAVE_DECL_STRERROR_R=1;
9318 HAVE_DECL_STRSIGNAL=1;
9319 HAVE_STRVERSCMP=1;
9320 REPLACE_MEMCHR=0;
9321 REPLACE_MEMMEM=0;
9322 REPLACE_STPNCPY=0;
9323 REPLACE_STRDUP=0;
9324 REPLACE_STRSTR=0;
9325 REPLACE_STRCASESTR=0;
9326 REPLACE_STRCHRNUL=0;
9327 REPLACE_STRERROR=0;
9328 REPLACE_STRERROR_R=0;
9329 REPLACE_STRNCAT=0;
9330 REPLACE_STRNDUP=0;
9331 REPLACE_STRNLEN=0;
9332 REPLACE_STRSIGNAL=0;
9333 REPLACE_STRTOK_R=0;
9334 UNDEFINE_STRTOK_R=0;
9335
9336
9337
9338
9339
9340 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9341 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9342 # irrelevant for anonymous mappings.
9343 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9344if test "x$ac_cv_func_mmap" = x""yes; then :
9345 gl_have_mmap=yes
9346else
9347 gl_have_mmap=no
9348fi
9349
9350
9351 # Try to allow MAP_ANONYMOUS.
9352 gl_have_mmap_anonymous=no
9353 if test $gl_have_mmap = yes; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9355$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h. */
9358
9359#include <sys/mman.h>
9360#ifdef MAP_ANONYMOUS
9361 I cannot identify this map
9362#endif
9363
9364_ACEOF
9365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9367 gl_have_mmap_anonymous=yes
9368fi
9369rm -f conftest*
9370
9371 if test $gl_have_mmap_anonymous != yes; then
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h. */
9374
9375#include <sys/mman.h>
9376#ifdef MAP_ANON
9377 I cannot identify this map
9378#endif
9379
9380_ACEOF
9381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9382 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9383
9384$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9385
9386 gl_have_mmap_anonymous=yes
9387fi
9388rm -f conftest*
9389
9390 fi
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9392$as_echo "$gl_have_mmap_anonymous" >&6; }
9393 if test $gl_have_mmap_anonymous = yes; then
9394
9395$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9396
9397 fi
9398 fi
9399
9400
8690e634
JK
9401
9402
9403
9404
9405 if test $HAVE_MEMCHR = 1; then
9406 # Detect platform-specific bugs in some versions of glibc:
9407 # memchr should not dereference anything with length 0
9408 # http://bugzilla.redhat.com/499689
9409 # memchr should not dereference overestimated length after a match
9410 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9411 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9412 # Assume that memchr works on platforms that lack mprotect.
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9414$as_echo_n "checking whether memchr works... " >&6; }
9415if test "${gl_cv_func_memchr_works+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417else
9418 if test "$cross_compiling" = yes; then :
9419 gl_cv_func_memchr_works="guessing no"
9420else
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h. */
9423
9424#include <string.h>
9425#if HAVE_SYS_MMAN_H
9426# include <fcntl.h>
9427# include <unistd.h>
9428# include <sys/types.h>
9429# include <sys/mman.h>
9430# ifndef MAP_FILE
9431# define MAP_FILE 0
9432# endif
9433#endif
9434
9435int
9436main ()
9437{
9438
9439 int result = 0;
9440 char *fence = NULL;
9441#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9442# if HAVE_MAP_ANONYMOUS
9443 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9444 const int fd = -1;
9445# else /* !HAVE_MAP_ANONYMOUS */
9446 const int flags = MAP_FILE | MAP_PRIVATE;
9447 int fd = open ("/dev/zero", O_RDONLY, 0666);
9448 if (fd >= 0)
9449# endif
9450 {
9451 int pagesize = getpagesize ();
9452 char *two_pages =
9453 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9454 flags, fd, 0);
9455 if (two_pages != (char *)(-1)
9456 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9457 fence = two_pages + pagesize;
9458 }
9459#endif
9460 if (fence)
9461 {
9462 if (memchr (fence, 0, 0))
9463 result |= 1;
9464 strcpy (fence - 9, "12345678");
9465 if (memchr (fence - 9, 0, 79) != fence - 1)
9466 result |= 2;
9467 if (memchr (fence - 1, 0, 3) != fence - 1)
9468 result |= 4;
9469 }
9470 return result;
9471
9472 ;
9473 return 0;
9474}
9475_ACEOF
9476if ac_fn_c_try_run "$LINENO"; then :
9477 gl_cv_func_memchr_works=yes
9478else
9479 gl_cv_func_memchr_works=no
9480fi
9481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9482 conftest.$ac_objext conftest.beam conftest.$ac_ext
9483fi
9484
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9487$as_echo "$gl_cv_func_memchr_works" >&6; }
9488 if test "$gl_cv_func_memchr_works" != yes; then
9489 REPLACE_MEMCHR=1
9490 fi
9491 fi
9492
3574124b 9493ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
9494if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9495 ac_have_decl=1
9496else
9497 ac_have_decl=0
9498fi
9499
9500cat >>confdefs.h <<_ACEOF
9501#define HAVE_DECL_MEMMEM $ac_have_decl
9502_ACEOF
9503
9504
9505
9506
9507
8690e634
JK
9508 for ac_func in memmem
9509do :
9510 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9511if test "x$ac_cv_func_memmem" = x""yes; then :
9512 cat >>confdefs.h <<_ACEOF
9513#define HAVE_MEMMEM 1
9514_ACEOF
9515
9516fi
9517done
9518
9519 if test $ac_cv_func_memmem = yes; then
9520 HAVE_MEMMEM=1
9521 else
9522 HAVE_MEMMEM=0
9523 fi
9524
8690e634
JK
9525 if test $ac_cv_have_decl_memmem = no; then
9526 HAVE_DECL_MEMMEM=0
9527 else
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9529$as_echo_n "checking whether memmem works... " >&6; }
9530if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532else
9533 if test "$cross_compiling" = yes; then :
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h. */
9536
9537#ifdef __GNU_LIBRARY__
9538 #include <features.h>
9539 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9540 || __GLIBC_MINOR__ > 12)) \
9541 || (__GLIBC__ > 2)) \
9542 || defined __UCLIBC__
9543 Lucky user
9544 #endif
9545#elif defined __CYGWIN__
9546 #include <cygwin/version.h>
9547 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9548 Lucky user
9549 #endif
9550#else
9551 Lucky user
9552#endif
9553
9554_ACEOF
9555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9556 $EGREP "Lucky user" >/dev/null 2>&1; then :
9557 gl_cv_func_memmem_works_always="guessing yes"
9558else
9559 gl_cv_func_memmem_works_always="guessing no"
9560fi
9561rm -f conftest*
9562
9563
9564else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h. */
9567
9568#include <string.h> /* for memmem */
9569#define P "_EF_BF_BD"
9570#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9571#define NEEDLE P P P P P
9572
9573int
9574main ()
9575{
9576
9577 int result = 0;
9578 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9579 result |= 1;
9580 /* Check for empty needle behavior. */
9581 {
9582 const char *haystack = "AAA";
9583 if (memmem (haystack, 3, NULL, 0) != haystack)
9584 result |= 2;
9585 }
9586 return result;
9587
9588 ;
9589 return 0;
9590}
9591_ACEOF
9592if ac_fn_c_try_run "$LINENO"; then :
9593 gl_cv_func_memmem_works_always=yes
9594else
9595 gl_cv_func_memmem_works_always=no
9596fi
9597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9598 conftest.$ac_objext conftest.beam conftest.$ac_ext
9599fi
9600
9601
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9604$as_echo "$gl_cv_func_memmem_works_always" >&6; }
9605 case "$gl_cv_func_memmem_works_always" in
9606 *yes) ;;
9607 *)
9608 REPLACE_MEMMEM=1
9609 ;;
9610 esac
9611 fi
9612 :
9613
38ec2207
PA
9614
9615
8690e634
JK
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9617$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9618if test "${ac_cv_header_stdbool_h+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620else
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h. */
9623
9624 #include <stdbool.h>
9625 #ifndef bool
9626 "error: bool is not defined"
9627 #endif
9628 #ifndef false
9629 "error: false is not defined"
9630 #endif
9631 #if false
9632 "error: false is not 0"
9633 #endif
9634 #ifndef true
9635 "error: true is not defined"
9636 #endif
9637 #if true != 1
9638 "error: true is not 1"
9639 #endif
9640 #ifndef __bool_true_false_are_defined
9641 "error: __bool_true_false_are_defined is not defined"
9642 #endif
9643
9644 struct s { _Bool s: 1; _Bool t; } s;
9645
9646 char a[true == 1 ? 1 : -1];
9647 char b[false == 0 ? 1 : -1];
9648 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9649 char d[(bool) 0.5 == true ? 1 : -1];
9650 /* See body of main program for 'e'. */
9651 char f[(_Bool) 0.0 == false ? 1 : -1];
9652 char g[true];
9653 char h[sizeof (_Bool)];
9654 char i[sizeof s.t];
9655 enum { j = false, k = true, l = false * true, m = true * 256 };
9656 /* The following fails for
9657 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9658 _Bool n[m];
9659 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9660 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9661 /* Catch a bug in an HP-UX C compiler. See
9662 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9663 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9664 */
9665 _Bool q = true;
9666 _Bool *pq = &q;
9667
9668int
9669main ()
9670{
9671
9672 bool e = &s;
9673 *pq |= q;
9674 *pq |= ! q;
9675 /* Refer to every declared value, to avoid compiler optimizations. */
9676 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9677 + !m + !n + !o + !p + !q + !pq);
9678
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683if ac_fn_c_try_compile "$LINENO"; then :
9684 ac_cv_header_stdbool_h=yes
9685else
9686 ac_cv_header_stdbool_h=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689fi
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9691$as_echo "$ac_cv_header_stdbool_h" >&6; }
9692 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9693if test "x$ac_cv_type__Bool" = x""yes; then :
9694
9695cat >>confdefs.h <<_ACEOF
9696#define HAVE__BOOL 1
9697_ACEOF
9698
9699
9700fi
9701
9702
9703
9704 REPLACE_NULL=0;
9705 HAVE_WCHAR_T=1;
9706
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9709$as_echo_n "checking for wchar_t... " >&6; }
9710if test "${gt_cv_c_wchar_t+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
9712else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h. */
9715#include <stddef.h>
9716 wchar_t foo = (wchar_t)'\0';
9717int
9718main ()
9719{
9720
9721 ;
9722 return 0;
9723}
9724_ACEOF
9725if ac_fn_c_try_compile "$LINENO"; then :
9726 gt_cv_c_wchar_t=yes
9727else
9728 gt_cv_c_wchar_t=no
9729fi
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731fi
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9733$as_echo "$gt_cv_c_wchar_t" >&6; }
9734 if test $gt_cv_c_wchar_t = yes; then
9735
9736$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9737
9738 fi
9739
63ce7108
TT
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9741$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9742if test "${ac_cv_c_restrict+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9744else
9745 ac_cv_c_restrict=no
9746 # The order here caters to the fact that C++ does not require restrict.
9747 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749/* end confdefs.h. */
9750typedef int * int_ptr;
9751 int foo (int_ptr $ac_kw ip) {
9752 return ip[0];
9753 }
9754int
9755main ()
9756{
9757int s[1];
9758 int * $ac_kw t = s;
9759 t[0] = 0;
9760 return foo(t)
9761 ;
9762 return 0;
9763}
9764_ACEOF
9765if ac_fn_c_try_compile "$LINENO"; then :
9766 ac_cv_c_restrict=$ac_kw
9767fi
9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 test "$ac_cv_c_restrict" != no && break
9770 done
9771
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9774$as_echo "$ac_cv_c_restrict" >&6; }
9775
9776 case $ac_cv_c_restrict in
9777 restrict) ;;
9778 no) $as_echo "#define restrict /**/" >>confdefs.h
9779 ;;
9780 *) cat >>confdefs.h <<_ACEOF
9781#define restrict $ac_cv_c_restrict
9782_ACEOF
9783 ;;
9784 esac
9785
9786
9787
9788
9789
8690e634
JK
9790
9791
9792
9793
9794
9795
9796
9797 if test $gl_cv_have_include_next = yes; then
9798 gl_cv_next_string_h='<'string.h'>'
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9801$as_echo_n "checking absolute name of <string.h>... " >&6; }
9802if test "${gl_cv_next_string_h+set}" = set; then :
9803 $as_echo_n "(cached) " >&6
9804else
9805
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h. */
9808#include <string.h>
9809
9810_ACEOF
9811 case "$host_os" in
9812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9813 *) gl_absname_cpp="$ac_cpp" ;;
9814 esac
9815
9816 case "$host_os" in
c971b7fa
PA
9817 mingw*)
9818 gl_dirsep_regex='[/\\]'
9819 ;;
9820 *)
9821 gl_dirsep_regex='\/'
9822 ;;
9823 esac
9824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9825
8690e634
JK
9826 gl_header_literal_regex=`echo 'string.h' \
9827 | sed -e "$gl_make_literal_regex_sed"`
9828 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9829 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9830 s|^/[^/]|//&|
9831 p
9832 q
9833 }'
9834 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9835 sed -n "$gl_absolute_header_sed"`'"'
9836
9837
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9840$as_echo "$gl_cv_next_string_h" >&6; }
9841 fi
9842 NEXT_STRING_H=$gl_cv_next_string_h
9843
9844 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9846 gl_next_as_first_directive='<'string.h'>'
9847 else
9848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9849 gl_next_as_first_directive=$gl_cv_next_string_h
9850 fi
9851 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9852
9853
9854
9855
9856
9857
9858 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
9859 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9861$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9862if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9863 $as_echo_n "(cached) " >&6
9864else
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h. */
9867#include <string.h>
9868
9869int
9870main ()
9871{
9872#undef $gl_func
9873 (void) $gl_func;
9874 ;
9875 return 0;
9876}
9877_ACEOF
9878if ac_fn_c_try_compile "$LINENO"; then :
9879 eval "$as_gl_Symbol=yes"
9880else
9881 eval "$as_gl_Symbol=no"
9882fi
9883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884fi
9885eval ac_res=\$$as_gl_Symbol
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9887$as_echo "$ac_res" >&6; }
9888 eval as_val=\$$as_gl_Symbol
9889 if test "x$as_val" = x""yes; then :
9890 cat >>confdefs.h <<_ACEOF
9891#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9892_ACEOF
9893
9894 eval ac_cv_have_decl_$gl_func=yes
9895fi
9896 done
9897
9898
9899
8839a007 9900
63ce7108
TT
9901
9902 if test "$gl_cv_func_memchr_works" != yes; then
9903 REPLACE_STRSTR=1
9904 else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9906$as_echo_n "checking whether strstr works... " >&6; }
9907if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9909else
9910 if test "$cross_compiling" = yes; then :
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h. */
9913
9914#ifdef __GNU_LIBRARY__
9915 #include <features.h>
9916 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9917 || defined __UCLIBC__
9918 Lucky user
9919 #endif
9920#elif defined __CYGWIN__
9921 #include <cygwin/version.h>
9922 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9923 Lucky user
9924 #endif
9925#else
9926 Lucky user
9927#endif
9928
9929_ACEOF
9930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931 $EGREP "Lucky user" >/dev/null 2>&1; then :
9932 gl_cv_func_strstr_works_always="guessing yes"
9933else
9934 gl_cv_func_strstr_works_always="guessing no"
9935fi
9936rm -f conftest*
9937
9938
9939else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h. */
9942
9943#include <string.h> /* for strstr */
9944#define P "_EF_BF_BD"
9945#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9946#define NEEDLE P P P P P
9947
9948int
9949main ()
9950{
9951return !!strstr (HAYSTACK, NEEDLE);
9952
9953 ;
9954 return 0;
9955}
9956_ACEOF
9957if ac_fn_c_try_run "$LINENO"; then :
9958 gl_cv_func_strstr_works_always=yes
9959else
9960 gl_cv_func_strstr_works_always=no
9961fi
9962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9963 conftest.$ac_objext conftest.beam conftest.$ac_ext
9964fi
9965
9966
9967fi
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9969$as_echo "$gl_cv_func_strstr_works_always" >&6; }
9970 case "$gl_cv_func_strstr_works_always" in
9971 *yes) ;;
9972 *)
9973 REPLACE_STRSTR=1
9974 ;;
9975 esac
9976 fi
9977
9978
09607c9e
TT
9979 GNULIB_FCHMODAT=0;
9980 GNULIB_FSTAT=0;
9981 GNULIB_FSTATAT=0;
9982 GNULIB_FUTIMENS=0;
9983 GNULIB_LCHMOD=0;
9984 GNULIB_LSTAT=0;
9985 GNULIB_MKDIRAT=0;
9986 GNULIB_MKFIFO=0;
9987 GNULIB_MKFIFOAT=0;
9988 GNULIB_MKNOD=0;
9989 GNULIB_MKNODAT=0;
9990 GNULIB_STAT=0;
9991 GNULIB_UTIMENSAT=0;
9992 HAVE_FCHMODAT=1;
9993 HAVE_FSTATAT=1;
9994 HAVE_FUTIMENS=1;
9995 HAVE_LCHMOD=1;
9996 HAVE_LSTAT=1;
9997 HAVE_MKDIRAT=1;
9998 HAVE_MKFIFO=1;
9999 HAVE_MKFIFOAT=1;
10000 HAVE_MKNOD=1;
10001 HAVE_MKNODAT=1;
10002 HAVE_UTIMENSAT=1;
10003 REPLACE_FSTAT=0;
10004 REPLACE_FSTATAT=0;
10005 REPLACE_FUTIMENS=0;
10006 REPLACE_LSTAT=0;
10007 REPLACE_MKDIR=0;
10008 REPLACE_MKFIFO=0;
10009 REPLACE_MKNOD=0;
10010 REPLACE_STAT=0;
10011 REPLACE_UTIMENSAT=0;
10012
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10014$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10015if test "${ac_cv_header_stat_broken+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017else
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019/* end confdefs.h. */
10020#include <sys/types.h>
10021#include <sys/stat.h>
63ce7108 10022
09607c9e
TT
10023#if defined S_ISBLK && defined S_IFDIR
10024extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10025#endif
8839a007 10026
09607c9e
TT
10027#if defined S_ISBLK && defined S_IFCHR
10028extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10029#endif
10030
10031#if defined S_ISLNK && defined S_IFREG
10032extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10033#endif
10034
10035#if defined S_ISSOCK && defined S_IFREG
10036extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10037#endif
8839a007 10038
8839a007 10039_ACEOF
09607c9e
TT
10040if ac_fn_c_try_compile "$LINENO"; then :
10041 ac_cv_header_stat_broken=no
10042else
10043 ac_cv_header_stat_broken=yes
10044fi
10045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046fi
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10048$as_echo "$ac_cv_header_stat_broken" >&6; }
10049if test $ac_cv_header_stat_broken = yes; then
10050
10051$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839a007
PA
10052
10053fi
10054
09607c9e
TT
10055
10056
8839a007
PA
10057ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10058if test "x$ac_cv_type_mode_t" = x""yes; then :
10059
10060else
10061
10062cat >>confdefs.h <<_ACEOF
10063#define mode_t int
10064_ACEOF
10065
10066fi
10067
8839a007
PA
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10069$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10070if test -z "$MKDIR_P"; then
10071 if test "${ac_cv_path_mkdir+set}" = set; then :
10072 $as_echo_n "(cached) " >&6
10073else
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_prog in mkdir gmkdir; do
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10082 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10083 'mkdir (GNU coreutils) '* | \
10084 'mkdir (coreutils) '* | \
10085 'mkdir (fileutils) '4.1*)
10086 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10087 break 3;;
10088 esac
10089 done
10090 done
10091 done
10092IFS=$as_save_IFS
10093
10094fi
10095
10096 if test "${ac_cv_path_mkdir+set}" = set; then
10097 MKDIR_P="$ac_cv_path_mkdir -p"
10098 else
10099 # As a last resort, use the slow shell script. Don't cache a
10100 # value for MKDIR_P within a source directory, because that will
10101 # break other packages using the cache if that directory is
10102 # removed, or if the value is a relative name.
10103 test -d ./--version && rmdir ./--version
10104 MKDIR_P="$ac_install_sh -d"
10105 fi
10106fi
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10108$as_echo "$MKDIR_P" >&6; }
10109
10110
09607c9e
TT
10111
10112ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10113if test "x$ac_cv_type_pid_t" = x""yes; then :
10114
10115else
10116
10117cat >>confdefs.h <<_ACEOF
10118#define pid_t int
10119_ACEOF
10120
10121fi
10122
10123
10124
10125 WINDOWS_64_BIT_OFF_T=0
10126
10127
10128
10129
10130 GNULIB_MKTIME=0;
10131 GNULIB_NANOSLEEP=0;
10132 GNULIB_STRPTIME=0;
10133 GNULIB_TIMEGM=0;
10134 GNULIB_TIME_R=0;
10135 HAVE_DECL_LOCALTIME_R=1;
10136 HAVE_NANOSLEEP=1;
10137 HAVE_STRPTIME=1;
10138 HAVE_TIMEGM=1;
10139 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10140 REPLACE_MKTIME=GNULIB_PORTCHECK;
10141 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10142 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10143
10144
10145
10146
10147
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10149$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10150if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10152else
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h. */
10155#include <time.h>
10156
10157int
10158main ()
10159{
10160static struct timespec x; x.tv_sec = x.tv_nsec;
10161 ;
10162 return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_compile "$LINENO"; then :
10166 gl_cv_sys_struct_timespec_in_time_h=yes
10167else
10168 gl_cv_sys_struct_timespec_in_time_h=no
10169fi
10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10173$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10174
10175 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10176 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10177 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10178 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10179 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10182$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10183if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10185else
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187/* end confdefs.h. */
10188#include <sys/time.h>
10189
10190int
10191main ()
10192{
10193static struct timespec x; x.tv_sec = x.tv_nsec;
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_compile "$LINENO"; then :
10199 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10200else
10201 gl_cv_sys_struct_timespec_in_sys_time_h=no
10202fi
10203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204fi
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10206$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10207 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10208 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10209 else
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10211$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10212if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214else
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h. */
10217#include <pthread.h>
10218
10219int
10220main ()
10221{
10222static struct timespec x; x.tv_sec = x.tv_nsec;
10223 ;
10224 return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_compile "$LINENO"; then :
10228 gl_cv_sys_struct_timespec_in_pthread_h=yes
10229else
10230 gl_cv_sys_struct_timespec_in_pthread_h=no
10231fi
10232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233fi
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10235$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10236 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10237 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10238 fi
10239 fi
10240 fi
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256 if test $gl_cv_have_include_next = yes; then
10257 gl_cv_next_time_h='<'time.h'>'
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10260$as_echo_n "checking absolute name of <time.h>... " >&6; }
10261if test "${gl_cv_next_time_h+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h. */
10267#include <time.h>
10268
10269_ACEOF
10270 case "$host_os" in
10271 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10272 *) gl_absname_cpp="$ac_cpp" ;;
10273 esac
10274
10275 case "$host_os" in
10276 mingw*)
10277 gl_dirsep_regex='[/\\]'
10278 ;;
10279 *)
10280 gl_dirsep_regex='\/'
10281 ;;
10282 esac
10283 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10284
10285 gl_header_literal_regex=`echo 'time.h' \
10286 | sed -e "$gl_make_literal_regex_sed"`
10287 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10288 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10289 s|^/[^/]|//&|
10290 p
10291 q
10292 }'
10293 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10294 sed -n "$gl_absolute_header_sed"`'"'
10295
10296
10297fi
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10299$as_echo "$gl_cv_next_time_h" >&6; }
10300 fi
10301 NEXT_TIME_H=$gl_cv_next_time_h
10302
10303 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10305 gl_next_as_first_directive='<'time.h'>'
10306 else
10307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10308 gl_next_as_first_directive=$gl_cv_next_time_h
10309 fi
10310 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10311
10312
10313
10314
10315
10316
10317
8690e634
JK
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10319$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10320if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10322else
10323 gl_cv_header_wchar_h_correct_inline=yes
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h. */
10326
10327 #define wcstod renamed_wcstod
10328/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10329 <wchar.h>.
10330 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10331 included before <wchar.h>. */
10332#include <stddef.h>
10333#include <stdio.h>
10334#include <time.h>
10335#include <wchar.h>
10336extern int zero (void);
10337int main () { return zero(); }
10338
10339_ACEOF
10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10341 (eval $ac_compile) 2>&5
10342 ac_status=$?
10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344 test $ac_status = 0; }; then
10345 mv conftest.$ac_objext conftest1.$ac_objext
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347/* end confdefs.h. */
10348
10349 #define wcstod renamed_wcstod
10350/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10351 <wchar.h>.
10352 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10353 included before <wchar.h>. */
10354#include <stddef.h>
10355#include <stdio.h>
10356#include <time.h>
10357#include <wchar.h>
10358int zero (void) { return 0; }
10359
10360_ACEOF
10361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10362 (eval $ac_compile) 2>&5
10363 ac_status=$?
10364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365 test $ac_status = 0; }; then
10366 mv conftest.$ac_objext conftest2.$ac_objext
10367 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10368 :
10369 else
10370 gl_cv_header_wchar_h_correct_inline=no
10371 fi
10372 fi
10373 fi
10374 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10375
10376fi
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10378$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10379 if test $gl_cv_header_wchar_h_correct_inline = no; then
10380 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10381This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10382C99 mode. You have four options:
10383 - Add the flag -fgnu89-inline to CC and reconfigure, or
10384 - Fix your include files, using parts of
10385 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10386 - Use a gcc version older than 4.3, or
10387 - Don't use the flags -std=c99 or -std=gnu99.
10388Configuration aborted." "$LINENO" 5
10389 fi
10390
10391
10392
10393
10394
8690e634
JK
10395 if test $ac_cv_header_features_h = yes; then
10396 HAVE_FEATURES_H=1
10397 else
10398 HAVE_FEATURES_H=0
10399 fi
10400
10401
10402
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10404$as_echo_n "checking for wint_t... " >&6; }
10405if test "${gt_cv_c_wint_t+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407else
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h. */
10410
10411/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10412 <wchar.h>.
10413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10414 before <wchar.h>. */
10415#include <stddef.h>
10416#include <stdio.h>
10417#include <time.h>
10418#include <wchar.h>
10419 wint_t foo = (wchar_t)'\0';
10420int
10421main ()
10422{
10423
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_compile "$LINENO"; then :
10429 gt_cv_c_wint_t=yes
10430else
10431 gt_cv_c_wint_t=no
10432fi
10433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10436$as_echo "$gt_cv_c_wint_t" >&6; }
10437 if test $gt_cv_c_wint_t = yes; then
10438
10439$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10440
10441 fi
10442
10443
10444 GNULIB_ISWBLANK=0;
10445 GNULIB_WCTYPE=0;
10446 GNULIB_ISWCTYPE=0;
10447 GNULIB_WCTRANS=0;
10448 GNULIB_TOWCTRANS=0;
10449 HAVE_ISWBLANK=1;
10450 HAVE_WCTYPE_T=1;
10451 HAVE_WCTRANS_T=1;
10452 REPLACE_ISWBLANK=0;
10453
10454
10455
10456
8690e634
JK
10457 if false; then
10458 GL_COND_LIBTOOL_TRUE=
10459 GL_COND_LIBTOOL_FALSE='#'
10460else
10461 GL_COND_LIBTOOL_TRUE='#'
10462 GL_COND_LIBTOOL_FALSE=
10463fi
10464
10465 gl_cond_libtool=false
10466 gl_libdeps=
10467 gl_ltlibdeps=
10468 gl_m4_base='import/m4'
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 gl_source_base='import'
10479
10480
10481 if test $ac_cv_func_alloca_works = no; then
10482 :
10483 fi
10484
10485 # Define an additional variable used in the Makefile substitution.
10486 if test $ac_cv_working_alloca_h = yes; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10488$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10489if test "${gl_cv_rpl_alloca+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491else
10492
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h. */
10495
10496#if defined __GNUC__ || defined _AIX || defined _MSC_VER
10497 Need own alloca
10498#endif
10499
10500_ACEOF
10501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10503 gl_cv_rpl_alloca=yes
10504else
10505 gl_cv_rpl_alloca=no
10506fi
10507rm -f conftest*
10508
10509
10510fi
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10512$as_echo "$gl_cv_rpl_alloca" >&6; }
10513 if test $gl_cv_rpl_alloca = yes; then
10514
10515$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10516
10517 ALLOCA_H=alloca.h
10518 else
10519 ALLOCA_H=
10520 fi
10521 else
10522 ALLOCA_H=alloca.h
10523 fi
10524
10525 if test -n "$ALLOCA_H"; then
10526 GL_GENERATE_ALLOCA_H_TRUE=
10527 GL_GENERATE_ALLOCA_H_FALSE='#'
10528else
10529 GL_GENERATE_ALLOCA_H_TRUE='#'
10530 GL_GENERATE_ALLOCA_H_FALSE=
10531fi
10532
10533
10534
10535 if test "x$datarootdir" = x; then
10536 datarootdir='${datadir}'
10537
10538 fi
10539 if test "x$docdir" = x; then
10540 docdir='${datarootdir}/doc/${PACKAGE}'
10541
10542 fi
10543 if test "x$htmldir" = x; then
10544 htmldir='${docdir}'
10545
10546 fi
10547 if test "x$dvidir" = x; then
10548 dvidir='${docdir}'
10549
10550 fi
10551 if test "x$pdfdir" = x; then
10552 pdfdir='${docdir}'
10553
10554 fi
10555 if test "x$psdir" = x; then
10556 psdir='${docdir}'
10557
10558 fi
10559 if test "x$lispdir" = x; then
10560 lispdir='${datarootdir}/emacs/site-lisp'
10561
10562 fi
10563 if test "x$localedir" = x; then
10564 localedir='${datarootdir}/locale'
10565
10566 fi
10567
10568 pkglibexecdir='${libexecdir}/${PACKAGE}'
10569
10570
10571
10572
10573
10574
63ce7108 10575
e26b6bb0
TT
10576
10577
10578
10579
10580
10581
10582
10583 if test $gl_cv_have_include_next = yes; then
10584 gl_cv_next_dirent_h='<'dirent.h'>'
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10587$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10588if test "${gl_cv_next_dirent_h+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10590else
10591
10592 if test $ac_cv_header_dirent_h = yes; then
10593
10594
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h. */
10597#include <dirent.h>
10598
10599_ACEOF
10600 case "$host_os" in
10601 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10602 *) gl_absname_cpp="$ac_cpp" ;;
10603 esac
10604
10605 case "$host_os" in
10606 mingw*)
10607 gl_dirsep_regex='[/\\]'
10608 ;;
10609 *)
10610 gl_dirsep_regex='\/'
10611 ;;
10612 esac
10613 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10614
10615 gl_header_literal_regex=`echo 'dirent.h' \
10616 | sed -e "$gl_make_literal_regex_sed"`
10617 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10618 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10619 s|^/[^/]|//&|
10620 p
10621 q
10622 }'
10623 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10624 sed -n "$gl_absolute_header_sed"`'"'
10625 else
10626 gl_cv_next_dirent_h='<'dirent.h'>'
10627 fi
10628
10629
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10632$as_echo "$gl_cv_next_dirent_h" >&6; }
10633 fi
10634 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10635
10636 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10638 gl_next_as_first_directive='<'dirent.h'>'
10639 else
10640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10641 gl_next_as_first_directive=$gl_cv_next_dirent_h
10642 fi
10643 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10644
10645
10646
10647
10648 if test $ac_cv_header_dirent_h = yes; then
10649 HAVE_DIRENT_H=1
10650 else
10651 HAVE_DIRENT_H=0
10652 fi
10653
10654
10655
10656 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10657 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10659$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10660if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10661 $as_echo_n "(cached) " >&6
10662else
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664/* end confdefs.h. */
10665#include <dirent.h>
10666
10667int
10668main ()
10669{
10670#undef $gl_func
10671 (void) $gl_func;
10672 ;
10673 return 0;
10674}
10675_ACEOF
10676if ac_fn_c_try_compile "$LINENO"; then :
10677 eval "$as_gl_Symbol=yes"
10678else
10679 eval "$as_gl_Symbol=no"
10680fi
10681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682fi
10683eval ac_res=\$$as_gl_Symbol
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10685$as_echo "$ac_res" >&6; }
10686 eval as_val=\$$as_gl_Symbol
10687 if test "x$as_val" = x""yes; then :
10688 cat >>confdefs.h <<_ACEOF
10689#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10690_ACEOF
10691
10692 eval ac_cv_have_decl_$gl_func=yes
10693fi
10694 done
10695
10696
10697
10698
10699
10700
18848e28
GF
10701
10702 for ac_func in dirfd
10703do :
10704 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
10705if test "x$ac_cv_func_dirfd" = x""yes; then :
10706 cat >>confdefs.h <<_ACEOF
10707#define HAVE_DIRFD 1
10708_ACEOF
10709
10710fi
10711done
10712
10713 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
10714 #include <dirent.h>
10715"
10716if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
10717 ac_have_decl=1
10718else
10719 ac_have_decl=0
10720fi
10721
10722cat >>confdefs.h <<_ACEOF
10723#define HAVE_DECL_DIRFD $ac_have_decl
10724_ACEOF
10725
10726 if test $ac_cv_have_decl_dirfd = no; then
10727 HAVE_DECL_DIRFD=0
10728 fi
10729
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
10731$as_echo_n "checking whether dirfd is a macro... " >&6; }
10732if test "${gl_cv_func_dirfd_macro+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10734else
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h. */
10737
10738#include <sys/types.h>
10739#include <dirent.h>
10740#ifdef dirfd
10741 dirent_header_defines_dirfd
10742#endif
10743_ACEOF
10744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
10746 gl_cv_func_dirfd_macro=yes
10747else
10748 gl_cv_func_dirfd_macro=no
10749fi
10750rm -f conftest*
10751
10752fi
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
10754$as_echo "$gl_cv_func_dirfd_macro" >&6; }
10755
10756 # Use the replacement only if we have no function or macro with that name.
10757 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
10758 if test $ac_cv_have_decl_dirfd = yes; then
10759 # If the system declares dirfd already, let's declare rpl_dirfd instead.
10760 REPLACE_DIRFD=1
10761 fi
10762 fi
10763
10764 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
10765
10766
10767
10768
10769
10770
10771
10772
10773 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
10774
10775
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
10777$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
10778if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780else
10781
10782 dirfd_save_CFLAGS=$CFLAGS
10783 for ac_expr in d_fd dd_fd; do
10784
10785 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h. */
10788
10789 #include <sys/types.h>
10790 #include <dirent.h>
10791int
10792main ()
10793{
10794DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799if ac_fn_c_try_compile "$LINENO"; then :
10800 dir_fd_found=yes
10801
10802fi
10803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 CFLAGS=$dirfd_save_CFLAGS
10805 test "$dir_fd_found" = yes && break
10806 done
10807 test "$dir_fd_found" = yes || ac_expr=no_such_member
10808
10809 gl_cv_sys_dir_fd_member_name=$ac_expr
10810
10811
10812fi
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
10814$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
10815 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
10816
10817cat >>confdefs.h <<_ACEOF
10818#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
10819_ACEOF
10820
10821 fi
10822
10823
10824 fi
10825
10826
10827
10828
10829
10830 GNULIB_DIRFD=1
10831
10832
10833
10834
10835
10836$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
10837
10838
10839
10840
10841
10842
10843
10844
88b48903
WN
10845 FLOAT_H=
10846 REPLACE_FLOAT_LDBL=0
10847 case "$host_os" in
10848 aix* | beos* | openbsd* | mirbsd* | irix*)
10849 FLOAT_H=float.h
10850 ;;
10851 freebsd*)
10852 case "$host_cpu" in
10853 i[34567]86 )
10854 FLOAT_H=float.h
10855 ;;
10856 x86_64 )
10857 # On x86_64 systems, the C compiler may still be generating
10858 # 32-bit code.
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h. */
10861#if defined __LP64__ || defined __x86_64__ || defined __amd64__
10862 yes
10863 #endif
10864_ACEOF
10865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10866 $EGREP "yes" >/dev/null 2>&1; then :
10867
10868else
10869 FLOAT_H=float.h
10870fi
10871rm -f conftest*
8690e634 10872
88b48903
WN
10873 ;;
10874 esac
10875 ;;
10876 linux*)
10877 case "$host_cpu" in
10878 powerpc*)
10879 FLOAT_H=float.h
10880 ;;
10881 esac
10882 ;;
10883 esac
10884 case "$host_os" in
10885 aix* | freebsd* | linux*)
10886 if test -n "$FLOAT_H"; then
10887 REPLACE_FLOAT_LDBL=1
10888 fi
10889 ;;
10890 esac
a512b375 10891
88b48903
WN
10892 REPLACE_ITOLD=0
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10894$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10895if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
10896 $as_echo_n "(cached) " >&6
10897else
88b48903
WN
10898
10899 if test "$cross_compiling" = yes; then :
10900 case "$host" in
10901 sparc*-*-linux*)
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h. */
10904#if defined __LP64__ || defined __arch64__
10905 yes
10906 #endif
10907_ACEOF
10908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10909 $EGREP "yes" >/dev/null 2>&1; then :
10910 gl_cv_func_itold_works="guessing no"
10911else
10912 gl_cv_func_itold_works="guessing yes"
10913fi
10914rm -f conftest*
10915
10916 ;;
10917 *) gl_cv_func_itold_works="guessing yes" ;;
10918 esac
10919
8690e634
JK
10920else
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922/* end confdefs.h. */
8690e634 10923
88b48903
WN
10924int i = -1;
10925volatile long double ld;
10926int main ()
8690e634 10927{
88b48903
WN
10928 ld += i * 1.0L;
10929 if (ld > 0)
10930 return 1;
10931 return 0;
10932}
10933_ACEOF
10934if ac_fn_c_try_run "$LINENO"; then :
10935 gl_cv_func_itold_works=yes
10936else
10937 gl_cv_func_itold_works=no
10938fi
10939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10940 conftest.$ac_objext conftest.beam conftest.$ac_ext
10941fi
10942
10943
10944fi
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10946$as_echo "$gl_cv_func_itold_works" >&6; }
10947 case "$gl_cv_func_itold_works" in
10948 *no)
10949 REPLACE_ITOLD=1
10950 FLOAT_H=float.h
10951 ;;
10952 esac
10953
10954 if test -n "$FLOAT_H"; then
10955
10956
10957
10958
10959
10960
10961
10962
10963 if test $gl_cv_have_include_next = yes; then
10964 gl_cv_next_float_h='<'float.h'>'
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10967$as_echo_n "checking absolute name of <float.h>... " >&6; }
10968if test "${gl_cv_next_float_h+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970else
10971
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h. */
10974#include <float.h>
10975
10976_ACEOF
10977 case "$host_os" in
10978 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10979 *) gl_absname_cpp="$ac_cpp" ;;
10980 esac
10981
10982 case "$host_os" in
10983 mingw*)
10984 gl_dirsep_regex='[/\\]'
10985 ;;
10986 *)
10987 gl_dirsep_regex='\/'
10988 ;;
10989 esac
10990 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10991
10992 gl_header_literal_regex=`echo 'float.h' \
10993 | sed -e "$gl_make_literal_regex_sed"`
10994 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10995 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10996 s|^/[^/]|//&|
10997 p
10998 q
10999 }'
11000 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11001 sed -n "$gl_absolute_header_sed"`'"'
11002
11003
11004fi
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11006$as_echo "$gl_cv_next_float_h" >&6; }
11007 fi
11008 NEXT_FLOAT_H=$gl_cv_next_float_h
11009
11010 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11012 gl_next_as_first_directive='<'float.h'>'
11013 else
11014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11015 gl_next_as_first_directive=$gl_cv_next_float_h
11016 fi
11017 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11018
11019
11020
11021
11022 fi
11023
11024 if test -n "$FLOAT_H"; then
11025 GL_GENERATE_FLOAT_H_TRUE=
11026 GL_GENERATE_FLOAT_H_FALSE='#'
11027else
11028 GL_GENERATE_FLOAT_H_TRUE='#'
11029 GL_GENERATE_FLOAT_H_FALSE=
11030fi
11031
11032
11033
11034 if test $REPLACE_FLOAT_LDBL = 1; then
11035
11036
11037
11038
11039
11040
11041
11042
11043 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11044
11045 fi
11046 if test $REPLACE_ITOLD = 1; then
11047
11048
11049
11050
11051
11052
11053
11054
11055 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11056
11057 fi
11058
11059
11060
11061
11062
11063 FNMATCH_H=
11064 gl_fnmatch_required_lowercase=`
11065 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
11066 `
11067 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11069$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11070if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11071 $as_echo_n "(cached) " >&6
11072else
11073 if test $gl_fnmatch_required = GNU; then
11074 gl_fnmatch_gnu_start=
11075 gl_fnmatch_gnu_end=
11076 else
11077 gl_fnmatch_gnu_start='#if 0'
11078 gl_fnmatch_gnu_end='#endif'
11079 fi
11080 if test "$cross_compiling" = yes; then :
11081 eval "$gl_fnmatch_cache_var=\"guessing no\""
11082else
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h. */
11085#include <fnmatch.h>
11086 static int
11087 y (char const *pattern, char const *string, int flags)
11088 {
11089 return fnmatch (pattern, string, flags) == 0;
11090 }
11091 static int
11092 n (char const *pattern, char const *string, int flags)
11093 {
11094 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11095 }
11096
11097int
11098main ()
11099{
11100char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11101 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11102 static char const A_1[] = { 'A' - 1, 0 };
11103 static char const A01[] = { 'A' + 1, 0 };
11104 static char const a_1[] = { 'a' - 1, 0 };
11105 static char const a01[] = { 'a' + 1, 0 };
11106 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
11107 static char const bs01[] = { '\\\\' + 1, 0 };
11108 int result = 0;
11109 if (!n ("a*", "", 0))
11110 return 1;
11111 if (!y ("a*", "abc", 0))
11112 return 1;
11113 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11114 return 1;
11115 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11116 return 2;
11117 if (!y ("a\\\\bc", "abc", 0))
11118 return 3;
11119 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11120 return 3;
11121 if (!y ("*x", ".x", 0))
11122 return 4;
11123 if (!n ("*x", ".x", FNM_PERIOD))
11124 return 4;
11125 if (!y (Apat, "\\\\", 0))
11126 return 5;
11127 if (!y (Apat, "A", 0))
11128 return 5;
11129 if (!y (apat, "\\\\", 0))
11130 return 5;
11131 if (!y (apat, "a", 0))
11132 return 5;
11133 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11134 return 5;
11135 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11136 return 5;
11137 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11138 return 5;
11139 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11140 return 5;
11141 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11142 return 5;
11143 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11144 return 5;
11145 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11146 return 5;
11147 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11148 return 5;
11149 $gl_fnmatch_gnu_start
11150 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11151 result |= 8;
11152 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11153 result |= 16;
11154 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11155 result |= 32;
11156 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11157 result |= 64;
11158 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11159 result |= 64;
11160 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11161 result |= 64;
11162 $gl_fnmatch_gnu_end
11163 return result;
11164
11165 ;
11166 return 0;
11167}
11168_ACEOF
11169if ac_fn_c_try_run "$LINENO"; then :
11170 eval "$gl_fnmatch_cache_var=yes"
11171else
11172 eval "$gl_fnmatch_cache_var=no"
11173fi
11174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11175 conftest.$ac_objext conftest.beam conftest.$ac_ext
11176fi
11177
11178
11179fi
11180eval ac_res=\$$gl_fnmatch_cache_var
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11182$as_echo "$ac_res" >&6; }
11183 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11184 if test "$gl_fnmatch_result" = yes; then
11185 rm -f "$gl_source_base/fnmatch.h"
11186 else
11187 FNMATCH_H=fnmatch.h
11188 fi
11189
11190 if test -n "$FNMATCH_H"; then
11191 GL_GENERATE_FNMATCH_H_TRUE=
11192 GL_GENERATE_FNMATCH_H_FALSE='#'
11193else
11194 GL_GENERATE_FNMATCH_H_TRUE='#'
11195 GL_GENERATE_FNMATCH_H_FALSE=
11196fi
11197
11198
a512b375 11199 if test -n "$FNMATCH_H"; then
8690e634
JK
11200
11201
11202
11203
11204
11205
11206
11207
11208 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11209
11210
11211
11212cat >>confdefs.h <<_ACEOF
11213#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11214_ACEOF
11215
11216
11217 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11218"
11219if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11220 ac_have_decl=1
11221else
11222 ac_have_decl=0
11223fi
11224
11225cat >>confdefs.h <<_ACEOF
11226#define HAVE_DECL_ISBLANK $ac_have_decl
11227_ACEOF
11228
11229
c971b7fa 11230
c971b7fa 11231
a512b375 11232 fi
c971b7fa 11233
c971b7fa 11234
c971b7fa 11235
c971b7fa 11236
c971b7fa 11237
a512b375 11238 if test -n "$FNMATCH_H"; then
c971b7fa 11239
c971b7fa 11240
c971b7fa
PA
11241
11242
c971b7fa
PA
11243
11244
c971b7fa
PA
11245
11246
8690e634 11247 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 11248
c971b7fa 11249
c971b7fa 11250
8690e634
JK
11251cat >>confdefs.h <<_ACEOF
11252#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11253_ACEOF
c971b7fa
PA
11254
11255
8690e634
JK
11256 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11257"
11258if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11259 ac_have_decl=1
11260else
11261 ac_have_decl=0
c971b7fa 11262fi
c971b7fa 11263
8690e634
JK
11264cat >>confdefs.h <<_ACEOF
11265#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
11266_ACEOF
11267
c971b7fa 11268
8690e634 11269
c971b7fa 11270
88b48903
WN
11271 fi
11272
11273
11274
11275 FREXP_LIBM=
11276 if test $gl_cv_func_frexp_no_libm = no; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11278$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11279if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
11281else
11282
11283 save_LIBS="$LIBS"
11284 LIBS="$LIBS -lm"
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h. */
11287#include <math.h>
11288 double x;
11289int
11290main ()
11291{
11292int e; return frexp (x, &e) > 0;
11293 ;
11294 return 0;
11295}
11296_ACEOF
11297if ac_fn_c_try_link "$LINENO"; then :
11298 gl_cv_func_frexp_in_libm=yes
11299else
11300 gl_cv_func_frexp_in_libm=no
11301fi
11302rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 LIBS="$save_LIBS"
11305
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11308$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11309 if test $gl_cv_func_frexp_in_libm = yes; then
11310 FREXP_LIBM=-lm
11311 fi
11312 fi
11313 if test $gl_cv_func_frexp_no_libm = yes \
11314 || test $gl_cv_func_frexp_in_libm = yes; then
11315 save_LIBS="$LIBS"
11316 LIBS="$LIBS $FREXP_LIBM"
11317
11318
11319
88b48903
WN
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11321$as_echo_n "checking whether frexp works... " >&6; }
11322if test "${gl_cv_func_frexp_works+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325
11326 if test "$cross_compiling" = yes; then :
11327 case "$host_os" in
11328 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11329 *) gl_cv_func_frexp_works="guessing yes";;
11330 esac
11331
11332else
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334/* end confdefs.h. */
11335
11336#include <float.h>
11337#include <math.h>
11338#include <string.h>
11339#if HAVE_ALARM
11340# include <unistd.h>
11341#endif
11342/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11343 ICC 10.0 has a bug when optimizing the expression -zero.
11344 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11345 to PowerPC on Mac OS X 10.5. */
11346#if defined __hpux || defined __sgi || defined __ICC
11347static double
11348compute_minus_zero (void)
11349{
11350 return -DBL_MIN * DBL_MIN;
11351}
11352# define minus_zero compute_minus_zero ()
11353#else
11354double minus_zero = -0.0;
11355#endif
11356int main()
11357{
11358 int result = 0;
11359 int i;
11360 volatile double x;
11361 double zero = 0.0;
11362#if HAVE_ALARM
11363 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11364 number. Let the test fail in this case. */
11365 alarm (5);
11366#endif
11367 /* Test on denormalized numbers. */
11368 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11369 ;
11370 if (x > 0.0)
11371 {
11372 int exp;
11373 double y = frexp (x, &exp);
11374 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11375 On NetBSD: y = 0.75. Correct: y = 0.5. */
11376 if (y != 0.5)
11377 result |= 1;
11378 }
11379 /* Test on infinite numbers. */
11380 x = 1.0 / zero;
11381 {
11382 int exp;
11383 double y = frexp (x, &exp);
11384 if (y != x)
11385 result |= 2;
11386 }
11387 /* Test on negative zero. */
11388 x = minus_zero;
11389 {
11390 int exp;
11391 double y = frexp (x, &exp);
11392 if (memcmp (&y, &x, sizeof x))
11393 result |= 4;
11394 }
11395 return result;
11396}
11397_ACEOF
11398if ac_fn_c_try_run "$LINENO"; then :
11399 gl_cv_func_frexp_works=yes
11400else
11401 gl_cv_func_frexp_works=no
11402fi
11403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11404 conftest.$ac_objext conftest.beam conftest.$ac_ext
11405fi
11406
11407
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11410$as_echo "$gl_cv_func_frexp_works" >&6; }
11411
11412 LIBS="$save_LIBS"
11413 case "$gl_cv_func_frexp_works" in
11414 *yes) gl_func_frexp=yes ;;
11415 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11416 esac
11417 else
11418 gl_func_frexp=no
11419 fi
11420 if test $gl_func_frexp = yes; then
11421
11422$as_echo "#define HAVE_FREXP 1" >>confdefs.h
11423
11424 fi
11425
11426
11427 if test $gl_func_frexp != yes; then
11428
11429
11430
11431
11432
11433
11434
11435
11436 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11437
11438 fi
11439
11440
11441
11442
11443
11444 GNULIB_FREXP=1
11445
11446
11447
11448
11449
11450$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11461"
11462if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11463
11464else
11465 HAVE_DECL_FREXPL=0
11466fi
11467
11468
11469 FREXPL_LIBM=
11470 if test $HAVE_DECL_FREXPL = 1; then
11471
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11473$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11474if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11476else
11477
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479/* end confdefs.h. */
11480#include <math.h>
11481 long double x;
11482int
11483main ()
11484{
11485int e; return frexpl (x, &e) > 0;
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490if ac_fn_c_try_link "$LINENO"; then :
11491 gl_cv_func_frexpl_no_libm=yes
11492else
11493 gl_cv_func_frexpl_no_libm=no
11494fi
11495rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497
11498fi
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11500$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11501
11502 if test $gl_cv_func_frexpl_no_libm = no; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11504$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11505if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11507else
11508
11509 save_LIBS="$LIBS"
11510 LIBS="$LIBS -lm"
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h. */
11513#include <math.h>
11514 long double x;
11515int
11516main ()
11517{
11518int e; return frexpl (x, &e) > 0;
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523if ac_fn_c_try_link "$LINENO"; then :
11524 gl_cv_func_frexpl_in_libm=yes
11525else
11526 gl_cv_func_frexpl_in_libm=no
11527fi
11528rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11530 LIBS="$save_LIBS"
11531
11532fi
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11534$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11535 if test $gl_cv_func_frexpl_in_libm = yes; then
11536 FREXPL_LIBM=-lm
11537 fi
11538 fi
11539 if test $gl_cv_func_frexpl_no_libm = yes \
11540 || test $gl_cv_func_frexpl_in_libm = yes; then
11541 save_LIBS="$LIBS"
11542 LIBS="$LIBS $FREXPL_LIBM"
11543
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11546$as_echo_n "checking whether frexpl works... " >&6; }
11547if test "${gl_cv_func_frexpl_works+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550
11551 if test "$cross_compiling" = yes; then :
11552
11553 case "$host_os" in
11554 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11555 gl_cv_func_frexpl_works="guessing no";;
11556 *) gl_cv_func_frexpl_works="guessing yes";;
11557 esac
11558
11559else
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h. */
11562
11563#include <float.h>
11564#include <math.h>
11565/* Override the values of <float.h>, like done in float.in.h. */
11566#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11567# undef LDBL_MIN_EXP
11568# define LDBL_MIN_EXP (-16381)
11569#endif
11570#if defined __i386__ && defined __FreeBSD__
11571# undef LDBL_MIN_EXP
11572# define LDBL_MIN_EXP (-16381)
11573#endif
11574#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11575# undef LDBL_MIN_EXP
11576# define LDBL_MIN_EXP DBL_MIN_EXP
11577#endif
11578#if defined __sgi && (LDBL_MANT_DIG >= 106)
11579# if defined __GNUC__
11580# undef LDBL_MIN_EXP
11581# define LDBL_MIN_EXP DBL_MIN_EXP
11582# endif
11583#endif
11584extern
11585#ifdef __cplusplus
11586"C"
11587#endif
11588long double frexpl (long double, int *);
11589int main()
11590{
11591 int result = 0;
11592 volatile long double x;
11593 /* Test on finite numbers that fails on AIX 5.1. */
11594 x = 16.0L;
11595 {
11596 int exp = -9999;
11597 frexpl (x, &exp);
11598 if (exp != 5)
11599 result |= 1;
11600 }
11601 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11602 function returns an invalid (incorrectly normalized) value: it returns
11603 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11604 but the correct result is
11605 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11606 x = 1.01L;
11607 {
11608 int exp = -9999;
11609 long double y = frexpl (x, &exp);
11610 if (!(exp == 1 && y == 0.505L))
11611 result |= 2;
11612 }
11613 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11614 LDBL_MAX_EXP = 16384.
11615 In the loop end test, we test x against Infinity, rather than comparing
11616 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11617 {
11618 int i;
11619 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11620 {
11621 int exp = -9999;
11622 frexpl (x, &exp);
11623 if (exp != i)
11624 {
11625 result |= 4;
11626 break;
11627 }
11628 }
11629 }
11630 /* Test on denormalized numbers. */
11631 {
11632 int i;
11633 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11634 ;
11635 if (x > 0.0L)
11636 {
11637 int exp;
11638 long double y = frexpl (x, &exp);
11639 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11640 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11641 if (exp != LDBL_MIN_EXP - 1)
11642 result |= 8;
11643 }
11644 }
11645 /* Test on infinite numbers. */
11646 x = 1.0L / 0.0L;
11647 {
11648 int exp;
11649 long double y = frexpl (x, &exp);
11650 if (y != x)
11651 result |= 16;
11652 }
11653 return result;
11654}
11655_ACEOF
11656if ac_fn_c_try_run "$LINENO"; then :
11657 gl_cv_func_frexpl_works=yes
11658else
11659 gl_cv_func_frexpl_works=no
11660fi
11661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11662 conftest.$ac_objext conftest.beam conftest.$ac_ext
11663fi
11664
11665
11666fi
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11668$as_echo "$gl_cv_func_frexpl_works" >&6; }
11669
11670 LIBS="$save_LIBS"
11671 case "$gl_cv_func_frexpl_works" in
11672 *yes) gl_func_frexpl=yes ;;
11673 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11674 esac
11675 else
11676 gl_func_frexpl=no
11677 fi
11678 if test $gl_func_frexpl = yes; then
11679
11680$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11681
11682 fi
11683 fi
11684 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11685 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11686
11687 FREXPL_LIBM="$FREXP_LIBM"
11688 else
11689 FREXPL_LIBM=
11690 fi
11691 fi
11692
11693
11694 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11695
11696
11697
11698
11699
11700
11701
11702
11703 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11704
11705 fi
11706
11707
11708
11709
11710
11711 GNULIB_FREXPL=1
11712
11713
11714
11715
11716
11717$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11718
11719
11720
11721
11722
11723
11724
11725
11726 PRIPTR_PREFIX=
11727 if test -n "$STDINT_H"; then
11728 PRIPTR_PREFIX='"l"'
11729 else
11730 for glpfx in '' l ll I64; do
11731 case $glpfx in
11732 '') gltype1='int';;
11733 l) gltype1='long int';;
11734 ll) gltype1='long long int';;
11735 I64) gltype1='__int64';;
11736 esac
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h. */
11739#include <stdint.h>
11740 extern intptr_t foo;
11741 extern $gltype1 foo;
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750if ac_fn_c_try_compile "$LINENO"; then :
11751 PRIPTR_PREFIX='"'$glpfx'"'
11752fi
11753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 test -n "$PRIPTR_PREFIX" && break
11755 done
11756 fi
11757
11758
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11761$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11762if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764else
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766/* end confdefs.h. */
11767/* Work also in C++ mode. */
11768 #define __STDC_LIMIT_MACROS 1
11769
11770 /* Work if build is not clean. */
11771 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11772
11773 #include <limits.h>
11774 #if HAVE_STDINT_H
11775 #include <stdint.h>
11776 #endif
11777
11778 #if defined INT32_MAX && defined INTMAX_MAX
11779 #define CONDITION (INT32_MAX < INTMAX_MAX)
11780 #elif HAVE_LONG_LONG_INT
11781 #define CONDITION (sizeof (int) < sizeof (long long int))
11782 #else
11783 #define CONDITION 0
11784 #endif
11785 int test[CONDITION ? 1 : -1];
11786int
11787main ()
11788{
11789
11790 ;
11791 return 0;
11792}
11793_ACEOF
11794if ac_fn_c_try_compile "$LINENO"; then :
11795 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11796else
11797 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11798fi
11799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800fi
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11802$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11803 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11804 INT32_MAX_LT_INTMAX_MAX=1;
11805 else
11806 INT32_MAX_LT_INTMAX_MAX=0;
11807 fi
11808
11809
11810 if test $APPLE_UNIVERSAL_BUILD = 0; then
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11813$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11814if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11816else
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h. */
11819/* Work also in C++ mode. */
11820 #define __STDC_LIMIT_MACROS 1
11821
11822 /* Work if build is not clean. */
11823 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11824
11825 #include <limits.h>
11826 #if HAVE_STDINT_H
11827 #include <stdint.h>
11828 #endif
11829
11830 #if defined INT64_MAX
11831 #define CONDITION (INT64_MAX == LONG_MAX)
11832 #elif HAVE_LONG_LONG_INT
11833 #define CONDITION (sizeof (long long int) == sizeof (long int))
11834 #else
11835 #define CONDITION 0
11836 #endif
11837 int test[CONDITION ? 1 : -1];
11838int
11839main ()
11840{
11841
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846if ac_fn_c_try_compile "$LINENO"; then :
11847 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11848else
11849 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11850fi
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11854$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11855 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11856 INT64_MAX_EQ_LONG_MAX=1;
11857 else
11858 INT64_MAX_EQ_LONG_MAX=0;
11859 fi
11860
11861
11862 else
11863 INT64_MAX_EQ_LONG_MAX=-1
11864 fi
11865
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11867$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11868if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870else
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h. */
11873/* Work also in C++ mode. */
11874 #define __STDC_LIMIT_MACROS 1
11875
11876 /* Work if build is not clean. */
11877 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11878
11879 #include <limits.h>
11880 #if HAVE_STDINT_H
11881 #include <stdint.h>
11882 #endif
11883
11884 #if defined UINT32_MAX && defined UINTMAX_MAX
11885 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11886 #elif HAVE_LONG_LONG_INT
11887 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11888 #else
11889 #define CONDITION 0
11890 #endif
11891 int test[CONDITION ? 1 : -1];
11892int
11893main ()
11894{
11895
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900if ac_fn_c_try_compile "$LINENO"; then :
11901 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11902else
11903 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11904fi
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906fi
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11908$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11909 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11910 UINT32_MAX_LT_UINTMAX_MAX=1;
11911 else
11912 UINT32_MAX_LT_UINTMAX_MAX=0;
11913 fi
11914
11915
11916 if test $APPLE_UNIVERSAL_BUILD = 0; then
11917
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11919$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11920if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11922else
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924/* end confdefs.h. */
11925/* Work also in C++ mode. */
11926 #define __STDC_LIMIT_MACROS 1
11927
11928 /* Work if build is not clean. */
11929 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11930
11931 #include <limits.h>
11932 #if HAVE_STDINT_H
11933 #include <stdint.h>
11934 #endif
11935
11936 #if defined UINT64_MAX
11937 #define CONDITION (UINT64_MAX == ULONG_MAX)
11938 #elif HAVE_LONG_LONG_INT
11939 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11940 #else
11941 #define CONDITION 0
11942 #endif
11943 int test[CONDITION ? 1 : -1];
11944int
11945main ()
11946{
11947
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_compile "$LINENO"; then :
11953 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11954else
11955 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958fi
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11960$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11961 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11962 UINT64_MAX_EQ_ULONG_MAX=1;
11963 else
11964 UINT64_MAX_EQ_ULONG_MAX=0;
11965 fi
11966
11967
11968 else
11969 UINT64_MAX_EQ_ULONG_MAX=-1
11970 fi
11971
11972
11973
11974
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11977$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11978if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11980else
11981
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h. */
11984#include <math.h>
11985 #if __GNUC__ >= 4
11986 # undef isnand
11987 # define isnand(x) __builtin_isnan ((double)(x))
11988 #else
11989 # undef isnand
11990 # define isnand(x) isnan ((double)(x))
11991 #endif
11992 double x;
11993int
11994main ()
11995{
11996return isnand (x);
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_link "$LINENO"; then :
12002 gl_cv_func_isnand_no_libm=yes
12003else
12004 gl_cv_func_isnand_no_libm=no
12005fi
12006rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12011$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12012
12013 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12014 if test $gl_cv_func_isnand_no_libm = yes; then
12015
12016$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12017
12018 fi
12019
12020 if test $gl_func_isnand_no_libm != yes; then
12021
12022
12023
12024
12025
12026
12027
12028
12029 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12030
12031
12032
12033
12034 fi
12035
12036
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12038$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12039if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041else
12042
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044/* end confdefs.h. */
12045#include <math.h>
12046 #if __GNUC__ >= 4
12047 # undef isnanl
12048 # define isnanl(x) __builtin_isnanl ((long double)(x))
12049 #elif defined isnan
12050 # undef isnanl
12051 # define isnanl(x) isnan ((long double)(x))
12052 #endif
12053 long double x;
12054int
12055main ()
12056{
12057return isnanl (x);
12058 ;
12059 return 0;
12060}
12061_ACEOF
12062if ac_fn_c_try_link "$LINENO"; then :
12063 gl_cv_func_isnanl_no_libm=yes
12064else
12065 gl_cv_func_isnanl_no_libm=no
12066fi
12067rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069
12070fi
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12072$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12073
12074 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12075 if test $gl_func_isnanl_no_libm = yes; then
12076
12077
12078
12079
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12081$as_echo_n "checking whether isnanl works... " >&6; }
12082if test "${gl_cv_func_isnanl_works+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084else
12085
12086 if test "$cross_compiling" = yes; then :
12087 case "$host_cpu" in
12088 # Guess no on ia64, x86_64, i386.
12089 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12090 *)
12091 case "$host_os" in
12092 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12093 *) gl_cv_func_isnanl_works="guessing yes";;
12094 esac
12095 ;;
12096 esac
12097
12098else
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h. */
12101
12102#include <float.h>
12103#include <limits.h>
12104#include <math.h>
12105#if __GNUC__ >= 4
12106# undef isnanl
12107# define isnanl(x) __builtin_isnanl ((long double)(x))
12108#elif defined isnan
12109# undef isnanl
12110# define isnanl(x) isnan ((long double)(x))
12111#endif
12112#define NWORDS \
12113 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12114typedef union { unsigned int word[NWORDS]; long double value; }
12115 memory_long_double;
12116/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12117 runtime type conversion. */
12118#ifdef __sgi
12119static long double NaNl ()
12120{
12121 double zero = 0.0;
12122 return zero / zero;
12123}
12124#else
12125# define NaNl() (0.0L / 0.0L)
12126#endif
12127int main ()
12128{
12129 int result = 0;
12130
12131 if (!isnanl (NaNl ()))
12132 result |= 1;
12133
12134 {
12135 memory_long_double m;
12136 unsigned int i;
12137
12138 /* The isnanl function should be immune against changes in the sign bit and
12139 in the mantissa bits. The xor operation twiddles a bit that can only be
12140 a sign bit or a mantissa bit (since the exponent never extends to
12141 bit 31). */
12142 m.value = NaNl ();
12143 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12144 for (i = 0; i < NWORDS; i++)
12145 m.word[i] |= 1;
12146 if (!isnanl (m.value))
12147 result |= 1;
12148 }
12149
12150#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
12151/* Representation of an 80-bit 'long double' as an initializer for a sequence
12152 of 'unsigned int' words. */
12153# ifdef WORDS_BIGENDIAN
12154# define LDBL80_WORDS(exponent,manthi,mantlo) \
12155 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12156 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
12157 (unsigned int) (mantlo) << 16 \
12158 }
12159# else
12160# define LDBL80_WORDS(exponent,manthi,mantlo) \
12161 { mantlo, manthi, exponent }
12162# endif
12163 { /* Quiet NaN. */
12164 static memory_long_double x =
12165 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12166 if (!isnanl (x.value))
12167 result |= 2;
12168 }
12169 {
12170 /* Signalling NaN. */
12171 static memory_long_double x =
12172 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12173 if (!isnanl (x.value))
12174 result |= 2;
12175 }
12176 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12177 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12178 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12179 Application Architecture.
12180 Table 5-2 "Floating-Point Register Encodings"
12181 Figure 5-6 "Memory to Floating-Point Register Data Translation"
12182 */
12183 { /* Pseudo-NaN. */
12184 static memory_long_double x =
12185 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12186 if (!isnanl (x.value))
12187 result |= 4;
12188 }
12189 { /* Pseudo-Infinity. */
12190 static memory_long_double x =
12191 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12192 if (!isnanl (x.value))
12193 result |= 8;
12194 }
12195 { /* Pseudo-Zero. */
12196 static memory_long_double x =
12197 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12198 if (!isnanl (x.value))
12199 result |= 16;
12200 }
12201 { /* Unnormalized number. */
12202 static memory_long_double x =
12203 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12204 if (!isnanl (x.value))
12205 result |= 32;
12206 }
12207 { /* Pseudo-Denormal. */
12208 static memory_long_double x =
12209 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12210 if (!isnanl (x.value))
12211 result |= 64;
12212 }
12213#endif
12214
12215 return result;
12216}
12217_ACEOF
12218if ac_fn_c_try_run "$LINENO"; then :
12219 gl_cv_func_isnanl_works=yes
12220else
12221 gl_cv_func_isnanl_works=no
12222fi
12223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12224 conftest.$ac_objext conftest.beam conftest.$ac_ext
12225fi
12226
12227
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12230$as_echo "$gl_cv_func_isnanl_works" >&6; }
12231
12232 case "$gl_cv_func_isnanl_works" in
12233 *yes) ;;
12234 *) gl_func_isnanl_no_libm=no ;;
12235 esac
12236 fi
12237 if test $gl_func_isnanl_no_libm = yes; then
12238
12239$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12240
12241 fi
12242
12243 if test $gl_func_isnanl_no_libm != yes; then
12244
12245
12246
12247
12248
12249
12250
12251
12252 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12253
12254
12255
12256
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12258$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12259if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261else
12262
12263 if test "$cross_compiling" = yes; then :
12264
12265 gl_cv_cc_long_double_expbit0="unknown"
12266
12267else
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h. */
12270
12271#include <float.h>
12272#include <stddef.h>
12273#include <stdio.h>
12274#include <string.h>
12275#define NWORDS \
12276 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12277typedef union { long double value; unsigned int word[NWORDS]; }
12278 memory_long_double;
12279static unsigned int ored_words[NWORDS];
12280static unsigned int anded_words[NWORDS];
12281static void add_to_ored_words (long double x)
12282{
12283 memory_long_double m;
12284 size_t i;
12285 /* Clear it first, in case
12286 sizeof (long double) < sizeof (memory_long_double). */
12287 memset (&m, 0, sizeof (memory_long_double));
12288 m.value = x;
12289 for (i = 0; i < NWORDS; i++)
12290 {
12291 ored_words[i] |= m.word[i];
12292 anded_words[i] &= m.word[i];
12293 }
12294}
12295int main ()
12296{
12297 size_t j;
12298 FILE *fp = fopen ("conftest.out", "w");
12299 if (fp == NULL)
12300 return 1;
12301 for (j = 0; j < NWORDS; j++)
12302 anded_words[j] = ~ (unsigned int) 0;
12303 add_to_ored_words (0.25L);
12304 add_to_ored_words (0.5L);
12305 add_to_ored_words (1.0L);
12306 add_to_ored_words (2.0L);
12307 add_to_ored_words (4.0L);
12308 /* Remove bits that are common (e.g. if representation of the first mantissa
12309 bit is explicit). */
12310 for (j = 0; j < NWORDS; j++)
12311 ored_words[j] &= ~anded_words[j];
12312 /* Now find the nonzero word. */
12313 for (j = 0; j < NWORDS; j++)
12314 if (ored_words[j] != 0)
12315 break;
12316 if (j < NWORDS)
12317 {
12318 size_t i;
12319 for (i = j + 1; i < NWORDS; i++)
12320 if (ored_words[i] != 0)
12321 {
12322 fprintf (fp, "unknown");
12323 return (fclose (fp) != 0);
12324 }
12325 for (i = 0; ; i++)
12326 if ((ored_words[j] >> i) & 1)
12327 {
12328 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12329 return (fclose (fp) != 0);
12330 }
12331 }
12332 fprintf (fp, "unknown");
12333 return (fclose (fp) != 0);
12334}
12335
12336_ACEOF
12337if ac_fn_c_try_run "$LINENO"; then :
12338 gl_cv_cc_long_double_expbit0=`cat conftest.out`
12339else
12340 gl_cv_cc_long_double_expbit0="unknown"
12341fi
12342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12343 conftest.$ac_objext conftest.beam conftest.$ac_ext
12344fi
12345
12346 rm -f conftest.out
12347
12348fi
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12350$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12351 case "$gl_cv_cc_long_double_expbit0" in
12352 word*bit*)
12353 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12354 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
12355
12356cat >>confdefs.h <<_ACEOF
12357#define LDBL_EXPBIT0_WORD $word
12358_ACEOF
12359
12360
12361cat >>confdefs.h <<_ACEOF
12362#define LDBL_EXPBIT0_BIT $bit
12363_ACEOF
12364
12365 ;;
12366 esac
12367
12368
12369
12370 fi
12371
12372
12373
12374
88b48903
WN
12375
12376
12377
12378
12379 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12380
12381
12382
12383
12384
12385
12386
12387
12388
88b48903 12389
c971b7fa 12390
c971b7fa 12391
88b48903
WN
12392 if test $gl_cv_have_include_next = yes; then
12393 gl_cv_next_math_h='<'math.h'>'
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12396$as_echo_n "checking absolute name of <math.h>... " >&6; }
12397if test "${gl_cv_next_math_h+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12399else
c971b7fa 12400
88b48903 12401 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
12402
12403
88b48903 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 12405/* end confdefs.h. */
88b48903 12406#include <math.h>
8690e634 12407
8690e634 12408_ACEOF
88b48903
WN
12409 case "$host_os" in
12410 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12411 *) gl_absname_cpp="$ac_cpp" ;;
12412 esac
8690e634 12413
88b48903
WN
12414 case "$host_os" in
12415 mingw*)
12416 gl_dirsep_regex='[/\\]'
12417 ;;
12418 *)
12419 gl_dirsep_regex='\/'
12420 ;;
12421 esac
12422 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 12423
88b48903
WN
12424 gl_header_literal_regex=`echo 'math.h' \
12425 | sed -e "$gl_make_literal_regex_sed"`
12426 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12427 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12428 s|^/[^/]|//&|
12429 p
12430 q
12431 }'
12432 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12433 sed -n "$gl_absolute_header_sed"`'"'
12434 else
12435 gl_cv_next_math_h='<'math.h'>'
12436 fi
8690e634 12437
c971b7fa 12438
88b48903
WN
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12441$as_echo "$gl_cv_next_math_h" >&6; }
12442 fi
12443 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 12444
88b48903
WN
12445 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12447 gl_next_as_first_directive='<'math.h'>'
12448 else
12449 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12450 gl_next_as_first_directive=$gl_cv_next_math_h
12451 fi
12452 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 12453
c971b7fa 12454
c971b7fa
PA
12455
12456
c971b7fa 12457
88b48903
WN
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12459$as_echo_n "checking whether NAN macro works... " >&6; }
12460if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
12461 $as_echo_n "(cached) " >&6
12462else
8690e634
JK
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h. */
88b48903 12465#include <math.h>
c971b7fa
PA
12466int
12467main ()
12468{
88b48903
WN
12469/* Solaris 10 has a broken definition of NAN. Other platforms
12470 fail to provide NAN, or provide it only in C99 mode; this
12471 test only needs to fail when NAN is provided but wrong. */
12472 float f = 1.0f;
12473#ifdef NAN
12474 f = NAN;
12475#endif
12476 return f == 0;
c971b7fa
PA
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12482 gl_cv_header_math_nan_works=yes
8690e634 12483else
88b48903 12484 gl_cv_header_math_nan_works=no
c971b7fa
PA
12485fi
12486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 12487fi
88b48903
WN
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12489$as_echo "$gl_cv_header_math_nan_works" >&6; }
12490 if test $gl_cv_header_math_nan_works = no; then
12491 REPLACE_NAN=1
c971b7fa 12492 fi
88b48903
WN
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12494$as_echo_n "checking whether HUGE_VAL works... " >&6; }
12495if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
12496 $as_echo_n "(cached) " >&6
12497else
8690e634 12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 12499/* end confdefs.h. */
88b48903 12500#include <math.h>
c971b7fa
PA
12501int
12502main ()
12503{
88b48903
WN
12504/* Solaris 10 has a broken definition of HUGE_VAL. */
12505 double d = HUGE_VAL;
12506 return d == 0;
c971b7fa
PA
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12512 gl_cv_header_math_huge_val_works=yes
8690e634 12513else
88b48903 12514 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
12515fi
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 12517fi
88b48903
WN
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12519$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12520 if test $gl_cv_header_math_huge_val_works = no; then
12521 REPLACE_HUGE_VAL=1
8690e634 12522 fi
c971b7fa 12523
c971b7fa 12524
88b48903
WN
12525 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
12526 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12528$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12529if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
12530 $as_echo_n "(cached) " >&6
12531else
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533/* end confdefs.h. */
88b48903 12534#include <math.h>
8690e634
JK
12535int
12536main ()
12537{
88b48903
WN
12538#undef $gl_func
12539 (void) $gl_func;
8690e634
JK
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12545 eval "$as_gl_Symbol=yes"
c971b7fa 12546else
88b48903 12547 eval "$as_gl_Symbol=no"
c971b7fa 12548fi
8690e634
JK
12549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550fi
88b48903
WN
12551eval ac_res=\$$as_gl_Symbol
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12553$as_echo "$ac_res" >&6; }
12554 eval as_val=\$$as_gl_Symbol
12555 if test "x$as_val" = x""yes; then :
12556 cat >>confdefs.h <<_ACEOF
12557#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12558_ACEOF
c971b7fa 12559
88b48903
WN
12560 eval ac_cv_have_decl_$gl_func=yes
12561fi
12562 done
c971b7fa
PA
12563
12564
12565
12566
12567
c971b7fa 12568
c971b7fa 12569
c971b7fa 12570
c971b7fa
PA
12571
12572
c971b7fa 12573
8690e634
JK
12574
12575 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12576
12577
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12580$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12581if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
12582 $as_echo_n "(cached) " >&6
12583else
8690e634
JK
12584
12585 case "$host_os" in
12586 # Guess no on AIX and OSF/1.
12587 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12588 # Guess yes otherwise.
12589 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12590 esac
12591 if test $LOCALE_JA != none; then
12592 if test "$cross_compiling" = yes; then :
12593 :
12594else
c971b7fa
PA
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596/* end confdefs.h. */
c971b7fa 12597
8690e634
JK
12598#include <locale.h>
12599#include <string.h>
12600/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12601 <wchar.h>.
12602 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12603 included before <wchar.h>. */
12604#include <stddef.h>
12605#include <stdio.h>
12606#include <time.h>
12607#include <wchar.h>
12608int main ()
c971b7fa 12609{
8690e634
JK
12610 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12611 {
12612 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12613 mbstate_t state;
12614 wchar_t wc;
12615
12616 memset (&state, '\0', sizeof (mbstate_t));
12617 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12618 if (mbsinit (&state))
12619 return 1;
12620 }
c971b7fa
PA
12621 return 0;
12622}
12623_ACEOF
8690e634
JK
12624if ac_fn_c_try_run "$LINENO"; then :
12625 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12626else
8690e634 12627 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 12628fi
8690e634
JK
12629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12630 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12631fi
c971b7fa 12632
8690e634 12633 fi
c971b7fa 12634
8690e634
JK
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12637$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12638
c971b7fa 12639
c971b7fa 12640
c971b7fa 12641
8690e634
JK
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12643$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12644if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12645 $as_echo_n "(cached) " >&6
12646else
12647
8690e634
JK
12648 case "$host_os" in
12649 # Guess no on Solaris 8.
12650 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12651 # Guess yes otherwise.
12652 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12653 esac
12654 if test $LOCALE_ZH_CN != none; then
12655 if test "$cross_compiling" = yes; then :
12656 :
12657else
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
12659/* end confdefs.h. */
12660
8690e634
JK
12661#include <locale.h>
12662#include <stdlib.h>
12663#include <string.h>
12664/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12665 <wchar.h>.
12666 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12667 included before <wchar.h>. */
12668#include <stddef.h>
12669#include <stdio.h>
12670#include <time.h>
12671#include <wchar.h>
12672int main ()
c971b7fa 12673{
8690e634
JK
12674 /* This fails on Solaris 8:
12675 mbrtowc returns 2, and sets wc to 0x00F0.
12676 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12677 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12678 {
12679 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12680 mbstate_t state;
12681 wchar_t wc;
12682
12683 memset (&state, '\0', sizeof (mbstate_t));
12684 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12685 && mbtowc (&wc, input + 3, 6) == 4)
12686 return 1;
12687 }
c971b7fa
PA
12688 return 0;
12689}
12690_ACEOF
8690e634
JK
12691if ac_fn_c_try_run "$LINENO"; then :
12692 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12693else
8690e634 12694 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12695fi
8690e634
JK
12696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12697 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12698fi
c971b7fa 12699
8690e634 12700 fi
c971b7fa 12701
8690e634
JK
12702fi
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12704$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12705
12706 REPLACE_MBSTATE_T=0
12707 case "$gl_cv_func_mbrtowc_incomplete_state" in
12708 *yes) ;;
12709 *) REPLACE_MBSTATE_T=1 ;;
12710 esac
12711 case "$gl_cv_func_mbrtowc_sanitycheck" in
12712 *yes) ;;
12713 *) REPLACE_MBSTATE_T=1 ;;
12714 esac
c971b7fa 12715 else
8690e634 12716 REPLACE_MBSTATE_T=1
c971b7fa
PA
12717 fi
12718
12719
12720
8690e634
JK
12721 if test $ac_cv_func_mbrtowc = no; then
12722 HAVE_MBRTOWC=0
12723 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12724/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12725 <wchar.h>.
12726 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12727 included before <wchar.h>. */
12728#include <stddef.h>
12729#include <stdio.h>
12730#include <time.h>
12731#include <wchar.h>
c971b7fa 12732
8690e634
JK
12733"
12734if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12735 ac_have_decl=1
12736else
12737 ac_have_decl=0
c971b7fa 12738fi
c971b7fa 12739
8690e634
JK
12740cat >>confdefs.h <<_ACEOF
12741#define HAVE_DECL_MBRTOWC $ac_have_decl
12742_ACEOF
c971b7fa 12743
8690e634
JK
12744 if test $ac_cv_have_decl_mbrtowc = yes; then
12745 REPLACE_MBRTOWC=1
12746 fi
12747 else
12748 if test $REPLACE_MBSTATE_T = 1; then
12749 REPLACE_MBRTOWC=1
12750 else
c971b7fa
PA
12751
12752
12753
8690e634
JK
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12755$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12756if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
c971b7fa 12758else
c971b7fa 12759
8690e634
JK
12760 case "$host_os" in
12761 # Guess no on Solaris.
12762 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12763 # Guess yes otherwise.
12764 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12765 esac
12766 if test $LOCALE_FR_UTF8 != none; then
12767 if test "$cross_compiling" = yes; then :
12768 :
12769else
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
12771/* end confdefs.h. */
12772
8690e634
JK
12773#include <locale.h>
12774#include <stdlib.h>
12775#include <string.h>
12776/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12777 <wchar.h>.
12778 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12779 included before <wchar.h>. */
12780#include <stddef.h>
12781#include <stdio.h>
12782#include <time.h>
12783#include <wchar.h>
12784int main ()
12785{
12786 int result = 0;
12787
12788 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12789 {
12790 char input[] = "\303\237er";
12791 mbstate_t state;
12792 wchar_t wc;
12793 size_t ret;
12794
12795 memset (&state, '\0', sizeof (mbstate_t));
12796 wc = (wchar_t) 0xBADFACE;
12797 ret = mbrtowc (&wc, input, 5, &state);
12798 if (ret != 2)
12799 result |= 1;
12800 if (!mbsinit (&state))
12801 result |= 2;
c971b7fa 12802
8690e634
JK
12803 memset (&state, '\0', sizeof (mbstate_t));
12804 ret = mbrtowc (NULL, input, 5, &state);
12805 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12806 result |= 4;
12807 if (!mbsinit (&state))
12808 result |= 8;
12809 }
12810 return result;
12811}
c971b7fa 12812_ACEOF
8690e634
JK
12813if ac_fn_c_try_run "$LINENO"; then :
12814 gl_cv_func_mbrtowc_null_arg1=yes
12815else
12816 gl_cv_func_mbrtowc_null_arg1=no
12817fi
12818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12819 conftest.$ac_objext conftest.beam conftest.$ac_ext
12820fi
c971b7fa 12821
8690e634 12822 fi
c971b7fa 12823
c971b7fa 12824fi
8690e634
JK
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12826$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 12827
c971b7fa 12828
c971b7fa 12829
c971b7fa 12830
8690e634
JK
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12832$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12833if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835else
c971b7fa 12836
8690e634
JK
12837 case "$host_os" in
12838 # Guess no on OSF/1.
12839 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12840 # Guess yes otherwise.
12841 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12842 esac
12843 if test $LOCALE_FR_UTF8 != none; then
12844 if test "$cross_compiling" = yes; then :
c971b7fa 12845 :
8690e634
JK
12846else
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h. */
12849
12850#include <locale.h>
12851#include <string.h>
12852/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12853 <wchar.h>.
12854 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12855 included before <wchar.h>. */
12856#include <stddef.h>
12857#include <stdio.h>
12858#include <time.h>
12859#include <wchar.h>
12860int main ()
12861{
12862 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12863 {
12864 mbstate_t state;
12865 wchar_t wc;
12866 int ret;
12867
12868 memset (&state, '\0', sizeof (mbstate_t));
12869 wc = (wchar_t) 0xBADFACE;
12870 mbrtowc (&wc, NULL, 5, &state);
12871 /* Check that wc was not modified. */
12872 if (wc != (wchar_t) 0xBADFACE)
12873 return 1;
12874 }
12875 return 0;
12876}
12877_ACEOF
12878if ac_fn_c_try_run "$LINENO"; then :
12879 gl_cv_func_mbrtowc_null_arg2=yes
12880else
12881 gl_cv_func_mbrtowc_null_arg2=no
12882fi
12883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12884 conftest.$ac_objext conftest.beam conftest.$ac_ext
12885fi
12886
12887 fi
12888
12889fi
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12891$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
12892
12893
12894
12895
12896
12897
8690e634
JK
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12899$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12900if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12902else
12903
12904 case "$host_os" in
12905 # Guess no on HP-UX, Solaris, native Windows.
12906 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12907 # Guess yes otherwise.
12908 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12909 esac
12910 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12911 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12912 if test "$cross_compiling" = yes; then :
c971b7fa 12913 :
8690e634
JK
12914else
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916/* end confdefs.h. */
c971b7fa 12917
8690e634
JK
12918#include <locale.h>
12919#include <string.h>
12920/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12921 <wchar.h>.
12922 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12923 included before <wchar.h>. */
12924#include <stddef.h>
12925#include <stdio.h>
12926#include <time.h>
12927#include <wchar.h>
12928int main ()
12929{
12930 int result = 0;
12931 int found_some_locale = 0;
12932 /* This fails on Solaris. */
12933 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12934 {
12935 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12936 mbstate_t state;
12937 wchar_t wc;
12938
12939 memset (&state, '\0', sizeof (mbstate_t));
12940 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12941 {
12942 input[1] = '\0';
12943 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12944 result |= 1;
12945 }
12946 found_some_locale = 1;
12947 }
12948 /* This fails on HP-UX 11.11. */
12949 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12950 {
12951 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12952 mbstate_t state;
12953 wchar_t wc;
12954
12955 memset (&state, '\0', sizeof (mbstate_t));
12956 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12957 {
12958 input[1] = '\0';
12959 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12960 result |= 2;
12961 }
12962 found_some_locale = 1;
12963 }
12964 /* This fails on native Windows. */
12965 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12966 {
12967 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12968 mbstate_t state;
12969 wchar_t wc;
12970
12971 memset (&state, '\0', sizeof (mbstate_t));
12972 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12973 {
12974 input[3] = '\0';
12975 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12976 result |= 4;
12977 }
12978 found_some_locale = 1;
12979 }
12980 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12981 {
12982 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12983 mbstate_t state;
12984 wchar_t wc;
12985
12986 memset (&state, '\0', sizeof (mbstate_t));
12987 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12988 {
12989 input[3] = '\0';
12990 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12991 result |= 8;
12992 }
12993 found_some_locale = 1;
12994 }
12995 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12996 {
12997 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12998 mbstate_t state;
12999 wchar_t wc;
13000
13001 memset (&state, '\0', sizeof (mbstate_t));
13002 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13003 {
13004 input[3] = '\0';
13005 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13006 result |= 16;
13007 }
13008 found_some_locale = 1;
13009 }
13010 return (found_some_locale ? result : 77);
13011}
13012_ACEOF
13013if ac_fn_c_try_run "$LINENO"; then :
13014 gl_cv_func_mbrtowc_retval=yes
13015else
13016 if test $? != 77; then
13017 gl_cv_func_mbrtowc_retval=no
13018 fi
c971b7fa 13019
8690e634
JK
13020fi
13021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13022 conftest.$ac_objext conftest.beam conftest.$ac_ext
13023fi
c971b7fa 13024
8690e634 13025 fi
c971b7fa 13026
8690e634
JK
13027fi
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13029$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
13030
13031
13032
13033
8690e634
JK
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13035$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13036if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
13037 $as_echo_n "(cached) " >&6
13038else
8690e634
JK
13039
13040 case "$host_os" in
13041 # Guess no on Solaris 8 and 9.
13042 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13043 # Guess yes otherwise.
13044 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13045 esac
13046 if test $LOCALE_ZH_CN != none; then
13047 if test "$cross_compiling" = yes; then :
13048 :
c971b7fa
PA
13049else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h. */
13052
8690e634 13053#include <locale.h>
c971b7fa 13054#include <string.h>
8690e634
JK
13055/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13056 <wchar.h>.
13057 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13058 included before <wchar.h>. */
13059#include <stddef.h>
13060#include <stdio.h>
13061#include <time.h>
13062#include <wchar.h>
13063int main ()
c971b7fa 13064{
8690e634
JK
13065 /* This fails on Solaris 8 and 9. */
13066 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 13067 {
8690e634
JK
13068 mbstate_t state;
13069 wchar_t wc;
c971b7fa 13070
8690e634
JK
13071 memset (&state, '\0', sizeof (mbstate_t));
13072 if (mbrtowc (&wc, "", 1, &state) != 0)
13073 return 1;
13074 }
c971b7fa
PA
13075 return 0;
13076}
13077_ACEOF
13078if ac_fn_c_try_run "$LINENO"; then :
8690e634 13079 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 13080else
8690e634 13081 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
13082fi
13083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13084 conftest.$ac_objext conftest.beam conftest.$ac_ext
13085fi
13086
8690e634
JK
13087 fi
13088
c971b7fa 13089fi
8690e634
JK
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13091$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13092
13093 case "$gl_cv_func_mbrtowc_null_arg1" in
13094 *yes) ;;
13095 *)
13096$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13097
13098 REPLACE_MBRTOWC=1
13099 ;;
13100 esac
13101 case "$gl_cv_func_mbrtowc_null_arg2" in
13102 *yes) ;;
13103 *)
13104$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13105
13106 REPLACE_MBRTOWC=1
13107 ;;
13108 esac
13109 case "$gl_cv_func_mbrtowc_retval" in
13110 *yes) ;;
13111 *)
13112$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13113
13114 REPLACE_MBRTOWC=1
13115 ;;
13116 esac
13117 case "$gl_cv_func_mbrtowc_nul_retval" in
13118 *yes) ;;
13119 *)
13120$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13121
13122 REPLACE_MBRTOWC=1
13123 ;;
13124 esac
c971b7fa
PA
13125 fi
13126 fi
13127
a512b375 13128 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 13129
c971b7fa 13130
c971b7fa
PA
13131
13132
13133
13134
13135
13136
8690e634
JK
13137 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13138
13139
13140 :
c971b7fa 13141
a512b375 13142 fi
c971b7fa 13143
8690e634
JK
13144
13145
13146
13147
13148 GNULIB_MBRTOWC=1
13149
13150
13151
13152
13153
13154$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
c971b7fa 13167
c971b7fa 13168
8690e634 13169 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 13170
8690e634
JK
13171
13172
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13174$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13175if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177else
13178
13179 case "$host_os" in
13180 # Guess no on AIX and OSF/1.
13181 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13182 # Guess yes otherwise.
13183 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13184 esac
13185 if test $LOCALE_JA != none; then
13186 if test "$cross_compiling" = yes; then :
13187 :
c971b7fa
PA
13188else
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190/* end confdefs.h. */
13191
8690e634
JK
13192#include <locale.h>
13193#include <string.h>
13194/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13195 <wchar.h>.
13196 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13197 included before <wchar.h>. */
13198#include <stddef.h>
13199#include <stdio.h>
13200#include <time.h>
13201#include <wchar.h>
13202int main ()
c971b7fa 13203{
8690e634 13204 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 13205 {
8690e634
JK
13206 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13207 mbstate_t state;
13208 wchar_t wc;
13209
13210 memset (&state, '\0', sizeof (mbstate_t));
13211 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13212 if (mbsinit (&state))
13213 return 1;
c971b7fa 13214 }
c971b7fa
PA
13215 return 0;
13216}
13217_ACEOF
13218if ac_fn_c_try_run "$LINENO"; then :
8690e634 13219 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 13220else
8690e634 13221 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
13222fi
13223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13224 conftest.$ac_objext conftest.beam conftest.$ac_ext
13225fi
13226
8690e634 13227 fi
c971b7fa
PA
13228
13229fi
8690e634
JK
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13231$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
13232
13233
c971b7fa
PA
13234
13235
8690e634
JK
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13237$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13238if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
13239 $as_echo_n "(cached) " >&6
13240else
8690e634
JK
13241
13242 case "$host_os" in
13243 # Guess no on Solaris 8.
13244 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13245 # Guess yes otherwise.
13246 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13247 esac
13248 if test $LOCALE_ZH_CN != none; then
13249 if test "$cross_compiling" = yes; then :
13250 :
13251else
c971b7fa
PA
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
8690e634
JK
13254
13255#include <locale.h>
13256#include <stdlib.h>
13257#include <string.h>
13258/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13259 <wchar.h>.
13260 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13261 included before <wchar.h>. */
c971b7fa 13262#include <stddef.h>
8690e634
JK
13263#include <stdio.h>
13264#include <time.h>
13265#include <wchar.h>
13266int main ()
c971b7fa 13267{
8690e634
JK
13268 /* This fails on Solaris 8:
13269 mbrtowc returns 2, and sets wc to 0x00F0.
13270 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13271 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13272 {
13273 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13274 mbstate_t state;
13275 wchar_t wc;
13276
13277 memset (&state, '\0', sizeof (mbstate_t));
13278 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13279 && mbtowc (&wc, input + 3, 6) == 4)
13280 return 1;
13281 }
c971b7fa
PA
13282 return 0;
13283}
13284_ACEOF
8690e634
JK
13285if ac_fn_c_try_run "$LINENO"; then :
13286 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 13287else
8690e634 13288 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 13289fi
8690e634
JK
13290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13291 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13292fi
c971b7fa 13293
8690e634
JK
13294 fi
13295
13296fi
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13298$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 13299
8690e634
JK
13300 REPLACE_MBSTATE_T=0
13301 case "$gl_cv_func_mbrtowc_incomplete_state" in
13302 *yes) ;;
13303 *) REPLACE_MBSTATE_T=1 ;;
13304 esac
13305 case "$gl_cv_func_mbrtowc_sanitycheck" in
13306 *yes) ;;
13307 *) REPLACE_MBSTATE_T=1 ;;
13308 esac
13309 else
13310 REPLACE_MBSTATE_T=1
c971b7fa
PA
13311 fi
13312
c971b7fa 13313
8690e634 13314
8690e634
JK
13315 if test $ac_cv_func_mbsinit = no; then
13316 HAVE_MBSINIT=0
13317 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13318/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13319 <wchar.h>.
13320 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13321 included before <wchar.h>. */
13322#include <stddef.h>
13323#include <stdio.h>
13324#include <time.h>
13325#include <wchar.h>
13326
13327"
13328if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13329 ac_have_decl=1
13330else
13331 ac_have_decl=0
c971b7fa 13332fi
c971b7fa 13333
8690e634
JK
13334cat >>confdefs.h <<_ACEOF
13335#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 13336_ACEOF
c971b7fa 13337
8690e634
JK
13338 if test $ac_cv_have_decl_mbsinit = yes; then
13339 REPLACE_MBSINIT=1
13340 fi
13341 else
13342 if test $REPLACE_MBSTATE_T = 1; then
13343 REPLACE_MBSINIT=1
13344 else
13345 case "$host_os" in
13346 mingw*) REPLACE_MBSINIT=1 ;;
13347 esac
13348 fi
13349 fi
c971b7fa 13350
a512b375 13351 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
13352
13353
13354
13355
13356
13357
13358
13359
8690e634 13360 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
13361
13362
8690e634 13363 :
c971b7fa 13364
a512b375 13365 fi
c971b7fa 13366
c971b7fa 13367
c971b7fa 13368
c971b7fa
PA
13369
13370
8690e634 13371 GNULIB_MBSINIT=1
c971b7fa 13372
c971b7fa
PA
13373
13374
13375
13376
8690e634 13377$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
13378
13379
c971b7fa 13380
c971b7fa 13381
c971b7fa
PA
13382
13383
13384
c971b7fa 13385
c971b7fa
PA
13386
13387
13388
13389
8690e634
JK
13390
13391 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
13392
13393
13394
8690e634
JK
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13396$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13397if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399else
c971b7fa 13400
8690e634
JK
13401 case "$host_os" in
13402 # Guess no on AIX and OSF/1.
13403 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13404 # Guess yes otherwise.
13405 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 13406 esac
8690e634
JK
13407 if test $LOCALE_JA != none; then
13408 if test "$cross_compiling" = yes; then :
13409 :
13410else
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 13412/* end confdefs.h. */
c971b7fa 13413
8690e634
JK
13414#include <locale.h>
13415#include <string.h>
13416/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13417 <wchar.h>.
13418 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13419 included before <wchar.h>. */
13420#include <stddef.h>
13421#include <stdio.h>
13422#include <time.h>
13423#include <wchar.h>
13424int main ()
13425{
13426 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13427 {
13428 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13429 mbstate_t state;
13430 wchar_t wc;
13431
13432 memset (&state, '\0', sizeof (mbstate_t));
13433 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13434 if (mbsinit (&state))
13435 return 1;
13436 }
c971b7fa
PA
13437 return 0;
13438}
13439_ACEOF
8690e634
JK
13440if ac_fn_c_try_run "$LINENO"; then :
13441 gl_cv_func_mbrtowc_incomplete_state=yes
13442else
13443 gl_cv_func_mbrtowc_incomplete_state=no
13444fi
13445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13446 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13447fi
c971b7fa 13448
8690e634 13449 fi
c971b7fa 13450
8690e634
JK
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13453$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 13454
8690e634
JK
13455
13456
13457
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13459$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13460if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
13461 $as_echo_n "(cached) " >&6
13462else
8690e634
JK
13463
13464 case "$host_os" in
13465 # Guess no on Solaris 8.
13466 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13467 # Guess yes otherwise.
13468 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13469 esac
13470 if test $LOCALE_ZH_CN != none; then
13471 if test "$cross_compiling" = yes; then :
13472 :
13473else
c971b7fa
PA
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475/* end confdefs.h. */
c971b7fa 13476
8690e634
JK
13477#include <locale.h>
13478#include <stdlib.h>
13479#include <string.h>
13480/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13481 <wchar.h>.
13482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13483 included before <wchar.h>. */
13484#include <stddef.h>
13485#include <stdio.h>
13486#include <time.h>
13487#include <wchar.h>
13488int main ()
c971b7fa 13489{
8690e634
JK
13490 /* This fails on Solaris 8:
13491 mbrtowc returns 2, and sets wc to 0x00F0.
13492 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13493 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13494 {
13495 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13496 mbstate_t state;
13497 wchar_t wc;
13498
13499 memset (&state, '\0', sizeof (mbstate_t));
13500 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13501 && mbtowc (&wc, input + 3, 6) == 4)
13502 return 1;
13503 }
c971b7fa
PA
13504 return 0;
13505}
13506_ACEOF
8690e634
JK
13507if ac_fn_c_try_run "$LINENO"; then :
13508 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 13509else
8690e634 13510 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 13511fi
8690e634
JK
13512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13513 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13514fi
8690e634
JK
13515
13516 fi
13517
13518fi
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13520$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13521
13522 REPLACE_MBSTATE_T=0
13523 case "$gl_cv_func_mbrtowc_incomplete_state" in
13524 *yes) ;;
13525 *) REPLACE_MBSTATE_T=1 ;;
13526 esac
13527 case "$gl_cv_func_mbrtowc_sanitycheck" in
13528 *yes) ;;
13529 *) REPLACE_MBSTATE_T=1 ;;
13530 esac
c971b7fa 13531 else
8690e634 13532 REPLACE_MBSTATE_T=1
c971b7fa
PA
13533 fi
13534
13535
c971b7fa 13536
8690e634
JK
13537 if test $ac_cv_func_mbsrtowcs = no; then
13538 HAVE_MBSRTOWCS=0
13539 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13540/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13541 <wchar.h>.
13542 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13543 included before <wchar.h>. */
13544#include <stddef.h>
13545#include <stdio.h>
13546#include <time.h>
13547#include <wchar.h>
13548
13549"
13550if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13551 ac_have_decl=1
c971b7fa 13552else
8690e634 13553 ac_have_decl=0
c971b7fa 13554fi
c971b7fa 13555
8690e634
JK
13556cat >>confdefs.h <<_ACEOF
13557#define HAVE_DECL_MBSRTOWCS $ac_have_decl
13558_ACEOF
c971b7fa 13559
8690e634
JK
13560 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13561 REPLACE_MBSRTOWCS=1
13562 fi
c971b7fa 13563 else
8690e634
JK
13564 if test $REPLACE_MBSTATE_T = 1; then
13565 REPLACE_MBSRTOWCS=1
13566 else
c971b7fa 13567
8690e634
JK
13568
13569
13570
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13574$as_echo_n "checking whether mbsrtowcs works... " >&6; }
13575if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
13576 $as_echo_n "(cached) " >&6
13577else
8690e634
JK
13578
13579 case "$host_os" in
13580 # Guess no on HP-UX, Solaris, mingw.
13581 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13582 # Guess yes otherwise.
13583 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13584 esac
13585 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13586 if test "$cross_compiling" = yes; then :
13587 :
13588else
c971b7fa
PA
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h. */
c971b7fa 13591
8690e634
JK
13592#include <locale.h>
13593#include <string.h>
13594/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13595 <wchar.h>.
13596 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13597 included before <wchar.h>. */
13598#include <stddef.h>
13599#include <stdio.h>
13600#include <time.h>
13601#include <wchar.h>
13602int main ()
c971b7fa 13603{
8690e634
JK
13604 int result = 0;
13605 /* Test whether the function supports a NULL destination argument.
13606 This fails on native Windows. */
13607 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13608 {
13609 const char input[] = "\337er";
13610 const char *src = input;
13611 mbstate_t state;
c971b7fa 13612
8690e634
JK
13613 memset (&state, '\0', sizeof (mbstate_t));
13614 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13615 || src != input)
13616 result |= 1;
13617 }
13618 /* Test whether the function works when started with a conversion state
13619 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13620 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13621 {
13622 const char input[] = "B\303\274\303\237er";
13623 mbstate_t state;
13624
13625 memset (&state, '\0', sizeof (mbstate_t));
13626 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13627 if (!mbsinit (&state))
13628 {
13629 const char *src = input + 2;
13630 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13631 result |= 2;
13632 }
13633 }
13634 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13635 {
13636 const char input[] = "<\306\374\313\334\270\354>";
13637 mbstate_t state;
13638
13639 memset (&state, '\0', sizeof (mbstate_t));
13640 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13641 if (!mbsinit (&state))
13642 {
13643 const char *src = input + 4;
13644 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13645 result |= 4;
13646 }
13647 }
13648 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13649 {
13650 const char input[] = "B\250\271\201\060\211\070er";
13651 mbstate_t state;
13652
13653 memset (&state, '\0', sizeof (mbstate_t));
13654 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13655 if (!mbsinit (&state))
13656 {
13657 const char *src = input + 2;
13658 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13659 result |= 8;
13660 }
13661 }
13662 return result;
c971b7fa
PA
13663}
13664_ACEOF
8690e634
JK
13665if ac_fn_c_try_run "$LINENO"; then :
13666 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 13667else
8690e634 13668 gl_cv_func_mbsrtowcs_works=no
c971b7fa 13669fi
8690e634
JK
13670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13671 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13672fi
8690e634
JK
13673
13674 fi
13675
13676fi
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13678$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13679
13680 case "$gl_cv_func_mbsrtowcs_works" in
13681 *yes) ;;
13682 *) REPLACE_MBSRTOWCS=1 ;;
13683 esac
13684 fi
c971b7fa
PA
13685 fi
13686
a512b375 13687 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 13688
c971b7fa 13689
c971b7fa 13690
c971b7fa 13691
c971b7fa 13692
c971b7fa 13693
c971b7fa
PA
13694
13695
8690e634
JK
13696 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13707
13708
13709 :
13710
a512b375 13711 fi
8690e634
JK
13712
13713
13714
13715
13716
13717 GNULIB_MBSRTOWCS=1
13718
13719
13720
13721
13722
13723$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
13724
13725
13726
13727
a512b375 13728 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
13729
13730
13731
13732
13733
13734
13735
13736
13737 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13738
13739
13740 for ac_header in bp-sym.h
13741do :
13742 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13743if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13744 cat >>confdefs.h <<_ACEOF
13745#define HAVE_BP_SYM_H 1
13746_ACEOF
13747
13748fi
13749
13750done
13751
13752
a512b375 13753 fi
c971b7fa
PA
13754
13755
13756
13757
13758
13759 GNULIB_MEMCHR=1
13760
13761
13762
13763
13764
13765$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13766
13767
13768
13769
13770
13771 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13773$as_echo_n "checking whether memmem works in linear time... " >&6; }
13774if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13775 $as_echo_n "(cached) " >&6
13776else
13777 if test "$cross_compiling" = yes; then :
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779/* end confdefs.h. */
13780
13781#include <features.h>
13782#ifdef __GNU_LIBRARY__
13783 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13784 && !defined __UCLIBC__
13785 Lucky user
13786 #endif
13787#endif
13788#ifdef __CYGWIN__
13789 #include <cygwin/version.h>
13790 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13791 Lucky user
13792 #endif
13793#endif
13794
13795_ACEOF
13796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
13798 gl_cv_func_memmem_works_fast="guessing yes"
13799else
13800 gl_cv_func_memmem_works_fast="guessing no"
13801fi
13802rm -f conftest*
13803
13804
13805else
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h. */
13808
13809#include <signal.h> /* for signal */
13810#include <string.h> /* for memmem */
13811#include <stdlib.h> /* for malloc */
13812#include <unistd.h> /* for alarm */
13813static void quit (int sig) { exit (sig + 128); }
13814
13815int
13816main ()
13817{
13818
13819 int result = 0;
13820 size_t m = 1000000;
13821 char *haystack = (char *) malloc (2 * m + 1);
13822 char *needle = (char *) malloc (m + 1);
13823 /* Failure to compile this test due to missing alarm is okay,
13824 since all such platforms (mingw) also lack memmem. */
13825 signal (SIGALRM, quit);
13826 alarm (5);
13827 /* Check for quadratic performance. */
13828 if (haystack && needle)
13829 {
13830 memset (haystack, 'A', 2 * m);
13831 haystack[2 * m] = 'B';
13832 memset (needle, 'A', m);
13833 needle[m] = 'B';
13834 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13835 result |= 1;
13836 }
13837 return result;
13838
13839 ;
13840 return 0;
13841}
13842_ACEOF
13843if ac_fn_c_try_run "$LINENO"; then :
13844 gl_cv_func_memmem_works_fast=yes
13845else
13846 gl_cv_func_memmem_works_fast=no
13847fi
13848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13849 conftest.$ac_objext conftest.beam conftest.$ac_ext
13850fi
13851
13852
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13855$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13856 case "$gl_cv_func_memmem_works_fast" in
13857 *yes) ;;
13858 *)
13859 REPLACE_MEMMEM=1
13860 ;;
13861 esac
13862 fi
13863
13864 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13865
13866
13867
13868
13869
13870
13871
13872
13873 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13874
13875 fi
13876
13877
13878
13879
13880 for ac_func in memmem
13881do :
13882 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13883if test "x$ac_cv_func_memmem" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885#define HAVE_MEMMEM 1
13886_ACEOF
13887
13888fi
13889done
13890
13891 if test $ac_cv_func_memmem = yes; then
13892 HAVE_MEMMEM=1
13893 else
13894 HAVE_MEMMEM=0
13895 fi
13896
13897 if test $ac_cv_have_decl_memmem = no; then
13898 HAVE_DECL_MEMMEM=0
13899 else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13901$as_echo_n "checking whether memmem works... " >&6; }
13902if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13904else
13905 if test "$cross_compiling" = yes; then :
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907/* end confdefs.h. */
13908
13909#ifdef __GNU_LIBRARY__
13910 #include <features.h>
13911 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13912 || __GLIBC_MINOR__ > 12)) \
13913 || (__GLIBC__ > 2)) \
13914 || defined __UCLIBC__
13915 Lucky user
13916 #endif
13917#elif defined __CYGWIN__
13918 #include <cygwin/version.h>
13919 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13920 Lucky user
13921 #endif
13922#else
13923 Lucky user
13924#endif
13925
13926_ACEOF
13927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13928 $EGREP "Lucky user" >/dev/null 2>&1; then :
13929 gl_cv_func_memmem_works_always="guessing yes"
13930else
13931 gl_cv_func_memmem_works_always="guessing no"
13932fi
13933rm -f conftest*
13934
13935
13936else
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938/* end confdefs.h. */
13939
13940#include <string.h> /* for memmem */
13941#define P "_EF_BF_BD"
13942#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13943#define NEEDLE P P P P P
13944
13945int
13946main ()
13947{
13948
13949 int result = 0;
13950 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13951 result |= 1;
13952 /* Check for empty needle behavior. */
13953 {
13954 const char *haystack = "AAA";
13955 if (memmem (haystack, 3, NULL, 0) != haystack)
13956 result |= 2;
13957 }
13958 return result;
13959
13960 ;
13961 return 0;
13962}
13963_ACEOF
13964if ac_fn_c_try_run "$LINENO"; then :
13965 gl_cv_func_memmem_works_always=yes
13966else
13967 gl_cv_func_memmem_works_always=no
13968fi
13969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13970 conftest.$ac_objext conftest.beam conftest.$ac_ext
13971fi
13972
13973
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13976$as_echo "$gl_cv_func_memmem_works_always" >&6; }
13977 case "$gl_cv_func_memmem_works_always" in
13978 *yes) ;;
13979 *)
13980 REPLACE_MEMMEM=1
13981 ;;
13982 esac
13983 fi
13984 :
13985
13986 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13987
13988
13989
13990
13991
13992
13993
13994
13995 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13996
13997 fi
13998
13999
14000
14001
14002
14003 GNULIB_MEMMEM=1
14004
14005
14006
14007
14008
14009$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14010
14011
14012
14013
14014
14015
14016
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14019$as_echo_n "checking for ssize_t... " >&6; }
14020if test "${gt_cv_ssize_t+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14022else
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h. */
14025#include <sys/types.h>
14026int
14027main ()
14028{
14029int x = sizeof (ssize_t *) + sizeof (ssize_t);
14030 return !x;
14031 ;
14032 return 0;
14033}
14034_ACEOF
14035if ac_fn_c_try_compile "$LINENO"; then :
14036 gt_cv_ssize_t=yes
14037else
14038 gt_cv_ssize_t=no
14039fi
14040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041fi
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14043$as_echo "$gt_cv_ssize_t" >&6; }
14044 if test $gt_cv_ssize_t = no; then
14045
14046$as_echo "#define ssize_t int" >>confdefs.h
14047
14048 fi
14049
14050
14051
14052
14053 # Define two additional variables used in the Makefile substitution.
14054
14055 if test "$ac_cv_header_stdbool_h" = yes; then
14056 STDBOOL_H=''
14057 else
14058 STDBOOL_H='stdbool.h'
14059 fi
14060
14061 if test -n "$STDBOOL_H"; then
14062 GL_GENERATE_STDBOOL_H_TRUE=
14063 GL_GENERATE_STDBOOL_H_FALSE='#'
14064else
14065 GL_GENERATE_STDBOOL_H_TRUE='#'
14066 GL_GENERATE_STDBOOL_H_FALSE=
14067fi
14068
14069
14070 if test "$ac_cv_type__Bool" = yes; then
14071 HAVE__BOOL=1
14072 else
14073 HAVE__BOOL=0
14074 fi
14075
14076
14077
14078
14079
14080 STDDEF_H=
14081 if test $gt_cv_c_wchar_t = no; then
14082 HAVE_WCHAR_T=0
14083 STDDEF_H=stddef.h
14084 fi
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14086$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14087if test "${gl_cv_decl_null_works+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14089else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h. */
14092#include <stddef.h>
14093 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14094
14095int
14096main ()
14097{
14098
14099 ;
14100 return 0;
14101}
14102_ACEOF
14103if ac_fn_c_try_compile "$LINENO"; then :
14104 gl_cv_decl_null_works=yes
14105else
14106 gl_cv_decl_null_works=no
14107fi
14108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109fi
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14111$as_echo "$gl_cv_decl_null_works" >&6; }
14112 if test $gl_cv_decl_null_works = no; then
14113 REPLACE_NULL=1
14114 STDDEF_H=stddef.h
14115 fi
14116
14117 if test -n "$STDDEF_H"; then
14118 GL_GENERATE_STDDEF_H_TRUE=
14119 GL_GENERATE_STDDEF_H_FALSE='#'
14120else
14121 GL_GENERATE_STDDEF_H_TRUE='#'
14122 GL_GENERATE_STDDEF_H_FALSE=
14123fi
14124
14125 if test -n "$STDDEF_H"; then
14126
14127
14128
14129
14130
14131
14132
14133
14134 if test $gl_cv_have_include_next = yes; then
14135 gl_cv_next_stddef_h='<'stddef.h'>'
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14138$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14139if test "${gl_cv_next_stddef_h+set}" = set; then :
14140 $as_echo_n "(cached) " >&6
14141else
14142
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h. */
14145#include <stddef.h>
14146
14147_ACEOF
14148 case "$host_os" in
14149 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14150 *) gl_absname_cpp="$ac_cpp" ;;
14151 esac
14152
14153 case "$host_os" in
14154 mingw*)
14155 gl_dirsep_regex='[/\\]'
14156 ;;
14157 *)
14158 gl_dirsep_regex='\/'
14159 ;;
14160 esac
14161 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14162
14163 gl_header_literal_regex=`echo 'stddef.h' \
14164 | sed -e "$gl_make_literal_regex_sed"`
14165 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14166 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14167 s|^/[^/]|//&|
14168 p
14169 q
14170 }'
14171 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14172 sed -n "$gl_absolute_header_sed"`'"'
14173
14174
14175fi
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14177$as_echo "$gl_cv_next_stddef_h" >&6; }
14178 fi
14179 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14180
14181 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14183 gl_next_as_first_directive='<'stddef.h'>'
14184 else
14185 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14186 gl_next_as_first_directive=$gl_cv_next_stddef_h
14187 fi
14188 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14189
14190
14191
14192
14193 fi
14194
14195
14196
14197
14198
14199
14200
63ce7108
TT
14201 if test $REPLACE_STRSTR = 0; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14203$as_echo_n "checking whether strstr works in linear time... " >&6; }
14204if test "${gl_cv_func_strstr_linear+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14206else
14207 if test "$cross_compiling" = yes; then :
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209/* end confdefs.h. */
14210
14211#include <features.h>
14212#ifdef __GNU_LIBRARY__
14213 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14214 && !(defined __i386__ || defined __x86_64__) \
14215 && !defined __UCLIBC__
14216 Lucky user
14217 #endif
14218#endif
14219#ifdef __CYGWIN__
14220 #include <cygwin/version.h>
14221 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14222 Lucky user
14223 #endif
14224#endif
14225
14226_ACEOF
14227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14228 $EGREP "Lucky user" >/dev/null 2>&1; then :
14229 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 14230else
63ce7108 14231 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
14232fi
14233rm -f conftest*
14234
14235
14236else
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h. */
14239
14240#include <signal.h> /* for signal */
63ce7108 14241#include <string.h> /* for strstr */
c971b7fa
PA
14242#include <stdlib.h> /* for malloc */
14243#include <unistd.h> /* for alarm */
14244static void quit (int sig) { exit (sig + 128); }
14245
14246int
14247main ()
14248{
14249
14250 int result = 0;
14251 size_t m = 1000000;
63ce7108
TT
14252 char *haystack = (char *) malloc (2 * m + 2);
14253 char *needle = (char *) malloc (m + 2);
c971b7fa 14254 /* Failure to compile this test due to missing alarm is okay,
63ce7108 14255 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
14256 signal (SIGALRM, quit);
14257 alarm (5);
14258 /* Check for quadratic performance. */
14259 if (haystack && needle)
14260 {
14261 memset (haystack, 'A', 2 * m);
14262 haystack[2 * m] = 'B';
63ce7108 14263 haystack[2 * m + 1] = 0;
c971b7fa
PA
14264 memset (needle, 'A', m);
14265 needle[m] = 'B';
63ce7108
TT
14266 needle[m + 1] = 0;
14267 if (!strstr (haystack, needle))
c971b7fa
PA
14268 result |= 1;
14269 }
14270 return result;
14271
14272 ;
14273 return 0;
14274}
14275_ACEOF
14276if ac_fn_c_try_run "$LINENO"; then :
63ce7108 14277 gl_cv_func_strstr_linear=yes
c971b7fa 14278else
63ce7108 14279 gl_cv_func_strstr_linear=no
c971b7fa
PA
14280fi
14281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14282 conftest.$ac_objext conftest.beam conftest.$ac_ext
14283fi
14284
14285
14286fi
63ce7108
TT
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14288$as_echo "$gl_cv_func_strstr_linear" >&6; }
14289 case "$gl_cv_func_strstr_linear" in
40a73391
JK
14290 *yes) ;;
14291 *)
63ce7108 14292 REPLACE_STRSTR=1
40a73391
JK
14293 ;;
14294 esac
c971b7fa
PA
14295 fi
14296
63ce7108 14297 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
14298
14299
14300
14301
14302
14303
14304
14305
63ce7108 14306 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 14307
a512b375 14308 fi
c971b7fa
PA
14309
14310
14311
63ce7108
TT
14312 if test "$gl_cv_func_memchr_works" != yes; then
14313 REPLACE_STRSTR=1
c971b7fa 14314 else
63ce7108
TT
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14316$as_echo_n "checking whether strstr works... " >&6; }
14317if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
14318 $as_echo_n "(cached) " >&6
14319else
14320 if test "$cross_compiling" = yes; then :
63ce7108 14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14322/* end confdefs.h. */
14323
14324#ifdef __GNU_LIBRARY__
14325 #include <features.h>
63ce7108 14326 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
14327 || defined __UCLIBC__
14328 Lucky user
14329 #endif
14330#elif defined __CYGWIN__
14331 #include <cygwin/version.h>
14332 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14333 Lucky user
14334 #endif
14335#else
14336 Lucky user
14337#endif
14338
14339_ACEOF
14340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 14342 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 14343else
63ce7108 14344 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
14345fi
14346rm -f conftest*
14347
14348
14349else
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351/* end confdefs.h. */
14352
63ce7108 14353#include <string.h> /* for strstr */
c971b7fa
PA
14354#define P "_EF_BF_BD"
14355#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14356#define NEEDLE P P P P P
14357
14358int
14359main ()
14360{
63ce7108 14361return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
14362
14363 ;
14364 return 0;
14365}
14366_ACEOF
14367if ac_fn_c_try_run "$LINENO"; then :
63ce7108 14368 gl_cv_func_strstr_works_always=yes
c971b7fa 14369else
63ce7108 14370 gl_cv_func_strstr_works_always=no
c971b7fa
PA
14371fi
14372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14373 conftest.$ac_objext conftest.beam conftest.$ac_ext
14374fi
14375
14376
14377fi
63ce7108
TT
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14379$as_echo "$gl_cv_func_strstr_works_always" >&6; }
14380 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
14381 *yes) ;;
14382 *)
63ce7108 14383 REPLACE_STRSTR=1
40a73391
JK
14384 ;;
14385 esac
c971b7fa 14386 fi
8839a007 14387
63ce7108 14388 if test $REPLACE_STRSTR = 1; then
8839a007 14389
8690e634
JK
14390
14391
8690e634
JK
14392
14393
14394
14395
14396
63ce7108 14397 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 14398
8690e634
JK
14399 fi
14400
8690e634
JK
14401
14402
8690e634 14403
8690e634 14404
63ce7108 14405 GNULIB_STRSTR=1
8690e634
JK
14406
14407
14408
8690e634
JK
14409
14410
63ce7108 14411$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
8690e634 14424
09607c9e
TT
14425
14426
14427
14428
14429 if test $gl_cv_have_include_next = yes; then
14430 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14431 else
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14433$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14434if test "${gl_cv_next_sys_stat_h+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14436else
14437
14438 if test $ac_cv_header_sys_stat_h = yes; then
14439
14440
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h. */
14443#include <sys/stat.h>
14444
14445_ACEOF
14446 case "$host_os" in
14447 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14448 *) gl_absname_cpp="$ac_cpp" ;;
14449 esac
14450
14451 case "$host_os" in
14452 mingw*)
14453 gl_dirsep_regex='[/\\]'
14454 ;;
14455 *)
14456 gl_dirsep_regex='\/'
14457 ;;
14458 esac
14459 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14460
14461 gl_header_literal_regex=`echo 'sys/stat.h' \
14462 | sed -e "$gl_make_literal_regex_sed"`
14463 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14464 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14465 s|^/[^/]|//&|
14466 p
14467 q
14468 }'
14469 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14470 sed -n "$gl_absolute_header_sed"`'"'
14471 else
14472 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14473 fi
14474
14475
14476fi
14477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14478$as_echo "$gl_cv_next_sys_stat_h" >&6; }
14479 fi
14480 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14481
14482 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14483 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14484 gl_next_as_first_directive='<'sys/stat.h'>'
14485 else
14486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14487 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
14488 fi
14489 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
14490
14491
14492
14493
14494
14495
14496
14497
14498 WINDOWS_64_BIT_ST_SIZE=0
14499
14500
14501 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
14502
14503$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
14504
14505 fi
14506
14507 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14508 #include <sys/stat.h>
14509"
14510if test "x$ac_cv_type_nlink_t" = x""yes; then :
14511
14512else
14513
14514$as_echo "#define nlink_t int" >>confdefs.h
14515
14516fi
14517
14518
14519
14520 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
14521 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14523$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14524if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14525 $as_echo_n "(cached) " >&6
14526else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h. */
14529#include <sys/stat.h>
14530
14531int
14532main ()
14533{
14534#undef $gl_func
14535 (void) $gl_func;
14536 ;
14537 return 0;
14538}
14539_ACEOF
14540if ac_fn_c_try_compile "$LINENO"; then :
14541 eval "$as_gl_Symbol=yes"
14542else
14543 eval "$as_gl_Symbol=no"
14544fi
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546fi
14547eval ac_res=\$$as_gl_Symbol
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14549$as_echo "$ac_res" >&6; }
14550 eval as_val=\$$as_gl_Symbol
14551 if test "x$as_val" = x""yes; then :
14552 cat >>confdefs.h <<_ACEOF
14553#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14554_ACEOF
14555
14556 eval ac_cv_have_decl_$gl_func=yes
14557fi
14558 done
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
8839a007
PA
14573 if test $gl_cv_have_include_next = yes; then
14574 gl_cv_next_sys_types_h='<'sys/types.h'>'
14575 else
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14577$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14578if test "${gl_cv_next_sys_types_h+set}" = set; then :
14579 $as_echo_n "(cached) " >&6
14580else
14581
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583/* end confdefs.h. */
14584#include <sys/types.h>
14585
14586_ACEOF
14587 case "$host_os" in
14588 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14589 *) gl_absname_cpp="$ac_cpp" ;;
14590 esac
14591
14592 case "$host_os" in
14593 mingw*)
14594 gl_dirsep_regex='[/\\]'
14595 ;;
14596 *)
14597 gl_dirsep_regex='\/'
14598 ;;
14599 esac
14600 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14601
14602 gl_header_literal_regex=`echo 'sys/types.h' \
14603 | sed -e "$gl_make_literal_regex_sed"`
14604 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14605 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14606 s|^/[^/]|//&|
14607 p
14608 q
14609 }'
14610 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14611 sed -n "$gl_absolute_header_sed"`'"'
14612
14613
14614fi
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14616$as_echo "$gl_cv_next_sys_types_h" >&6; }
14617 fi
14618 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14619
14620 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14621 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14622 gl_next_as_first_directive='<'sys/types.h'>'
14623 else
14624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14625 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14626 fi
14627 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
09607c9e
TT
14649
14650
8839a007
PA
14651
14652
14653
14654
14655 if test $gl_cv_have_include_next = yes; then
14656 gl_cv_next_unistd_h='<'unistd.h'>'
14657 else
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14659$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14660if test "${gl_cv_next_unistd_h+set}" = set; then :
14661 $as_echo_n "(cached) " >&6
14662else
14663
14664 if test $ac_cv_header_unistd_h = yes; then
14665
14666
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668/* end confdefs.h. */
14669#include <unistd.h>
14670
14671_ACEOF
14672 case "$host_os" in
14673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14674 *) gl_absname_cpp="$ac_cpp" ;;
14675 esac
14676
14677 case "$host_os" in
14678 mingw*)
14679 gl_dirsep_regex='[/\\]'
14680 ;;
14681 *)
14682 gl_dirsep_regex='\/'
14683 ;;
14684 esac
14685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14686
14687 gl_header_literal_regex=`echo 'unistd.h' \
14688 | sed -e "$gl_make_literal_regex_sed"`
14689 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14691 s|^/[^/]|//&|
14692 p
14693 q
14694 }'
14695 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14696 sed -n "$gl_absolute_header_sed"`'"'
14697 else
14698 gl_cv_next_unistd_h='<'unistd.h'>'
14699 fi
14700
14701
14702fi
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14704$as_echo "$gl_cv_next_unistd_h" >&6; }
14705 fi
14706 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14707
14708 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14710 gl_next_as_first_directive='<'unistd.h'>'
14711 else
14712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14713 gl_next_as_first_directive=$gl_cv_next_unistd_h
14714 fi
14715 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14716
14717
14718
14719
14720 if test $ac_cv_header_unistd_h = yes; then
14721 HAVE_UNISTD_H=1
14722 else
14723 HAVE_UNISTD_H=0
14724 fi
14725
14726
14727
14728
14729
14730
14731
14732 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
14733 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14735$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14736if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14737 $as_echo_n "(cached) " >&6
14738else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h. */
14741
14742#if HAVE_UNISTD_H
14743# include <unistd.h>
14744#endif
14745/* Some systems declare various items in the wrong headers. */
14746#if !(defined __GLIBC__ && !defined __UCLIBC__)
14747# include <fcntl.h>
14748# include <stdio.h>
14749# include <stdlib.h>
14750# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14751# include <io.h>
14752# endif
14753#endif
14754
14755int
14756main ()
14757{
14758#undef $gl_func
14759 (void) $gl_func;
14760 ;
14761 return 0;
14762}
14763_ACEOF
14764if ac_fn_c_try_compile "$LINENO"; then :
14765 eval "$as_gl_Symbol=yes"
14766else
14767 eval "$as_gl_Symbol=no"
14768fi
14769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770fi
14771eval ac_res=\$$as_gl_Symbol
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14773$as_echo "$ac_res" >&6; }
14774 eval as_val=\$$as_gl_Symbol
14775 if test "x$as_val" = x""yes; then :
14776 cat >>confdefs.h <<_ACEOF
14777#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14778_ACEOF
14779
14780 eval ac_cv_have_decl_$gl_func=yes
14781fi
14782 done
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
8690e634
JK
14795
14796
14797 if test $gl_cv_have_include_next = yes; then
14798 gl_cv_next_wchar_h='<'wchar.h'>'
14799 else
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14801$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14802if test "${gl_cv_next_wchar_h+set}" = set; then :
14803 $as_echo_n "(cached) " >&6
14804else
14805
14806 if test $ac_cv_header_wchar_h = yes; then
14807
14808
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h. */
14811#include <wchar.h>
14812
14813_ACEOF
14814 case "$host_os" in
14815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14816 *) gl_absname_cpp="$ac_cpp" ;;
14817 esac
14818
14819 case "$host_os" in
14820 mingw*)
14821 gl_dirsep_regex='[/\\]'
14822 ;;
14823 *)
14824 gl_dirsep_regex='\/'
14825 ;;
14826 esac
14827 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14828
14829 gl_header_literal_regex=`echo 'wchar.h' \
14830 | sed -e "$gl_make_literal_regex_sed"`
14831 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14833 s|^/[^/]|//&|
14834 p
14835 q
14836 }'
14837 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14838 sed -n "$gl_absolute_header_sed"`'"'
14839 else
14840 gl_cv_next_wchar_h='<'wchar.h'>'
14841 fi
14842
14843
14844fi
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14846$as_echo "$gl_cv_next_wchar_h" >&6; }
14847 fi
14848 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14849
14850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14852 gl_next_as_first_directive='<'wchar.h'>'
14853 else
14854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14855 gl_next_as_first_directive=$gl_cv_next_wchar_h
14856 fi
14857 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14858
14859
14860
14861
14862 if test $ac_cv_header_wchar_h = yes; then
14863 HAVE_WCHAR_H=1
14864 else
14865 HAVE_WCHAR_H=0
14866 fi
14867
c971b7fa
PA
14868
14869
14870
14871
8690e634
JK
14872 if test $gt_cv_c_wint_t = yes; then
14873 HAVE_WINT_T=1
14874 else
14875 HAVE_WINT_T=0
14876 fi
c971b7fa
PA
14877
14878
14879
8690e634
JK
14880 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
14881 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14883$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14884if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
14885 $as_echo_n "(cached) " >&6
14886else
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h. */
8690e634
JK
14889
14890/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14891 <wchar.h>.
14892 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14893 included before <wchar.h>. */
14894#if !(defined __GLIBC__ && !defined __UCLIBC__)
14895# include <stddef.h>
14896# include <stdio.h>
14897# include <time.h>
14898#endif
14899#include <wchar.h>
c971b7fa
PA
14900
14901int
14902main ()
14903{
8690e634
JK
14904#undef $gl_func
14905 (void) $gl_func;
c971b7fa
PA
14906 ;
14907 return 0;
14908}
14909_ACEOF
14910if ac_fn_c_try_compile "$LINENO"; then :
8690e634 14911 eval "$as_gl_Symbol=yes"
c971b7fa 14912else
8690e634 14913 eval "$as_gl_Symbol=no"
c971b7fa
PA
14914fi
14915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916fi
8690e634
JK
14917eval ac_res=\$$as_gl_Symbol
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14919$as_echo "$ac_res" >&6; }
14920 eval as_val=\$$as_gl_Symbol
14921 if test "x$as_val" = x""yes; then :
14922 cat >>confdefs.h <<_ACEOF
14923#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14924_ACEOF
c971b7fa 14925
8690e634 14926 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 14927fi
8690e634
JK
14928 done
14929
14930
14931
14932
14933
14934
14935
8690e634
JK
14936 if test $ac_cv_func_iswcntrl = yes; then
14937 HAVE_ISWCNTRL=1
14938 else
14939 HAVE_ISWCNTRL=0
14940 fi
14941
14942
14943
8690e634
JK
14944 if test $gt_cv_c_wint_t = yes; then
14945 HAVE_WINT_T=1
14946 else
14947 HAVE_WINT_T=0
14948 fi
14949
14950
14951
14952
14953
14954
c971b7fa 14955
8690e634 14956
c971b7fa
PA
14957
14958
14959
14960 if test $gl_cv_have_include_next = yes; then
8690e634 14961 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 14962 else
8690e634
JK
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14964$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14965if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
14966 $as_echo_n "(cached) " >&6
14967else
14968
8690e634
JK
14969 if test $ac_cv_header_wctype_h = yes; then
14970
14971
c971b7fa
PA
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973/* end confdefs.h. */
8690e634 14974#include <wctype.h>
c971b7fa
PA
14975
14976_ACEOF
14977 case "$host_os" in
14978 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14979 *) gl_absname_cpp="$ac_cpp" ;;
14980 esac
14981
14982 case "$host_os" in
14983 mingw*)
14984 gl_dirsep_regex='[/\\]'
14985 ;;
14986 *)
14987 gl_dirsep_regex='\/'
14988 ;;
14989 esac
14990 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14991
8690e634 14992 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
14993 | sed -e "$gl_make_literal_regex_sed"`
14994 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14995 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14996 s|^/[^/]|//&|
14997 p
14998 q
14999 }'
8690e634 15000 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 15001 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
15002 else
15003 gl_cv_next_wctype_h='<'wctype.h'>'
15004 fi
c971b7fa
PA
15005
15006
15007fi
8690e634
JK
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15009$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 15010 fi
8690e634 15011 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
15012
15013 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 15015 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
15016 else
15017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 15018 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 15019 fi
8690e634
JK
15020 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15021
15022
15023
15024
15025 if test $ac_cv_header_wctype_h = yes; then
15026 if test $ac_cv_func_iswcntrl = yes; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15028$as_echo_n "checking whether iswcntrl works... " >&6; }
15029if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15031else
15032
15033 if test "$cross_compiling" = yes; then :
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h. */
15036#include <stdlib.h>
15037 #if __GNU_LIBRARY__ == 1
15038 Linux libc5 i18n is broken.
15039 #endif
15040int
15041main ()
15042{
15043
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048if ac_fn_c_try_compile "$LINENO"; then :
15049 gl_cv_func_iswcntrl_works="guessing yes"
15050else
15051 gl_cv_func_iswcntrl_works="guessing no"
15052fi
15053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054
15055else
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057/* end confdefs.h. */
15058
15059 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15060 included before <wchar.h>.
15061 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15062 must be included before <wchar.h>. */
15063 #include <stddef.h>
15064 #include <stdio.h>
15065 #include <time.h>
15066 #include <wchar.h>
15067 #include <wctype.h>
15068 int main () { return iswprint ('x') == 0; }
15069
15070_ACEOF
15071if ac_fn_c_try_run "$LINENO"; then :
15072 gl_cv_func_iswcntrl_works=yes
15073else
15074 gl_cv_func_iswcntrl_works=no
15075fi
15076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15077 conftest.$ac_objext conftest.beam conftest.$ac_ext
15078fi
15079
15080
15081fi
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15083$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15084 fi
15085 HAVE_WCTYPE_H=1
15086 else
15087 HAVE_WCTYPE_H=0
15088 fi
15089
15090
15091 case "$gl_cv_func_iswcntrl_works" in
15092 *yes) REPLACE_ISWCNTRL=0 ;;
15093 *) REPLACE_ISWCNTRL=1 ;;
15094 esac
15095
15096
15097 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15098 :
15099 fi
15100
15101 if test $REPLACE_ISWCNTRL = 1; then
15102 REPLACE_TOWLOWER=1
15103 else
15104 for ac_func in towlower
15105do :
15106 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15107if test "x$ac_cv_func_towlower" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109#define HAVE_TOWLOWER 1
15110_ACEOF
15111
15112fi
15113done
15114
15115 if test $ac_cv_func_towlower = yes; then
15116 REPLACE_TOWLOWER=0
15117 else
15118 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15119 included before <wchar.h>.
15120 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15121 must be included before <wchar.h>. */
15122 #include <stddef.h>
15123 #include <stdio.h>
15124 #include <time.h>
15125 #include <wchar.h>
15126 #if HAVE_WCTYPE_H
15127 # include <wctype.h>
15128 #endif
15129
15130"
15131if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15132 ac_have_decl=1
15133else
15134 ac_have_decl=0
15135fi
15136
15137cat >>confdefs.h <<_ACEOF
15138#define HAVE_DECL_TOWLOWER $ac_have_decl
15139_ACEOF
15140
15141 if test $ac_cv_have_decl_towlower = yes; then
15142 REPLACE_TOWLOWER=1
15143 else
15144 REPLACE_TOWLOWER=0
15145 fi
15146 fi
15147 fi
15148
15149
15150 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15151 :
15152 fi
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15155$as_echo_n "checking for wctype_t... " >&6; }
15156if test "${gl_cv_type_wctype_t+set}" = set; then :
15157 $as_echo_n "(cached) " >&6
15158else
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160/* end confdefs.h. */
15161/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15162 included before <wchar.h>.
15163 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15164 must be included before <wchar.h>. */
15165 #include <stddef.h>
15166 #include <stdio.h>
15167 #include <time.h>
15168 #include <wchar.h>
15169 #if HAVE_WCTYPE_H
15170 # include <wctype.h>
15171 #endif
15172 wctype_t a;
15173
15174int
15175main ()
15176{
15177
15178 ;
15179 return 0;
15180}
15181_ACEOF
15182if ac_fn_c_try_compile "$LINENO"; then :
15183 gl_cv_type_wctype_t=yes
15184else
15185 gl_cv_type_wctype_t=no
15186fi
15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 15188
8690e634
JK
15189fi
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15191$as_echo "$gl_cv_type_wctype_t" >&6; }
15192 if test $gl_cv_type_wctype_t = no; then
15193 HAVE_WCTYPE_T=0
15194 fi
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15197$as_echo_n "checking for wctrans_t... " >&6; }
15198if test "${gl_cv_type_wctrans_t+set}" = set; then :
15199 $as_echo_n "(cached) " >&6
15200else
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202/* end confdefs.h. */
15203/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15204 included before <wchar.h>.
15205 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15206 must be included before <wchar.h>. */
15207 #include <stddef.h>
15208 #include <stdio.h>
15209 #include <time.h>
15210 #include <wchar.h>
15211 #include <wctype.h>
15212 wctrans_t a;
c971b7fa 15213
8690e634
JK
15214int
15215main ()
15216{
c971b7fa 15217
8690e634
JK
15218 ;
15219 return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_compile "$LINENO"; then :
15223 gl_cv_type_wctrans_t=yes
15224else
15225 gl_cv_type_wctrans_t=no
15226fi
15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 15228
8690e634
JK
15229fi
15230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15231$as_echo "$gl_cv_type_wctrans_t" >&6; }
15232 if test $gl_cv_type_wctrans_t = no; then
15233 HAVE_WCTRANS_T=0
c971b7fa
PA
15234 fi
15235
15236
8690e634
JK
15237 for gl_func in wctype iswctype wctrans towctrans ; do
15238 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15240$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15241if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15242 $as_echo_n "(cached) " >&6
15243else
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h. */
15246
15247/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15248 <wchar.h>.
15249 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15250 included before <wchar.h>. */
15251#if !(defined __GLIBC__ && !defined __UCLIBC__)
15252# include <stddef.h>
15253# include <stdio.h>
15254# include <time.h>
15255# include <wchar.h>
15256#endif
15257#include <wctype.h>
15258
15259int
15260main ()
15261{
15262#undef $gl_func
15263 (void) $gl_func;
15264 ;
15265 return 0;
15266}
15267_ACEOF
15268if ac_fn_c_try_compile "$LINENO"; then :
15269 eval "$as_gl_Symbol=yes"
15270else
15271 eval "$as_gl_Symbol=no"
15272fi
15273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274fi
15275eval ac_res=\$$as_gl_Symbol
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15277$as_echo "$ac_res" >&6; }
15278 eval as_val=\$$as_gl_Symbol
15279 if test "x$as_val" = x""yes; then :
15280 cat >>confdefs.h <<_ACEOF
15281#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15282_ACEOF
c971b7fa 15283
8690e634
JK
15284 eval ac_cv_have_decl_$gl_func=yes
15285fi
15286 done
c971b7fa
PA
15287
15288
15289 # End of code from modules
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299 gltests_libdeps=
15300 gltests_ltlibdeps=
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310 gl_source_base='tests'
15311 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
15312
15313 gl_module_indicator_condition=$gltests_WITNESS
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323 LIBGNU_LIBDEPS="$gl_libdeps"
15324
15325 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15326
15327
15328
15329# We don't use automake, but gnulib does. This line lets us generate
15330# its Makefile.in.
15331am__api_version='1.11'
15332
15333# Find a good install program. We prefer a C program (faster),
15334# so one script is as good as another. But avoid the broken or
15335# incompatible versions:
15336# SysV /etc/install, /usr/sbin/install
15337# SunOS /usr/etc/install
15338# IRIX /sbin/install
15339# AIX /bin/install
15340# AmigaOS /C/install, which installs bootblocks on floppy discs
15341# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15342# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15343# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15344# OS/2's system install, which has a completely different semantic
15345# ./install, which can be erroneously created by make from ./install.sh.
15346# Reject install programs that cannot install multiple files.
15347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15348$as_echo_n "checking for a BSD-compatible install... " >&6; }
15349if test -z "$INSTALL"; then
15350if test "${ac_cv_path_install+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352else
15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354for as_dir in $PATH
15355do
15356 IFS=$as_save_IFS
15357 test -z "$as_dir" && as_dir=.
15358 # Account for people who put trailing slashes in PATH elements.
15359case $as_dir/ in #((
15360 ./ | .// | /[cC]/* | \
15361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15362 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15363 /usr/ucb/* ) ;;
15364 *)
15365 # OSF1 and SCO ODT 3.0 have their own names for install.
15366 # Don't use installbsd from OSF since it installs stuff as root
15367 # by default.
15368 for ac_prog in ginstall scoinst install; do
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15371 if test $ac_prog = install &&
15372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15373 # AIX install. It has an incompatible calling convention.
15374 :
15375 elif test $ac_prog = install &&
15376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15377 # program-specific install script used by HP pwplus--don't use.
15378 :
15379 else
15380 rm -rf conftest.one conftest.two conftest.dir
15381 echo one > conftest.one
15382 echo two > conftest.two
15383 mkdir conftest.dir
15384 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15385 test -s conftest.one && test -s conftest.two &&
15386 test -s conftest.dir/conftest.one &&
15387 test -s conftest.dir/conftest.two
15388 then
15389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15390 break 3
15391 fi
15392 fi
15393 fi
15394 done
15395 done
15396 ;;
15397esac
15398
15399 done
15400IFS=$as_save_IFS
15401
15402rm -rf conftest.one conftest.two conftest.dir
15403
15404fi
15405 if test "${ac_cv_path_install+set}" = set; then
15406 INSTALL=$ac_cv_path_install
15407 else
15408 # As a last resort, use the slow shell script. Don't cache a
15409 # value for INSTALL within a source directory, because that will
15410 # break other packages using the cache if that directory is
15411 # removed, or if the value is a relative name.
15412 INSTALL=$ac_install_sh
15413 fi
15414fi
15415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15416$as_echo "$INSTALL" >&6; }
15417
15418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15419# It thinks the first close brace ends the variable substitution.
15420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15421
15422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15423
15424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15425
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15427$as_echo_n "checking whether build environment is sane... " >&6; }
15428# Just in case
15429sleep 1
15430echo timestamp > conftest.file
15431# Reject unsafe characters in $srcdir or the absolute working directory
15432# name. Accept space and tab only in the latter.
15433am_lf='
15434'
15435case `pwd` in
15436 *[\\\"\#\$\&\'\`$am_lf]*)
15437 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
15438esac
15439case $srcdir in
15440 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
15441 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15442esac
15443
15444# Do `set' in a subshell so we don't clobber the current shell's
15445# arguments. Must try -L first in case configure is actually a
15446# symlink; some systems play weird games with the mod time of symlinks
15447# (eg FreeBSD returns the mod time of the symlink's containing
15448# directory).
15449if (
15450 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15451 if test "$*" = "X"; then
15452 # -L didn't work.
15453 set X `ls -t "$srcdir/configure" conftest.file`
15454 fi
15455 rm -f conftest.file
15456 if test "$*" != "X $srcdir/configure conftest.file" \
15457 && test "$*" != "X conftest.file $srcdir/configure"; then
15458
15459 # If neither matched, then we have a broken ls. This can happen
15460 # if, for instance, CONFIG_SHELL is bash and it inherits a
15461 # broken ls alias from the environment. This has actually
15462 # happened. Such a system could not be considered "sane".
15463 as_fn_error "ls -t appears to fail. Make sure there is not a broken
15464alias in your environment" "$LINENO" 5
15465 fi
15466
15467 test "$2" = conftest.file
15468 )
15469then
15470 # Ok.
15471 :
15472else
15473 as_fn_error "newly created file is older than distributed files!
15474Check your system clock" "$LINENO" 5
15475fi
15476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15477$as_echo "yes" >&6; }
15478test "$program_prefix" != NONE &&
15479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15480# Use a double $ so make ignores it.
15481test "$program_suffix" != NONE &&
15482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15483# Double any \ or $.
15484# By default was `s,x,x', remove it if useless.
15485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15487
15488# expand $ac_aux_dir to an absolute path
15489am_aux_dir=`cd $ac_aux_dir && pwd`
15490
15491if test x"${MISSING+set}" != xset; then
15492 case $am_aux_dir in
15493 *\ * | *\ *)
15494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15495 *)
15496 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15497 esac
15498fi
15499# Use eval to expand $SHELL
15500if eval "$MISSING --run true"; then
15501 am_missing_run="$MISSING --run "
15502else
15503 am_missing_run=
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15505$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15506fi
15507
15508if test x"${install_sh}" != xset; then
15509 case $am_aux_dir in
15510 *\ * | *\ *)
15511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15512 *)
15513 install_sh="\${SHELL} $am_aux_dir/install-sh"
15514 esac
15515fi
15516
15517# Installed binaries are usually stripped using `strip' when the user
15518# run `make install-strip'. However `strip' might not be the right
15519# tool to use in cross-compilation environments, therefore Automake
15520# will honor the `STRIP' environment variable to overrule this program.
15521if test "$cross_compiling" != no; then
15522 if test -n "$ac_tool_prefix"; then
15523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15524set dummy ${ac_tool_prefix}strip; ac_word=$2
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526$as_echo_n "checking for $ac_word... " >&6; }
15527if test "${ac_cv_prog_STRIP+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15529else
15530 if test -n "$STRIP"; then
15531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15532else
15533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534for as_dir in $PATH
15535do
15536 IFS=$as_save_IFS
15537 test -z "$as_dir" && as_dir=.
15538 for ac_exec_ext in '' $ac_executable_extensions; do
15539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15542 break 2
15543 fi
15544done
15545 done
15546IFS=$as_save_IFS
15547
15548fi
15549fi
15550STRIP=$ac_cv_prog_STRIP
15551if test -n "$STRIP"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15553$as_echo "$STRIP" >&6; }
15554else
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556$as_echo "no" >&6; }
15557fi
15558
15559
15560fi
15561if test -z "$ac_cv_prog_STRIP"; then
15562 ac_ct_STRIP=$STRIP
15563 # Extract the first word of "strip", so it can be a program name with args.
15564set dummy strip; ac_word=$2
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566$as_echo_n "checking for $ac_word... " >&6; }
15567if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569else
15570 if test -n "$ac_ct_STRIP"; then
15571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15572else
15573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574for as_dir in $PATH
15575do
15576 IFS=$as_save_IFS
15577 test -z "$as_dir" && as_dir=.
15578 for ac_exec_ext in '' $ac_executable_extensions; do
15579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15580 ac_cv_prog_ac_ct_STRIP="strip"
15581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15582 break 2
15583 fi
15584done
15585 done
15586IFS=$as_save_IFS
15587
15588fi
15589fi
15590ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15591if test -n "$ac_ct_STRIP"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15593$as_echo "$ac_ct_STRIP" >&6; }
15594else
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596$as_echo "no" >&6; }
15597fi
15598
15599 if test "x$ac_ct_STRIP" = x; then
15600 STRIP=":"
15601 else
15602 case $cross_compiling:$ac_tool_warned in
15603yes:)
15604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15606ac_tool_warned=yes ;;
15607esac
15608 STRIP=$ac_ct_STRIP
15609 fi
15610else
15611 STRIP="$ac_cv_prog_STRIP"
15612fi
15613
15614fi
15615INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15616
c971b7fa
PA
15617mkdir_p="$MKDIR_P"
15618case $mkdir_p in
15619 [\\/$]* | ?:[\\/]*) ;;
15620 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15621esac
15622
15623for ac_prog in gawk mawk nawk awk
15624do
15625 # Extract the first word of "$ac_prog", so it can be a program name with args.
15626set dummy $ac_prog; ac_word=$2
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628$as_echo_n "checking for $ac_word... " >&6; }
15629if test "${ac_cv_prog_AWK+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631else
15632 if test -n "$AWK"; then
15633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15634else
15635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636for as_dir in $PATH
15637do
15638 IFS=$as_save_IFS
15639 test -z "$as_dir" && as_dir=.
15640 for ac_exec_ext in '' $ac_executable_extensions; do
15641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15642 ac_cv_prog_AWK="$ac_prog"
15643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15644 break 2
15645 fi
15646done
15647 done
15648IFS=$as_save_IFS
15649
15650fi
15651fi
15652AWK=$ac_cv_prog_AWK
15653if test -n "$AWK"; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15655$as_echo "$AWK" >&6; }
15656else
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658$as_echo "no" >&6; }
15659fi
15660
15661
15662 test -n "$AWK" && break
15663done
15664
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15666$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15667set x ${MAKE-make}
15668ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15669if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15670 $as_echo_n "(cached) " >&6
15671else
15672 cat >conftest.make <<\_ACEOF
15673SHELL = /bin/sh
15674all:
15675 @echo '@@@%%%=$(MAKE)=@@@%%%'
15676_ACEOF
15677# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15678case `${MAKE-make} -f conftest.make 2>/dev/null` in
15679 *@@@%%%=?*=@@@%%%*)
15680 eval ac_cv_prog_make_${ac_make}_set=yes;;
15681 *)
15682 eval ac_cv_prog_make_${ac_make}_set=no;;
15683esac
15684rm -f conftest.make
15685fi
15686if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15688$as_echo "yes" >&6; }
15689 SET_MAKE=
15690else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692$as_echo "no" >&6; }
15693 SET_MAKE="MAKE=${MAKE-make}"
15694fi
15695
15696rm -rf .tst 2>/dev/null
15697mkdir .tst 2>/dev/null
15698if test -d .tst; then
15699 am__leading_dot=.
15700else
15701 am__leading_dot=_
15702fi
15703rmdir .tst 2>/dev/null
15704
15705DEPDIR="${am__leading_dot}deps"
15706
15707ac_config_commands="$ac_config_commands depfiles"
15708
15709
15710am_make=${MAKE-make}
15711cat > confinc << 'END'
15712am__doit:
15713 @echo this is the am__doit target
15714.PHONY: am__doit
15715END
15716# If we don't find an include directive, just comment out the code.
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15718$as_echo_n "checking for style of include used by $am_make... " >&6; }
15719am__include="#"
15720am__quote=
15721_am_result=none
15722# First try GNU make style include.
15723echo "include confinc" > confmf
15724# Ignore all kinds of additional output from `make'.
15725case `$am_make -s -f confmf 2> /dev/null` in #(
15726*the\ am__doit\ target*)
15727 am__include=include
15728 am__quote=
15729 _am_result=GNU
15730 ;;
15731esac
15732# Now try BSD make style include.
15733if test "$am__include" = "#"; then
15734 echo '.include "confinc"' > confmf
15735 case `$am_make -s -f confmf 2> /dev/null` in #(
15736 *the\ am__doit\ target*)
15737 am__include=.include
15738 am__quote="\""
15739 _am_result=BSD
15740 ;;
15741 esac
15742fi
15743
15744
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15746$as_echo "$_am_result" >&6; }
15747rm -f confinc confmf
15748
15749# Check whether --enable-dependency-tracking was given.
15750if test "${enable_dependency_tracking+set}" = set; then :
15751 enableval=$enable_dependency_tracking;
15752fi
15753
15754if test "x$enable_dependency_tracking" != xno; then
15755 am_depcomp="$ac_aux_dir/depcomp"
15756 AMDEPBACKSLASH='\'
15757fi
15758 if test "x$enable_dependency_tracking" != xno; then
15759 AMDEP_TRUE=
15760 AMDEP_FALSE='#'
15761else
15762 AMDEP_TRUE='#'
15763 AMDEP_FALSE=
15764fi
15765
15766
15767if test "`cd $srcdir && pwd`" != "`pwd`"; then
15768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15769 # is not polluted with repeated "-I."
15770 am__isrc=' -I$(srcdir)'
15771 # test to see if srcdir already configured
15772 if test -f $srcdir/config.status; then
15773 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15774 fi
15775fi
15776
15777# test whether we have cygpath
15778if test -z "$CYGPATH_W"; then
15779 if (cygpath --version) >/dev/null 2>/dev/null; then
15780 CYGPATH_W='cygpath -w'
15781 else
15782 CYGPATH_W=echo
15783 fi
15784fi
15785
15786
15787# Define the identity of the package.
15788 PACKAGE=libgnu
15789 VERSION=UNUSED-VERSION
15790
15791
15792# Some tools Automake needs.
15793
15794ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15795
15796
15797AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15798
15799
15800AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15801
15802
15803AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15804
15805
15806MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15807
15808# We need awk for the "check" target. The system "awk" is bad on
15809# some platforms.
15810# Always define AMTAR for backward compatibility.
15811
15812AMTAR=${AMTAR-"${am_missing_run}tar"}
15813
15814am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15815
15816
15817
15818
15819depcc="$CC" am_compiler_list=
15820
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15822$as_echo_n "checking dependency style of $depcc... " >&6; }
15823if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15825else
15826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15827 # We make a subdir and do the tests there. Otherwise we can end up
15828 # making bogus files that we don't know about and never remove. For
15829 # instance it was reported that on HP-UX the gcc test will end up
15830 # making a dummy file named `D' -- because `-MD' means `put the output
15831 # in D'.
15832 mkdir conftest.dir
15833 # Copy depcomp to subdir because otherwise we won't find it if we're
15834 # using a relative directory.
15835 cp "$am_depcomp" conftest.dir
15836 cd conftest.dir
15837 # We will build objects and dependencies in a subdirectory because
15838 # it helps to detect inapplicable dependency modes. For instance
15839 # both Tru64's cc and ICC support -MD to output dependencies as a
15840 # side effect of compilation, but ICC will put the dependencies in
15841 # the current directory while Tru64 will put them in the object
15842 # directory.
15843 mkdir sub
15844
15845 am_cv_CC_dependencies_compiler_type=none
15846 if test "$am_compiler_list" = ""; then
15847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15848 fi
15849 am__universal=false
15850 case " $depcc " in #(
15851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15852 esac
15853
15854 for depmode in $am_compiler_list; do
15855 # Setup a source with many dependencies, because some compilers
15856 # like to wrap large dependency lists on column 80 (with \), and
15857 # we should not choose a depcomp mode which is confused by this.
15858 #
15859 # We need to recreate these files for each test, as the compiler may
15860 # overwrite some of them when testing with obscure command lines.
15861 # This happens at least with the AIX C compiler.
15862 : > sub/conftest.c
15863 for i in 1 2 3 4 5 6; do
15864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15866 # Solaris 8's {/usr,}/bin/sh.
15867 touch sub/conftst$i.h
15868 done
15869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15870
15871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15872 # mode. It turns out that the SunPro C++ compiler does not properly
15873 # handle `-M -o', and we need to detect this. Also, some Intel
15874 # versions had trouble with output in subdirs
15875 am__obj=sub/conftest.${OBJEXT-o}
15876 am__minus_obj="-o $am__obj"
15877 case $depmode in
15878 gcc)
15879 # This depmode causes a compiler race in universal mode.
15880 test "$am__universal" = false || continue
15881 ;;
15882 nosideeffect)
15883 # after this tag, mechanisms are not by side-effect, so they'll
15884 # only be used when explicitly requested
15885 if test "x$enable_dependency_tracking" = xyes; then
15886 continue
15887 else
15888 break
15889 fi
15890 ;;
15891 msvisualcpp | msvcmsys)
15892 # This compiler won't grok `-c -o', but also, the minuso test has
15893 # not run yet. These depmodes are late enough in the game, and
15894 # so weak that their functioning should not be impacted.
15895 am__obj=conftest.${OBJEXT-o}
15896 am__minus_obj=
15897 ;;
15898 none) break ;;
15899 esac
15900 if depmode=$depmode \
15901 source=sub/conftest.c object=$am__obj \
15902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15904 >/dev/null 2>conftest.err &&
15905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15909 # icc doesn't choke on unknown options, it will just issue warnings
15910 # or remarks (even with -Werror). So we grep stderr for any message
15911 # that says an option was ignored or not supported.
15912 # When given -MP, icc 7.0 and 7.1 complain thusly:
15913 # icc: Command line warning: ignoring option '-M'; no argument required
15914 # The diagnosis changed in icc 8.0:
15915 # icc: Command line remark: option '-MP' not supported
15916 if (grep 'ignoring option' conftest.err ||
15917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15918 am_cv_CC_dependencies_compiler_type=$depmode
15919 break
15920 fi
15921 fi
15922 done
15923
15924 cd ..
15925 rm -rf conftest.dir
15926else
15927 am_cv_CC_dependencies_compiler_type=none
15928fi
15929
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15932$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15933CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15934
15935 if
15936 test "x$enable_dependency_tracking" != xno \
15937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15938 am__fastdepCC_TRUE=
15939 am__fastdepCC_FALSE='#'
15940else
15941 am__fastdepCC_TRUE='#'
15942 am__fastdepCC_FALSE=
15943fi
15944
15945
15946
15947
15948# --------------------- #
15949# Checks for programs. #
15950# --------------------- #
15951
15952
15953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15954$as_echo_n "checking whether ln -s works... " >&6; }
15955LN_S=$as_ln_s
15956if test "$LN_S" = "ln -s"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958$as_echo "yes" >&6; }
15959else
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15961$as_echo "no, using $LN_S" >&6; }
15962fi
15963
15964if test -n "$ac_tool_prefix"; then
15965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968$as_echo_n "checking for $ac_word... " >&6; }
15969if test "${ac_cv_prog_RANLIB+set}" = set; then :
15970 $as_echo_n "(cached) " >&6
15971else
15972 if test -n "$RANLIB"; then
15973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15974else
15975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976for as_dir in $PATH
15977do
15978 IFS=$as_save_IFS
15979 test -z "$as_dir" && as_dir=.
15980 for ac_exec_ext in '' $ac_executable_extensions; do
15981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15984 break 2
15985 fi
15986done
15987 done
15988IFS=$as_save_IFS
15989
15990fi
15991fi
15992RANLIB=$ac_cv_prog_RANLIB
15993if test -n "$RANLIB"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15995$as_echo "$RANLIB" >&6; }
15996else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998$as_echo "no" >&6; }
15999fi
16000
16001
16002fi
16003if test -z "$ac_cv_prog_RANLIB"; then
16004 ac_ct_RANLIB=$RANLIB
16005 # Extract the first word of "ranlib", so it can be a program name with args.
16006set dummy ranlib; ac_word=$2
16007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008$as_echo_n "checking for $ac_word... " >&6; }
16009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16010 $as_echo_n "(cached) " >&6
16011else
16012 if test -n "$ac_ct_RANLIB"; then
16013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16014else
16015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16016for as_dir in $PATH
16017do
16018 IFS=$as_save_IFS
16019 test -z "$as_dir" && as_dir=.
16020 for ac_exec_ext in '' $ac_executable_extensions; do
16021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16022 ac_cv_prog_ac_ct_RANLIB="ranlib"
16023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16024 break 2
16025 fi
16026done
16027 done
16028IFS=$as_save_IFS
16029
16030fi
16031fi
16032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16033if test -n "$ac_ct_RANLIB"; then
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16035$as_echo "$ac_ct_RANLIB" >&6; }
16036else
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16038$as_echo "no" >&6; }
16039fi
16040
16041 if test "x$ac_ct_RANLIB" = x; then
16042 RANLIB=":"
16043 else
16044 case $cross_compiling:$ac_tool_warned in
16045yes:)
16046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16048ac_tool_warned=yes ;;
16049esac
16050 RANLIB=$ac_ct_RANLIB
16051 fi
16052else
16053 RANLIB="$ac_cv_prog_RANLIB"
16054fi
16055
16056
16057if test -n "$ac_tool_prefix"; then
16058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16059set dummy ${ac_tool_prefix}ar; ac_word=$2
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16061$as_echo_n "checking for $ac_word... " >&6; }
16062if test "${ac_cv_prog_AR+set}" = set; then :
16063 $as_echo_n "(cached) " >&6
16064else
16065 if test -n "$AR"; then
16066 ac_cv_prog_AR="$AR" # Let the user override the test.
16067else
16068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069for as_dir in $PATH
16070do
16071 IFS=$as_save_IFS
16072 test -z "$as_dir" && as_dir=.
16073 for ac_exec_ext in '' $ac_executable_extensions; do
16074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16075 ac_cv_prog_AR="${ac_tool_prefix}ar"
16076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16077 break 2
16078 fi
16079done
16080 done
16081IFS=$as_save_IFS
16082
16083fi
16084fi
16085AR=$ac_cv_prog_AR
16086if test -n "$AR"; then
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16088$as_echo "$AR" >&6; }
16089else
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091$as_echo "no" >&6; }
16092fi
16093
16094
16095fi
16096if test -z "$ac_cv_prog_AR"; then
16097 ac_ct_AR=$AR
16098 # Extract the first word of "ar", so it can be a program name with args.
16099set dummy ar; ac_word=$2
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16101$as_echo_n "checking for $ac_word... " >&6; }
16102if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16103 $as_echo_n "(cached) " >&6
16104else
16105 if test -n "$ac_ct_AR"; then
16106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16107else
16108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109for as_dir in $PATH
16110do
16111 IFS=$as_save_IFS
16112 test -z "$as_dir" && as_dir=.
16113 for ac_exec_ext in '' $ac_executable_extensions; do
16114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16115 ac_cv_prog_ac_ct_AR="ar"
16116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16117 break 2
16118 fi
16119done
16120 done
16121IFS=$as_save_IFS
16122
16123fi
16124fi
16125ac_ct_AR=$ac_cv_prog_ac_ct_AR
16126if test -n "$ac_ct_AR"; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16128$as_echo "$ac_ct_AR" >&6; }
16129else
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131$as_echo "no" >&6; }
16132fi
16133
16134 if test "x$ac_ct_AR" = x; then
16135 AR=""
16136 else
16137 case $cross_compiling:$ac_tool_warned in
16138yes:)
16139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16141ac_tool_warned=yes ;;
16142esac
16143 AR=$ac_ct_AR
16144 fi
16145else
16146 AR="$ac_cv_prog_AR"
16147fi
16148
16149
16150# ---------------------- #
16151# Checks for libraries. #
16152# ---------------------- #
16153
16154ac_config_files="$ac_config_files Makefile import/Makefile"
16155
16156ac_config_commands="$ac_config_commands default"
16157
16158cat >confcache <<\_ACEOF
16159# This file is a shell script that caches the results of configure
16160# tests run on this system so they can be shared between configure
16161# scripts and configure runs, see configure's option --config-cache.
16162# It is not useful on other systems. If it contains results you don't
16163# want to keep, you may remove or edit it.
16164#
16165# config.status only pays attention to the cache file if you give it
16166# the --recheck option to rerun configure.
16167#
16168# `ac_cv_env_foo' variables (set or unset) will be overridden when
16169# loading this file, other *unset* `ac_cv_foo' will be assigned the
16170# following values.
16171
16172_ACEOF
16173
16174# The following way of writing the cache mishandles newlines in values,
16175# but we know of no workaround that is simple, portable, and efficient.
16176# So, we kill variables containing newlines.
16177# Ultrix sh set writes to stderr and can't be redirected directly,
16178# and sets the high bit in the cache file unless we assign to the vars.
16179(
16180 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16181 eval ac_val=\$$ac_var
16182 case $ac_val in #(
16183 *${as_nl}*)
16184 case $ac_var in #(
16185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16187 esac
16188 case $ac_var in #(
16189 _ | IFS | as_nl) ;; #(
16190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16191 *) { eval $ac_var=; unset $ac_var;} ;;
16192 esac ;;
16193 esac
16194 done
16195
16196 (set) 2>&1 |
16197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16198 *${as_nl}ac_space=\ *)
16199 # `set' does not quote correctly, so add quotes: double-quote
16200 # substitution turns \\\\ into \\, and sed turns \\ into \.
16201 sed -n \
16202 "s/'/'\\\\''/g;
16203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16204 ;; #(
16205 *)
16206 # `set' quotes correctly as required by POSIX, so do not add quotes.
16207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16208 ;;
16209 esac |
16210 sort
16211) |
16212 sed '
16213 /^ac_cv_env_/b end
16214 t clear
16215 :clear
16216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16217 t end
16218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16219 :end' >>confcache
16220if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16221 if test -w "$cache_file"; then
16222 test "x$cache_file" != "x/dev/null" &&
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16224$as_echo "$as_me: updating cache $cache_file" >&6;}
16225 cat confcache >$cache_file
16226 else
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16228$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16229 fi
16230fi
16231rm -f confcache
16232
16233test "x$prefix" = xNONE && prefix=$ac_default_prefix
16234# Let make expand exec_prefix.
16235test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16236
16237DEFS=-DHAVE_CONFIG_H
16238
16239ac_libobjs=
16240ac_ltlibobjs=
16241for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16242 # 1. Remove the extension, and $U if already installed.
16243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16244 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16246 # will be set to the directory where LIBOBJS objects are built.
16247 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16248 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16249done
16250LIBOBJS=$ac_libobjs
16251
16252LTLIBOBJS=$ac_ltlibobjs
16253
16254
16255if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16256 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16257Usually this means the macro was only invoked conditionally." "$LINENO" 5
16258fi
16259if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16260 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16261Usually this means the macro was only invoked conditionally." "$LINENO" 5
16262fi
8690e634
JK
16263if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16264 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16265Usually this means the macro was only invoked conditionally." "$LINENO" 5
16266fi
18848e28
GF
16267if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16268 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16269Usually this means the macro was only invoked conditionally." "$LINENO" 5
16270fi
88b48903
WN
16271if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16272 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16273Usually this means the macro was only invoked conditionally." "$LINENO" 5
16274fi
8690e634
JK
16275if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16276 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16277Usually this means the macro was only invoked conditionally." "$LINENO" 5
16278fi
c971b7fa
PA
16279if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16280 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
16281Usually this means the macro was only invoked conditionally." "$LINENO" 5
16282fi
88b48903
WN
16283
16284
8690e634
JK
16285if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16286 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16287Usually this means the macro was only invoked conditionally." "$LINENO" 5
16288fi
c971b7fa
PA
16289if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16290 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16291Usually this means the macro was only invoked conditionally." "$LINENO" 5
16292fi
16293
16294 gl_libobjs=
16295 gl_ltlibobjs=
16296 if test -n "$gl_LIBOBJS"; then
16297 # Remove the extension.
16298 sed_drop_objext='s/\.o$//;s/\.obj$//'
16299 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16300 gl_libobjs="$gl_libobjs $i.$ac_objext"
16301 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16302 done
16303 fi
16304 gl_LIBOBJS=$gl_libobjs
16305
16306 gl_LTLIBOBJS=$gl_ltlibobjs
16307
16308
16309
16310 gltests_libobjs=
16311 gltests_ltlibobjs=
16312 if test -n "$gltests_LIBOBJS"; then
16313 # Remove the extension.
16314 sed_drop_objext='s/\.o$//;s/\.obj$//'
16315 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16316 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16317 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16318 done
16319 fi
16320 gltests_LIBOBJS=$gltests_libobjs
16321
16322 gltests_LTLIBOBJS=$gltests_ltlibobjs
16323
16324
16325if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16326 as_fn_error "conditional \"AMDEP\" was never defined.
16327Usually this means the macro was only invoked conditionally." "$LINENO" 5
16328fi
16329if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16330 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16331Usually this means the macro was only invoked conditionally." "$LINENO" 5
16332fi
16333 if test -n "$EXEEXT"; then
16334 am__EXEEXT_TRUE=
16335 am__EXEEXT_FALSE='#'
16336else
16337 am__EXEEXT_TRUE='#'
16338 am__EXEEXT_FALSE=
16339fi
16340
16341
16342: ${CONFIG_STATUS=./config.status}
16343ac_write_fail=0
16344ac_clean_files_save=$ac_clean_files
16345ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16347$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16348as_write_fail=0
16349cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16350#! $SHELL
16351# Generated by $as_me.
16352# Run this file to recreate the current configuration.
16353# Compiler output produced by configure, useful for debugging
16354# configure, is in config.log if it exists.
16355
16356debug=false
16357ac_cs_recheck=false
16358ac_cs_silent=false
16359
16360SHELL=\${CONFIG_SHELL-$SHELL}
16361export SHELL
16362_ASEOF
16363cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16364## -------------------- ##
16365## M4sh Initialization. ##
16366## -------------------- ##
16367
16368# Be more Bourne compatible
16369DUALCASE=1; export DUALCASE # for MKS sh
16370if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16371 emulate sh
16372 NULLCMD=:
16373 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16374 # is contrary to our usage. Disable this feature.
16375 alias -g '${1+"$@"}'='"$@"'
16376 setopt NO_GLOB_SUBST
16377else
16378 case `(set -o) 2>/dev/null` in #(
16379 *posix*) :
16380 set -o posix ;; #(
16381 *) :
16382 ;;
16383esac
16384fi
16385
16386
16387as_nl='
16388'
16389export as_nl
16390# Printing a long string crashes Solaris 7 /usr/bin/printf.
16391as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16392as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16393as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16394# Prefer a ksh shell builtin over an external printf program on Solaris,
16395# but without wasting forks for bash or zsh.
16396if test -z "$BASH_VERSION$ZSH_VERSION" \
16397 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16398 as_echo='print -r --'
16399 as_echo_n='print -rn --'
16400elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16401 as_echo='printf %s\n'
16402 as_echo_n='printf %s'
16403else
16404 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16405 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16406 as_echo_n='/usr/ucb/echo -n'
16407 else
16408 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16409 as_echo_n_body='eval
16410 arg=$1;
16411 case $arg in #(
16412 *"$as_nl"*)
16413 expr "X$arg" : "X\\(.*\\)$as_nl";
16414 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16415 esac;
16416 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16417 '
16418 export as_echo_n_body
16419 as_echo_n='sh -c $as_echo_n_body as_echo'
16420 fi
16421 export as_echo_body
16422 as_echo='sh -c $as_echo_body as_echo'
16423fi
16424
16425# The user is always right.
16426if test "${PATH_SEPARATOR+set}" != set; then
16427 PATH_SEPARATOR=:
16428 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16429 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16430 PATH_SEPARATOR=';'
16431 }
16432fi
16433
16434
16435# IFS
16436# We need space, tab and new line, in precisely that order. Quoting is
16437# there to prevent editors from complaining about space-tab.
16438# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16439# splitting by setting IFS to empty value.)
16440IFS=" "" $as_nl"
16441
16442# Find who we are. Look in the path if we contain no directory separator.
16443case $0 in #((
16444 *[\\/]* ) as_myself=$0 ;;
16445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446for as_dir in $PATH
16447do
16448 IFS=$as_save_IFS
16449 test -z "$as_dir" && as_dir=.
16450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16451 done
16452IFS=$as_save_IFS
16453
16454 ;;
16455esac
16456# We did not find ourselves, most probably we were run as `sh COMMAND'
16457# in which case we are not to be found in the path.
16458if test "x$as_myself" = x; then
16459 as_myself=$0
16460fi
16461if test ! -f "$as_myself"; then
16462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16463 exit 1
16464fi
16465
16466# Unset variables that we do not need and which cause bugs (e.g. in
16467# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16468# suppresses any "Segmentation fault" message there. '((' could
16469# trigger a bug in pdksh 5.2.14.
16470for as_var in BASH_ENV ENV MAIL MAILPATH
16471do eval test x\${$as_var+set} = xset \
16472 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16473done
16474PS1='$ '
16475PS2='> '
16476PS4='+ '
16477
16478# NLS nuisances.
16479LC_ALL=C
16480export LC_ALL
16481LANGUAGE=C
16482export LANGUAGE
16483
16484# CDPATH.
16485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16486
16487
16488# as_fn_error ERROR [LINENO LOG_FD]
16489# ---------------------------------
16490# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16491# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16492# script with status $?, using 1 if that was 0.
16493as_fn_error ()
16494{
16495 as_status=$?; test $as_status -eq 0 && as_status=1
16496 if test "$3"; then
16497 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16499 fi
16500 $as_echo "$as_me: error: $1" >&2
16501 as_fn_exit $as_status
16502} # as_fn_error
16503
16504
16505# as_fn_set_status STATUS
16506# -----------------------
16507# Set $? to STATUS, without forking.
16508as_fn_set_status ()
16509{
16510 return $1
16511} # as_fn_set_status
16512
16513# as_fn_exit STATUS
16514# -----------------
16515# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16516as_fn_exit ()
16517{
16518 set +e
16519 as_fn_set_status $1
16520 exit $1
16521} # as_fn_exit
16522
16523# as_fn_unset VAR
16524# ---------------
16525# Portably unset VAR.
16526as_fn_unset ()
16527{
16528 { eval $1=; unset $1;}
16529}
16530as_unset=as_fn_unset
16531# as_fn_append VAR VALUE
16532# ----------------------
16533# Append the text in VALUE to the end of the definition contained in VAR. Take
16534# advantage of any shell optimizations that allow amortized linear growth over
16535# repeated appends, instead of the typical quadratic growth present in naive
16536# implementations.
16537if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16538 eval 'as_fn_append ()
16539 {
16540 eval $1+=\$2
16541 }'
16542else
16543 as_fn_append ()
16544 {
16545 eval $1=\$$1\$2
16546 }
16547fi # as_fn_append
16548
16549# as_fn_arith ARG...
16550# ------------------
16551# Perform arithmetic evaluation on the ARGs, and store the result in the
16552# global $as_val. Take advantage of shells that can avoid forks. The arguments
16553# must be portable across $(()) and expr.
16554if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16555 eval 'as_fn_arith ()
16556 {
16557 as_val=$(( $* ))
16558 }'
16559else
16560 as_fn_arith ()
16561 {
16562 as_val=`expr "$@" || test $? -eq 1`
16563 }
16564fi # as_fn_arith
16565
16566
16567if expr a : '\(a\)' >/dev/null 2>&1 &&
16568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16569 as_expr=expr
16570else
16571 as_expr=false
16572fi
16573
16574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16575 as_basename=basename
16576else
16577 as_basename=false
16578fi
16579
16580if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16581 as_dirname=dirname
16582else
16583 as_dirname=false
16584fi
16585
16586as_me=`$as_basename -- "$0" ||
16587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16588 X"$0" : 'X\(//\)$' \| \
16589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16590$as_echo X/"$0" |
16591 sed '/^.*\/\([^/][^/]*\)\/*$/{
16592 s//\1/
16593 q
16594 }
16595 /^X\/\(\/\/\)$/{
16596 s//\1/
16597 q
16598 }
16599 /^X\/\(\/\).*/{
16600 s//\1/
16601 q
16602 }
16603 s/.*/./; q'`
16604
16605# Avoid depending upon Character Ranges.
16606as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16607as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16608as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16609as_cr_digits='0123456789'
16610as_cr_alnum=$as_cr_Letters$as_cr_digits
16611
16612ECHO_C= ECHO_N= ECHO_T=
16613case `echo -n x` in #(((((
16614-n*)
16615 case `echo 'xy\c'` in
16616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16617 xy) ECHO_C='\c';;
16618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16619 ECHO_T=' ';;
16620 esac;;
16621*)
16622 ECHO_N='-n';;
16623esac
16624
16625rm -f conf$$ conf$$.exe conf$$.file
16626if test -d conf$$.dir; then
16627 rm -f conf$$.dir/conf$$.file
16628else
16629 rm -f conf$$.dir
16630 mkdir conf$$.dir 2>/dev/null
16631fi
16632if (echo >conf$$.file) 2>/dev/null; then
16633 if ln -s conf$$.file conf$$ 2>/dev/null; then
16634 as_ln_s='ln -s'
16635 # ... but there are two gotchas:
16636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16638 # In both cases, we have to default to `cp -p'.
16639 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16640 as_ln_s='cp -p'
16641 elif ln conf$$.file conf$$ 2>/dev/null; then
16642 as_ln_s=ln
16643 else
16644 as_ln_s='cp -p'
16645 fi
16646else
16647 as_ln_s='cp -p'
16648fi
16649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16650rmdir conf$$.dir 2>/dev/null
16651
16652
16653# as_fn_mkdir_p
16654# -------------
16655# Create "$as_dir" as a directory, including parents if necessary.
16656as_fn_mkdir_p ()
16657{
16658
16659 case $as_dir in #(
16660 -*) as_dir=./$as_dir;;
16661 esac
16662 test -d "$as_dir" || eval $as_mkdir_p || {
16663 as_dirs=
16664 while :; do
16665 case $as_dir in #(
16666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16667 *) as_qdir=$as_dir;;
16668 esac
16669 as_dirs="'$as_qdir' $as_dirs"
16670 as_dir=`$as_dirname -- "$as_dir" ||
16671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672 X"$as_dir" : 'X\(//\)[^/]' \| \
16673 X"$as_dir" : 'X\(//\)$' \| \
16674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16675$as_echo X"$as_dir" |
16676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16677 s//\1/
16678 q
16679 }
16680 /^X\(\/\/\)[^/].*/{
16681 s//\1/
16682 q
16683 }
16684 /^X\(\/\/\)$/{
16685 s//\1/
16686 q
16687 }
16688 /^X\(\/\).*/{
16689 s//\1/
16690 q
16691 }
16692 s/.*/./; q'`
16693 test -d "$as_dir" && break
16694 done
16695 test -z "$as_dirs" || eval "mkdir $as_dirs"
16696 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16697
16698
16699} # as_fn_mkdir_p
16700if mkdir -p . 2>/dev/null; then
16701 as_mkdir_p='mkdir -p "$as_dir"'
16702else
16703 test -d ./-p && rmdir ./-p
16704 as_mkdir_p=false
16705fi
16706
16707if test -x / >/dev/null 2>&1; then
16708 as_test_x='test -x'
16709else
16710 if ls -dL / >/dev/null 2>&1; then
16711 as_ls_L_option=L
16712 else
16713 as_ls_L_option=
16714 fi
16715 as_test_x='
16716 eval sh -c '\''
16717 if test -d "$1"; then
16718 test -d "$1/.";
16719 else
16720 case $1 in #(
16721 -*)set "./$1";;
16722 esac;
16723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16724 ???[sx]*):;;*)false;;esac;fi
16725 '\'' sh
16726 '
16727fi
16728as_executable_p=$as_test_x
16729
16730# Sed expression to map a string onto a valid CPP name.
16731as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16732
16733# Sed expression to map a string onto a valid variable name.
16734as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16735
16736
16737exec 6>&1
16738## ----------------------------------- ##
16739## Main body of $CONFIG_STATUS script. ##
16740## ----------------------------------- ##
16741_ASEOF
16742test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16743
16744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745# Save the log message, to keep $0 and so on meaningful, and to
16746# report actual input values of CONFIG_FILES etc. instead of their
16747# values after options handling.
16748ac_log="
16749This file was extended by $as_me, which was
16750generated by GNU Autoconf 2.64. Invocation command line was
16751
16752 CONFIG_FILES = $CONFIG_FILES
16753 CONFIG_HEADERS = $CONFIG_HEADERS
16754 CONFIG_LINKS = $CONFIG_LINKS
16755 CONFIG_COMMANDS = $CONFIG_COMMANDS
16756 $ $0 $@
16757
16758on `(hostname || uname -n) 2>/dev/null | sed 1q`
16759"
16760
16761_ACEOF
16762
16763case $ac_config_files in *"
16764"*) set x $ac_config_files; shift; ac_config_files=$*;;
16765esac
16766
16767case $ac_config_headers in *"
16768"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16769esac
16770
16771
16772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16773# Files that config.status was made for.
16774config_files="$ac_config_files"
16775config_headers="$ac_config_headers"
16776config_commands="$ac_config_commands"
16777
16778_ACEOF
16779
16780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16781ac_cs_usage="\
16782\`$as_me' instantiates files and other configuration actions
16783from templates according to the current configuration. Unless the files
16784and actions are specified as TAGs, all are instantiated by default.
16785
16786Usage: $0 [OPTION]... [TAG]...
16787
16788 -h, --help print this help, then exit
16789 -V, --version print version number and configuration settings, then exit
16790 -q, --quiet, --silent
16791 do not print progress messages
16792 -d, --debug don't remove temporary files
16793 --recheck update $as_me by reconfiguring in the same conditions
16794 --file=FILE[:TEMPLATE]
16795 instantiate the configuration file FILE
16796 --header=FILE[:TEMPLATE]
16797 instantiate the configuration header FILE
16798
16799Configuration files:
16800$config_files
16801
16802Configuration headers:
16803$config_headers
16804
16805Configuration commands:
16806$config_commands
16807
16808Report bugs to the package provider."
16809
16810_ACEOF
16811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812ac_cs_version="\\
16813config.status
16814configured by $0, generated by GNU Autoconf 2.64,
16815 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16816
16817Copyright (C) 2009 Free Software Foundation, Inc.
16818This config.status script is free software; the Free Software Foundation
16819gives unlimited permission to copy, distribute and modify it."
16820
16821ac_pwd='$ac_pwd'
16822srcdir='$srcdir'
16823INSTALL='$INSTALL'
16824MKDIR_P='$MKDIR_P'
16825AWK='$AWK'
16826test -n "\$AWK" || AWK=awk
16827_ACEOF
16828
16829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830# The default lists apply if the user does not specify any file.
16831ac_need_defaults=:
16832while test $# != 0
16833do
16834 case $1 in
16835 --*=*)
16836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16837 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16838 ac_shift=:
16839 ;;
16840 *)
16841 ac_option=$1
16842 ac_optarg=$2
16843 ac_shift=shift
16844 ;;
16845 esac
16846
16847 case $ac_option in
16848 # Handling of the options.
16849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16850 ac_cs_recheck=: ;;
16851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16852 $as_echo "$ac_cs_version"; exit ;;
16853 --debug | --debu | --deb | --de | --d | -d )
16854 debug=: ;;
16855 --file | --fil | --fi | --f )
16856 $ac_shift
16857 case $ac_optarg in
16858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16859 esac
16860 as_fn_append CONFIG_FILES " '$ac_optarg'"
16861 ac_need_defaults=false;;
16862 --header | --heade | --head | --hea )
16863 $ac_shift
16864 case $ac_optarg in
16865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16866 esac
16867 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16868 ac_need_defaults=false;;
16869 --he | --h)
16870 # Conflict between --help and --header
16871 as_fn_error "ambiguous option: \`$1'
16872Try \`$0 --help' for more information.";;
16873 --help | --hel | -h )
16874 $as_echo "$ac_cs_usage"; exit ;;
16875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16876 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16877 ac_cs_silent=: ;;
16878
16879 # This is an error.
16880 -*) as_fn_error "unrecognized option: \`$1'
16881Try \`$0 --help' for more information." ;;
16882
16883 *) as_fn_append ac_config_targets " $1"
16884 ac_need_defaults=false ;;
16885
16886 esac
16887 shift
16888done
16889
16890ac_configure_extra_args=
16891
16892if $ac_cs_silent; then
16893 exec 6>/dev/null
16894 ac_configure_extra_args="$ac_configure_extra_args --silent"
16895fi
16896
16897_ACEOF
16898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899if \$ac_cs_recheck; then
16900 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16901 shift
16902 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16903 CONFIG_SHELL='$SHELL'
16904 export CONFIG_SHELL
16905 exec "\$@"
16906fi
16907
16908_ACEOF
16909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910exec 5>>config.log
16911{
16912 echo
16913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16914## Running $as_me. ##
16915_ASBOX
16916 $as_echo "$ac_log"
16917} >&5
16918
16919_ACEOF
16920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16921#
16922# INIT-COMMANDS
16923#
16924AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16925
16926_ACEOF
16927
16928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16929
16930# Handling of arguments.
16931for ac_config_target in $ac_config_targets
16932do
16933 case $ac_config_target in
16934 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16935 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16937 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16938 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16939
16940 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16941 esac
16942done
16943
16944
16945# If the user did not use the arguments to specify the items to instantiate,
16946# then the envvar interface is used. Set only those that are not.
16947# We use the long form for the default assignment because of an extremely
16948# bizarre bug on SunOS 4.1.3.
16949if $ac_need_defaults; then
16950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16953fi
16954
16955# Have a temporary directory for convenience. Make it in the build tree
16956# simply because there is no reason against having it here, and in addition,
16957# creating and moving files from /tmp can sometimes cause problems.
16958# Hook for its removal unless debugging.
16959# Note that there is a small window in which the directory will not be cleaned:
16960# after its creation but before its name has been assigned to `$tmp'.
16961$debug ||
16962{
16963 tmp=
16964 trap 'exit_status=$?
16965 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16966' 0
16967 trap 'as_fn_exit 1' 1 2 13 15
16968}
16969# Create a (secure) tmp directory for tmp files.
16970
16971{
16972 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16973 test -n "$tmp" && test -d "$tmp"
16974} ||
16975{
16976 tmp=./conf$$-$RANDOM
16977 (umask 077 && mkdir "$tmp")
16978} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16979
16980# Set up the scripts for CONFIG_FILES section.
16981# No need to generate them if there are no CONFIG_FILES.
16982# This happens for instance with `./config.status config.h'.
16983if test -n "$CONFIG_FILES"; then
16984
16985
16986ac_cr=`echo X | tr X '\015'`
16987# On cygwin, bash can eat \r inside `` if the user requested igncr.
16988# But we know of no other shell where ac_cr would be empty at this
16989# point, so we can use a bashism as a fallback.
16990if test "x$ac_cr" = x; then
16991 eval ac_cr=\$\'\\r\'
16992fi
16993ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16994if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16995 ac_cs_awk_cr='\r'
16996else
16997 ac_cs_awk_cr=$ac_cr
16998fi
16999
17000echo 'BEGIN {' >"$tmp/subs1.awk" &&
17001_ACEOF
17002
17003
17004{
17005 echo "cat >conf$$subs.awk <<_ACEOF" &&
17006 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17007 echo "_ACEOF"
17008} >conf$$subs.sh ||
17009 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17010ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17011ac_delim='%!_!# '
17012for ac_last_try in false false false false false :; do
17013 . ./conf$$subs.sh ||
17014 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17015
17016 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17017 if test $ac_delim_n = $ac_delim_num; then
17018 break
17019 elif $ac_last_try; then
17020 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17021 else
17022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17023 fi
17024done
17025rm -f conf$$subs.sh
17026
17027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17029_ACEOF
17030sed -n '
17031h
17032s/^/S["/; s/!.*/"]=/
17033p
17034g
17035s/^[^!]*!//
17036:repl
17037t repl
17038s/'"$ac_delim"'$//
17039t delim
17040:nl
17041h
17042s/\(.\{148\}\).*/\1/
17043t more1
17044s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17045p
17046n
17047b repl
17048:more1
17049s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17050p
17051g
17052s/.\{148\}//
17053t nl
17054:delim
17055h
17056s/\(.\{148\}\).*/\1/
17057t more2
17058s/["\\]/\\&/g; s/^/"/; s/$/"/
17059p
17060b
17061:more2
17062s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17063p
17064g
17065s/.\{148\}//
17066t delim
17067' <conf$$subs.awk | sed '
17068/^[^""]/{
17069 N
17070 s/\n//
17071}
17072' >>$CONFIG_STATUS || ac_write_fail=1
17073rm -f conf$$subs.awk
17074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17075_ACAWK
17076cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17077 for (key in S) S_is_set[key] = 1
17078 FS = "\a"
17079
17080}
17081{
17082 line = $ 0
17083 nfields = split(line, field, "@")
17084 substed = 0
17085 len = length(field[1])
17086 for (i = 2; i < nfields; i++) {
17087 key = field[i]
17088 keylen = length(key)
17089 if (S_is_set[key]) {
17090 value = S[key]
17091 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17092 len += length(value) + length(field[++i])
17093 substed = 1
17094 } else
17095 len += 1 + keylen
17096 }
17097
17098 print line
17099}
17100
17101_ACAWK
17102_ACEOF
17103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17105 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17106else
17107 cat
17108fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17109 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17110_ACEOF
17111
17112# VPATH may cause trouble with some makes, so we remove $(srcdir),
17113# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17114# trailing colons and then remove the whole line if VPATH becomes empty
17115# (actually we leave an empty line to preserve line numbers).
17116if test "x$srcdir" = x.; then
17117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17118s/:*\$(srcdir):*/:/
17119s/:*\${srcdir}:*/:/
17120s/:*@srcdir@:*/:/
17121s/^\([^=]*=[ ]*\):*/\1/
17122s/:*$//
17123s/^[^=]*=[ ]*$//
17124}'
17125fi
17126
17127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128fi # test -n "$CONFIG_FILES"
17129
17130# Set up the scripts for CONFIG_HEADERS section.
17131# No need to generate them if there are no CONFIG_HEADERS.
17132# This happens for instance with `./config.status Makefile'.
17133if test -n "$CONFIG_HEADERS"; then
17134cat >"$tmp/defines.awk" <<\_ACAWK ||
17135BEGIN {
17136_ACEOF
17137
17138# Transform confdefs.h into an awk script `defines.awk', embedded as
17139# here-document in config.status, that substitutes the proper values into
17140# config.h.in to produce config.h.
17141
17142# Create a delimiter string that does not exist in confdefs.h, to ease
17143# handling of long lines.
17144ac_delim='%!_!# '
17145for ac_last_try in false false :; do
17146 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17147 if test -z "$ac_t"; then
17148 break
17149 elif $ac_last_try; then
17150 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17151 else
17152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17153 fi
17154done
17155
17156# For the awk script, D is an array of macro values keyed by name,
17157# likewise P contains macro parameters if any. Preserve backslash
17158# newline sequences.
17159
17160ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17161sed -n '
17162s/.\{148\}/&'"$ac_delim"'/g
17163t rset
17164:rset
17165s/^[ ]*#[ ]*define[ ][ ]*/ /
17166t def
17167d
17168:def
17169s/\\$//
17170t bsnl
17171s/["\\]/\\&/g
17172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17173D["\1"]=" \3"/p
17174s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17175d
17176:bsnl
17177s/["\\]/\\&/g
17178s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17179D["\1"]=" \3\\\\\\n"\\/p
17180t cont
17181s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17182t cont
17183d
17184:cont
17185n
17186s/.\{148\}/&'"$ac_delim"'/g
17187t clear
17188:clear
17189s/\\$//
17190t bsnlc
17191s/["\\]/\\&/g; s/^/"/; s/$/"/p
17192d
17193:bsnlc
17194s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17195b cont
17196' <confdefs.h | sed '
17197s/'"$ac_delim"'/"\\\
17198"/g' >>$CONFIG_STATUS || ac_write_fail=1
17199
17200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17201 for (key in D) D_is_set[key] = 1
17202 FS = "\a"
17203}
17204/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17205 line = \$ 0
17206 split(line, arg, " ")
17207 if (arg[1] == "#") {
17208 defundef = arg[2]
17209 mac1 = arg[3]
17210 } else {
17211 defundef = substr(arg[1], 2)
17212 mac1 = arg[2]
17213 }
17214 split(mac1, mac2, "(") #)
17215 macro = mac2[1]
17216 prefix = substr(line, 1, index(line, defundef) - 1)
17217 if (D_is_set[macro]) {
17218 # Preserve the white space surrounding the "#".
17219 print prefix "define", macro P[macro] D[macro]
17220 next
17221 } else {
17222 # Replace #undef with comments. This is necessary, for example,
17223 # in the case of _POSIX_SOURCE, which is predefined and required
17224 # on some systems where configure will not decide to define it.
17225 if (defundef == "undef") {
17226 print "/*", prefix defundef, macro, "*/"
17227 next
17228 }
17229 }
17230}
17231{ print }
17232_ACAWK
17233_ACEOF
17234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17236fi # test -n "$CONFIG_HEADERS"
17237
17238
17239eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17240shift
17241for ac_tag
17242do
17243 case $ac_tag in
17244 :[FHLC]) ac_mode=$ac_tag; continue;;
17245 esac
17246 case $ac_mode$ac_tag in
17247 :[FHL]*:*);;
17248 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17249 :[FH]-) ac_tag=-:-;;
17250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17251 esac
17252 ac_save_IFS=$IFS
17253 IFS=:
17254 set x $ac_tag
17255 IFS=$ac_save_IFS
17256 shift
17257 ac_file=$1
17258 shift
17259
17260 case $ac_mode in
17261 :L) ac_source=$1;;
17262 :[FH])
17263 ac_file_inputs=
17264 for ac_f
17265 do
17266 case $ac_f in
17267 -) ac_f="$tmp/stdin";;
17268 *) # Look for the file first in the build tree, then in the source tree
17269 # (if the path is not absolute). The absolute path cannot be DOS-style,
17270 # because $ac_f cannot contain `:'.
17271 test -f "$ac_f" ||
17272 case $ac_f in
17273 [\\/$]*) false;;
17274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17275 esac ||
17276 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17277 esac
17278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17279 as_fn_append ac_file_inputs " '$ac_f'"
17280 done
17281
17282 # Let's still pretend it is `configure' which instantiates (i.e., don't
17283 # use $as_me), people would be surprised to read:
17284 # /* config.h. Generated by config.status. */
17285 configure_input='Generated from '`
17286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17287 `' by configure.'
17288 if test x"$ac_file" != x-; then
17289 configure_input="$ac_file. $configure_input"
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17291$as_echo "$as_me: creating $ac_file" >&6;}
17292 fi
17293 # Neutralize special characters interpreted by sed in replacement strings.
17294 case $configure_input in #(
17295 *\&* | *\|* | *\\* )
17296 ac_sed_conf_input=`$as_echo "$configure_input" |
17297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17298 *) ac_sed_conf_input=$configure_input;;
17299 esac
17300
17301 case $ac_tag in
17302 *:-:* | *:-) cat >"$tmp/stdin" \
17303 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17304 esac
17305 ;;
17306 esac
17307
17308 ac_dir=`$as_dirname -- "$ac_file" ||
17309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17310 X"$ac_file" : 'X\(//\)[^/]' \| \
17311 X"$ac_file" : 'X\(//\)$' \| \
17312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17313$as_echo X"$ac_file" |
17314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17315 s//\1/
17316 q
17317 }
17318 /^X\(\/\/\)[^/].*/{
17319 s//\1/
17320 q
17321 }
17322 /^X\(\/\/\)$/{
17323 s//\1/
17324 q
17325 }
17326 /^X\(\/\).*/{
17327 s//\1/
17328 q
17329 }
17330 s/.*/./; q'`
17331 as_dir="$ac_dir"; as_fn_mkdir_p
17332 ac_builddir=.
17333
17334case "$ac_dir" in
17335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17336*)
17337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17338 # A ".." for each directory in $ac_dir_suffix.
17339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17340 case $ac_top_builddir_sub in
17341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17343 esac ;;
17344esac
17345ac_abs_top_builddir=$ac_pwd
17346ac_abs_builddir=$ac_pwd$ac_dir_suffix
17347# for backward compatibility:
17348ac_top_builddir=$ac_top_build_prefix
17349
17350case $srcdir in
17351 .) # We are building in place.
17352 ac_srcdir=.
17353 ac_top_srcdir=$ac_top_builddir_sub
17354 ac_abs_top_srcdir=$ac_pwd ;;
17355 [\\/]* | ?:[\\/]* ) # Absolute name.
17356 ac_srcdir=$srcdir$ac_dir_suffix;
17357 ac_top_srcdir=$srcdir
17358 ac_abs_top_srcdir=$srcdir ;;
17359 *) # Relative name.
17360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17361 ac_top_srcdir=$ac_top_build_prefix$srcdir
17362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17363esac
17364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17365
17366
17367 case $ac_mode in
17368 :F)
17369 #
17370 # CONFIG_FILE
17371 #
17372
17373 case $INSTALL in
17374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17376 esac
17377 ac_MKDIR_P=$MKDIR_P
17378 case $MKDIR_P in
17379 [\\/$]* | ?:[\\/]* ) ;;
17380 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17381 esac
17382_ACEOF
17383
17384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17385# If the template does not know about datarootdir, expand it.
17386# FIXME: This hack should be removed a few years after 2.60.
17387ac_datarootdir_hack=; ac_datarootdir_seen=
17388ac_sed_dataroot='
17389/datarootdir/ {
17390 p
17391 q
17392}
17393/@datadir@/p
17394/@docdir@/p
17395/@infodir@/p
17396/@localedir@/p
17397/@mandir@/p'
17398case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17399*datarootdir*) ac_datarootdir_seen=yes;;
17400*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17402$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17403_ACEOF
17404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17405 ac_datarootdir_hack='
17406 s&@datadir@&$datadir&g
17407 s&@docdir@&$docdir&g
17408 s&@infodir@&$infodir&g
17409 s&@localedir@&$localedir&g
17410 s&@mandir@&$mandir&g
17411 s&\\\${datarootdir}&$datarootdir&g' ;;
17412esac
17413_ACEOF
17414
17415# Neutralize VPATH when `$srcdir' = `.'.
17416# Shell code in configure.ac might set extrasub.
17417# FIXME: do we really want to maintain this feature?
17418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17419ac_sed_extra="$ac_vpsub
17420$extrasub
17421_ACEOF
17422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423:t
17424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17425s|@configure_input@|$ac_sed_conf_input|;t t
17426s&@top_builddir@&$ac_top_builddir_sub&;t t
17427s&@top_build_prefix@&$ac_top_build_prefix&;t t
17428s&@srcdir@&$ac_srcdir&;t t
17429s&@abs_srcdir@&$ac_abs_srcdir&;t t
17430s&@top_srcdir@&$ac_top_srcdir&;t t
17431s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17432s&@builddir@&$ac_builddir&;t t
17433s&@abs_builddir@&$ac_abs_builddir&;t t
17434s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17435s&@INSTALL@&$ac_INSTALL&;t t
17436s&@MKDIR_P@&$ac_MKDIR_P&;t t
17437$ac_datarootdir_hack
17438"
17439eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17440 || as_fn_error "could not create $ac_file" "$LINENO" 5
17441
17442test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17443 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17446which seems to be undefined. Please make sure it is defined." >&5
17447$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17448which seems to be undefined. Please make sure it is defined." >&2;}
17449
17450 rm -f "$tmp/stdin"
17451 case $ac_file in
17452 -) cat "$tmp/out" && rm -f "$tmp/out";;
17453 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17454 esac \
17455 || as_fn_error "could not create $ac_file" "$LINENO" 5
17456 ;;
17457 :H)
17458 #
17459 # CONFIG_HEADER
17460 #
17461 if test x"$ac_file" != x-; then
17462 {
17463 $as_echo "/* $configure_input */" \
17464 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17465 } >"$tmp/config.h" \
17466 || as_fn_error "could not create $ac_file" "$LINENO" 5
17467 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17469$as_echo "$as_me: $ac_file is unchanged" >&6;}
17470 else
17471 rm -f "$ac_file"
17472 mv "$tmp/config.h" "$ac_file" \
17473 || as_fn_error "could not create $ac_file" "$LINENO" 5
17474 fi
17475 else
17476 $as_echo "/* $configure_input */" \
17477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17478 || as_fn_error "could not create -" "$LINENO" 5
17479 fi
17480# Compute "$ac_file"'s index in $config_headers.
17481_am_arg="$ac_file"
17482_am_stamp_count=1
17483for _am_header in $config_headers :; do
17484 case $_am_header in
17485 $_am_arg | $_am_arg:* )
17486 break ;;
17487 * )
17488 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17489 esac
17490done
17491echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17492$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17493 X"$_am_arg" : 'X\(//\)[^/]' \| \
17494 X"$_am_arg" : 'X\(//\)$' \| \
17495 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17496$as_echo X"$_am_arg" |
17497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17498 s//\1/
17499 q
17500 }
17501 /^X\(\/\/\)[^/].*/{
17502 s//\1/
17503 q
17504 }
17505 /^X\(\/\/\)$/{
17506 s//\1/
17507 q
17508 }
17509 /^X\(\/\).*/{
17510 s//\1/
17511 q
17512 }
17513 s/.*/./; q'`/stamp-h$_am_stamp_count
17514 ;;
17515
17516 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17517$as_echo "$as_me: executing $ac_file commands" >&6;}
17518 ;;
17519 esac
17520
17521
17522 case $ac_file$ac_mode in
17523 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17524 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17525 # are listed without --file. Let's play safe and only enable the eval
17526 # if we detect the quoting.
17527 case $CONFIG_FILES in
17528 *\'*) eval set x "$CONFIG_FILES" ;;
17529 *) set x $CONFIG_FILES ;;
17530 esac
17531 shift
17532 for mf
17533 do
17534 # Strip MF so we end up with the name of the file.
17535 mf=`echo "$mf" | sed -e 's/:.*$//'`
17536 # Check whether this is an Automake generated Makefile or not.
17537 # We used to match only the files named `Makefile.in', but
17538 # some people rename them; so instead we look at the file content.
17539 # Grep'ing the first line is not enough: some people post-process
17540 # each Makefile.in and add a new line on top of each file to say so.
17541 # Grep'ing the whole file is not good either: AIX grep has a line
17542 # limit of 2048, but all sed's we know have understand at least 4000.
17543 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17544 dirpart=`$as_dirname -- "$mf" ||
17545$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17546 X"$mf" : 'X\(//\)[^/]' \| \
17547 X"$mf" : 'X\(//\)$' \| \
17548 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17549$as_echo X"$mf" |
17550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17551 s//\1/
17552 q
17553 }
17554 /^X\(\/\/\)[^/].*/{
17555 s//\1/
17556 q
17557 }
17558 /^X\(\/\/\)$/{
17559 s//\1/
17560 q
17561 }
17562 /^X\(\/\).*/{
17563 s//\1/
17564 q
17565 }
17566 s/.*/./; q'`
17567 else
17568 continue
17569 fi
17570 # Extract the definition of DEPDIR, am__include, and am__quote
17571 # from the Makefile without running `make'.
17572 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17573 test -z "$DEPDIR" && continue
17574 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17575 test -z "am__include" && continue
17576 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17577 # When using ansi2knr, U may be empty or an underscore; expand it
17578 U=`sed -n 's/^U = //p' < "$mf"`
17579 # Find all dependency output files, they are included files with
17580 # $(DEPDIR) in their names. We invoke sed twice because it is the
17581 # simplest approach to changing $(DEPDIR) to its actual value in the
17582 # expansion.
17583 for file in `sed -n "
17584 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17585 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17586 # Make sure the directory exists.
17587 test -f "$dirpart/$file" && continue
17588 fdir=`$as_dirname -- "$file" ||
17589$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$file" : 'X\(//\)[^/]' \| \
17591 X"$file" : 'X\(//\)$' \| \
17592 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17593$as_echo X"$file" |
17594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17595 s//\1/
17596 q
17597 }
17598 /^X\(\/\/\)[^/].*/{
17599 s//\1/
17600 q
17601 }
17602 /^X\(\/\/\)$/{
17603 s//\1/
17604 q
17605 }
17606 /^X\(\/\).*/{
17607 s//\1/
17608 q
17609 }
17610 s/.*/./; q'`
17611 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17612 # echo "creating $dirpart/$file"
17613 echo '# dummy' > "$dirpart/$file"
17614 done
17615 done
17616}
17617 ;;
17618 "default":C)
17619case x$CONFIG_HEADERS in
17620xconfig.h:config.in)
17621echo > stamp-h ;;
17622esac
17623 ;;
17624
17625 esac
17626done # for ac_tag
17627
17628
17629as_fn_exit 0
17630_ACEOF
17631ac_clean_files=$ac_clean_files_save
17632
17633test $ac_write_fail = 0 ||
17634 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17635
17636
17637# configure is writing to config.log, and then calls config.status.
17638# config.status does its own redirection, appending to config.log.
17639# Unfortunately, on DOS this fails, as config.log is still kept open
17640# by configure, so config.status won't be able to write to it; its
17641# output is simply discarded. So we exec the FD to /dev/null,
17642# effectively closing config.log, so it can be properly (re)opened and
17643# appended to by config.status. When coming back to configure, we
17644# need to make the FD available again.
17645if test "$no_create" != yes; then
17646 ac_cs_success=:
17647 ac_config_status_args=
17648 test "$silent" = yes &&
17649 ac_config_status_args="$ac_config_status_args --quiet"
17650 exec 5>/dev/null
17651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17652 exec 5>>config.log
17653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17654 # would make configure fail if this is the last instruction.
17655 $ac_cs_success || as_fn_exit $?
17656fi
17657if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17659$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17660fi
17661
17662
17663exit 0
This page took 1.365955 seconds and 4 git commands to generate.