Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for lbzip2 2.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (C) 2011, 2012 Mikolaj Izdebski
13 #
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
18 #
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #
27 ## -------------------- ##
28 ## M4sh Initialization. ##
29 ## -------------------- ##
30
31 # Be more Bourne compatible
32 DUALCASE=1; export DUALCASE # for MKS sh
33 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34 emulate sh
35 NULLCMD=:
36 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37 # is contrary to our usage. Disable this feature.
38 alias -g '${1+"$@"}'='"$@"'
39 setopt NO_GLOB_SUBST
40 else
41 case `(set -o) 2>/dev/null` in #(
42 *posix*) :
43 set -o posix ;; #(
44 *) :
45 ;;
46 esac
47 fi
48
49
50 as_nl='
51 '
52 export as_nl
53 # Printing a long string crashes Solaris 7 /usr/bin/printf.
54 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
55 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57 # Prefer a ksh shell builtin over an external printf program on Solaris,
58 # but without wasting forks for bash or zsh.
59 if test -z "$BASH_VERSION$ZSH_VERSION" \
60 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
61 as_echo='print -r --'
62 as_echo_n='print -rn --'
63 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
64 as_echo='printf %s\n'
65 as_echo_n='printf %s'
66 else
67 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
68 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
69 as_echo_n='/usr/ucb/echo -n'
70 else
71 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72 as_echo_n_body='eval
73 arg=$1;
74 case $arg in #(
75 *"$as_nl"*)
76 expr "X$arg" : "X\\(.*\\)$as_nl";
77 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
78 esac;
79 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
80 '
81 export as_echo_n_body
82 as_echo_n='sh -c $as_echo_n_body as_echo'
83 fi
84 export as_echo_body
85 as_echo='sh -c $as_echo_body as_echo'
86 fi
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 PATH_SEPARATOR=:
91 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
92 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
93 PATH_SEPARATOR=';'
94 }
95 fi
96
97
98 # IFS
99 # We need space, tab and new line, in precisely that order. Quoting is
100 # there to prevent editors from complaining about space-tab.
101 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
102 # splitting by setting IFS to empty value.)
103 IFS=" "" $as_nl"
104
105 # Find who we are. Look in the path if we contain no directory separator.
106 as_myself=
107 case $0 in #((
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116 IFS=$as_save_IFS
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
127 exit 1
128 fi
129
130 # Unset variables that we do not need and which cause bugs (e.g. in
131 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
132 # suppresses any "Segmentation fault" message there. '((' could
133 # trigger a bug in pdksh 5.2.14.
134 for as_var in BASH_ENV ENV MAIL MAILPATH
135 do eval test x\${$as_var+set} = xset \
136 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 done
138 PS1='$ '
139 PS2='> '
140 PS4='+ '
141
142 # NLS nuisances.
143 LC_ALL=C
144 export LC_ALL
145 LANGUAGE=C
146 export LANGUAGE
147
148 # CDPATH.
149 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
150
151 # Use a proper internal environment variable to ensure we don't fall
152 # into an infinite loop, continuously re-executing ourselves.
153 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
154 _as_can_reexec=no; export _as_can_reexec;
155 # We cannot yet assume a decent shell, so we have to provide a
156 # neutralization value for shells without unset; and this also
157 # works around shells that cannot unset nonexistent variables.
158 # Preserve -v and -x to the replacement shell.
159 BASH_ENV=/dev/null
160 ENV=/dev/null
161 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
162 case $- in # ((((
163 *v*x* | *x*v* ) as_opts=-vx ;;
164 *v* ) as_opts=-v ;;
165 *x* ) as_opts=-x ;;
166 * ) as_opts= ;;
167 esac
168 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
169 # Admittedly, this is quite paranoid, since all the known shells bail
170 # out after a failed `exec'.
171 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
172 as_fn_exit 255
173 fi
174 # We don't want this to propagate to other subprocesses.
175 { _as_can_reexec=; unset _as_can_reexec;}
176 if test "x$CONFIG_SHELL" = x; then
177 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
178 emulate sh
179 NULLCMD=:
180 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
181 # is contrary to our usage. Disable this feature.
182 alias -g '\${1+\"\$@\"}'='\"\$@\"'
183 setopt NO_GLOB_SUBST
184 else
185 case \`(set -o) 2>/dev/null\` in #(
186 *posix*) :
187 set -o posix ;; #(
188 *) :
189 ;;
190 esac
191 fi
192 "
193 as_required="as_fn_return () { (exit \$1); }
194 as_fn_success () { as_fn_return 0; }
195 as_fn_failure () { as_fn_return 1; }
196 as_fn_ret_success () { return 0; }
197 as_fn_ret_failure () { return 1; }
198
199 exitcode=0
200 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
201 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
202 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
203 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
204 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
205
206 else
207 exitcode=1; echo positional parameters were not saved.
208 fi
209 test x\$exitcode = x0 || exit 1
210 test -x / || exit 1"
211 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
212 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
213 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
214 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
215 test \$(( 1 + 1 )) = 2 || exit 1"
216 if (eval "$as_required") 2>/dev/null; then :
217 as_have_required=yes
218 else
219 as_have_required=no
220 fi
221 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
222
223 else
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 as_found=false
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 as_found=:
231 case $as_dir in #(
232 /*)
233 for as_base in sh bash ksh sh5; do
234 # Try only shells that exist, to save several forks.
235 as_shell=$as_dir/$as_base
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
238 CONFIG_SHELL=$as_shell as_have_required=yes
239 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
240 break 2
241 fi
242 fi
243 done;;
244 esac
245 as_found=false
246 done
247 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
248 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
249 CONFIG_SHELL=$SHELL as_have_required=yes
250 fi; }
251 IFS=$as_save_IFS
252
253
254 if test "x$CONFIG_SHELL" != x; then :
255 export CONFIG_SHELL
256 # We cannot yet assume a decent shell, so we have to provide a
257 # neutralization value for shells without unset; and this also
258 # works around shells that cannot unset nonexistent variables.
259 # Preserve -v and -x to the replacement shell.
260 BASH_ENV=/dev/null
261 ENV=/dev/null
262 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
263 case $- in # ((((
264 *v*x* | *x*v* ) as_opts=-vx ;;
265 *v* ) as_opts=-v ;;
266 *x* ) as_opts=-x ;;
267 * ) as_opts= ;;
268 esac
269 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
270 # Admittedly, this is quite paranoid, since all the known shells bail
271 # out after a failed `exec'.
272 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
273 exit 255
274 fi
275
276 if test x$as_have_required = xno; then :
277 $as_echo "$0: This script requires a shell more modern than all"
278 $as_echo "$0: the shells that I found on your system."
279 if test x${ZSH_VERSION+set} = xset ; then
280 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
281 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
282 else
283 $as_echo "$0: Please tell [email protected] about your system,
284 $0: including any error possibly output before this
285 $0: message. Then install a modern shell, or manually run
286 $0: the script under such a shell if you do have one."
287 fi
288 exit 1
289 fi
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 $as_echo X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
390 eval 'as_fn_append ()
391 {
392 eval $1+=\$2
393 }'
394 else
395 as_fn_append ()
396 {
397 eval $1=\$$1\$2
398 }
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418
419 # as_fn_error STATUS ERROR [LINENO LOG_FD]
420 # ----------------------------------------
421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
423 # script with STATUS, using 1 if that was 0.
424 as_fn_error ()
425 {
426 as_status=$1; test $as_status -eq 0 && as_status=1
427 if test "$4"; then
428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
429 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
430 fi
431 $as_echo "$as_me: error: $2" >&2
432 as_fn_exit $as_status
433 } # as_fn_error
434
435 if expr a : '\(a\)' >/dev/null 2>&1 &&
436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 as_expr=expr
438 else
439 as_expr=false
440 fi
441
442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 as_basename=basename
444 else
445 as_basename=false
446 fi
447
448 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_dirname=dirname
450 else
451 as_dirname=false
452 fi
453
454 as_me=`$as_basename -- "$0" ||
455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
456 X"$0" : 'X\(//\)$' \| \
457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
458 $as_echo X/"$0" |
459 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\/\)$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\).*/{
468 s//\1/
469 q
470 }
471 s/.*/./; q'`
472
473 # Avoid depending upon Character Ranges.
474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
477 as_cr_digits='0123456789'
478 as_cr_alnum=$as_cr_Letters$as_cr_digits
479
480
481 as_lineno_1=$LINENO as_lineno_1a=$LINENO
482 as_lineno_2=$LINENO as_lineno_2a=$LINENO
483 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
484 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
485 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 sed -n '
487 p
488 /[$]LINENO/=
489 ' <$as_myself |
490 sed '
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 rm -f conf$$ conf$$.exe conf$$.file
530 if test -d conf$$.dir; then
531 rm -f conf$$.dir/conf$$.file
532 else
533 rm -f conf$$.dir
534 mkdir conf$$.dir 2>/dev/null
535 fi
536 if (echo >conf$$.file) 2>/dev/null; then
537 if ln -s conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s='ln -s'
539 # ... but there are two gotchas:
540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
542 # In both cases, we have to default to `cp -pR'.
543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
544 as_ln_s='cp -pR'
545 elif ln conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s=ln
547 else
548 as_ln_s='cp -pR'
549 fi
550 else
551 as_ln_s='cp -pR'
552 fi
553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
554 rmdir conf$$.dir 2>/dev/null
555
556 if mkdir -p . 2>/dev/null; then
557 as_mkdir_p='mkdir -p "$as_dir"'
558 else
559 test -d ./-p && rmdir ./-p
560 as_mkdir_p=false
561 fi
562
563 as_test_x='test -x'
564 as_executable_p=as_fn_executable_p
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='lbzip2'
595 PACKAGE_TARNAME='lbzip2'
596 PACKAGE_VERSION='2.5'
597 PACKAGE_STRING='lbzip2 2.5'
598 PACKAGE_BUGREPORT=''
599 PACKAGE_URL=''
600
601 ac_unique_file="src/main.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_header_list=
639 ac_func_list=
640 ac_subst_vars='gltests_LTLIBOBJS
641 gltests_LIBOBJS
642 gl_LTLIBOBJS
643 gl_LIBOBJS
644 am__EXEEXT_FALSE
645 am__EXEEXT_TRUE
646 LTLIBOBJS
647 LIBOBJS
648 LIBGNU_LTLIBDEPS
649 LIBGNU_LIBDEPS
650 gltests_WITNESS
651 HAVE_WINT_T
652 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
653 NEXT_WCHAR_H
654 REPLACE_WCSWIDTH
655 REPLACE_WCWIDTH
656 REPLACE_WCSNRTOMBS
657 REPLACE_WCSRTOMBS
658 REPLACE_WCRTOMB
659 REPLACE_MBSNRTOWCS
660 REPLACE_MBSRTOWCS
661 REPLACE_MBRLEN
662 REPLACE_MBRTOWC
663 REPLACE_MBSINIT
664 REPLACE_WCTOB
665 REPLACE_BTOWC
666 REPLACE_MBSTATE_T
667 HAVE_DECL_WCWIDTH
668 HAVE_DECL_WCTOB
669 HAVE_WCSWIDTH
670 HAVE_WCSTOK
671 HAVE_WCSSTR
672 HAVE_WCSPBRK
673 HAVE_WCSSPN
674 HAVE_WCSCSPN
675 HAVE_WCSRCHR
676 HAVE_WCSCHR
677 HAVE_WCSDUP
678 HAVE_WCSXFRM
679 HAVE_WCSCOLL
680 HAVE_WCSNCASECMP
681 HAVE_WCSCASECMP
682 HAVE_WCSNCMP
683 HAVE_WCSCMP
684 HAVE_WCSNCAT
685 HAVE_WCSCAT
686 HAVE_WCPNCPY
687 HAVE_WCSNCPY
688 HAVE_WCPCPY
689 HAVE_WCSCPY
690 HAVE_WCSNLEN
691 HAVE_WCSLEN
692 HAVE_WMEMSET
693 HAVE_WMEMMOVE
694 HAVE_WMEMCPY
695 HAVE_WMEMCMP
696 HAVE_WMEMCHR
697 HAVE_WCSNRTOMBS
698 HAVE_WCSRTOMBS
699 HAVE_WCRTOMB
700 HAVE_MBSNRTOWCS
701 HAVE_MBSRTOWCS
702 HAVE_MBRLEN
703 HAVE_MBRTOWC
704 HAVE_MBSINIT
705 HAVE_BTOWC
706 GNULIB_WCSWIDTH
707 GNULIB_WCSTOK
708 GNULIB_WCSSTR
709 GNULIB_WCSPBRK
710 GNULIB_WCSSPN
711 GNULIB_WCSCSPN
712 GNULIB_WCSRCHR
713 GNULIB_WCSCHR
714 GNULIB_WCSDUP
715 GNULIB_WCSXFRM
716 GNULIB_WCSCOLL
717 GNULIB_WCSNCASECMP
718 GNULIB_WCSCASECMP
719 GNULIB_WCSNCMP
720 GNULIB_WCSCMP
721 GNULIB_WCSNCAT
722 GNULIB_WCSCAT
723 GNULIB_WCPNCPY
724 GNULIB_WCSNCPY
725 GNULIB_WCPCPY
726 GNULIB_WCSCPY
727 GNULIB_WCSNLEN
728 GNULIB_WCSLEN
729 GNULIB_WMEMSET
730 GNULIB_WMEMMOVE
731 GNULIB_WMEMCPY
732 GNULIB_WMEMCMP
733 GNULIB_WMEMCHR
734 GNULIB_WCWIDTH
735 GNULIB_WCSNRTOMBS
736 GNULIB_WCSRTOMBS
737 GNULIB_WCRTOMB
738 GNULIB_MBSNRTOWCS
739 GNULIB_MBSRTOWCS
740 GNULIB_MBRLEN
741 GNULIB_MBRTOWC
742 GNULIB_MBSINIT
743 GNULIB_WCTOB
744 GNULIB_BTOWC
745 HAVE_UNISTD_H
746 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
747 NEXT_UNISTD_H
748 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
749 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
750 TIME_H_DEFINES_STRUCT_TIMESPEC
751 NEXT_AS_FIRST_DIRECTIVE_TIME_H
752 NEXT_TIME_H
753 REPLACE_LOCALTIME
754 REPLACE_GMTIME
755 REPLACE_TIMEGM
756 REPLACE_NANOSLEEP
757 REPLACE_MKTIME
758 REPLACE_LOCALTIME_R
759 HAVE_TIMEGM
760 HAVE_STRPTIME
761 HAVE_NANOSLEEP
762 HAVE_DECL_LOCALTIME_R
763 GNULIB_TIME_R
764 GNULIB_TIMEGM
765 GNULIB_STRPTIME
766 GNULIB_NANOSLEEP
767 GNULIB_MKTIME
768 WINDOWS_64_BIT_OFF_T
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
770 NEXT_SYS_TYPES_H
771 NEXT_AS_FIRST_DIRECTIVE_STRING_H
772 NEXT_STRING_H
773 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
774 NEXT_STDLIB_H
775 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
776 NEXT_STDIO_H
777 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
778 NEXT_STDDEF_H
779 GL_GENERATE_STDDEF_H_FALSE
780 GL_GENERATE_STDDEF_H_TRUE
781 STDDEF_H
782 HAVE_WCHAR_T
783 REPLACE_NULL
784 HAVE__BOOL
785 GL_GENERATE_STDBOOL_H_FALSE
786 GL_GENERATE_STDBOOL_H_TRUE
787 STDBOOL_H
788 GL_GENERATE_SCHED_H_FALSE
789 GL_GENERATE_SCHED_H_TRUE
790 SCHED_H
791 HAVE_STRUCT_SCHED_PARAM
792 HAVE_SCHED_H
793 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
794 NEXT_SCHED_H
795 LIB_PTHREAD
796 GL_GENERATE_PTHREAD_H_FALSE
797 GL_GENERATE_PTHREAD_H_TRUE
798 PTHREAD_H
799 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H
800 NEXT_PTHREAD_H
801 HAVE_PTHREAD_SPINLOCK_T
802 HAVE_PTHREAD_T
803 HAVE_PTHREAD_H
804 UNDEFINE_STRTOK_R
805 REPLACE_STRTOK_R
806 REPLACE_STRSIGNAL
807 REPLACE_STRNLEN
808 REPLACE_STRNDUP
809 REPLACE_STRNCAT
810 REPLACE_STRERROR_R
811 REPLACE_STRERROR
812 REPLACE_STRCHRNUL
813 REPLACE_STRCASESTR
814 REPLACE_STRSTR
815 REPLACE_STRDUP
816 REPLACE_STPNCPY
817 REPLACE_MEMMEM
818 REPLACE_MEMCHR
819 HAVE_STRVERSCMP
820 HAVE_DECL_STRSIGNAL
821 HAVE_DECL_STRERROR_R
822 HAVE_DECL_STRTOK_R
823 HAVE_STRCASESTR
824 HAVE_STRSEP
825 HAVE_STRPBRK
826 HAVE_DECL_STRNLEN
827 HAVE_DECL_STRNDUP
828 HAVE_DECL_STRDUP
829 HAVE_STRCHRNUL
830 HAVE_STPNCPY
831 HAVE_STPCPY
832 HAVE_RAWMEMCHR
833 HAVE_DECL_MEMRCHR
834 HAVE_MEMPCPY
835 HAVE_DECL_MEMMEM
836 HAVE_MEMCHR
837 HAVE_FFSLL
838 HAVE_FFSL
839 HAVE_MBSLEN
840 GNULIB_STRVERSCMP
841 GNULIB_STRSIGNAL
842 GNULIB_STRERROR_R
843 GNULIB_STRERROR
844 GNULIB_MBSTOK_R
845 GNULIB_MBSSEP
846 GNULIB_MBSSPN
847 GNULIB_MBSPBRK
848 GNULIB_MBSCSPN
849 GNULIB_MBSCASESTR
850 GNULIB_MBSPCASECMP
851 GNULIB_MBSNCASECMP
852 GNULIB_MBSCASECMP
853 GNULIB_MBSSTR
854 GNULIB_MBSRCHR
855 GNULIB_MBSCHR
856 GNULIB_MBSNLEN
857 GNULIB_MBSLEN
858 GNULIB_STRTOK_R
859 GNULIB_STRCASESTR
860 GNULIB_STRSTR
861 GNULIB_STRSEP
862 GNULIB_STRPBRK
863 GNULIB_STRNLEN
864 GNULIB_STRNDUP
865 GNULIB_STRNCAT
866 GNULIB_STRDUP
867 GNULIB_STRCHRNUL
868 GNULIB_STPNCPY
869 GNULIB_STPCPY
870 GNULIB_RAWMEMCHR
871 GNULIB_MEMRCHR
872 GNULIB_MEMPCPY
873 GNULIB_MEMMEM
874 GNULIB_MEMCHR
875 GNULIB_FFSLL
876 GNULIB_FFSL
877 NEXT_AS_FIRST_DIRECTIVE_MATH_H
878 NEXT_MATH_H
879 REPLACE_WCTOMB
880 REPLACE_UNSETENV
881 REPLACE_STRTOD
882 REPLACE_SETENV
883 REPLACE_REALPATH
884 REPLACE_REALLOC
885 REPLACE_RANDOM_R
886 REPLACE_PUTENV
887 REPLACE_PTSNAME_R
888 REPLACE_PTSNAME
889 REPLACE_MKSTEMP
890 REPLACE_MBTOWC
891 REPLACE_MALLOC
892 REPLACE_CANONICALIZE_FILE_NAME
893 REPLACE_CALLOC
894 HAVE_DECL_UNSETENV
895 HAVE_UNLOCKPT
896 HAVE_SYS_LOADAVG_H
897 HAVE_STRUCT_RANDOM_DATA
898 HAVE_STRTOULL
899 HAVE_STRTOLL
900 HAVE_STRTOD
901 HAVE_DECL_SETENV
902 HAVE_SETENV
903 HAVE_SECURE_GETENV
904 HAVE_RPMATCH
905 HAVE_REALPATH
906 HAVE_RANDOM_R
907 HAVE_RANDOM_H
908 HAVE_RANDOM
909 HAVE_PTSNAME_R
910 HAVE_PTSNAME
911 HAVE_POSIX_OPENPT
912 HAVE_MKSTEMPS
913 HAVE_MKSTEMP
914 HAVE_MKOSTEMPS
915 HAVE_MKOSTEMP
916 HAVE_MKDTEMP
917 HAVE_GRANTPT
918 HAVE_GETSUBOPT
919 HAVE_DECL_GETLOADAVG
920 HAVE_CANONICALIZE_FILE_NAME
921 HAVE_ATOLL
922 HAVE__EXIT
923 GNULIB_WCTOMB
924 GNULIB_UNSETENV
925 GNULIB_UNLOCKPT
926 GNULIB_SYSTEM_POSIX
927 GNULIB_STRTOULL
928 GNULIB_STRTOLL
929 GNULIB_STRTOD
930 GNULIB_SETENV
931 GNULIB_SECURE_GETENV
932 GNULIB_RPMATCH
933 GNULIB_REALPATH
934 GNULIB_REALLOC_POSIX
935 GNULIB_RANDOM_R
936 GNULIB_RANDOM
937 GNULIB_PUTENV
938 GNULIB_PTSNAME_R
939 GNULIB_PTSNAME
940 GNULIB_POSIX_OPENPT
941 GNULIB_MKSTEMPS
942 GNULIB_MKSTEMP
943 GNULIB_MKOSTEMPS
944 GNULIB_MKOSTEMP
945 GNULIB_MKDTEMP
946 GNULIB_MBTOWC
947 GNULIB_MALLOC_POSIX
948 GNULIB_GRANTPT
949 GNULIB_GETSUBOPT
950 GNULIB_GETLOADAVG
951 GNULIB_CANONICALIZE_FILE_NAME
952 GNULIB_CALLOC_POSIX
953 GNULIB_ATOLL
954 GNULIB__EXIT
955 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
956 NEXT_INTTYPES_H
957 UINT64_MAX_EQ_ULONG_MAX
958 UINT32_MAX_LT_UINTMAX_MAX
959 PRIPTR_PREFIX
960 PRI_MACROS_BROKEN
961 INT64_MAX_EQ_LONG_MAX
962 INT32_MAX_LT_INTMAX_MAX
963 REPLACE_STRTOUMAX
964 REPLACE_STRTOIMAX
965 HAVE_DECL_STRTOUMAX
966 HAVE_DECL_STRTOIMAX
967 HAVE_DECL_IMAXDIV
968 HAVE_DECL_IMAXABS
969 GNULIB_STRTOUMAX
970 GNULIB_STRTOIMAX
971 GNULIB_IMAXDIV
972 GNULIB_IMAXABS
973 GL_GENERATE_STDINT_H_FALSE
974 GL_GENERATE_STDINT_H_TRUE
975 STDINT_H
976 WINT_T_SUFFIX
977 WCHAR_T_SUFFIX
978 SIG_ATOMIC_T_SUFFIX
979 SIZE_T_SUFFIX
980 PTRDIFF_T_SUFFIX
981 HAVE_SIGNED_WINT_T
982 HAVE_SIGNED_WCHAR_T
983 HAVE_SIGNED_SIG_ATOMIC_T
984 BITSIZEOF_WINT_T
985 BITSIZEOF_WCHAR_T
986 BITSIZEOF_SIG_ATOMIC_T
987 BITSIZEOF_SIZE_T
988 BITSIZEOF_PTRDIFF_T
989 HAVE_SYS_BITYPES_H
990 HAVE_SYS_INTTYPES_H
991 HAVE_STDINT_H
992 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
993 NEXT_STDINT_H
994 HAVE_SYS_TYPES_H
995 HAVE_INTTYPES_H
996 HAVE_WCHAR_H
997 HAVE_UNSIGNED_LONG_LONG_INT
998 HAVE_LONG_LONG_INT
999 HAVE_WINSOCK2_H
1000 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1001 NEXT_SYS_TIME_H
1002 REPLACE_STRUCT_TIMEVAL
1003 REPLACE_GETTIMEOFDAY
1004 HAVE_SYS_TIME_H
1005 HAVE_STRUCT_TIMEVAL
1006 HAVE_GETTIMEOFDAY
1007 GNULIB_GETTIMEOFDAY
1008 WINDOWS_64_BIT_ST_SIZE
1009 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1010 NEXT_SYS_STAT_H
1011 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1012 REPLACE_UTIMENSAT
1013 REPLACE_STAT
1014 REPLACE_MKNOD
1015 REPLACE_MKFIFO
1016 REPLACE_MKDIR
1017 REPLACE_LSTAT
1018 REPLACE_FUTIMENS
1019 REPLACE_FSTATAT
1020 REPLACE_FSTAT
1021 HAVE_UTIMENSAT
1022 HAVE_MKNODAT
1023 HAVE_MKNOD
1024 HAVE_MKFIFOAT
1025 HAVE_MKFIFO
1026 HAVE_MKDIRAT
1027 HAVE_LSTAT
1028 HAVE_LCHMOD
1029 HAVE_FUTIMENS
1030 HAVE_FSTATAT
1031 HAVE_FCHMODAT
1032 GNULIB_UTIMENSAT
1033 GNULIB_STAT
1034 GNULIB_MKNODAT
1035 GNULIB_MKNOD
1036 GNULIB_MKFIFOAT
1037 GNULIB_MKFIFO
1038 GNULIB_MKDIRAT
1039 GNULIB_LSTAT
1040 GNULIB_LCHMOD
1041 GNULIB_FUTIMENS
1042 GNULIB_FSTATAT
1043 GNULIB_FSTAT
1044 GNULIB_FCHMODAT
1045 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1046 UNISTD_H_HAVE_WINSOCK2_H
1047 REPLACE_WRITE
1048 REPLACE_USLEEP
1049 REPLACE_UNLINKAT
1050 REPLACE_UNLINK
1051 REPLACE_TTYNAME_R
1052 REPLACE_SYMLINK
1053 REPLACE_SLEEP
1054 REPLACE_RMDIR
1055 REPLACE_READLINK
1056 REPLACE_READ
1057 REPLACE_PWRITE
1058 REPLACE_PREAD
1059 REPLACE_LSEEK
1060 REPLACE_LINKAT
1061 REPLACE_LINK
1062 REPLACE_LCHOWN
1063 REPLACE_ISATTY
1064 REPLACE_GETPAGESIZE
1065 REPLACE_GETGROUPS
1066 REPLACE_GETLOGIN_R
1067 REPLACE_GETDTABLESIZE
1068 REPLACE_GETDOMAINNAME
1069 REPLACE_GETCWD
1070 REPLACE_FTRUNCATE
1071 REPLACE_FCHOWNAT
1072 REPLACE_DUP2
1073 REPLACE_DUP
1074 REPLACE_CLOSE
1075 REPLACE_CHOWN
1076 HAVE_SYS_PARAM_H
1077 HAVE_OS_H
1078 HAVE_DECL_TTYNAME_R
1079 HAVE_DECL_SETHOSTNAME
1080 HAVE_DECL_GETUSERSHELL
1081 HAVE_DECL_GETPAGESIZE
1082 HAVE_DECL_GETLOGIN_R
1083 HAVE_DECL_GETDOMAINNAME
1084 HAVE_DECL_FDATASYNC
1085 HAVE_DECL_FCHDIR
1086 HAVE_DECL_ENVIRON
1087 HAVE_USLEEP
1088 HAVE_UNLINKAT
1089 HAVE_SYMLINKAT
1090 HAVE_SYMLINK
1091 HAVE_SLEEP
1092 HAVE_SETHOSTNAME
1093 HAVE_READLINKAT
1094 HAVE_READLINK
1095 HAVE_PWRITE
1096 HAVE_PREAD
1097 HAVE_PIPE2
1098 HAVE_PIPE
1099 HAVE_LINKAT
1100 HAVE_LINK
1101 HAVE_LCHOWN
1102 HAVE_GROUP_MEMBER
1103 HAVE_GETPAGESIZE
1104 HAVE_GETLOGIN
1105 HAVE_GETHOSTNAME
1106 HAVE_GETGROUPS
1107 HAVE_GETDTABLESIZE
1108 HAVE_FTRUNCATE
1109 HAVE_FSYNC
1110 HAVE_FDATASYNC
1111 HAVE_FCHOWNAT
1112 HAVE_FCHDIR
1113 HAVE_FACCESSAT
1114 HAVE_EUIDACCESS
1115 HAVE_DUP3
1116 HAVE_DUP2
1117 HAVE_CHOWN
1118 GNULIB_WRITE
1119 GNULIB_USLEEP
1120 GNULIB_UNLINKAT
1121 GNULIB_UNLINK
1122 GNULIB_UNISTD_H_SIGPIPE
1123 GNULIB_UNISTD_H_NONBLOCKING
1124 GNULIB_TTYNAME_R
1125 GNULIB_SYMLINKAT
1126 GNULIB_SYMLINK
1127 GNULIB_SLEEP
1128 GNULIB_SETHOSTNAME
1129 GNULIB_RMDIR
1130 GNULIB_READLINKAT
1131 GNULIB_READLINK
1132 GNULIB_READ
1133 GNULIB_PWRITE
1134 GNULIB_PREAD
1135 GNULIB_PIPE2
1136 GNULIB_PIPE
1137 GNULIB_LSEEK
1138 GNULIB_LINKAT
1139 GNULIB_LINK
1140 GNULIB_LCHOWN
1141 GNULIB_ISATTY
1142 GNULIB_GROUP_MEMBER
1143 GNULIB_GETUSERSHELL
1144 GNULIB_GETPAGESIZE
1145 GNULIB_GETLOGIN_R
1146 GNULIB_GETLOGIN
1147 GNULIB_GETHOSTNAME
1148 GNULIB_GETGROUPS
1149 GNULIB_GETDTABLESIZE
1150 GNULIB_GETDOMAINNAME
1151 GNULIB_GETCWD
1152 GNULIB_FTRUNCATE
1153 GNULIB_FSYNC
1154 GNULIB_FDATASYNC
1155 GNULIB_FCHOWNAT
1156 GNULIB_FCHDIR
1157 GNULIB_FACCESSAT
1158 GNULIB_EUIDACCESS
1159 GNULIB_ENVIRON
1160 GNULIB_DUP3
1161 GNULIB_DUP2
1162 GNULIB_DUP
1163 GNULIB_CLOSE
1164 GNULIB_CHOWN
1165 GNULIB_CHDIR
1166 REPLACE_TRUNCL
1167 REPLACE_TRUNCF
1168 REPLACE_TRUNC
1169 REPLACE_SQRTL
1170 REPLACE_SIGNBIT_USING_GCC
1171 REPLACE_SIGNBIT
1172 REPLACE_ROUNDL
1173 REPLACE_ROUNDF
1174 REPLACE_ROUND
1175 REPLACE_REMAINDERL
1176 REPLACE_REMAINDERF
1177 REPLACE_REMAINDER
1178 REPLACE_NAN
1179 REPLACE_MODFL
1180 REPLACE_MODFF
1181 REPLACE_MODF
1182 REPLACE_LOGBL
1183 REPLACE_LOGBF
1184 REPLACE_LOGB
1185 REPLACE_LOG2L
1186 REPLACE_LOG2F
1187 REPLACE_LOG2
1188 REPLACE_LOG1PL
1189 REPLACE_LOG1PF
1190 REPLACE_LOG1P
1191 REPLACE_LOG10L
1192 REPLACE_LOG10F
1193 REPLACE_LOG10
1194 REPLACE_LOGL
1195 REPLACE_LOGF
1196 REPLACE_LOG
1197 REPLACE_LDEXPL
1198 REPLACE_ISNAN
1199 REPLACE_ISINF
1200 REPLACE_ISFINITE
1201 REPLACE_ILOGBF
1202 REPLACE_ILOGB
1203 REPLACE_HYPOTL
1204 REPLACE_HYPOTF
1205 REPLACE_HYPOT
1206 REPLACE_HUGE_VAL
1207 REPLACE_FREXPL
1208 REPLACE_FREXP
1209 REPLACE_FREXPF
1210 REPLACE_FMODL
1211 REPLACE_FMODF
1212 REPLACE_FMOD
1213 REPLACE_FMAL
1214 REPLACE_FMAF
1215 REPLACE_FMA
1216 REPLACE_FLOORL
1217 REPLACE_FLOORF
1218 REPLACE_FLOOR
1219 REPLACE_FABSL
1220 REPLACE_EXP2L
1221 REPLACE_EXP2
1222 REPLACE_EXPM1F
1223 REPLACE_EXPM1
1224 REPLACE_CEILL
1225 REPLACE_CEILF
1226 REPLACE_CEIL
1227 REPLACE_CBRTL
1228 REPLACE_CBRTF
1229 HAVE_DECL_TRUNCL
1230 HAVE_DECL_TRUNCF
1231 HAVE_DECL_TRUNC
1232 HAVE_DECL_TANL
1233 HAVE_DECL_SQRTL
1234 HAVE_DECL_SINL
1235 HAVE_DECL_ROUNDL
1236 HAVE_DECL_ROUNDF
1237 HAVE_DECL_ROUND
1238 HAVE_DECL_RINTF
1239 HAVE_DECL_REMAINDERL
1240 HAVE_DECL_REMAINDER
1241 HAVE_DECL_LOGB
1242 HAVE_DECL_LOG2L
1243 HAVE_DECL_LOG2F
1244 HAVE_DECL_LOG2
1245 HAVE_DECL_LOG10L
1246 HAVE_DECL_LOGL
1247 HAVE_DECL_LDEXPL
1248 HAVE_DECL_FREXPL
1249 HAVE_DECL_FLOORL
1250 HAVE_DECL_FLOORF
1251 HAVE_DECL_EXPM1L
1252 HAVE_DECL_EXP2L
1253 HAVE_DECL_EXP2F
1254 HAVE_DECL_EXP2
1255 HAVE_DECL_EXPL
1256 HAVE_DECL_COSL
1257 HAVE_DECL_COPYSIGNF
1258 HAVE_DECL_CEILL
1259 HAVE_DECL_CEILF
1260 HAVE_DECL_CBRTL
1261 HAVE_DECL_CBRTF
1262 HAVE_DECL_ATANL
1263 HAVE_DECL_ASINL
1264 HAVE_DECL_ACOSL
1265 HAVE_TANHF
1266 HAVE_TANL
1267 HAVE_TANF
1268 HAVE_SQRTL
1269 HAVE_SQRTF
1270 HAVE_SINHF
1271 HAVE_SINL
1272 HAVE_SINF
1273 HAVE_RINTL
1274 HAVE_RINT
1275 HAVE_REMAINDERF
1276 HAVE_REMAINDER
1277 HAVE_POWF
1278 HAVE_MODFL
1279 HAVE_MODFF
1280 HAVE_LOGBL
1281 HAVE_LOGBF
1282 HAVE_LOG1PL
1283 HAVE_LOG1PF
1284 HAVE_LOG1P
1285 HAVE_LOG10L
1286 HAVE_LOG10F
1287 HAVE_LOGL
1288 HAVE_LOGF
1289 HAVE_LDEXPF
1290 HAVE_ISNANL
1291 HAVE_ISNAND
1292 HAVE_ISNANF
1293 HAVE_ILOGBL
1294 HAVE_ILOGBF
1295 HAVE_ILOGB
1296 HAVE_HYPOTL
1297 HAVE_HYPOTF
1298 HAVE_FREXPF
1299 HAVE_FMODL
1300 HAVE_FMODF
1301 HAVE_FMAL
1302 HAVE_FMAF
1303 HAVE_FMA
1304 HAVE_FABSL
1305 HAVE_FABSF
1306 HAVE_EXPM1F
1307 HAVE_EXPM1
1308 HAVE_EXPL
1309 HAVE_EXPF
1310 HAVE_COSHF
1311 HAVE_COSL
1312 HAVE_COSF
1313 HAVE_COPYSIGNL
1314 HAVE_COPYSIGN
1315 HAVE_CBRTL
1316 HAVE_CBRTF
1317 HAVE_CBRT
1318 HAVE_ATAN2F
1319 HAVE_ATANL
1320 HAVE_ATANF
1321 HAVE_ASINL
1322 HAVE_ASINF
1323 HAVE_ACOSL
1324 HAVE_ACOSF
1325 GNULIB_TRUNCL
1326 GNULIB_TRUNCF
1327 GNULIB_TRUNC
1328 GNULIB_TANHF
1329 GNULIB_TANL
1330 GNULIB_TANF
1331 GNULIB_SQRTL
1332 GNULIB_SQRTF
1333 GNULIB_SINHF
1334 GNULIB_SINL
1335 GNULIB_SINF
1336 GNULIB_SIGNBIT
1337 GNULIB_ROUNDL
1338 GNULIB_ROUNDF
1339 GNULIB_ROUND
1340 GNULIB_RINTL
1341 GNULIB_RINTF
1342 GNULIB_RINT
1343 GNULIB_REMAINDERL
1344 GNULIB_REMAINDERF
1345 GNULIB_REMAINDER
1346 GNULIB_POWF
1347 GNULIB_MODFL
1348 GNULIB_MODFF
1349 GNULIB_MODF
1350 GNULIB_LOGBL
1351 GNULIB_LOGBF
1352 GNULIB_LOGB
1353 GNULIB_LOG2L
1354 GNULIB_LOG2F
1355 GNULIB_LOG2
1356 GNULIB_LOG1PL
1357 GNULIB_LOG1PF
1358 GNULIB_LOG1P
1359 GNULIB_LOG10L
1360 GNULIB_LOG10F
1361 GNULIB_LOG10
1362 GNULIB_LOGL
1363 GNULIB_LOGF
1364 GNULIB_LOG
1365 GNULIB_LDEXPL
1366 GNULIB_LDEXPF
1367 GNULIB_ISNANL
1368 GNULIB_ISNAND
1369 GNULIB_ISNANF
1370 GNULIB_ISNAN
1371 GNULIB_ISINF
1372 GNULIB_ISFINITE
1373 GNULIB_ILOGBL
1374 GNULIB_ILOGBF
1375 GNULIB_ILOGB
1376 GNULIB_HYPOTL
1377 GNULIB_HYPOTF
1378 GNULIB_HYPOT
1379 GNULIB_FREXPL
1380 GNULIB_FREXP
1381 GNULIB_FREXPF
1382 GNULIB_FMODL
1383 GNULIB_FMODF
1384 GNULIB_FMOD
1385 GNULIB_FMAL
1386 GNULIB_FMAF
1387 GNULIB_FMA
1388 GNULIB_FLOORL
1389 GNULIB_FLOORF
1390 GNULIB_FLOOR
1391 GNULIB_FABSL
1392 GNULIB_FABSF
1393 GNULIB_EXPM1L
1394 GNULIB_EXPM1F
1395 GNULIB_EXPM1
1396 GNULIB_EXP2L
1397 GNULIB_EXP2F
1398 GNULIB_EXP2
1399 GNULIB_EXPL
1400 GNULIB_EXPF
1401 GNULIB_COSHF
1402 GNULIB_COSL
1403 GNULIB_COSF
1404 GNULIB_COPYSIGNL
1405 GNULIB_COPYSIGNF
1406 GNULIB_COPYSIGN
1407 GNULIB_CEILL
1408 GNULIB_CEILF
1409 GNULIB_CEIL
1410 GNULIB_CBRTL
1411 GNULIB_CBRTF
1412 GNULIB_CBRT
1413 GNULIB_ATAN2F
1414 GNULIB_ATANL
1415 GNULIB_ATANF
1416 GNULIB_ASINL
1417 GNULIB_ASINF
1418 GNULIB_ACOSL
1419 GNULIB_ACOSF
1420 REPLACE_VSPRINTF
1421 REPLACE_VSNPRINTF
1422 REPLACE_VPRINTF
1423 REPLACE_VFPRINTF
1424 REPLACE_VDPRINTF
1425 REPLACE_VASPRINTF
1426 REPLACE_TMPFILE
1427 REPLACE_STDIO_WRITE_FUNCS
1428 REPLACE_STDIO_READ_FUNCS
1429 REPLACE_SPRINTF
1430 REPLACE_SNPRINTF
1431 REPLACE_RENAMEAT
1432 REPLACE_RENAME
1433 REPLACE_REMOVE
1434 REPLACE_PRINTF
1435 REPLACE_POPEN
1436 REPLACE_PERROR
1437 REPLACE_OBSTACK_PRINTF
1438 REPLACE_GETLINE
1439 REPLACE_GETDELIM
1440 REPLACE_FTELLO
1441 REPLACE_FTELL
1442 REPLACE_FSEEKO
1443 REPLACE_FSEEK
1444 REPLACE_FREOPEN
1445 REPLACE_FPURGE
1446 REPLACE_FPRINTF
1447 REPLACE_FOPEN
1448 REPLACE_FFLUSH
1449 REPLACE_FDOPEN
1450 REPLACE_FCLOSE
1451 REPLACE_DPRINTF
1452 HAVE_VDPRINTF
1453 HAVE_VASPRINTF
1454 HAVE_RENAMEAT
1455 HAVE_POPEN
1456 HAVE_PCLOSE
1457 HAVE_FTELLO
1458 HAVE_FSEEKO
1459 HAVE_DPRINTF
1460 HAVE_DECL_VSNPRINTF
1461 HAVE_DECL_SNPRINTF
1462 HAVE_DECL_OBSTACK_PRINTF
1463 HAVE_DECL_GETLINE
1464 HAVE_DECL_GETDELIM
1465 HAVE_DECL_FTELLO
1466 HAVE_DECL_FSEEKO
1467 HAVE_DECL_FPURGE
1468 GNULIB_VSPRINTF_POSIX
1469 GNULIB_VSNPRINTF
1470 GNULIB_VPRINTF_POSIX
1471 GNULIB_VPRINTF
1472 GNULIB_VFPRINTF_POSIX
1473 GNULIB_VFPRINTF
1474 GNULIB_VDPRINTF
1475 GNULIB_VSCANF
1476 GNULIB_VFSCANF
1477 GNULIB_VASPRINTF
1478 GNULIB_TMPFILE
1479 GNULIB_STDIO_H_SIGPIPE
1480 GNULIB_STDIO_H_NONBLOCKING
1481 GNULIB_SPRINTF_POSIX
1482 GNULIB_SNPRINTF
1483 GNULIB_SCANF
1484 GNULIB_RENAMEAT
1485 GNULIB_RENAME
1486 GNULIB_REMOVE
1487 GNULIB_PUTS
1488 GNULIB_PUTCHAR
1489 GNULIB_PUTC
1490 GNULIB_PRINTF_POSIX
1491 GNULIB_PRINTF
1492 GNULIB_POPEN
1493 GNULIB_PERROR
1494 GNULIB_PCLOSE
1495 GNULIB_OBSTACK_PRINTF_POSIX
1496 GNULIB_OBSTACK_PRINTF
1497 GNULIB_GETLINE
1498 GNULIB_GETDELIM
1499 GNULIB_GETCHAR
1500 GNULIB_GETC
1501 GNULIB_FWRITE
1502 GNULIB_FTELLO
1503 GNULIB_FTELL
1504 GNULIB_FSEEKO
1505 GNULIB_FSEEK
1506 GNULIB_FSCANF
1507 GNULIB_FREOPEN
1508 GNULIB_FREAD
1509 GNULIB_FPUTS
1510 GNULIB_FPUTC
1511 GNULIB_FPURGE
1512 GNULIB_FPRINTF_POSIX
1513 GNULIB_FPRINTF
1514 GNULIB_FOPEN
1515 GNULIB_FGETS
1516 GNULIB_FGETC
1517 GNULIB_FFLUSH
1518 GNULIB_FDOPEN
1519 GNULIB_FCLOSE
1520 GNULIB_DPRINTF
1521 HAVE_FEATURES_H
1522 APPLE_UNIVERSAL_BUILD
1523 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1524 REPLACE_ITOLD
1525 GL_GENERATE_FLOAT_H_FALSE
1526 GL_GENERATE_FLOAT_H_TRUE
1527 FLOAT_H
1528 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1529 NEXT_FLOAT_H
1530 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1531 NEXT_FCNTL_H
1532 REPLACE_OPENAT
1533 REPLACE_OPEN
1534 REPLACE_FCNTL
1535 HAVE_OPENAT
1536 HAVE_FCNTL
1537 GNULIB_OPENAT
1538 GNULIB_OPEN
1539 GNULIB_NONBLOCKING
1540 GNULIB_FCNTL
1541 EOVERFLOW_VALUE
1542 EOVERFLOW_HIDDEN
1543 ENOLINK_VALUE
1544 ENOLINK_HIDDEN
1545 EMULTIHOP_VALUE
1546 EMULTIHOP_HIDDEN
1547 GL_GENERATE_ERRNO_H_FALSE
1548 GL_GENERATE_ERRNO_H_TRUE
1549 ERRNO_H
1550 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1551 NEXT_ERRNO_H
1552 PRAGMA_COLUMNS
1553 PRAGMA_SYSTEM_HEADER
1554 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1555 INCLUDE_NEXT
1556 LIB_CLOCK_GETTIME
1557 GL_GENERATE_ALLOCA_H_FALSE
1558 GL_GENERATE_ALLOCA_H_TRUE
1559 ALLOCA_H
1560 ALLOCA
1561 GL_COND_LIBTOOL_FALSE
1562 GL_COND_LIBTOOL_TRUE
1563 WARN_CFLAGS
1564 host_os
1565 host_vendor
1566 host_cpu
1567 host
1568 build_os
1569 build_vendor
1570 build_cpu
1571 build
1572 ARFLAGS
1573 AR
1574 EGREP
1575 GREP
1576 CPP
1577 am__fastdepCC_FALSE
1578 am__fastdepCC_TRUE
1579 CCDEPMODE
1580 am__nodep
1581 AMDEPBACKSLASH
1582 AMDEP_FALSE
1583 AMDEP_TRUE
1584 am__quote
1585 am__include
1586 DEPDIR
1587 OBJEXT
1588 EXEEXT
1589 ac_ct_CC
1590 CPPFLAGS
1591 LDFLAGS
1592 CFLAGS
1593 CC
1594 RANLIB
1595 LN_S
1596 AM_BACKSLASH
1597 AM_DEFAULT_VERBOSITY
1598 AM_DEFAULT_V
1599 AM_V
1600 am__untar
1601 am__tar
1602 AMTAR
1603 am__leading_dot
1604 SET_MAKE
1605 AWK
1606 mkdir_p
1607 MKDIR_P
1608 INSTALL_STRIP_PROGRAM
1609 STRIP
1610 install_sh
1611 MAKEINFO
1612 AUTOHEADER
1613 AUTOMAKE
1614 AUTOCONF
1615 ACLOCAL
1616 VERSION
1617 PACKAGE
1618 CYGPATH_W
1619 am__isrc
1620 INSTALL_DATA
1621 INSTALL_SCRIPT
1622 INSTALL_PROGRAM
1623 target_alias
1624 host_alias
1625 build_alias
1626 LIBS
1627 ECHO_T
1628 ECHO_N
1629 ECHO_C
1630 DEFS
1631 mandir
1632 localedir
1633 libdir
1634 psdir
1635 pdfdir
1636 dvidir
1637 htmldir
1638 infodir
1639 docdir
1640 oldincludedir
1641 includedir
1642 localstatedir
1643 sharedstatedir
1644 sysconfdir
1645 datadir
1646 datarootdir
1647 libexecdir
1648 sbindir
1649 bindir
1650 program_transform_name
1651 prefix
1652 exec_prefix
1653 PACKAGE_URL
1654 PACKAGE_BUGREPORT
1655 PACKAGE_STRING
1656 PACKAGE_VERSION
1657 PACKAGE_TARNAME
1658 PACKAGE_NAME
1659 PATH_SEPARATOR
1660 SHELL'
1661 ac_subst_files=''
1662 ac_user_opts='
1663 enable_option_checking
1664 enable_silent_rules
1665 enable_dependency_tracking
1666 enable_largefile
1667 enable_tracing
1668 enable_warnings
1669 '
1670 ac_precious_vars='build_alias
1671 host_alias
1672 target_alias
1673 CC
1674 CFLAGS
1675 LDFLAGS
1676 LIBS
1677 CPPFLAGS
1678 CPP'
1679
1680
1681 # Initialize some variables set by options.
1682 ac_init_help=
1683 ac_init_version=false
1684 ac_unrecognized_opts=
1685 ac_unrecognized_sep=
1686 # The variables have the same names as the options, with
1687 # dashes changed to underlines.
1688 cache_file=/dev/null
1689 exec_prefix=NONE
1690 no_create=
1691 no_recursion=
1692 prefix=NONE
1693 program_prefix=NONE
1694 program_suffix=NONE
1695 program_transform_name=s,x,x,
1696 silent=
1697 site=
1698 srcdir=
1699 verbose=
1700 x_includes=NONE
1701 x_libraries=NONE
1702
1703 # Installation directory options.
1704 # These are left unexpanded so users can "make install exec_prefix=/foo"
1705 # and all the variables that are supposed to be based on exec_prefix
1706 # by default will actually change.
1707 # Use braces instead of parens because sh, perl, etc. also accept them.
1708 # (The list follows the same order as the GNU Coding Standards.)
1709 bindir='${exec_prefix}/bin'
1710 sbindir='${exec_prefix}/sbin'
1711 libexecdir='${exec_prefix}/libexec'
1712 datarootdir='${prefix}/share'
1713 datadir='${datarootdir}'
1714 sysconfdir='${prefix}/etc'
1715 sharedstatedir='${prefix}/com'
1716 localstatedir='${prefix}/var'
1717 includedir='${prefix}/include'
1718 oldincludedir='/usr/include'
1719 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1720 infodir='${datarootdir}/info'
1721 htmldir='${docdir}'
1722 dvidir='${docdir}'
1723 pdfdir='${docdir}'
1724 psdir='${docdir}'
1725 libdir='${exec_prefix}/lib'
1726 localedir='${datarootdir}/locale'
1727 mandir='${datarootdir}/man'
1728
1729 ac_prev=
1730 ac_dashdash=
1731 for ac_option
1732 do
1733 # If the previous option needs an argument, assign it.
1734 if test -n "$ac_prev"; then
1735 eval $ac_prev=\$ac_option
1736 ac_prev=
1737 continue
1738 fi
1739
1740 case $ac_option in
1741 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1742 *=) ac_optarg= ;;
1743 *) ac_optarg=yes ;;
1744 esac
1745
1746 # Accept the important Cygnus configure options, so we can diagnose typos.
1747
1748 case $ac_dashdash$ac_option in
1749 --)
1750 ac_dashdash=yes ;;
1751
1752 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1753 ac_prev=bindir ;;
1754 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1755 bindir=$ac_optarg ;;
1756
1757 -build | --build | --buil | --bui | --bu)
1758 ac_prev=build_alias ;;
1759 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1760 build_alias=$ac_optarg ;;
1761
1762 -cache-file | --cache-file | --cache-fil | --cache-fi \
1763 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1764 ac_prev=cache_file ;;
1765 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1766 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1767 cache_file=$ac_optarg ;;
1768
1769 --config-cache | -C)
1770 cache_file=config.cache ;;
1771
1772 -datadir | --datadir | --datadi | --datad)
1773 ac_prev=datadir ;;
1774 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1775 datadir=$ac_optarg ;;
1776
1777 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1778 | --dataroo | --dataro | --datar)
1779 ac_prev=datarootdir ;;
1780 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1781 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1782 datarootdir=$ac_optarg ;;
1783
1784 -disable-* | --disable-*)
1785 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1786 # Reject names that are not valid shell variable names.
1787 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1788 as_fn_error $? "invalid feature name: $ac_useropt"
1789 ac_useropt_orig=$ac_useropt
1790 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1791 case $ac_user_opts in
1792 *"
1793 "enable_$ac_useropt"
1794 "*) ;;
1795 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1796 ac_unrecognized_sep=', ';;
1797 esac
1798 eval enable_$ac_useropt=no ;;
1799
1800 -docdir | --docdir | --docdi | --doc | --do)
1801 ac_prev=docdir ;;
1802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1803 docdir=$ac_optarg ;;
1804
1805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1806 ac_prev=dvidir ;;
1807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1808 dvidir=$ac_optarg ;;
1809
1810 -enable-* | --enable-*)
1811 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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 feature 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 "enable_$ac_useropt"
1820 "*) ;;
1821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1822 ac_unrecognized_sep=', ';;
1823 esac
1824 eval enable_$ac_useropt=\$ac_optarg ;;
1825
1826 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1827 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1828 | --exec | --exe | --ex)
1829 ac_prev=exec_prefix ;;
1830 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1831 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1832 | --exec=* | --exe=* | --ex=*)
1833 exec_prefix=$ac_optarg ;;
1834
1835 -gas | --gas | --ga | --g)
1836 # Obsolete; use --with-gas.
1837 with_gas=yes ;;
1838
1839 -help | --help | --hel | --he | -h)
1840 ac_init_help=long ;;
1841 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1842 ac_init_help=recursive ;;
1843 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1844 ac_init_help=short ;;
1845
1846 -host | --host | --hos | --ho)
1847 ac_prev=host_alias ;;
1848 -host=* | --host=* | --hos=* | --ho=*)
1849 host_alias=$ac_optarg ;;
1850
1851 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1852 ac_prev=htmldir ;;
1853 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1854 | --ht=*)
1855 htmldir=$ac_optarg ;;
1856
1857 -includedir | --includedir | --includedi | --included | --include \
1858 | --includ | --inclu | --incl | --inc)
1859 ac_prev=includedir ;;
1860 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1861 | --includ=* | --inclu=* | --incl=* | --inc=*)
1862 includedir=$ac_optarg ;;
1863
1864 -infodir | --infodir | --infodi | --infod | --info | --inf)
1865 ac_prev=infodir ;;
1866 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1867 infodir=$ac_optarg ;;
1868
1869 -libdir | --libdir | --libdi | --libd)
1870 ac_prev=libdir ;;
1871 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1872 libdir=$ac_optarg ;;
1873
1874 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1875 | --libexe | --libex | --libe)
1876 ac_prev=libexecdir ;;
1877 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1878 | --libexe=* | --libex=* | --libe=*)
1879 libexecdir=$ac_optarg ;;
1880
1881 -localedir | --localedir | --localedi | --localed | --locale)
1882 ac_prev=localedir ;;
1883 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1884 localedir=$ac_optarg ;;
1885
1886 -localstatedir | --localstatedir | --localstatedi | --localstated \
1887 | --localstate | --localstat | --localsta | --localst | --locals)
1888 ac_prev=localstatedir ;;
1889 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1890 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1891 localstatedir=$ac_optarg ;;
1892
1893 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1894 ac_prev=mandir ;;
1895 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1896 mandir=$ac_optarg ;;
1897
1898 -nfp | --nfp | --nf)
1899 # Obsolete; use --without-fp.
1900 with_fp=no ;;
1901
1902 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1903 | --no-cr | --no-c | -n)
1904 no_create=yes ;;
1905
1906 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1907 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1908 no_recursion=yes ;;
1909
1910 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1911 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1912 | --oldin | --oldi | --old | --ol | --o)
1913 ac_prev=oldincludedir ;;
1914 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1915 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1916 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1917 oldincludedir=$ac_optarg ;;
1918
1919 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1920 ac_prev=prefix ;;
1921 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1922 prefix=$ac_optarg ;;
1923
1924 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1925 | --program-pre | --program-pr | --program-p)
1926 ac_prev=program_prefix ;;
1927 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1928 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1929 program_prefix=$ac_optarg ;;
1930
1931 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1932 | --program-suf | --program-su | --program-s)
1933 ac_prev=program_suffix ;;
1934 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1935 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1936 program_suffix=$ac_optarg ;;
1937
1938 -program-transform-name | --program-transform-name \
1939 | --program-transform-nam | --program-transform-na \
1940 | --program-transform-n | --program-transform- \
1941 | --program-transform | --program-transfor \
1942 | --program-transfo | --program-transf \
1943 | --program-trans | --program-tran \
1944 | --progr-tra | --program-tr | --program-t)
1945 ac_prev=program_transform_name ;;
1946 -program-transform-name=* | --program-transform-name=* \
1947 | --program-transform-nam=* | --program-transform-na=* \
1948 | --program-transform-n=* | --program-transform-=* \
1949 | --program-transform=* | --program-transfor=* \
1950 | --program-transfo=* | --program-transf=* \
1951 | --program-trans=* | --program-tran=* \
1952 | --progr-tra=* | --program-tr=* | --program-t=*)
1953 program_transform_name=$ac_optarg ;;
1954
1955 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1956 ac_prev=pdfdir ;;
1957 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1958 pdfdir=$ac_optarg ;;
1959
1960 -psdir | --psdir | --psdi | --psd | --ps)
1961 ac_prev=psdir ;;
1962 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1963 psdir=$ac_optarg ;;
1964
1965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966 | -silent | --silent | --silen | --sile | --sil)
1967 silent=yes ;;
1968
1969 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1970 ac_prev=sbindir ;;
1971 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1972 | --sbi=* | --sb=*)
1973 sbindir=$ac_optarg ;;
1974
1975 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1976 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1977 | --sharedst | --shareds | --shared | --share | --shar \
1978 | --sha | --sh)
1979 ac_prev=sharedstatedir ;;
1980 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1981 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1982 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1983 | --sha=* | --sh=*)
1984 sharedstatedir=$ac_optarg ;;
1985
1986 -site | --site | --sit)
1987 ac_prev=site ;;
1988 -site=* | --site=* | --sit=*)
1989 site=$ac_optarg ;;
1990
1991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1992 ac_prev=srcdir ;;
1993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1994 srcdir=$ac_optarg ;;
1995
1996 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1997 | --syscon | --sysco | --sysc | --sys | --sy)
1998 ac_prev=sysconfdir ;;
1999 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2000 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2001 sysconfdir=$ac_optarg ;;
2002
2003 -target | --target | --targe | --targ | --tar | --ta | --t)
2004 ac_prev=target_alias ;;
2005 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2006 target_alias=$ac_optarg ;;
2007
2008 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2009 verbose=yes ;;
2010
2011 -version | --version | --versio | --versi | --vers | -V)
2012 ac_init_version=: ;;
2013
2014 -with-* | --with-*)
2015 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2016 # Reject names that are not valid shell variable names.
2017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018 as_fn_error $? "invalid package name: $ac_useropt"
2019 ac_useropt_orig=$ac_useropt
2020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2021 case $ac_user_opts in
2022 *"
2023 "with_$ac_useropt"
2024 "*) ;;
2025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2026 ac_unrecognized_sep=', ';;
2027 esac
2028 eval with_$ac_useropt=\$ac_optarg ;;
2029
2030 -without-* | --without-*)
2031 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2032 # Reject names that are not valid shell variable names.
2033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2034 as_fn_error $? "invalid package name: $ac_useropt"
2035 ac_useropt_orig=$ac_useropt
2036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2037 case $ac_user_opts in
2038 *"
2039 "with_$ac_useropt"
2040 "*) ;;
2041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2042 ac_unrecognized_sep=', ';;
2043 esac
2044 eval with_$ac_useropt=no ;;
2045
2046 --x)
2047 # Obsolete; use --with-x.
2048 with_x=yes ;;
2049
2050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2051 | --x-incl | --x-inc | --x-in | --x-i)
2052 ac_prev=x_includes ;;
2053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2055 x_includes=$ac_optarg ;;
2056
2057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2059 ac_prev=x_libraries ;;
2060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2062 x_libraries=$ac_optarg ;;
2063
2064 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2065 Try \`$0 --help' for more information"
2066 ;;
2067
2068 *=*)
2069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2070 # Reject names that are not valid shell variable names.
2071 case $ac_envvar in #(
2072 '' | [0-9]* | *[!_$as_cr_alnum]* )
2073 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2074 esac
2075 eval $ac_envvar=\$ac_optarg
2076 export $ac_envvar ;;
2077
2078 *)
2079 # FIXME: should be removed in autoconf 3.0.
2080 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2082 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2083 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2084 ;;
2085
2086 esac
2087 done
2088
2089 if test -n "$ac_prev"; then
2090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2091 as_fn_error $? "missing argument to $ac_option"
2092 fi
2093
2094 if test -n "$ac_unrecognized_opts"; then
2095 case $enable_option_checking in
2096 no) ;;
2097 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2098 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2099 esac
2100 fi
2101
2102 # Check all directory arguments for consistency.
2103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2104 datadir sysconfdir sharedstatedir localstatedir includedir \
2105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2106 libdir localedir mandir
2107 do
2108 eval ac_val=\$$ac_var
2109 # Remove trailing slashes.
2110 case $ac_val in
2111 */ )
2112 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2113 eval $ac_var=\$ac_val;;
2114 esac
2115 # Be sure to have absolute directory names.
2116 case $ac_val in
2117 [\\/$]* | ?:[\\/]* ) continue;;
2118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2119 esac
2120 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2121 done
2122
2123 # There might be people who depend on the old broken behavior: `$host'
2124 # used to hold the argument of --host etc.
2125 # FIXME: To remove some day.
2126 build=$build_alias
2127 host=$host_alias
2128 target=$target_alias
2129
2130 # FIXME: To remove some day.
2131 if test "x$host_alias" != x; then
2132 if test "x$build_alias" = x; then
2133 cross_compiling=maybe
2134 elif test "x$build_alias" != "x$host_alias"; then
2135 cross_compiling=yes
2136 fi
2137 fi
2138
2139 ac_tool_prefix=
2140 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2141
2142 test "$silent" = yes && exec 6>/dev/null
2143
2144
2145 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2146 ac_ls_di=`ls -di .` &&
2147 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2148 as_fn_error $? "working directory cannot be determined"
2149 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2150 as_fn_error $? "pwd does not report name of working directory"
2151
2152
2153 # Find the source files, if location was not specified.
2154 if test -z "$srcdir"; then
2155 ac_srcdir_defaulted=yes
2156 # Try the directory containing this script, then the parent directory.
2157 ac_confdir=`$as_dirname -- "$as_myself" ||
2158 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2159 X"$as_myself" : 'X\(//\)[^/]' \| \
2160 X"$as_myself" : 'X\(//\)$' \| \
2161 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2162 $as_echo X"$as_myself" |
2163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2164 s//\1/
2165 q
2166 }
2167 /^X\(\/\/\)[^/].*/{
2168 s//\1/
2169 q
2170 }
2171 /^X\(\/\/\)$/{
2172 s//\1/
2173 q
2174 }
2175 /^X\(\/\).*/{
2176 s//\1/
2177 q
2178 }
2179 s/.*/./; q'`
2180 srcdir=$ac_confdir
2181 if test ! -r "$srcdir/$ac_unique_file"; then
2182 srcdir=..
2183 fi
2184 else
2185 ac_srcdir_defaulted=no
2186 fi
2187 if test ! -r "$srcdir/$ac_unique_file"; then
2188 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2189 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2190 fi
2191 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2192 ac_abs_confdir=`(
2193 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2194 pwd)`
2195 # When building in place, set srcdir=.
2196 if test "$ac_abs_confdir" = "$ac_pwd"; then
2197 srcdir=.
2198 fi
2199 # Remove unnecessary trailing slashes from srcdir.
2200 # Double slashes in file names in object file debugging info
2201 # mess up M-x gdb in Emacs.
2202 case $srcdir in
2203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2204 esac
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2207 eval ac_env_${ac_var}_value=\$${ac_var}
2208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2210 done
2211
2212 #
2213 # Report the --help message.
2214 #
2215 if test "$ac_init_help" = "long"; then
2216 # Omit some internal or obsolete options to make the list less imposing.
2217 # This message is too long to be a string in the A/UX 3.1 sh.
2218 cat <<_ACEOF
2219 \`configure' configures lbzip2 2.5 to adapt to many kinds of systems.
2220
2221 Usage: $0 [OPTION]... [VAR=VALUE]...
2222
2223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2224 VAR=VALUE. See below for descriptions of some of the useful variables.
2225
2226 Defaults for the options are specified in brackets.
2227
2228 Configuration:
2229 -h, --help display this help and exit
2230 --help=short display options specific to this package
2231 --help=recursive display the short help of all the included packages
2232 -V, --version display version information and exit
2233 -q, --quiet, --silent do not print \`checking ...' messages
2234 --cache-file=FILE cache test results in FILE [disabled]
2235 -C, --config-cache alias for \`--cache-file=config.cache'
2236 -n, --no-create do not create output files
2237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2238
2239 Installation directories:
2240 --prefix=PREFIX install architecture-independent files in PREFIX
2241 [$ac_default_prefix]
2242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2243 [PREFIX]
2244
2245 By default, \`make install' will install all the files in
2246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2248 for instance \`--prefix=\$HOME'.
2249
2250 For better control, use the options below.
2251
2252 Fine tuning of the installation directories:
2253 --bindir=DIR user executables [EPREFIX/bin]
2254 --sbindir=DIR system admin executables [EPREFIX/sbin]
2255 --libexecdir=DIR program executables [EPREFIX/libexec]
2256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2259 --libdir=DIR object code libraries [EPREFIX/lib]
2260 --includedir=DIR C header files [PREFIX/include]
2261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2264 --infodir=DIR info documentation [DATAROOTDIR/info]
2265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2266 --mandir=DIR man documentation [DATAROOTDIR/man]
2267 --docdir=DIR documentation root [DATAROOTDIR/doc/lbzip2]
2268 --htmldir=DIR html documentation [DOCDIR]
2269 --dvidir=DIR dvi documentation [DOCDIR]
2270 --pdfdir=DIR pdf documentation [DOCDIR]
2271 --psdir=DIR ps documentation [DOCDIR]
2272 _ACEOF
2273
2274 cat <<\_ACEOF
2275
2276 Program names:
2277 --program-prefix=PREFIX prepend PREFIX to installed program names
2278 --program-suffix=SUFFIX append SUFFIX to installed program names
2279 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2280
2281 System types:
2282 --build=BUILD configure for building on BUILD [guessed]
2283 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2284 _ACEOF
2285 fi
2286
2287 if test -n "$ac_init_help"; then
2288 case $ac_init_help in
2289 short | recursive ) echo "Configuration of lbzip2 2.5:";;
2290 esac
2291 cat <<\_ACEOF
2292
2293 Optional Features:
2294 --disable-option-checking ignore unrecognized --enable/--with options
2295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2297 --enable-silent-rules less verbose build output (undo: "make V=1")
2298 --disable-silent-rules verbose build output (undo: "make V=0")
2299 --enable-dependency-tracking
2300 do not reject slow dependency extractors
2301 --disable-dependency-tracking
2302 speeds up one-time build
2303 --disable-largefile omit support for large files
2304 --enable-tracing enable tracing
2305 --enable-warnings try to enable many C compiler warnings
2306
2307 Some influential environment variables:
2308 CC C compiler command
2309 CFLAGS C compiler flags
2310 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2311 nonstandard directory <lib dir>
2312 LIBS libraries to pass to the linker, e.g. -l<library>
2313 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2314 you have headers in a nonstandard directory <include dir>
2315 CPP C preprocessor
2316
2317 Use these variables to override the choices made by `configure' or to help
2318 it to find libraries and programs with nonstandard names/locations.
2319
2320 Report bugs to the package provider.
2321 _ACEOF
2322 ac_status=$?
2323 fi
2324
2325 if test "$ac_init_help" = "recursive"; then
2326 # If there are subdirs, report their specific --help.
2327 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2328 test -d "$ac_dir" ||
2329 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2330 continue
2331 ac_builddir=.
2332
2333 case "$ac_dir" in
2334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2335 *)
2336 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2337 # A ".." for each directory in $ac_dir_suffix.
2338 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2339 case $ac_top_builddir_sub in
2340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2342 esac ;;
2343 esac
2344 ac_abs_top_builddir=$ac_pwd
2345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2346 # for backward compatibility:
2347 ac_top_builddir=$ac_top_build_prefix
2348
2349 case $srcdir in
2350 .) # We are building in place.
2351 ac_srcdir=.
2352 ac_top_srcdir=$ac_top_builddir_sub
2353 ac_abs_top_srcdir=$ac_pwd ;;
2354 [\\/]* | ?:[\\/]* ) # Absolute name.
2355 ac_srcdir=$srcdir$ac_dir_suffix;
2356 ac_top_srcdir=$srcdir
2357 ac_abs_top_srcdir=$srcdir ;;
2358 *) # Relative name.
2359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2360 ac_top_srcdir=$ac_top_build_prefix$srcdir
2361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2362 esac
2363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2364
2365 cd "$ac_dir" || { ac_status=$?; continue; }
2366 # Check for guested configure.
2367 if test -f "$ac_srcdir/configure.gnu"; then
2368 echo &&
2369 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2370 elif test -f "$ac_srcdir/configure"; then
2371 echo &&
2372 $SHELL "$ac_srcdir/configure" --help=recursive
2373 else
2374 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2375 fi || ac_status=$?
2376 cd "$ac_pwd" || { ac_status=$?; break; }
2377 done
2378 fi
2379
2380 test -n "$ac_init_help" && exit $ac_status
2381 if $ac_init_version; then
2382 cat <<\_ACEOF
2383 lbzip2 configure 2.5
2384 generated by GNU Autoconf 2.69
2385
2386 Copyright (C) 2012 Free Software Foundation, Inc.
2387 This configure script is free software; the Free Software Foundation
2388 gives unlimited permission to copy, distribute and modify it.
2389
2390 Copyright (C) 2011, 2012 Mikolaj Izdebski
2391
2392 This program is free software: you can redistribute it and/or modify
2393 it under the terms of the GNU General Public License as published by
2394 the Free Software Foundation, either version 3 of the License, or
2395 (at your option) any later version.
2396
2397 This program is distributed in the hope that it will be useful,
2398 but WITHOUT ANY WARRANTY; without even the implied warranty of
2399 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2400 GNU General Public License for more details.
2401
2402 You should have received a copy of the GNU General Public License
2403 along with this program. If not, see <http://www.gnu.org/licenses/>.
2404
2405 _ACEOF
2406 exit
2407 fi
2408
2409 ## ------------------------ ##
2410 ## Autoconf initialization. ##
2411 ## ------------------------ ##
2412
2413 # ac_fn_c_try_compile LINENO
2414 # --------------------------
2415 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2416 ac_fn_c_try_compile ()
2417 {
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 rm -f conftest.$ac_objext
2420 if { { ac_try="$ac_compile"
2421 case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424 esac
2425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426 $as_echo "$ac_try_echo"; } >&5
2427 (eval "$ac_compile") 2>conftest.err
2428 ac_status=$?
2429 if test -s conftest.err; then
2430 grep -v '^ *+' conftest.err >conftest.er1
2431 cat conftest.er1 >&5
2432 mv -f conftest.er1 conftest.err
2433 fi
2434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2435 test $ac_status = 0; } && {
2436 test -z "$ac_c_werror_flag" ||
2437 test ! -s conftest.err
2438 } && test -s conftest.$ac_objext; then :
2439 ac_retval=0
2440 else
2441 $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_retval=1
2445 fi
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 as_fn_set_status $ac_retval
2448
2449 } # ac_fn_c_try_compile
2450
2451 # ac_fn_c_try_cpp LINENO
2452 # ----------------------
2453 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2454 ac_fn_c_try_cpp ()
2455 {
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 if { { ac_try="$ac_cpp conftest.$ac_ext"
2458 case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 $as_echo "$ac_try_echo"; } >&5
2464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2465 ac_status=$?
2466 if test -s conftest.err; then
2467 grep -v '^ *+' conftest.err >conftest.er1
2468 cat conftest.er1 >&5
2469 mv -f conftest.er1 conftest.err
2470 fi
2471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472 test $ac_status = 0; } > conftest.i && {
2473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2474 test ! -s conftest.err
2475 }; then :
2476 ac_retval=0
2477 else
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 ac_retval=1
2482 fi
2483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2484 as_fn_set_status $ac_retval
2485
2486 } # ac_fn_c_try_cpp
2487
2488 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2489 # -------------------------------------------------------
2490 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2491 # the include files in INCLUDES and setting the cache variable VAR
2492 # accordingly.
2493 ac_fn_c_check_header_mongrel ()
2494 {
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if eval \${$3+:} false; then :
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 $as_echo_n "checking for $2... " >&6; }
2499 if eval \${$3+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 fi
2502 eval ac_res=\$$3
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2504 $as_echo "$ac_res" >&6; }
2505 else
2506 # Is the header compilable?
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2508 $as_echo_n "checking $2 usability... " >&6; }
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 $4
2512 #include <$2>
2513 _ACEOF
2514 if ac_fn_c_try_compile "$LINENO"; then :
2515 ac_header_compiler=yes
2516 else
2517 ac_header_compiler=no
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2521 $as_echo "$ac_header_compiler" >&6; }
2522
2523 # Is the header present?
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2525 $as_echo_n "checking $2 presence... " >&6; }
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2528 #include <$2>
2529 _ACEOF
2530 if ac_fn_c_try_cpp "$LINENO"; then :
2531 ac_header_preproc=yes
2532 else
2533 ac_header_preproc=no
2534 fi
2535 rm -f conftest.err conftest.i conftest.$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2537 $as_echo "$ac_header_preproc" >&6; }
2538
2539 # So? What about this header?
2540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2541 yes:no: )
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2543 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2545 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2546 ;;
2547 no:yes:* )
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2549 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2551 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2553 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2555 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2557 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2558 ;;
2559 esac
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2561 $as_echo_n "checking for $2... " >&6; }
2562 if eval \${$3+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 eval "$3=\$ac_header_compiler"
2566 fi
2567 eval ac_res=\$$3
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 fi
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572
2573 } # ac_fn_c_check_header_mongrel
2574
2575 # ac_fn_c_try_run LINENO
2576 # ----------------------
2577 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2578 # that executables *can* be run.
2579 ac_fn_c_try_run ()
2580 {
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 if { { ac_try="$ac_link"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_link") 2>&5
2590 ac_status=$?
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2593 { { case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596 esac
2597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2598 $as_echo "$ac_try_echo"; } >&5
2599 (eval "$ac_try") 2>&5
2600 ac_status=$?
2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602 test $ac_status = 0; }; }; then :
2603 ac_retval=0
2604 else
2605 $as_echo "$as_me: program exited with status $ac_status" >&5
2606 $as_echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_retval=$ac_status
2610 fi
2611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2613 as_fn_set_status $ac_retval
2614
2615 } # ac_fn_c_try_run
2616
2617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2618 # -------------------------------------------------------
2619 # Tests whether HEADER exists and can be compiled using the include files in
2620 # INCLUDES, setting the cache variable VAR accordingly.
2621 ac_fn_c_check_header_compile ()
2622 {
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if eval \${$3+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2631 $4
2632 #include <$2>
2633 _ACEOF
2634 if ac_fn_c_try_compile "$LINENO"; then :
2635 eval "$3=yes"
2636 else
2637 eval "$3=no"
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645
2646 } # ac_fn_c_check_header_compile
2647
2648 # ac_fn_c_try_link LINENO
2649 # -----------------------
2650 # Try to link conftest.$ac_ext, and return whether this succeeded.
2651 ac_fn_c_try_link ()
2652 {
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { { ac_try="$ac_link"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2661 $as_echo "$ac_try_echo"; } >&5
2662 (eval "$ac_link") 2>conftest.err
2663 ac_status=$?
2664 if test -s conftest.err; then
2665 grep -v '^ *+' conftest.err >conftest.er1
2666 cat conftest.er1 >&5
2667 mv -f conftest.er1 conftest.err
2668 fi
2669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2670 test $ac_status = 0; } && {
2671 test -z "$ac_c_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest$ac_exeext && {
2674 test "$cross_compiling" = yes ||
2675 test -x conftest$ac_exeext
2676 }; then :
2677 ac_retval=0
2678 else
2679 $as_echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_retval=1
2683 fi
2684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2686 # interfere with the next link command; also delete a directory that is
2687 # left behind by Apple's compiler. We do this before executing the actions.
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2691
2692 } # ac_fn_c_try_link
2693
2694 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2695 # -------------------------------------------
2696 # Tests whether TYPE exists after having included INCLUDES, setting cache
2697 # variable VAR accordingly.
2698 ac_fn_c_check_type ()
2699 {
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 eval "$3=no"
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2709 $4
2710 int
2711 main ()
2712 {
2713 if (sizeof ($2))
2714 return 0;
2715 ;
2716 return 0;
2717 }
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2722 $4
2723 int
2724 main ()
2725 {
2726 if (sizeof (($2)))
2727 return 0;
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733
2734 else
2735 eval "$3=yes"
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745
2746 } # ac_fn_c_check_type
2747
2748 # ac_fn_c_check_func LINENO FUNC VAR
2749 # ----------------------------------
2750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2751 ac_fn_c_check_func ()
2752 {
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if eval \${$3+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2763 #define $2 innocuous_$2
2764
2765 /* System header to define __stub macros and hopefully few prototypes,
2766 which can conflict with char $2 (); below.
2767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 <limits.h> exists even on freestanding compilers. */
2769
2770 #ifdef __STDC__
2771 # include <limits.h>
2772 #else
2773 # include <assert.h>
2774 #endif
2775
2776 #undef $2
2777
2778 /* Override any GCC internal prototype to avoid an error.
2779 Use char because int might match the return type of a GCC
2780 builtin and then its argument prototype would still apply. */
2781 #ifdef __cplusplus
2782 extern "C"
2783 #endif
2784 char $2 ();
2785 /* The GNU C library defines this for functions which it implements
2786 to always fail with ENOSYS. Some functions are actually named
2787 something starting with __ and the normal name is an alias. */
2788 #if defined __stub_$2 || defined __stub___$2
2789 choke me
2790 #endif
2791
2792 int
2793 main ()
2794 {
2795 return $2 ();
2796 ;
2797 return 0;
2798 }
2799 _ACEOF
2800 if ac_fn_c_try_link "$LINENO"; then :
2801 eval "$3=yes"
2802 else
2803 eval "$3=no"
2804 fi
2805 rm -f core conftest.err conftest.$ac_objext \
2806 conftest$ac_exeext conftest.$ac_ext
2807 fi
2808 eval ac_res=\$$3
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2810 $as_echo "$ac_res" >&6; }
2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2812
2813 } # ac_fn_c_check_func
2814
2815 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2816 # --------------------------------------------
2817 # Tries to find the compile-time value of EXPR in a program that includes
2818 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2819 # computed
2820 ac_fn_c_compute_int ()
2821 {
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 if test "$cross_compiling" = yes; then
2824 # Depending upon the size, compute the lo and hi bounds.
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2827 $4
2828 int
2829 main ()
2830 {
2831 static int test_array [1 - 2 * !(($2) >= 0)];
2832 test_array [0] = 0;
2833 return test_array [0];
2834
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_c_try_compile "$LINENO"; then :
2840 ac_lo=0 ac_mid=0
2841 while :; do
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2844 $4
2845 int
2846 main ()
2847 {
2848 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2849 test_array [0] = 0;
2850 return test_array [0];
2851
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_hi=$ac_mid; break
2858 else
2859 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2860 if test $ac_lo -le $ac_mid; then
2861 ac_lo= ac_hi=
2862 break
2863 fi
2864 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2865 fi
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 done
2868 else
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2871 $4
2872 int
2873 main ()
2874 {
2875 static int test_array [1 - 2 * !(($2) < 0)];
2876 test_array [0] = 0;
2877 return test_array [0];
2878
2879 ;
2880 return 0;
2881 }
2882 _ACEOF
2883 if ac_fn_c_try_compile "$LINENO"; then :
2884 ac_hi=-1 ac_mid=-1
2885 while :; do
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2888 $4
2889 int
2890 main ()
2891 {
2892 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2893 test_array [0] = 0;
2894 return test_array [0];
2895
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_lo=$ac_mid; break
2902 else
2903 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2904 if test $ac_mid -le $ac_hi; then
2905 ac_lo= ac_hi=
2906 break
2907 fi
2908 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2909 fi
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 else
2913 ac_lo= ac_hi=
2914 fi
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 fi
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 # Binary search between lo and hi bounds.
2919 while test "x$ac_lo" != "x$ac_hi"; do
2920 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 $4
2924 int
2925 main ()
2926 {
2927 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2928 test_array [0] = 0;
2929 return test_array [0];
2930
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_hi=$ac_mid
2937 else
2938 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2939 fi
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 done
2942 case $ac_lo in #((
2943 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2944 '') ac_retval=1 ;;
2945 esac
2946 else
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 $4
2950 static long int longval () { return $2; }
2951 static unsigned long int ulongval () { return $2; }
2952 #include <stdio.h>
2953 #include <stdlib.h>
2954 int
2955 main ()
2956 {
2957
2958 FILE *f = fopen ("conftest.val", "w");
2959 if (! f)
2960 return 1;
2961 if (($2) < 0)
2962 {
2963 long int i = longval ();
2964 if (i != ($2))
2965 return 1;
2966 fprintf (f, "%ld", i);
2967 }
2968 else
2969 {
2970 unsigned long int i = ulongval ();
2971 if (i != ($2))
2972 return 1;
2973 fprintf (f, "%lu", i);
2974 }
2975 /* Do not output a trailing newline, as this causes \r\n confusion
2976 on some platforms. */
2977 return ferror (f) || fclose (f) != 0;
2978
2979 ;
2980 return 0;
2981 }
2982 _ACEOF
2983 if ac_fn_c_try_run "$LINENO"; then :
2984 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2985 else
2986 ac_retval=1
2987 fi
2988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2989 conftest.$ac_objext conftest.beam conftest.$ac_ext
2990 rm -f conftest.val
2991
2992 fi
2993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2994 as_fn_set_status $ac_retval
2995
2996 } # ac_fn_c_compute_int
2997
2998 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2999 # ---------------------------------------------
3000 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3001 # accordingly.
3002 ac_fn_c_check_decl ()
3003 {
3004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3005 as_decl_name=`echo $2|sed 's/ *(.*//'`
3006 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3008 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3009 if eval \${$3+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3014 $4
3015 int
3016 main ()
3017 {
3018 #ifndef $as_decl_name
3019 #ifdef __cplusplus
3020 (void) $as_decl_use;
3021 #else
3022 (void) $as_decl_name;
3023 #endif
3024 #endif
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 if ac_fn_c_try_compile "$LINENO"; then :
3031 eval "$3=yes"
3032 else
3033 eval "$3=no"
3034 fi
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 fi
3037 eval ac_res=\$$3
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039 $as_echo "$ac_res" >&6; }
3040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3041
3042 } # ac_fn_c_check_decl
3043
3044 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3045 # ----------------------------------------------------
3046 # Tries to find if the field MEMBER exists in type AGGR, after including
3047 # INCLUDES, setting cache variable VAR accordingly.
3048 ac_fn_c_check_member ()
3049 {
3050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3052 $as_echo_n "checking for $2.$3... " >&6; }
3053 if eval \${$4+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058 $5
3059 int
3060 main ()
3061 {
3062 static $2 ac_aggr;
3063 if (ac_aggr.$3)
3064 return 0;
3065 ;
3066 return 0;
3067 }
3068 _ACEOF
3069 if ac_fn_c_try_compile "$LINENO"; then :
3070 eval "$4=yes"
3071 else
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074 $5
3075 int
3076 main ()
3077 {
3078 static $2 ac_aggr;
3079 if (sizeof ac_aggr.$3)
3080 return 0;
3081 ;
3082 return 0;
3083 }
3084 _ACEOF
3085 if ac_fn_c_try_compile "$LINENO"; then :
3086 eval "$4=yes"
3087 else
3088 eval "$4=no"
3089 fi
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 fi
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 fi
3094 eval ac_res=\$$4
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3096 $as_echo "$ac_res" >&6; }
3097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3098
3099 } # ac_fn_c_check_member
3100 cat >config.log <<_ACEOF
3101 This file contains any messages produced by compilers while
3102 running configure, to aid debugging if configure makes a mistake.
3103
3104 It was created by lbzip2 $as_me 2.5, which was
3105 generated by GNU Autoconf 2.69. Invocation command line was
3106
3107 $ $0 $@
3108
3109 _ACEOF
3110 exec 5>>config.log
3111 {
3112 cat <<_ASUNAME
3113 ## --------- ##
3114 ## Platform. ##
3115 ## --------- ##
3116
3117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3122
3123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3125
3126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3133
3134 _ASUNAME
3135
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 $as_echo "PATH: $as_dir"
3142 done
3143 IFS=$as_save_IFS
3144
3145 } >&5
3146
3147 cat >&5 <<_ACEOF
3148
3149
3150 ## ----------- ##
3151 ## Core tests. ##
3152 ## ----------- ##
3153
3154 _ACEOF
3155
3156
3157 # Keep a trace of the command line.
3158 # Strip out --no-create and --no-recursion so they do not pile up.
3159 # Strip out --silent because we don't want to record it for future runs.
3160 # Also quote any args containing shell meta-characters.
3161 # Make two passes to allow for proper duplicate-argument suppression.
3162 ac_configure_args=
3163 ac_configure_args0=
3164 ac_configure_args1=
3165 ac_must_keep_next=false
3166 for ac_pass in 1 2
3167 do
3168 for ac_arg
3169 do
3170 case $ac_arg in
3171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3173 | -silent | --silent | --silen | --sile | --sil)
3174 continue ;;
3175 *\'*)
3176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3177 esac
3178 case $ac_pass in
3179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3180 2)
3181 as_fn_append ac_configure_args1 " '$ac_arg'"
3182 if test $ac_must_keep_next = true; then
3183 ac_must_keep_next=false # Got value, back to normal.
3184 else
3185 case $ac_arg in
3186 *=* | --config-cache | -C | -disable-* | --disable-* \
3187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3189 | -with-* | --with-* | -without-* | --without-* | --x)
3190 case "$ac_configure_args0 " in
3191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3192 esac
3193 ;;
3194 -* ) ac_must_keep_next=true ;;
3195 esac
3196 fi
3197 as_fn_append ac_configure_args " '$ac_arg'"
3198 ;;
3199 esac
3200 done
3201 done
3202 { ac_configure_args0=; unset ac_configure_args0;}
3203 { ac_configure_args1=; unset ac_configure_args1;}
3204
3205 # When interrupted or exit'd, cleanup temporary files, and complete
3206 # config.log. We remove comments because anyway the quotes in there
3207 # would cause problems or look ugly.
3208 # WARNING: Use '\'' to represent an apostrophe within the trap.
3209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3210 trap 'exit_status=$?
3211 # Save into config.log some information that might help in debugging.
3212 {
3213 echo
3214
3215 $as_echo "## ---------------- ##
3216 ## Cache variables. ##
3217 ## ---------------- ##"
3218 echo
3219 # The following way of writing the cache mishandles newlines in values,
3220 (
3221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3222 eval ac_val=\$$ac_var
3223 case $ac_val in #(
3224 *${as_nl}*)
3225 case $ac_var in #(
3226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3228 esac
3229 case $ac_var in #(
3230 _ | IFS | as_nl) ;; #(
3231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3232 *) { eval $ac_var=; unset $ac_var;} ;;
3233 esac ;;
3234 esac
3235 done
3236 (set) 2>&1 |
3237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3238 *${as_nl}ac_space=\ *)
3239 sed -n \
3240 "s/'\''/'\''\\\\'\'''\''/g;
3241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3242 ;; #(
3243 *)
3244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3245 ;;
3246 esac |
3247 sort
3248 )
3249 echo
3250
3251 $as_echo "## ----------------- ##
3252 ## Output variables. ##
3253 ## ----------------- ##"
3254 echo
3255 for ac_var in $ac_subst_vars
3256 do
3257 eval ac_val=\$$ac_var
3258 case $ac_val in
3259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3260 esac
3261 $as_echo "$ac_var='\''$ac_val'\''"
3262 done | sort
3263 echo
3264
3265 if test -n "$ac_subst_files"; then
3266 $as_echo "## ------------------- ##
3267 ## File substitutions. ##
3268 ## ------------------- ##"
3269 echo
3270 for ac_var in $ac_subst_files
3271 do
3272 eval ac_val=\$$ac_var
3273 case $ac_val in
3274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3275 esac
3276 $as_echo "$ac_var='\''$ac_val'\''"
3277 done | sort
3278 echo
3279 fi
3280
3281 if test -s confdefs.h; then
3282 $as_echo "## ----------- ##
3283 ## confdefs.h. ##
3284 ## ----------- ##"
3285 echo
3286 cat confdefs.h
3287 echo
3288 fi
3289 test "$ac_signal" != 0 &&
3290 $as_echo "$as_me: caught signal $ac_signal"
3291 $as_echo "$as_me: exit $exit_status"
3292 } >&5
3293 rm -f core *.core core.conftest.* &&
3294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3295 exit $exit_status
3296 ' 0
3297 for ac_signal in 1 2 13 15; do
3298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3299 done
3300 ac_signal=0
3301
3302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3303 rm -f -r conftest* confdefs.h
3304
3305 $as_echo "/* confdefs.h */" > confdefs.h
3306
3307 # Predefined preprocessor variables.
3308
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE_NAME "$PACKAGE_NAME"
3311 _ACEOF
3312
3313 cat >>confdefs.h <<_ACEOF
3314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3315 _ACEOF
3316
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3319 _ACEOF
3320
3321 cat >>confdefs.h <<_ACEOF
3322 #define PACKAGE_STRING "$PACKAGE_STRING"
3323 _ACEOF
3324
3325 cat >>confdefs.h <<_ACEOF
3326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3327 _ACEOF
3328
3329 cat >>confdefs.h <<_ACEOF
3330 #define PACKAGE_URL "$PACKAGE_URL"
3331 _ACEOF
3332
3333
3334 # Let the site file select an alternate cache file if it wants to.
3335 # Prefer an explicitly selected file to automatically selected ones.
3336 ac_site_file1=NONE
3337 ac_site_file2=NONE
3338 if test -n "$CONFIG_SITE"; then
3339 # We do not want a PATH search for config.site.
3340 case $CONFIG_SITE in #((
3341 -*) ac_site_file1=./$CONFIG_SITE;;
3342 */*) ac_site_file1=$CONFIG_SITE;;
3343 *) ac_site_file1=./$CONFIG_SITE;;
3344 esac
3345 elif test "x$prefix" != xNONE; then
3346 ac_site_file1=$prefix/share/config.site
3347 ac_site_file2=$prefix/etc/config.site
3348 else
3349 ac_site_file1=$ac_default_prefix/share/config.site
3350 ac_site_file2=$ac_default_prefix/etc/config.site
3351 fi
3352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3353 do
3354 test "x$ac_site_file" = xNONE && continue
3355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3358 sed 's/^/| /' "$ac_site_file" >&5
3359 . "$ac_site_file" \
3360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "failed to load site script $ac_site_file
3363 See \`config.log' for more details" "$LINENO" 5; }
3364 fi
3365 done
3366
3367 if test -r "$cache_file"; then
3368 # Some versions of bash will fail to source /dev/null (special files
3369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3372 $as_echo "$as_me: loading cache $cache_file" >&6;}
3373 case $cache_file in
3374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3375 *) . "./$cache_file";;
3376 esac
3377 fi
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3380 $as_echo "$as_me: creating cache $cache_file" >&6;}
3381 >$cache_file
3382 fi
3383
3384 as_fn_append ac_header_list " unistd.h"
3385 as_fn_append ac_func_list " symlink"
3386 as_fn_append ac_func_list " vasnprintf"
3387 as_fn_append ac_header_list " features.h"
3388 as_fn_append ac_func_list " snprintf"
3389 as_fn_append ac_func_list " __fseterr"
3390 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3391 as_fn_append ac_header_list " sys/stat.h"
3392 as_fn_append ac_func_list " gettimeofday"
3393 as_fn_append ac_func_list " nanotime"
3394 as_fn_append ac_header_list " sys/time.h"
3395 as_fn_append ac_header_list " sys/socket.h"
3396 as_fn_append ac_header_list " wchar.h"
3397 as_fn_append ac_header_list " stdint.h"
3398 as_fn_append ac_header_list " inttypes.h"
3399 as_fn_append ac_func_list " lstat"
3400 as_fn_append ac_header_list " math.h"
3401 as_fn_append ac_header_list " sys/mman.h"
3402 as_fn_append ac_func_list " mprotect"
3403 as_fn_append ac_header_list " sys/param.h"
3404 gl_printf_safe=yes
3405 as_fn_append ac_header_list " pthread.h"
3406 as_fn_append ac_header_list " sched.h"
3407 as_fn_append ac_header_list " utime.h"
3408 as_fn_append ac_func_list " futimes"
3409 as_fn_append ac_func_list " futimesat"
3410 as_fn_append ac_func_list " futimens"
3411 as_fn_append ac_func_list " utimensat"
3412 as_fn_append ac_func_list " lutimes"
3413 # Check that the precious variables saved in the cache have kept the same
3414 # value.
3415 ac_cache_corrupted=false
3416 for ac_var in $ac_precious_vars; do
3417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3418 eval ac_new_set=\$ac_env_${ac_var}_set
3419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3420 eval ac_new_val=\$ac_env_${ac_var}_value
3421 case $ac_old_set,$ac_new_set in
3422 set,)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3425 ac_cache_corrupted=: ;;
3426 ,set)
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3429 ac_cache_corrupted=: ;;
3430 ,);;
3431 *)
3432 if test "x$ac_old_val" != "x$ac_new_val"; then
3433 # differences in whitespace do not lead to failure.
3434 ac_old_val_w=`echo x $ac_old_val`
3435 ac_new_val_w=`echo x $ac_new_val`
3436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3439 ac_cache_corrupted=:
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3443 eval $ac_var=\$ac_old_val
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3446 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3448 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3449 fi;;
3450 esac
3451 # Pass precious variables to config.status.
3452 if test "$ac_new_set" = set; then
3453 case $ac_new_val in
3454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3455 *) ac_arg=$ac_var=$ac_new_val ;;
3456 esac
3457 case " $ac_configure_args " in
3458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3460 esac
3461 fi
3462 done
3463 if $ac_cache_corrupted; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3469 fi
3470 ## -------------------- ##
3471 ## Main body of script. ##
3472 ## -------------------- ##
3473
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
3481
3482
3483 ac_aux_dir=
3484 for ac_dir in build-aux "$srcdir"/build-aux; do
3485 if test -f "$ac_dir/install-sh"; then
3486 ac_aux_dir=$ac_dir
3487 ac_install_sh="$ac_aux_dir/install-sh -c"
3488 break
3489 elif test -f "$ac_dir/install.sh"; then
3490 ac_aux_dir=$ac_dir
3491 ac_install_sh="$ac_aux_dir/install.sh -c"
3492 break
3493 elif test -f "$ac_dir/shtool"; then
3494 ac_aux_dir=$ac_dir
3495 ac_install_sh="$ac_aux_dir/shtool install -c"
3496 break
3497 fi
3498 done
3499 if test -z "$ac_aux_dir"; then
3500 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3501 fi
3502
3503 # These three variables are undocumented and unsupported,
3504 # and are intended to be withdrawn in a future Autoconf release.
3505 # They can cause serious problems if a builder's source tree is in a directory
3506 # whose full name contains unusual characters.
3507 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3508 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3509 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3510
3511
3512 ac_config_headers="$ac_config_headers lib/config.h"
3513
3514
3515 am__api_version='1.14'
3516
3517 # Find a good install program. We prefer a C program (faster),
3518 # so one script is as good as another. But avoid the broken or
3519 # incompatible versions:
3520 # SysV /etc/install, /usr/sbin/install
3521 # SunOS /usr/etc/install
3522 # IRIX /sbin/install
3523 # AIX /bin/install
3524 # AmigaOS /C/install, which installs bootblocks on floppy discs
3525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3528 # OS/2's system install, which has a completely different semantic
3529 # ./install, which can be erroneously created by make from ./install.sh.
3530 # Reject install programs that cannot install multiple files.
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3533 if test -z "$INSTALL"; then
3534 if ${ac_cv_path_install+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 # Account for people who put trailing slashes in PATH elements.
3543 case $as_dir/ in #((
3544 ./ | .// | /[cC]/* | \
3545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3547 /usr/ucb/* ) ;;
3548 *)
3549 # OSF1 and SCO ODT 3.0 have their own names for install.
3550 # Don't use installbsd from OSF since it installs stuff as root
3551 # by default.
3552 for ac_prog in ginstall scoinst install; do
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3555 if test $ac_prog = install &&
3556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3557 # AIX install. It has an incompatible calling convention.
3558 :
3559 elif test $ac_prog = install &&
3560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561 # program-specific install script used by HP pwplus--don't use.
3562 :
3563 else
3564 rm -rf conftest.one conftest.two conftest.dir
3565 echo one > conftest.one
3566 echo two > conftest.two
3567 mkdir conftest.dir
3568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3569 test -s conftest.one && test -s conftest.two &&
3570 test -s conftest.dir/conftest.one &&
3571 test -s conftest.dir/conftest.two
3572 then
3573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3574 break 3
3575 fi
3576 fi
3577 fi
3578 done
3579 done
3580 ;;
3581 esac
3582
3583 done
3584 IFS=$as_save_IFS
3585
3586 rm -rf conftest.one conftest.two conftest.dir
3587
3588 fi
3589 if test "${ac_cv_path_install+set}" = set; then
3590 INSTALL=$ac_cv_path_install
3591 else
3592 # As a last resort, use the slow shell script. Don't cache a
3593 # value for INSTALL within a source directory, because that will
3594 # break other packages using the cache if that directory is
3595 # removed, or if the value is a relative name.
3596 INSTALL=$ac_install_sh
3597 fi
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3600 $as_echo "$INSTALL" >&6; }
3601
3602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3603 # It thinks the first close brace ends the variable substitution.
3604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3605
3606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3607
3608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3609
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3611 $as_echo_n "checking whether build environment is sane... " >&6; }
3612 # Reject unsafe characters in $srcdir or the absolute working directory
3613 # name. Accept space and tab only in the latter.
3614 am_lf='
3615 '
3616 case `pwd` in
3617 *[\\\"\#\$\&\'\`$am_lf]*)
3618 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3619 esac
3620 case $srcdir in
3621 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3622 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3623 esac
3624
3625 # Do 'set' in a subshell so we don't clobber the current shell's
3626 # arguments. Must try -L first in case configure is actually a
3627 # symlink; some systems play weird games with the mod time of symlinks
3628 # (eg FreeBSD returns the mod time of the symlink's containing
3629 # directory).
3630 if (
3631 am_has_slept=no
3632 for am_try in 1 2; do
3633 echo "timestamp, slept: $am_has_slept" > conftest.file
3634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3635 if test "$*" = "X"; then
3636 # -L didn't work.
3637 set X `ls -t "$srcdir/configure" conftest.file`
3638 fi
3639 if test "$*" != "X $srcdir/configure conftest.file" \
3640 && test "$*" != "X conftest.file $srcdir/configure"; then
3641
3642 # If neither matched, then we have a broken ls. This can happen
3643 # if, for instance, CONFIG_SHELL is bash and it inherits a
3644 # broken ls alias from the environment. This has actually
3645 # happened. Such a system could not be considered "sane".
3646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3647 alias in your environment" "$LINENO" 5
3648 fi
3649 if test "$2" = conftest.file || test $am_try -eq 2; then
3650 break
3651 fi
3652 # Just in case.
3653 sleep 1
3654 am_has_slept=yes
3655 done
3656 test "$2" = conftest.file
3657 )
3658 then
3659 # Ok.
3660 :
3661 else
3662 as_fn_error $? "newly created file is older than distributed files!
3663 Check your system clock" "$LINENO" 5
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3666 $as_echo "yes" >&6; }
3667 # If we didn't sleep, we still need to ensure time stamps of config.status and
3668 # generated files are strictly newer.
3669 am_sleep_pid=
3670 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3671 ( sleep 1 ) &
3672 am_sleep_pid=$!
3673 fi
3674
3675 rm -f conftest.file
3676
3677 test "$program_prefix" != NONE &&
3678 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3679 # Use a double $ so make ignores it.
3680 test "$program_suffix" != NONE &&
3681 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3682 # Double any \ or $.
3683 # By default was `s,x,x', remove it if useless.
3684 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3685 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3686
3687 # expand $ac_aux_dir to an absolute path
3688 am_aux_dir=`cd $ac_aux_dir && pwd`
3689
3690 if test x"${MISSING+set}" != xset; then
3691 case $am_aux_dir in
3692 *\ * | *\ *)
3693 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3694 *)
3695 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3696 esac
3697 fi
3698 # Use eval to expand $SHELL
3699 if eval "$MISSING --is-lightweight"; then
3700 am_missing_run="$MISSING "
3701 else
3702 am_missing_run=
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3704 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3705 fi
3706
3707 if test x"${install_sh}" != xset; then
3708 case $am_aux_dir in
3709 *\ * | *\ *)
3710 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3711 *)
3712 install_sh="\${SHELL} $am_aux_dir/install-sh"
3713 esac
3714 fi
3715
3716 # Installed binaries are usually stripped using 'strip' when the user
3717 # run "make install-strip". However 'strip' might not be the right
3718 # tool to use in cross-compilation environments, therefore Automake
3719 # will honor the 'STRIP' environment variable to overrule this program.
3720 if test "$cross_compiling" != no; then
3721 if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}strip; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_STRIP+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$STRIP"; then
3730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 STRIP=$ac_cv_prog_STRIP
3750 if test -n "$STRIP"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3752 $as_echo "$STRIP" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$ac_cv_prog_STRIP"; then
3761 ac_ct_STRIP=$STRIP
3762 # Extract the first word of "strip", so it can be a program name with args.
3763 set dummy strip; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$ac_ct_STRIP"; then
3770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_ac_ct_STRIP="strip"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3790 if test -n "$ac_ct_STRIP"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3792 $as_echo "$ac_ct_STRIP" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 fi
3797
3798 if test "x$ac_ct_STRIP" = x; then
3799 STRIP=":"
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802 yes:)
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805 ac_tool_warned=yes ;;
3806 esac
3807 STRIP=$ac_ct_STRIP
3808 fi
3809 else
3810 STRIP="$ac_cv_prog_STRIP"
3811 fi
3812
3813 fi
3814 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3815
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3817 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3818 if test -z "$MKDIR_P"; then
3819 if ${ac_cv_path_mkdir+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3824 do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_prog in mkdir gmkdir; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3830 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3831 'mkdir (GNU coreutils) '* | \
3832 'mkdir (coreutils) '* | \
3833 'mkdir (fileutils) '4.1*)
3834 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3835 break 3;;
3836 esac
3837 done
3838 done
3839 done
3840 IFS=$as_save_IFS
3841
3842 fi
3843
3844 test -d ./--version && rmdir ./--version
3845 if test "${ac_cv_path_mkdir+set}" = set; then
3846 MKDIR_P="$ac_cv_path_mkdir -p"
3847 else
3848 # As a last resort, use the slow shell script. Don't cache a
3849 # value for MKDIR_P within a source directory, because that will
3850 # break other packages using the cache if that directory is
3851 # removed, or if the value is a relative name.
3852 MKDIR_P="$ac_install_sh -d"
3853 fi
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3856 $as_echo "$MKDIR_P" >&6; }
3857
3858 for ac_prog in gawk mawk nawk awk
3859 do
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_AWK+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -n "$AWK"; then
3868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_AWK="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 AWK=$ac_cv_prog_AWK
3888 if test -n "$AWK"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3890 $as_echo "$AWK" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896
3897 test -n "$AWK" && break
3898 done
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3902 set x ${MAKE-make}
3903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 cat >conftest.make <<\_ACEOF
3908 SHELL = /bin/sh
3909 all:
3910 @echo '@@@%%%=$(MAKE)=@@@%%%'
3911 _ACEOF
3912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3914 *@@@%%%=?*=@@@%%%*)
3915 eval ac_cv_prog_make_${ac_make}_set=yes;;
3916 *)
3917 eval ac_cv_prog_make_${ac_make}_set=no;;
3918 esac
3919 rm -f conftest.make
3920 fi
3921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924 SET_MAKE=
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 SET_MAKE="MAKE=${MAKE-make}"
3929 fi
3930
3931 rm -rf .tst 2>/dev/null
3932 mkdir .tst 2>/dev/null
3933 if test -d .tst; then
3934 am__leading_dot=.
3935 else
3936 am__leading_dot=_
3937 fi
3938 rmdir .tst 2>/dev/null
3939
3940 # Check whether --enable-silent-rules was given.
3941 if test "${enable_silent_rules+set}" = set; then :
3942 enableval=$enable_silent_rules;
3943 fi
3944
3945 case $enable_silent_rules in # (((
3946 yes) AM_DEFAULT_VERBOSITY=0;;
3947 no) AM_DEFAULT_VERBOSITY=1;;
3948 *) AM_DEFAULT_VERBOSITY=1;;
3949 esac
3950 am_make=${MAKE-make}
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3952 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3953 if ${am_cv_make_support_nested_variables+:} false; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 if $as_echo 'TRUE=$(BAR$(V))
3957 BAR0=false
3958 BAR1=true
3959 V=1
3960 am__doit:
3961 @$(TRUE)
3962 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3963 am_cv_make_support_nested_variables=yes
3964 else
3965 am_cv_make_support_nested_variables=no
3966 fi
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3969 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3970 if test $am_cv_make_support_nested_variables = yes; then
3971 AM_V='$(V)'
3972 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3973 else
3974 AM_V=$AM_DEFAULT_VERBOSITY
3975 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3976 fi
3977 AM_BACKSLASH='\'
3978
3979 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3981 # is not polluted with repeated "-I."
3982 am__isrc=' -I$(srcdir)'
3983 # test to see if srcdir already configured
3984 if test -f $srcdir/config.status; then
3985 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3986 fi
3987 fi
3988
3989 # test whether we have cygpath
3990 if test -z "$CYGPATH_W"; then
3991 if (cygpath --version) >/dev/null 2>/dev/null; then
3992 CYGPATH_W='cygpath -w'
3993 else
3994 CYGPATH_W=echo
3995 fi
3996 fi
3997
3998
3999 # Define the identity of the package.
4000 PACKAGE='lbzip2'
4001 VERSION='2.5'
4002
4003
4004 cat >>confdefs.h <<_ACEOF
4005 #define PACKAGE "$PACKAGE"
4006 _ACEOF
4007
4008
4009 cat >>confdefs.h <<_ACEOF
4010 #define VERSION "$VERSION"
4011 _ACEOF
4012
4013 # Some tools Automake needs.
4014
4015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4016
4017
4018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4019
4020
4021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4022
4023
4024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4025
4026
4027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4028
4029 # For better backward compatibility. To be removed once Automake 1.9.x
4030 # dies out for good. For more background, see:
4031 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4032 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4033 mkdir_p='$(MKDIR_P)'
4034
4035 # We need awk for the "check" target. The system "awk" is bad on
4036 # some platforms.
4037 # Always define AMTAR for backward compatibility. Yes, it's still used
4038 # in the wild :-( We should find a proper way to deprecate it ...
4039 AMTAR='$${TAR-tar}'
4040
4041
4042 # We'll loop over all known methods to create a tar archive until one works.
4043 _am_tools='gnutar pax cpio none'
4044
4045 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4046
4047
4048
4049
4050
4051
4052 # POSIX will say in a future version that running "rm -f" with no argument
4053 # is OK; and we want to be able to make that assumption in our Makefile
4054 # recipes. So use an aggressive probe to check that the usage we want is
4055 # actually supported "in the wild" to an acceptable degree.
4056 # See automake bug#10828.
4057 # To make any issue more visible, cause the running configure to be aborted
4058 # by default if the 'rm' program in use doesn't match our expectations; the
4059 # user can still override this though.
4060 if rm -f && rm -fr && rm -rf; then : OK; else
4061 cat >&2 <<'END'
4062 Oops!
4063
4064 Your 'rm' program seems unable to run without file operands specified
4065 on the command line, even when the '-f' option is present. This is contrary
4066 to the behaviour of most rm programs out there, and not conforming with
4067 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4068
4069 Please tell [email protected] about your system, including the value
4070 of your $PATH and any error possibly output before this message. This
4071 can help us improve future automake versions.
4072
4073 END
4074 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4075 echo 'Configuration will proceed anyway, since you have set the' >&2
4076 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4077 echo >&2
4078 else
4079 cat >&2 <<'END'
4080 Aborting the configuration process, to ensure you take notice of the issue.
4081
4082 You can download and install GNU coreutils to get an 'rm' implementation
4083 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4084
4085 If you want to complete the configuration process using your problematic
4086 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4087 to "yes", and re-run configure.
4088
4089 END
4090 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4091 fi
4092 fi
4093 # Check whether --enable-silent-rules was given.
4094 if test "${enable_silent_rules+set}" = set; then :
4095 enableval=$enable_silent_rules;
4096 fi
4097
4098 case $enable_silent_rules in # (((
4099 yes) AM_DEFAULT_VERBOSITY=0;;
4100 no) AM_DEFAULT_VERBOSITY=1;;
4101 *) AM_DEFAULT_VERBOSITY=0;;
4102 esac
4103 am_make=${MAKE-make}
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4105 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4106 if ${am_cv_make_support_nested_variables+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if $as_echo 'TRUE=$(BAR$(V))
4110 BAR0=false
4111 BAR1=true
4112 V=1
4113 am__doit:
4114 @$(TRUE)
4115 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4116 am_cv_make_support_nested_variables=yes
4117 else
4118 am_cv_make_support_nested_variables=no
4119 fi
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4122 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4123 if test $am_cv_make_support_nested_variables = yes; then
4124 AM_V='$(V)'
4125 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4126 else
4127 AM_V=$AM_DEFAULT_VERBOSITY
4128 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4129 fi
4130 AM_BACKSLASH='\'
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4134 $as_echo_n "checking whether ln -s works... " >&6; }
4135 LN_S=$as_ln_s
4136 if test "$LN_S" = "ln -s"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4138 $as_echo "yes" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4141 $as_echo "no, using $LN_S" >&6; }
4142 fi
4143
4144 if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if ${ac_cv_prog_RANLIB+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$RANLIB"; then
4153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 RANLIB=$ac_cv_prog_RANLIB
4173 if test -n "$RANLIB"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4175 $as_echo "$RANLIB" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182 fi
4183 if test -z "$ac_cv_prog_RANLIB"; then
4184 ac_ct_RANLIB=$RANLIB
4185 # Extract the first word of "ranlib", so it can be a program name with args.
4186 set dummy ranlib; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -n "$ac_ct_RANLIB"; then
4193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_ac_ct_RANLIB="ranlib"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4213 if test -n "$ac_ct_RANLIB"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4215 $as_echo "$ac_ct_RANLIB" >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 fi
4220
4221 if test "x$ac_ct_RANLIB" = x; then
4222 RANLIB=":"
4223 else
4224 case $cross_compiling:$ac_tool_warned in
4225 yes:)
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4228 ac_tool_warned=yes ;;
4229 esac
4230 RANLIB=$ac_ct_RANLIB
4231 fi
4232 else
4233 RANLIB="$ac_cv_prog_RANLIB"
4234 fi
4235
4236 DEPDIR="${am__leading_dot}deps"
4237
4238 ac_config_commands="$ac_config_commands depfiles"
4239
4240
4241 am_make=${MAKE-make}
4242 cat > confinc << 'END'
4243 am__doit:
4244 @echo this is the am__doit target
4245 .PHONY: am__doit
4246 END
4247 # If we don't find an include directive, just comment out the code.
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4249 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4250 am__include="#"
4251 am__quote=
4252 _am_result=none
4253 # First try GNU make style include.
4254 echo "include confinc" > confmf
4255 # Ignore all kinds of additional output from 'make'.
4256 case `$am_make -s -f confmf 2> /dev/null` in #(
4257 *the\ am__doit\ target*)
4258 am__include=include
4259 am__quote=
4260 _am_result=GNU
4261 ;;
4262 esac
4263 # Now try BSD make style include.
4264 if test "$am__include" = "#"; then
4265 echo '.include "confinc"' > confmf
4266 case `$am_make -s -f confmf 2> /dev/null` in #(
4267 *the\ am__doit\ target*)
4268 am__include=.include
4269 am__quote="\""
4270 _am_result=BSD
4271 ;;
4272 esac
4273 fi
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4277 $as_echo "$_am_result" >&6; }
4278 rm -f confinc confmf
4279
4280 # Check whether --enable-dependency-tracking was given.
4281 if test "${enable_dependency_tracking+set}" = set; then :
4282 enableval=$enable_dependency_tracking;
4283 fi
4284
4285 if test "x$enable_dependency_tracking" != xno; then
4286 am_depcomp="$ac_aux_dir/depcomp"
4287 AMDEPBACKSLASH='\'
4288 am__nodep='_no'
4289 fi
4290 if test "x$enable_dependency_tracking" != xno; then
4291 AMDEP_TRUE=
4292 AMDEP_FALSE='#'
4293 else
4294 AMDEP_TRUE='#'
4295 AMDEP_FALSE=
4296 fi
4297
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_CC+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 $as_echo "$CC" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342 fi
4343 if test -z "$ac_cv_prog_CC"; then
4344 ac_ct_CC=$CC
4345 # Extract the first word of "gcc", so it can be a program name with args.
4346 set dummy gcc; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$ac_ct_CC"; then
4353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_ac_ct_CC="gcc"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4373 if test -n "$ac_ct_CC"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4375 $as_echo "$ac_ct_CC" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381 if test "x$ac_ct_CC" = x; then
4382 CC=""
4383 else
4384 case $cross_compiling:$ac_tool_warned in
4385 yes:)
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4388 ac_tool_warned=yes ;;
4389 esac
4390 CC=$ac_ct_CC
4391 fi
4392 else
4393 CC="$ac_cv_prog_CC"
4394 fi
4395
4396 if test -z "$CC"; then
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}cc; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_CC+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_CC="${ac_tool_prefix}cc"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 CC=$ac_cv_prog_CC
4426 if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428 $as_echo "$CC" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435 fi
4436 fi
4437 if test -z "$CC"; then
4438 # Extract the first word of "cc", so it can be a program name with args.
4439 set dummy cc; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$CC"; then
4446 ac_cv_prog_CC="$CC" # Let the user override the test.
4447 else
4448 ac_prog_rejected=no
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4457 ac_prog_rejected=yes
4458 continue
4459 fi
4460 ac_cv_prog_CC="cc"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 if test $ac_prog_rejected = yes; then
4469 # We found a bogon in the path, so make sure we never use it.
4470 set dummy $ac_cv_prog_CC
4471 shift
4472 if test $# != 0; then
4473 # We chose a different compiler from the bogus one.
4474 # However, it has the same basename, so the bogon will be chosen
4475 # first if we set CC to just the basename; use the full file name.
4476 shift
4477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4478 fi
4479 fi
4480 fi
4481 fi
4482 CC=$ac_cv_prog_CC
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491
4492 fi
4493 if test -z "$CC"; then
4494 if test -n "$ac_tool_prefix"; then
4495 for ac_prog in cl.exe
4496 do
4497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_CC+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518 done
4519 done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 CC=$ac_cv_prog_CC
4525 if test -n "$CC"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4527 $as_echo "$CC" >&6; }
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533
4534 test -n "$CC" && break
4535 done
4536 fi
4537 if test -z "$CC"; then
4538 ac_ct_CC=$CC
4539 for ac_prog in cl.exe
4540 do
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$ac_ct_CC"; then
4549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_CC="$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4569 if test -n "$ac_ct_CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4571 $as_echo "$ac_ct_CC" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578 test -n "$ac_ct_CC" && break
4579 done
4580
4581 if test "x$ac_ct_CC" = x; then
4582 CC=""
4583 else
4584 case $cross_compiling:$ac_tool_warned in
4585 yes:)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned=yes ;;
4589 esac
4590 CC=$ac_ct_CC
4591 fi
4592 fi
4593
4594 fi
4595
4596
4597 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error $? "no acceptable C compiler found in \$PATH
4600 See \`config.log' for more details" "$LINENO" 5; }
4601
4602 # Provide some information about the compiler.
4603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4604 set X $ac_compile
4605 ac_compiler=$2
4606 for ac_option in --version -v -V -qversion; do
4607 { { ac_try="$ac_compiler $ac_option >&5"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4615 ac_status=$?
4616 if test -s conftest.err; then
4617 sed '10a\
4618 ... rest of stderr output deleted ...
4619 10q' conftest.err >conftest.er1
4620 cat conftest.er1 >&5
4621 fi
4622 rm -f conftest.er1 conftest.err
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4625 done
4626
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629
4630 int
4631 main ()
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 ac_clean_files_save=$ac_clean_files
4639 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4640 # Try to create an executable without -o first, disregard a.out.
4641 # It will help us diagnose broken compilers, and finding out an intuition
4642 # of exeext.
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4644 $as_echo_n "checking whether the C compiler works... " >&6; }
4645 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4646
4647 # The possible output files:
4648 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4649
4650 ac_rmfiles=
4651 for ac_file in $ac_files
4652 do
4653 case $ac_file in
4654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4655 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4656 esac
4657 done
4658 rm -f $ac_rmfiles
4659
4660 if { { ac_try="$ac_link_default"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_link_default") 2>&5
4668 ac_status=$?
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }; then :
4671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4673 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4674 # so that the user can short-circuit this test for compilers unknown to
4675 # Autoconf.
4676 for ac_file in $ac_files ''
4677 do
4678 test -f "$ac_file" || continue
4679 case $ac_file in
4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4681 ;;
4682 [ab].out )
4683 # We found the default executable, but exeext='' is most
4684 # certainly right.
4685 break;;
4686 *.* )
4687 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4688 then :; else
4689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4690 fi
4691 # We set ac_cv_exeext here because the later test for it is not
4692 # safe: cross compilers may not add the suffix if given an `-o'
4693 # argument, so we may need to know it at that point already.
4694 # Even if this section looks crufty: it has the advantage of
4695 # actually working.
4696 break;;
4697 * )
4698 break;;
4699 esac
4700 done
4701 test "$ac_cv_exeext" = no && ac_cv_exeext=
4702
4703 else
4704 ac_file=''
4705 fi
4706 if test -z "$ac_file"; then :
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 as_fn_error 77 "C compiler cannot create executables
4715 See \`config.log' for more details" "$LINENO" 5; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4718 $as_echo "yes" >&6; }
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4721 $as_echo_n "checking for C compiler default output file name... " >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4723 $as_echo "$ac_file" >&6; }
4724 ac_exeext=$ac_cv_exeext
4725
4726 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4727 ac_clean_files=$ac_clean_files_save
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4729 $as_echo_n "checking for suffix of executables... " >&6; }
4730 if { { ac_try="$ac_link"
4731 case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4736 $as_echo "$ac_try_echo"; } >&5
4737 (eval "$ac_link") 2>&5
4738 ac_status=$?
4739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4740 test $ac_status = 0; }; then :
4741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4742 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4743 # work properly (i.e., refer to `conftest.exe'), while it won't with
4744 # `rm'.
4745 for ac_file in conftest.exe conftest conftest.*; do
4746 test -f "$ac_file" || continue
4747 case $ac_file in
4748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4750 break;;
4751 * ) break;;
4752 esac
4753 done
4754 else
4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4757 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4758 See \`config.log' for more details" "$LINENO" 5; }
4759 fi
4760 rm -f conftest conftest$ac_cv_exeext
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4762 $as_echo "$ac_cv_exeext" >&6; }
4763
4764 rm -f conftest.$ac_ext
4765 EXEEXT=$ac_cv_exeext
4766 ac_exeext=$EXEEXT
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <stdio.h>
4770 int
4771 main ()
4772 {
4773 FILE *f = fopen ("conftest.out", "w");
4774 return ferror (f) || fclose (f) != 0;
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 ac_clean_files="$ac_clean_files conftest.out"
4781 # Check that the compiler produces executables we can run. If not, either
4782 # the compiler is broken, or we cross compile.
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4784 $as_echo_n "checking whether we are cross compiling... " >&6; }
4785 if test "$cross_compiling" != yes; then
4786 { { ac_try="$ac_link"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4792 $as_echo "$ac_try_echo"; } >&5
4793 (eval "$ac_link") 2>&5
4794 ac_status=$?
4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4796 test $ac_status = 0; }
4797 if { ac_try='./conftest$ac_cv_exeext'
4798 { { case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803 $as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_try") 2>&5
4805 ac_status=$?
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }; }; then
4808 cross_compiling=no
4809 else
4810 if test "$cross_compiling" = maybe; then
4811 cross_compiling=yes
4812 else
4813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815 as_fn_error $? "cannot run C compiled programs.
4816 If you meant to cross compile, use \`--host'.
4817 See \`config.log' for more details" "$LINENO" 5; }
4818 fi
4819 fi
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4822 $as_echo "$cross_compiling" >&6; }
4823
4824 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4825 ac_clean_files=$ac_clean_files_save
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4827 $as_echo_n "checking for suffix of object files... " >&6; }
4828 if ${ac_cv_objext+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 rm -f conftest.o conftest.obj
4843 if { { ac_try="$ac_compile"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849 $as_echo "$ac_try_echo"; } >&5
4850 (eval "$ac_compile") 2>&5
4851 ac_status=$?
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }; then :
4854 for ac_file in conftest.o conftest.obj conftest.*; do
4855 test -f "$ac_file" || continue;
4856 case $ac_file in
4857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4859 break;;
4860 esac
4861 done
4862 else
4863 $as_echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error $? "cannot compute suffix of object files: cannot compile
4869 See \`config.log' for more details" "$LINENO" 5; }
4870 fi
4871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4874 $as_echo "$ac_cv_objext" >&6; }
4875 OBJEXT=$ac_cv_objext
4876 ac_objext=$OBJEXT
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4878 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4879 if ${ac_cv_c_compiler_gnu+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884
4885 int
4886 main ()
4887 {
4888 #ifndef __GNUC__
4889 choke me
4890 #endif
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_compiler_gnu=yes
4898 else
4899 ac_compiler_gnu=no
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4903
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4907 if test $ac_compiler_gnu = yes; then
4908 GCC=yes
4909 else
4910 GCC=
4911 fi
4912 ac_test_CFLAGS=${CFLAGS+set}
4913 ac_save_CFLAGS=$CFLAGS
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4916 if ${ac_cv_prog_cc_g+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 ac_save_c_werror_flag=$ac_c_werror_flag
4920 ac_c_werror_flag=yes
4921 ac_cv_prog_cc_g=no
4922 CFLAGS="-g"
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925
4926 int
4927 main ()
4928 {
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_cv_prog_cc_g=yes
4936 else
4937 CFLAGS=""
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950
4951 else
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4953 CFLAGS="-g"
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956
4957 int
4958 main ()
4959 {
4960
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 if ac_fn_c_try_compile "$LINENO"; then :
4966 ac_cv_prog_cc_g=yes
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_c_werror_flag=$ac_save_c_werror_flag
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4976 $as_echo "$ac_cv_prog_cc_g" >&6; }
4977 if test "$ac_test_CFLAGS" = set; then
4978 CFLAGS=$ac_save_CFLAGS
4979 elif test $ac_cv_prog_cc_g = yes; then
4980 if test "$GCC" = yes; then
4981 CFLAGS="-g -O2"
4982 else
4983 CFLAGS="-g"
4984 fi
4985 else
4986 if test "$GCC" = yes; then
4987 CFLAGS="-O2"
4988 else
4989 CFLAGS=
4990 fi
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4993 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4994 if ${ac_cv_prog_cc_c89+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 ac_cv_prog_cc_c89=no
4998 ac_save_CC=$CC
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 #include <stdarg.h>
5002 #include <stdio.h>
5003 struct stat;
5004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5005 struct buf { int x; };
5006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5007 static char *e (p, i)
5008 char **p;
5009 int i;
5010 {
5011 return p[i];
5012 }
5013 static char *f (char * (*g) (char **, int), char **p, ...)
5014 {
5015 char *s;
5016 va_list v;
5017 va_start (v,p);
5018 s = g (p, va_arg (v,int));
5019 va_end (v);
5020 return s;
5021 }
5022
5023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5024 function prototypes and stuff, but not '\xHH' hex character constants.
5025 These don't provoke an error unfortunately, instead are silently treated
5026 as 'x'. The following induces an error, until -std is added to get
5027 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5028 array size at least. It's necessary to write '\x00'==0 to get something
5029 that's true only with -std. */
5030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5031
5032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5033 inside strings and character constants. */
5034 #define FOO(x) 'x'
5035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5036
5037 int test (int i, double x);
5038 struct s1 {int (*f) (int a);};
5039 struct s2 {int (*f) (double a);};
5040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5041 int argc;
5042 char **argv;
5043 int
5044 main ()
5045 {
5046 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5052 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5053 do
5054 CC="$ac_save_CC $ac_arg"
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056 ac_cv_prog_cc_c89=$ac_arg
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext
5059 test "x$ac_cv_prog_cc_c89" != "xno" && break
5060 done
5061 rm -f conftest.$ac_ext
5062 CC=$ac_save_CC
5063
5064 fi
5065 # AC_CACHE_VAL
5066 case "x$ac_cv_prog_cc_c89" in
5067 x)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5069 $as_echo "none needed" >&6; } ;;
5070 xno)
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5072 $as_echo "unsupported" >&6; } ;;
5073 *)
5074 CC="$CC $ac_cv_prog_cc_c89"
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5077 esac
5078 if test "x$ac_cv_prog_cc_c89" != xno; then :
5079
5080 fi
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5094 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5095 if ${am_cv_prog_cc_c_o+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100
5101 int
5102 main ()
5103 {
5104
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 # Make sure it works both with $CC and with simple cc.
5110 # Following AC_PROG_CC_C_O, we do the test twice because some
5111 # compilers refuse to overwrite an existing .o file with -o,
5112 # though they will create one.
5113 am_cv_prog_cc_c_o=yes
5114 for am_i in 1 2; do
5115 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5116 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } \
5120 && test -f conftest2.$ac_objext; then
5121 : OK
5122 else
5123 am_cv_prog_cc_c_o=no
5124 break
5125 fi
5126 done
5127 rm -f core conftest*
5128 unset am_i
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5131 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5132 if test "$am_cv_prog_cc_c_o" != yes; then
5133 # Losing compiler, so override with the script.
5134 # FIXME: It is wrong to rewrite CC.
5135 # But if we don't then we get into trouble of one sort or another.
5136 # A longer-term fix would be to have automake use am__CC in this case,
5137 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5138 CC="$am_aux_dir/compile $CC"
5139 fi
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147 depcc="$CC" am_compiler_list=
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5150 $as_echo_n "checking dependency style of $depcc... " >&6; }
5151 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5155 # We make a subdir and do the tests there. Otherwise we can end up
5156 # making bogus files that we don't know about and never remove. For
5157 # instance it was reported that on HP-UX the gcc test will end up
5158 # making a dummy file named 'D' -- because '-MD' means "put the output
5159 # in D".
5160 rm -rf conftest.dir
5161 mkdir conftest.dir
5162 # Copy depcomp to subdir because otherwise we won't find it if we're
5163 # using a relative directory.
5164 cp "$am_depcomp" conftest.dir
5165 cd conftest.dir
5166 # We will build objects and dependencies in a subdirectory because
5167 # it helps to detect inapplicable dependency modes. For instance
5168 # both Tru64's cc and ICC support -MD to output dependencies as a
5169 # side effect of compilation, but ICC will put the dependencies in
5170 # the current directory while Tru64 will put them in the object
5171 # directory.
5172 mkdir sub
5173
5174 am_cv_CC_dependencies_compiler_type=none
5175 if test "$am_compiler_list" = ""; then
5176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5177 fi
5178 am__universal=false
5179 case " $depcc " in #(
5180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5181 esac
5182
5183 for depmode in $am_compiler_list; do
5184 # Setup a source with many dependencies, because some compilers
5185 # like to wrap large dependency lists on column 80 (with \), and
5186 # we should not choose a depcomp mode which is confused by this.
5187 #
5188 # We need to recreate these files for each test, as the compiler may
5189 # overwrite some of them when testing with obscure command lines.
5190 # This happens at least with the AIX C compiler.
5191 : > sub/conftest.c
5192 for i in 1 2 3 4 5 6; do
5193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5194 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5195 # Solaris 10 /bin/sh.
5196 echo '/* dummy */' > sub/conftst$i.h
5197 done
5198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5199
5200 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5201 # mode. It turns out that the SunPro C++ compiler does not properly
5202 # handle '-M -o', and we need to detect this. Also, some Intel
5203 # versions had trouble with output in subdirs.
5204 am__obj=sub/conftest.${OBJEXT-o}
5205 am__minus_obj="-o $am__obj"
5206 case $depmode in
5207 gcc)
5208 # This depmode causes a compiler race in universal mode.
5209 test "$am__universal" = false || continue
5210 ;;
5211 nosideeffect)
5212 # After this tag, mechanisms are not by side-effect, so they'll
5213 # only be used when explicitly requested.
5214 if test "x$enable_dependency_tracking" = xyes; then
5215 continue
5216 else
5217 break
5218 fi
5219 ;;
5220 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5221 # This compiler won't grok '-c -o', but also, the minuso test has
5222 # not run yet. These depmodes are late enough in the game, and
5223 # so weak that their functioning should not be impacted.
5224 am__obj=conftest.${OBJEXT-o}
5225 am__minus_obj=
5226 ;;
5227 none) break ;;
5228 esac
5229 if depmode=$depmode \
5230 source=sub/conftest.c object=$am__obj \
5231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5233 >/dev/null 2>conftest.err &&
5234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5238 # icc doesn't choke on unknown options, it will just issue warnings
5239 # or remarks (even with -Werror). So we grep stderr for any message
5240 # that says an option was ignored or not supported.
5241 # When given -MP, icc 7.0 and 7.1 complain thusly:
5242 # icc: Command line warning: ignoring option '-M'; no argument required
5243 # The diagnosis changed in icc 8.0:
5244 # icc: Command line remark: option '-MP' not supported
5245 if (grep 'ignoring option' conftest.err ||
5246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5247 am_cv_CC_dependencies_compiler_type=$depmode
5248 break
5249 fi
5250 fi
5251 done
5252
5253 cd ..
5254 rm -rf conftest.dir
5255 else
5256 am_cv_CC_dependencies_compiler_type=none
5257 fi
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5263
5264 if
5265 test "x$enable_dependency_tracking" != xno \
5266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5267 am__fastdepCC_TRUE=
5268 am__fastdepCC_FALSE='#'
5269 else
5270 am__fastdepCC_TRUE='#'
5271 am__fastdepCC_FALSE=
5272 fi
5273
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5276 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5277 if ${ac_cv_prog_cc_c89+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 ac_cv_prog_cc_c89=no
5281 ac_save_CC=$CC
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <stdarg.h>
5285 #include <stdio.h>
5286 struct stat;
5287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5288 struct buf { int x; };
5289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5290 static char *e (p, i)
5291 char **p;
5292 int i;
5293 {
5294 return p[i];
5295 }
5296 static char *f (char * (*g) (char **, int), char **p, ...)
5297 {
5298 char *s;
5299 va_list v;
5300 va_start (v,p);
5301 s = g (p, va_arg (v,int));
5302 va_end (v);
5303 return s;
5304 }
5305
5306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5307 function prototypes and stuff, but not '\xHH' hex character constants.
5308 These don't provoke an error unfortunately, instead are silently treated
5309 as 'x'. The following induces an error, until -std is added to get
5310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5311 array size at least. It's necessary to write '\x00'==0 to get something
5312 that's true only with -std. */
5313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5314
5315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5316 inside strings and character constants. */
5317 #define FOO(x) 'x'
5318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5319
5320 int test (int i, double x);
5321 struct s1 {int (*f) (int a);};
5322 struct s2 {int (*f) (double a);};
5323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5324 int argc;
5325 char **argv;
5326 int
5327 main ()
5328 {
5329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5336 do
5337 CC="$ac_save_CC $ac_arg"
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 ac_cv_prog_cc_c89=$ac_arg
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext
5342 test "x$ac_cv_prog_cc_c89" != "xno" && break
5343 done
5344 rm -f conftest.$ac_ext
5345 CC=$ac_save_CC
5346
5347 fi
5348 # AC_CACHE_VAL
5349 case "x$ac_cv_prog_cc_c89" in
5350 x)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5352 $as_echo "none needed" >&6; } ;;
5353 xno)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5355 $as_echo "unsupported" >&6; } ;;
5356 *)
5357 CC="$CC $ac_cv_prog_cc_c89"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5360 esac
5361 if test "x$ac_cv_prog_cc_c89" != xno; then :
5362
5363 fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 ac_ext=c
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5381 # On Suns, sometimes $CPP names a directory.
5382 if test -n "$CPP" && test -d "$CPP"; then
5383 CPP=
5384 fi
5385 if test -z "$CPP"; then
5386 if ${ac_cv_prog_CPP+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 # Double quotes because CPP needs to be expanded
5390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5391 do
5392 ac_preproc_ok=false
5393 for ac_c_preproc_warn_flag in '' yes
5394 do
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #ifdef __STDC__
5404 # include <limits.h>
5405 #else
5406 # include <assert.h>
5407 #endif
5408 Syntax error
5409 _ACEOF
5410 if ac_fn_c_try_cpp "$LINENO"; then :
5411
5412 else
5413 # Broken: fails on valid input.
5414 continue
5415 fi
5416 rm -f conftest.err conftest.i conftest.$ac_ext
5417
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5425 # Broken: success on invalid input.
5426 continue
5427 else
5428 # Passes both tests.
5429 ac_preproc_ok=:
5430 break
5431 fi
5432 rm -f conftest.err conftest.i conftest.$ac_ext
5433
5434 done
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.i conftest.err conftest.$ac_ext
5437 if $ac_preproc_ok; then :
5438 break
5439 fi
5440
5441 done
5442 ac_cv_prog_CPP=$CPP
5443
5444 fi
5445 CPP=$ac_cv_prog_CPP
5446 else
5447 ac_cv_prog_CPP=$CPP
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5450 $as_echo "$CPP" >&6; }
5451 ac_preproc_ok=false
5452 for ac_c_preproc_warn_flag in '' yes
5453 do
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #ifdef __STDC__
5463 # include <limits.h>
5464 #else
5465 # include <assert.h>
5466 #endif
5467 Syntax error
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5470
5471 else
5472 # Broken: fails on valid input.
5473 continue
5474 fi
5475 rm -f conftest.err conftest.i conftest.$ac_ext
5476
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5482 _ACEOF
5483 if ac_fn_c_try_cpp "$LINENO"; then :
5484 # Broken: success on invalid input.
5485 continue
5486 else
5487 # Passes both tests.
5488 ac_preproc_ok=:
5489 break
5490 fi
5491 rm -f conftest.err conftest.i conftest.$ac_ext
5492
5493 done
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.i conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then :
5497
5498 else
5499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5502 See \`config.log' for more details" "$LINENO" 5; }
5503 fi
5504
5505 ac_ext=c
5506 ac_cpp='$CPP $CPPFLAGS'
5507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5513 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5514 if ${ac_cv_path_GREP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -z "$GREP"; then
5518 ac_path_GREP_found=false
5519 # Loop through the user's path and test for each of PROGNAME-LIST
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_prog in grep ggrep; do
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5528 as_fn_executable_p "$ac_path_GREP" || continue
5529 # Check for GNU ac_path_GREP and select it if it is found.
5530 # Check for GNU $ac_path_GREP
5531 case `"$ac_path_GREP" --version 2>&1` in
5532 *GNU*)
5533 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5534 *)
5535 ac_count=0
5536 $as_echo_n 0123456789 >"conftest.in"
5537 while :
5538 do
5539 cat "conftest.in" "conftest.in" >"conftest.tmp"
5540 mv "conftest.tmp" "conftest.in"
5541 cp "conftest.in" "conftest.nl"
5542 $as_echo 'GREP' >> "conftest.nl"
5543 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5545 as_fn_arith $ac_count + 1 && ac_count=$as_val
5546 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5547 # Best one so far, save it but keep looking for a better one
5548 ac_cv_path_GREP="$ac_path_GREP"
5549 ac_path_GREP_max=$ac_count
5550 fi
5551 # 10*(2^10) chars as input seems more than enough
5552 test $ac_count -gt 10 && break
5553 done
5554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5555 esac
5556
5557 $ac_path_GREP_found && break 3
5558 done
5559 done
5560 done
5561 IFS=$as_save_IFS
5562 if test -z "$ac_cv_path_GREP"; then
5563 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5564 fi
5565 else
5566 ac_cv_path_GREP=$GREP
5567 fi
5568
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5571 $as_echo "$ac_cv_path_GREP" >&6; }
5572 GREP="$ac_cv_path_GREP"
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5576 $as_echo_n "checking for egrep... " >&6; }
5577 if ${ac_cv_path_EGREP+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5581 then ac_cv_path_EGREP="$GREP -E"
5582 else
5583 if test -z "$EGREP"; then
5584 ac_path_EGREP_found=false
5585 # Loop through the user's path and test for each of PROGNAME-LIST
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5588 do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_prog in egrep; do
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5594 as_fn_executable_p "$ac_path_EGREP" || continue
5595 # Check for GNU ac_path_EGREP and select it if it is found.
5596 # Check for GNU $ac_path_EGREP
5597 case `"$ac_path_EGREP" --version 2>&1` in
5598 *GNU*)
5599 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5600 *)
5601 ac_count=0
5602 $as_echo_n 0123456789 >"conftest.in"
5603 while :
5604 do
5605 cat "conftest.in" "conftest.in" >"conftest.tmp"
5606 mv "conftest.tmp" "conftest.in"
5607 cp "conftest.in" "conftest.nl"
5608 $as_echo 'EGREP' >> "conftest.nl"
5609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5611 as_fn_arith $ac_count + 1 && ac_count=$as_val
5612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5613 # Best one so far, save it but keep looking for a better one
5614 ac_cv_path_EGREP="$ac_path_EGREP"
5615 ac_path_EGREP_max=$ac_count
5616 fi
5617 # 10*(2^10) chars as input seems more than enough
5618 test $ac_count -gt 10 && break
5619 done
5620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5621 esac
5622
5623 $ac_path_EGREP_found && break 3
5624 done
5625 done
5626 done
5627 IFS=$as_save_IFS
5628 if test -z "$ac_cv_path_EGREP"; then
5629 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5630 fi
5631 else
5632 ac_cv_path_EGREP=$EGREP
5633 fi
5634
5635 fi
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5638 $as_echo "$ac_cv_path_EGREP" >&6; }
5639 EGREP="$ac_cv_path_EGREP"
5640
5641
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5645 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5646 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652
5653 #ifdef __ACK__
5654 Amsterdam
5655 #endif
5656
5657 _ACEOF
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5660 gl_cv_c_amsterdam_compiler=yes
5661 else
5662 gl_cv_c_amsterdam_compiler=no
5663 fi
5664 rm -f conftest*
5665
5666
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5669 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5670 if test -z "$AR"; then
5671 if test $gl_cv_c_amsterdam_compiler = yes; then
5672 AR='cc -c.a'
5673 if test -z "$ARFLAGS"; then
5674 ARFLAGS='-o'
5675 fi
5676 else
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5679 set dummy ${ac_tool_prefix}ar; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_AR+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$AR"; then
5686 ac_cv_prog_AR="$AR" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_AR="${ac_tool_prefix}ar"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 AR=$ac_cv_prog_AR
5706 if test -n "$AR"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5708 $as_echo "$AR" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714
5715 fi
5716 if test -z "$ac_cv_prog_AR"; then
5717 ac_ct_AR=$AR
5718 # Extract the first word of "ar", so it can be a program name with args.
5719 set dummy ar; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$ac_ct_AR"; then
5726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_ac_ct_AR="ar"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739 done
5740 done
5741 IFS=$as_save_IFS
5742
5743 fi
5744 fi
5745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5746 if test -n "$ac_ct_AR"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5748 $as_echo "$ac_ct_AR" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5752 fi
5753
5754 if test "x$ac_ct_AR" = x; then
5755 AR="ar"
5756 else
5757 case $cross_compiling:$ac_tool_warned in
5758 yes:)
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5761 ac_tool_warned=yes ;;
5762 esac
5763 AR=$ac_ct_AR
5764 fi
5765 else
5766 AR="$ac_cv_prog_AR"
5767 fi
5768
5769 if test -z "$ARFLAGS"; then
5770 ARFLAGS='cru'
5771 fi
5772 fi
5773 else
5774 if test -z "$ARFLAGS"; then
5775 ARFLAGS='cru'
5776 fi
5777 fi
5778
5779
5780 if test -z "$RANLIB"; then
5781 if test $gl_cv_c_amsterdam_compiler = yes; then
5782 RANLIB=':'
5783 else
5784 if test -n "$ac_tool_prefix"; then
5785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_RANLIB+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$RANLIB"; then
5793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 RANLIB=$ac_cv_prog_RANLIB
5813 if test -n "$RANLIB"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5815 $as_echo "$RANLIB" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821
5822 fi
5823 if test -z "$ac_cv_prog_RANLIB"; then
5824 ac_ct_RANLIB=$RANLIB
5825 # Extract the first word of "ranlib", so it can be a program name with args.
5826 set dummy ranlib; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if test -n "$ac_ct_RANLIB"; then
5833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_ac_ct_RANLIB="ranlib"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5853 if test -n "$ac_ct_RANLIB"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5855 $as_echo "$ac_ct_RANLIB" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861 if test "x$ac_ct_RANLIB" = x; then
5862 RANLIB=":"
5863 else
5864 case $cross_compiling:$ac_tool_warned in
5865 yes:)
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868 ac_tool_warned=yes ;;
5869 esac
5870 RANLIB=$ac_ct_RANLIB
5871 fi
5872 else
5873 RANLIB="$ac_cv_prog_RANLIB"
5874 fi
5875
5876 fi
5877 fi
5878
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5881 $as_echo_n "checking for ANSI C header files... " >&6; }
5882 if ${ac_cv_header_stdc+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 #include <stdlib.h>
5888 #include <stdarg.h>
5889 #include <string.h>
5890 #include <float.h>
5891
5892 int
5893 main ()
5894 {
5895
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 ac_cv_header_stdc=yes
5902 else
5903 ac_cv_header_stdc=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906
5907 if test $ac_cv_header_stdc = yes; then
5908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 #include <string.h>
5912
5913 _ACEOF
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915 $EGREP "memchr" >/dev/null 2>&1; then :
5916
5917 else
5918 ac_cv_header_stdc=no
5919 fi
5920 rm -f conftest*
5921
5922 fi
5923
5924 if test $ac_cv_header_stdc = yes; then
5925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 #include <stdlib.h>
5929
5930 _ACEOF
5931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5932 $EGREP "free" >/dev/null 2>&1; then :
5933
5934 else
5935 ac_cv_header_stdc=no
5936 fi
5937 rm -f conftest*
5938
5939 fi
5940
5941 if test $ac_cv_header_stdc = yes; then
5942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5943 if test "$cross_compiling" = yes; then :
5944 :
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 #include <ctype.h>
5949 #include <stdlib.h>
5950 #if ((' ' & 0x0FF) == 0x020)
5951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5953 #else
5954 # define ISLOWER(c) \
5955 (('a' <= (c) && (c) <= 'i') \
5956 || ('j' <= (c) && (c) <= 'r') \
5957 || ('s' <= (c) && (c) <= 'z'))
5958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5959 #endif
5960
5961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5962 int
5963 main ()
5964 {
5965 int i;
5966 for (i = 0; i < 256; i++)
5967 if (XOR (islower (i), ISLOWER (i))
5968 || toupper (i) != TOUPPER (i))
5969 return 2;
5970 return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_c_try_run "$LINENO"; then :
5974
5975 else
5976 ac_cv_header_stdc=no
5977 fi
5978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5979 conftest.$ac_objext conftest.beam conftest.$ac_ext
5980 fi
5981
5982 fi
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5985 $as_echo "$ac_cv_header_stdc" >&6; }
5986 if test $ac_cv_header_stdc = yes; then
5987
5988 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5989
5990 fi
5991
5992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5994 inttypes.h stdint.h unistd.h
5995 do :
5996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5998 "
5999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6000 cat >>confdefs.h <<_ACEOF
6001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 _ACEOF
6003
6004 fi
6005
6006 done
6007
6008
6009
6010 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6011 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6012 MINIX=yes
6013 else
6014 MINIX=
6015 fi
6016
6017
6018 if test "$MINIX" = yes; then
6019
6020 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6021
6022
6023 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6024
6025
6026 $as_echo "#define _MINIX 1" >>confdefs.h
6027
6028
6029 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6030
6031 fi
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6035 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6036 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041
6042 # define __EXTENSIONS__ 1
6043 $ac_includes_default
6044 int
6045 main ()
6046 {
6047
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 ac_cv_safe_to_define___extensions__=yes
6054 else
6055 ac_cv_safe_to_define___extensions__=no
6056 fi
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6060 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6061 test $ac_cv_safe_to_define___extensions__ = yes &&
6062 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6063
6064 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6065
6066 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6067
6068 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6069
6070 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6071
6072 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6075 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6076 if ${ac_cv_should_define__xopen_source+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 ac_cv_should_define__xopen_source=no
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082
6083 #include <wchar.h>
6084 mbstate_t x;
6085 int
6086 main ()
6087 {
6088
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6094
6095 else
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098
6099 #define _XOPEN_SOURCE 500
6100 #include <wchar.h>
6101 mbstate_t x;
6102 int
6103 main ()
6104 {
6105
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111 ac_cv_should_define__xopen_source=yes
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6118 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6119 test $ac_cv_should_define__xopen_source = yes &&
6120 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6121
6122
6123
6124
6125
6126
6127
6128
6129 # Make sure we can run config.sub.
6130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6131 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6132
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6134 $as_echo_n "checking build system type... " >&6; }
6135 if ${ac_cv_build+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 ac_build_alias=$build_alias
6139 test "x$ac_build_alias" = x &&
6140 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6141 test "x$ac_build_alias" = x &&
6142 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6144 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6145
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6148 $as_echo "$ac_cv_build" >&6; }
6149 case $ac_cv_build in
6150 *-*-*) ;;
6151 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6152 esac
6153 build=$ac_cv_build
6154 ac_save_IFS=$IFS; IFS='-'
6155 set x $ac_cv_build
6156 shift
6157 build_cpu=$1
6158 build_vendor=$2
6159 shift; shift
6160 # Remember, the first character of IFS is used to create $*,
6161 # except with old shells:
6162 build_os=$*
6163 IFS=$ac_save_IFS
6164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6165
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6168 $as_echo_n "checking host system type... " >&6; }
6169 if ${ac_cv_host+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 if test "x$host_alias" = x; then
6173 ac_cv_host=$ac_cv_build
6174 else
6175 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6176 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6177 fi
6178
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6181 $as_echo "$ac_cv_host" >&6; }
6182 case $ac_cv_host in
6183 *-*-*) ;;
6184 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6185 esac
6186 host=$ac_cv_host
6187 ac_save_IFS=$IFS; IFS='-'
6188 set x $ac_cv_host
6189 shift
6190 host_cpu=$1
6191 host_vendor=$2
6192 shift; shift
6193 # Remember, the first character of IFS is used to create $*,
6194 # except with old shells:
6195 host_os=$*
6196 IFS=$ac_save_IFS
6197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6198
6199
6200
6201
6202
6203 # IEEE behaviour is the default on all CPUs except Alpha and SH
6204 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6205 # and the GCC 4.1.2 manual).
6206 case "$host_cpu" in
6207 alpha*)
6208 # On Alpha systems, a compiler option provides the behaviour.
6209 # See the ieee(3) manual page, also available at
6210 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6211 if test -n "$GCC"; then
6212 # GCC has the option -mieee.
6213 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6214 CPPFLAGS="$CPPFLAGS -mieee"
6215 else
6216 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6217 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6218 CPPFLAGS="$CPPFLAGS -ieee"
6219 fi
6220 ;;
6221 sh*)
6222 if test -n "$GCC"; then
6223 # GCC has the option -mieee.
6224 CPPFLAGS="$CPPFLAGS -mieee"
6225 fi
6226 ;;
6227 esac
6228
6229 # Check whether --enable-largefile was given.
6230 if test "${enable_largefile+set}" = set; then :
6231 enableval=$enable_largefile;
6232 fi
6233
6234 if test "$enable_largefile" != no; then
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6237 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6238 if ${ac_cv_sys_largefile_CC+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 ac_cv_sys_largefile_CC=no
6242 if test "$GCC" != yes; then
6243 ac_save_CC=$CC
6244 while :; do
6245 # IRIX 6.2 and later do not support large files by default,
6246 # so use the C compiler's -n32 option if that helps.
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 #include <sys/types.h>
6250 /* Check that off_t can represent 2**63 - 1 correctly.
6251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6252 since some C++ compilers masquerading as C compilers
6253 incorrectly reject 9223372036854775807. */
6254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6256 && LARGE_OFF_T % 2147483647 == 1)
6257 ? 1 : -1];
6258 int
6259 main ()
6260 {
6261
6262 ;
6263 return 0;
6264 }
6265 _ACEOF
6266 if ac_fn_c_try_compile "$LINENO"; then :
6267 break
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext
6270 CC="$CC -n32"
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 ac_cv_sys_largefile_CC=' -n32'; break
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext
6275 break
6276 done
6277 CC=$ac_save_CC
6278 rm -f conftest.$ac_ext
6279 fi
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6282 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6283 if test "$ac_cv_sys_largefile_CC" != no; then
6284 CC=$CC$ac_cv_sys_largefile_CC
6285 fi
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6288 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6289 if ${ac_cv_sys_file_offset_bits+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 while :; do
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <sys/types.h>
6296 /* Check that off_t can represent 2**63 - 1 correctly.
6297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6298 since some C++ compilers masquerading as C compilers
6299 incorrectly reject 9223372036854775807. */
6300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6302 && LARGE_OFF_T % 2147483647 == 1)
6303 ? 1 : -1];
6304 int
6305 main ()
6306 {
6307
6308 ;
6309 return 0;
6310 }
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 ac_cv_sys_file_offset_bits=no; break
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 #define _FILE_OFFSET_BITS 64
6319 #include <sys/types.h>
6320 /* Check that off_t can represent 2**63 - 1 correctly.
6321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6322 since some C++ compilers masquerading as C compilers
6323 incorrectly reject 9223372036854775807. */
6324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6326 && LARGE_OFF_T % 2147483647 == 1)
6327 ? 1 : -1];
6328 int
6329 main ()
6330 {
6331
6332 ;
6333 return 0;
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_compile "$LINENO"; then :
6337 ac_cv_sys_file_offset_bits=64; break
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 ac_cv_sys_file_offset_bits=unknown
6341 break
6342 done
6343 fi
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6345 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6346 case $ac_cv_sys_file_offset_bits in #(
6347 no | unknown) ;;
6348 *)
6349 cat >>confdefs.h <<_ACEOF
6350 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6351 _ACEOF
6352 ;;
6353 esac
6354 rm -rf conftest*
6355 if test $ac_cv_sys_file_offset_bits = unknown; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6357 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6358 if ${ac_cv_sys_large_files+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 while :; do
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <sys/types.h>
6365 /* Check that off_t can represent 2**63 - 1 correctly.
6366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6367 since some C++ compilers masquerading as C compilers
6368 incorrectly reject 9223372036854775807. */
6369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6371 && LARGE_OFF_T % 2147483647 == 1)
6372 ? 1 : -1];
6373 int
6374 main ()
6375 {
6376
6377 ;
6378 return 0;
6379 }
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 ac_cv_sys_large_files=no; break
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #define _LARGE_FILES 1
6388 #include <sys/types.h>
6389 /* Check that off_t can represent 2**63 - 1 correctly.
6390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6391 since some C++ compilers masquerading as C compilers
6392 incorrectly reject 9223372036854775807. */
6393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6395 && LARGE_OFF_T % 2147483647 == 1)
6396 ? 1 : -1];
6397 int
6398 main ()
6399 {
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"; then :
6406 ac_cv_sys_large_files=1; break
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 ac_cv_sys_large_files=unknown
6410 break
6411 done
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6414 $as_echo "$ac_cv_sys_large_files" >&6; }
6415 case $ac_cv_sys_large_files in #(
6416 no | unknown) ;;
6417 *)
6418 cat >>confdefs.h <<_ACEOF
6419 #define _LARGE_FILES $ac_cv_sys_large_files
6420 _ACEOF
6421 ;;
6422 esac
6423 rm -rf conftest*
6424 fi
6425
6426
6427 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6428
6429 fi
6430
6431
6432
6433 # Code from module absolute-header:
6434 # Code from module alloca-opt:
6435 # Code from module clock-time:
6436 # Code from module dosname:
6437 # Code from module dtotimespec:
6438 # Code from module errno:
6439 # Code from module extensions:
6440
6441 # Code from module extern-inline:
6442 # Code from module fcntl-h:
6443 # Code from module float:
6444 # Code from module fpieee:
6445
6446 # Code from module fprintf-posix:
6447 # Code from module fpucw:
6448 # Code from module frexp-nolibm:
6449 # Code from module frexpl-nolibm:
6450 # Code from module fseterr:
6451 # Code from module fstat:
6452 # Code from module gettime:
6453 # Code from module gettimeofday:
6454 # Code from module gitlog-to-changelog:
6455 # Code from module include_next:
6456 # Code from module intprops:
6457 # Code from module inttypes:
6458 # Code from module inttypes-incomplete:
6459 # Code from module isnand-nolibm:
6460 # Code from module isnanf-nolibm:
6461 # Code from module isnanl-nolibm:
6462 # Code from module largefile:
6463
6464 # Code from module lstat:
6465 # Code from module malloc-gnu:
6466 # Code from module malloc-posix:
6467 # Code from module math:
6468 # Code from module memchr:
6469 # Code from module msvc-inval:
6470 # Code from module multiarch:
6471 # Code from module nocrash:
6472 # Code from module pathmax:
6473 # Code from module printf-frexp:
6474 # Code from module printf-frexpl:
6475 # Code from module printf-safe:
6476 # Code from module pthread:
6477 # Code from module sched:
6478 # Code from module signbit:
6479 # Code from module size_max:
6480 # Code from module snippet/_Noreturn:
6481 # Code from module snippet/arg-nonnull:
6482 # Code from module snippet/c++defs:
6483 # Code from module snippet/warn-on-use:
6484 # Code from module ssize_t:
6485 # Code from module stat:
6486 # Code from module stat-time:
6487 # Code from module stdbool:
6488 # Code from module stddef:
6489 # Code from module stdint:
6490 # Code from module stdio:
6491 # Code from module stdlib:
6492 # Code from module string:
6493 # Code from module sys_stat:
6494 # Code from module sys_time:
6495 # Code from module sys_types:
6496 # Code from module time:
6497 # Code from module timespec:
6498 # Code from module timespec-add:
6499 # Code from module timespec-sub:
6500 # Code from module unistd:
6501 # Code from module utimens:
6502 # Code from module vasnprintf:
6503 # Code from module verify:
6504 # Code from module warnings:
6505 # Code from module wchar:
6506 # Code from module xalloc:
6507 # Code from module xalloc-oversized:
6508 # Code from module xsize:
6509
6510
6511
6512 # Check whether --enable-tracing was given.
6513 if test "${enable_tracing+set}" = set; then :
6514 enableval=$enable_tracing; if test "x$enableval" = xyes; then :
6515
6516
6517
6518 $as_echo "#define ENABLE_TRACING 1" >>confdefs.h
6519
6520
6521 fi
6522
6523 fi
6524
6525
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
6527 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
6528 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531
6532 gl_save_compiler_FLAGS="$CFLAGS"
6533 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536
6537 int
6538 main ()
6539 {
6540
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_c_try_link "$LINENO"; then :
6546 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
6547 else
6548 gl_cv_warn_c__Werror__Wunknown_warning_option=no
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6552 CFLAGS="$gl_save_compiler_FLAGS"
6553
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
6556 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
6557 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
6558 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
6559 else
6560 gl_unknown_warnings_are_errors=
6561 fi
6562
6563 # Check whether --enable-warnings was given.
6564 if test "${enable_warnings+set}" = set; then :
6565 enableval=$enable_warnings; if test "x$enableval" = xyes; then :
6566
6567
6568
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #ifndef __clang__
6572 not clang
6573 #endif
6574 int
6575 main ()
6576 {
6577
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unknown-warning-option" >&5
6585 $as_echo_n "checking whether C compiler handles -Wno-unknown-warning-option... " >&6; }
6586 if ${gl_cv_warn_c__Wno_unknown_warning_option+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589
6590 gl_save_compiler_FLAGS="$CFLAGS"
6591 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunknown-warning-option"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594
6595 int
6596 main ()
6597 {
6598
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 gl_cv_warn_c__Wno_unknown_warning_option=yes
6605 else
6606 gl_cv_warn_c__Wno_unknown_warning_option=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 CFLAGS="$gl_save_compiler_FLAGS"
6611
6612 fi
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unknown_warning_option" >&5
6614 $as_echo "$gl_cv_warn_c__Wno_unknown_warning_option" >&6; }
6615 if test "x$gl_cv_warn_c__Wno_unknown_warning_option" = xyes; then :
6616 as_fn_append WARN_CFLAGS " -Wno-unknown-warning-option"
6617 fi
6618
6619
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 for kjn_warn in '' all extra write-strings volatile-register-var vla unused-macros unused-local-typedefs unused unknown-pragmas sync-nand switch-enum switch-default strict-prototypes strict-aliasing stack-protector shadow redundant-decls pointer-arith packed-bitfield-compat packed overlength-strings old-style-definition nested-externs multichar mudflap missing-prototypes missing-noreturn missing-include-dirs missing-format-attribute missing-declarations long-long logical-op invalid-pch inline init-self format-y2k format-security format-nonliteral float-equal extra-tokens extra disabled-optimization declaration-after-statement coverage-mismatch cast-qual cast-align builtin-macro-redefined bad-function-cast attributes
6623 do :
6624
6625 as_gl_Warn=`$as_echo "gl_cv_warn_c_-W$kjn_warn" | $as_tr_sh`
6626 gl_positive="-W$kjn_warn"
6627 case $gl_positive in
6628 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
6629 esac
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W$kjn_warn" >&5
6631 $as_echo_n "checking whether C compiler handles -W$kjn_warn... " >&6; }
6632 if eval \${$as_gl_Warn+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635
6636 gl_save_compiler_FLAGS="$CFLAGS"
6637 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640
6641 int
6642 main ()
6643 {
6644
6645 ;
6646 return 0;
6647 }
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 eval "$as_gl_Warn=yes"
6651 else
6652 eval "$as_gl_Warn=no"
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 CFLAGS="$gl_save_compiler_FLAGS"
6657
6658 fi
6659 eval ac_res=\$$as_gl_Warn
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6661 $as_echo "$ac_res" >&6; }
6662 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
6663 as_fn_append WARN_CFLAGS " -W$kjn_warn"
6664 fi
6665
6666
6667 done
6668
6669
6670
6671 fi
6672
6673 fi
6674
6675
6676
6677
6678
6679
6680
6681 LIBC_FATAL_STDERR_=1
6682 export LIBC_FATAL_STDERR_
6683
6684 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6685 if test "x$ac_cv_type_size_t" = xyes; then :
6686
6687 else
6688
6689 cat >>confdefs.h <<_ACEOF
6690 #define size_t unsigned int
6691 _ACEOF
6692
6693 fi
6694
6695 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6696 # for constant arguments. Useless!
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6698 $as_echo_n "checking for working alloca.h... " >&6; }
6699 if ${ac_cv_working_alloca_h+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <alloca.h>
6705 int
6706 main ()
6707 {
6708 char *p = (char *) alloca (2 * sizeof (int));
6709 if (p) return 0;
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"; then :
6715 ac_cv_working_alloca_h=yes
6716 else
6717 ac_cv_working_alloca_h=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6723 $as_echo "$ac_cv_working_alloca_h" >&6; }
6724 if test $ac_cv_working_alloca_h = yes; then
6725
6726 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6727
6728 fi
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6731 $as_echo_n "checking for alloca... " >&6; }
6732 if ${ac_cv_func_alloca_works+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #ifdef __GNUC__
6738 # define alloca __builtin_alloca
6739 #else
6740 # ifdef _MSC_VER
6741 # include <malloc.h>
6742 # define alloca _alloca
6743 # else
6744 # ifdef HAVE_ALLOCA_H
6745 # include <alloca.h>
6746 # else
6747 # ifdef _AIX
6748 #pragma alloca
6749 # else
6750 # ifndef alloca /* predefined by HP cc +Olibcalls */
6751 void *alloca (size_t);
6752 # endif
6753 # endif
6754 # endif
6755 # endif
6756 #endif
6757
6758 int
6759 main ()
6760 {
6761 char *p = (char *) alloca (1);
6762 if (p) return 0;
6763 ;
6764 return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_link "$LINENO"; then :
6768 ac_cv_func_alloca_works=yes
6769 else
6770 ac_cv_func_alloca_works=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext \
6773 conftest$ac_exeext conftest.$ac_ext
6774 fi
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6776 $as_echo "$ac_cv_func_alloca_works" >&6; }
6777
6778 if test $ac_cv_func_alloca_works = yes; then
6779
6780 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6781
6782 else
6783 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6784 # that cause trouble. Some versions do not even contain alloca or
6785 # contain a buggy version. If you still want to use their alloca,
6786 # use ar to extract alloca.o from them instead of compiling alloca.c.
6787
6788
6789
6790
6791
6792 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6793
6794 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6795
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6798 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6799 if ${ac_cv_os_cray+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 #if defined CRAY && ! defined CRAY2
6805 webecray
6806 #else
6807 wenotbecray
6808 #endif
6809
6810 _ACEOF
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "webecray" >/dev/null 2>&1; then :
6813 ac_cv_os_cray=yes
6814 else
6815 ac_cv_os_cray=no
6816 fi
6817 rm -f conftest*
6818
6819 fi
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6821 $as_echo "$ac_cv_os_cray" >&6; }
6822 if test $ac_cv_os_cray = yes; then
6823 for ac_func in _getb67 GETB67 getb67; do
6824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6826 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6827
6828 cat >>confdefs.h <<_ACEOF
6829 #define CRAY_STACKSEG_END $ac_func
6830 _ACEOF
6831
6832 break
6833 fi
6834
6835 done
6836 fi
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6839 $as_echo_n "checking stack direction for C alloca... " >&6; }
6840 if ${ac_cv_c_stack_direction+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test "$cross_compiling" = yes; then :
6844 ac_cv_c_stack_direction=0
6845 else
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 int
6850 find_stack_direction (int *addr, int depth)
6851 {
6852 int dir, dummy = 0;
6853 if (! addr)
6854 addr = &dummy;
6855 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6856 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6857 return dir + dummy;
6858 }
6859
6860 int
6861 main (int argc, char **argv)
6862 {
6863 return find_stack_direction (0, argc + !argv + 20) < 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_run "$LINENO"; then :
6867 ac_cv_c_stack_direction=1
6868 else
6869 ac_cv_c_stack_direction=-1
6870 fi
6871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6872 conftest.$ac_objext conftest.beam conftest.$ac_ext
6873 fi
6874
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6877 $as_echo "$ac_cv_c_stack_direction" >&6; }
6878 cat >>confdefs.h <<_ACEOF
6879 #define STACK_DIRECTION $ac_cv_c_stack_direction
6880 _ACEOF
6881
6882
6883 fi
6884
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6888 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6889 if ${gl_cv_have_include_next+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 rm -rf conftestd1a conftestd1b conftestd2
6893 mkdir conftestd1a conftestd1b conftestd2
6894 cat <<EOF > conftestd1a/conftest.h
6895 #define DEFINED_IN_CONFTESTD1
6896 #include_next <conftest.h>
6897 #ifdef DEFINED_IN_CONFTESTD2
6898 int foo;
6899 #else
6900 #error "include_next doesn't work"
6901 #endif
6902 EOF
6903 cat <<EOF > conftestd1b/conftest.h
6904 #define DEFINED_IN_CONFTESTD1
6905 #include <stdio.h>
6906 #include_next <conftest.h>
6907 #ifdef DEFINED_IN_CONFTESTD2
6908 int foo;
6909 #else
6910 #error "include_next doesn't work"
6911 #endif
6912 EOF
6913 cat <<EOF > conftestd2/conftest.h
6914 #ifndef DEFINED_IN_CONFTESTD1
6915 #error "include_next test doesn't work"
6916 #endif
6917 #define DEFINED_IN_CONFTESTD2
6918 EOF
6919 gl_save_CPPFLAGS="$CPPFLAGS"
6920 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 #include <conftest.h>
6924 _ACEOF
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926 gl_cv_have_include_next=yes
6927 else
6928 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #include <conftest.h>
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 gl_cv_have_include_next=buggy
6935 else
6936 gl_cv_have_include_next=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 CPPFLAGS="$gl_save_CPPFLAGS"
6943 rm -rf conftestd1a conftestd1b conftestd2
6944
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6947 $as_echo "$gl_cv_have_include_next" >&6; }
6948 PRAGMA_SYSTEM_HEADER=
6949 if test $gl_cv_have_include_next = yes; then
6950 INCLUDE_NEXT=include_next
6951 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6952 if test -n "$GCC"; then
6953 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6954 fi
6955 else
6956 if test $gl_cv_have_include_next = buggy; then
6957 INCLUDE_NEXT=include
6958 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6959 else
6960 INCLUDE_NEXT=include
6961 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6962 fi
6963 fi
6964
6965
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6968 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6969 if ${gl_cv_pragma_columns+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974
6975 #ifdef __TANDEM
6976 choke me
6977 #endif
6978
6979 _ACEOF
6980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6981 $EGREP "choke me" >/dev/null 2>&1; then :
6982 gl_cv_pragma_columns=yes
6983 else
6984 gl_cv_pragma_columns=no
6985 fi
6986 rm -f conftest*
6987
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6991 $as_echo "$gl_cv_pragma_columns" >&6; }
6992 if test $gl_cv_pragma_columns = yes; then
6993 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6994 else
6995 PRAGMA_COLUMNS=
6996 fi
6997
6998
6999
7000
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7002 $as_echo_n "checking for complete errno.h... " >&6; }
7003 if ${gl_cv_header_errno_h_complete+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009
7010 #include <errno.h>
7011 #if !defined ETXTBSY
7012 booboo
7013 #endif
7014 #if !defined ENOMSG
7015 booboo
7016 #endif
7017 #if !defined EIDRM
7018 booboo
7019 #endif
7020 #if !defined ENOLINK
7021 booboo
7022 #endif
7023 #if !defined EPROTO
7024 booboo
7025 #endif
7026 #if !defined EMULTIHOP
7027 booboo
7028 #endif
7029 #if !defined EBADMSG
7030 booboo
7031 #endif
7032 #if !defined EOVERFLOW
7033 booboo
7034 #endif
7035 #if !defined ENOTSUP
7036 booboo
7037 #endif
7038 #if !defined ENETRESET
7039 booboo
7040 #endif
7041 #if !defined ECONNABORTED
7042 booboo
7043 #endif
7044 #if !defined ESTALE
7045 booboo
7046 #endif
7047 #if !defined EDQUOT
7048 booboo
7049 #endif
7050 #if !defined ECANCELED
7051 booboo
7052 #endif
7053 #if !defined EOWNERDEAD
7054 booboo
7055 #endif
7056 #if !defined ENOTRECOVERABLE
7057 booboo
7058 #endif
7059 #if !defined EILSEQ
7060 booboo
7061 #endif
7062
7063 _ACEOF
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 $EGREP "booboo" >/dev/null 2>&1; then :
7066 gl_cv_header_errno_h_complete=no
7067 else
7068 gl_cv_header_errno_h_complete=yes
7069 fi
7070 rm -f conftest*
7071
7072
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7075 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7076 if test $gl_cv_header_errno_h_complete = yes; then
7077 ERRNO_H=''
7078 else
7079
7080
7081
7082
7083
7084
7085
7086
7087 if test $gl_cv_have_include_next = yes; then
7088 gl_cv_next_errno_h='<'errno.h'>'
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7091 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7092 if ${gl_cv_next_errno_h+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095
7096
7097
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <errno.h>
7101 _ACEOF
7102 case "$host_os" in
7103 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7104 *) gl_absname_cpp="$ac_cpp" ;;
7105 esac
7106
7107 case "$host_os" in
7108 mingw*)
7109 gl_dirsep_regex='[/\\]'
7110 ;;
7111 *)
7112 gl_dirsep_regex='\/'
7113 ;;
7114 esac
7115 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7116 gl_header_literal_regex=`echo 'errno.h' \
7117 | sed -e "$gl_make_literal_regex_sed"`
7118 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7119 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7120 s|^/[^/]|//&|
7121 p
7122 q
7123 }'
7124
7125 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7126 sed -n "$gl_absolute_header_sed"`
7127
7128 gl_header=$gl_cv_absolute_errno_h
7129 gl_cv_next_errno_h='"'$gl_header'"'
7130
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7134 $as_echo "$gl_cv_next_errno_h" >&6; }
7135 fi
7136 NEXT_ERRNO_H=$gl_cv_next_errno_h
7137
7138 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7140 gl_next_as_first_directive='<'errno.h'>'
7141 else
7142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7143 gl_next_as_first_directive=$gl_cv_next_errno_h
7144 fi
7145 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7146
7147
7148
7149
7150 ERRNO_H='errno.h'
7151 fi
7152
7153 if test -n "$ERRNO_H"; then
7154 GL_GENERATE_ERRNO_H_TRUE=
7155 GL_GENERATE_ERRNO_H_FALSE='#'
7156 else
7157 GL_GENERATE_ERRNO_H_TRUE='#'
7158 GL_GENERATE_ERRNO_H_FALSE=
7159 fi
7160
7161
7162 if test -n "$ERRNO_H"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7164 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7165 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171
7172 #include <errno.h>
7173 #ifdef EMULTIHOP
7174 yes
7175 #endif
7176
7177 _ACEOF
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 $EGREP "yes" >/dev/null 2>&1; then :
7180 gl_cv_header_errno_h_EMULTIHOP=yes
7181 else
7182 gl_cv_header_errno_h_EMULTIHOP=no
7183 fi
7184 rm -f conftest*
7185
7186 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189
7190 #define _XOPEN_SOURCE_EXTENDED 1
7191 #include <errno.h>
7192 #ifdef EMULTIHOP
7193 yes
7194 #endif
7195
7196 _ACEOF
7197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7198 $EGREP "yes" >/dev/null 2>&1; then :
7199 gl_cv_header_errno_h_EMULTIHOP=hidden
7200 fi
7201 rm -f conftest*
7202
7203 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7204 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7205 #define _XOPEN_SOURCE_EXTENDED 1
7206 #include <errno.h>
7207 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7208 #include <stdio.h>
7209 #include <stdlib.h>
7210 "; then :
7211
7212 fi
7213
7214 fi
7215 fi
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7219 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7220 case $gl_cv_header_errno_h_EMULTIHOP in
7221 yes | no)
7222 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7223 ;;
7224 *)
7225 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7226 ;;
7227 esac
7228
7229
7230 fi
7231
7232
7233 if test -n "$ERRNO_H"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7235 $as_echo_n "checking for ENOLINK value... " >&6; }
7236 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242
7243 #include <errno.h>
7244 #ifdef ENOLINK
7245 yes
7246 #endif
7247
7248 _ACEOF
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "yes" >/dev/null 2>&1; then :
7251 gl_cv_header_errno_h_ENOLINK=yes
7252 else
7253 gl_cv_header_errno_h_ENOLINK=no
7254 fi
7255 rm -f conftest*
7256
7257 if test $gl_cv_header_errno_h_ENOLINK = no; then
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260
7261 #define _XOPEN_SOURCE_EXTENDED 1
7262 #include <errno.h>
7263 #ifdef ENOLINK
7264 yes
7265 #endif
7266
7267 _ACEOF
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 $EGREP "yes" >/dev/null 2>&1; then :
7270 gl_cv_header_errno_h_ENOLINK=hidden
7271 fi
7272 rm -f conftest*
7273
7274 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7275 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7276 #define _XOPEN_SOURCE_EXTENDED 1
7277 #include <errno.h>
7278 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7279 #include <stdio.h>
7280 #include <stdlib.h>
7281 "; then :
7282
7283 fi
7284
7285 fi
7286 fi
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7290 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7291 case $gl_cv_header_errno_h_ENOLINK in
7292 yes | no)
7293 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7294 ;;
7295 *)
7296 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7297 ;;
7298 esac
7299
7300
7301 fi
7302
7303
7304 if test -n "$ERRNO_H"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7306 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7307 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313
7314 #include <errno.h>
7315 #ifdef EOVERFLOW
7316 yes
7317 #endif
7318
7319 _ACEOF
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "yes" >/dev/null 2>&1; then :
7322 gl_cv_header_errno_h_EOVERFLOW=yes
7323 else
7324 gl_cv_header_errno_h_EOVERFLOW=no
7325 fi
7326 rm -f conftest*
7327
7328 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331
7332 #define _XOPEN_SOURCE_EXTENDED 1
7333 #include <errno.h>
7334 #ifdef EOVERFLOW
7335 yes
7336 #endif
7337
7338 _ACEOF
7339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7340 $EGREP "yes" >/dev/null 2>&1; then :
7341 gl_cv_header_errno_h_EOVERFLOW=hidden
7342 fi
7343 rm -f conftest*
7344
7345 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7346 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7347 #define _XOPEN_SOURCE_EXTENDED 1
7348 #include <errno.h>
7349 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7350 #include <stdio.h>
7351 #include <stdlib.h>
7352 "; then :
7353
7354 fi
7355
7356 fi
7357 fi
7358
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7361 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7362 case $gl_cv_header_errno_h_EOVERFLOW in
7363 yes | no)
7364 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7365 ;;
7366 *)
7367 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7368 ;;
7369 esac
7370
7371
7372 fi
7373
7374
7375
7376
7377
7378
7379 GNULIB_FCNTL=0;
7380 GNULIB_NONBLOCKING=0;
7381 GNULIB_OPEN=0;
7382 GNULIB_OPENAT=0;
7383 HAVE_FCNTL=1;
7384 HAVE_OPENAT=1;
7385 REPLACE_FCNTL=0;
7386 REPLACE_OPEN=0;
7387 REPLACE_OPENAT=0;
7388
7389
7390
7391
7392 for ac_header in $ac_header_list
7393 do :
7394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7395 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7396 "
7397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7398 cat >>confdefs.h <<_ACEOF
7399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 _ACEOF
7401
7402 fi
7403
7404 done
7405
7406
7407
7408
7409
7410
7411 for ac_func in $ac_func_list
7412 do :
7413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7416 cat >>confdefs.h <<_ACEOF
7417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7418 _ACEOF
7419
7420 fi
7421 done
7422
7423
7424
7425
7426
7427
7428
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7431 $as_echo_n "checking for working fcntl.h... " >&6; }
7432 if ${gl_cv_header_working_fcntl_h+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test "$cross_compiling" = yes; then :
7436 gl_cv_header_working_fcntl_h=cross-compiling
7437 else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <sys/types.h>
7441 #include <sys/stat.h>
7442 #if HAVE_UNISTD_H
7443 # include <unistd.h>
7444 #else /* on Windows with MSVC */
7445 # include <io.h>
7446 # include <stdlib.h>
7447 # defined sleep(n) _sleep ((n) * 1000)
7448 #endif
7449 #include <fcntl.h>
7450 #ifndef O_NOATIME
7451 #define O_NOATIME 0
7452 #endif
7453 #ifndef O_NOFOLLOW
7454 #define O_NOFOLLOW 0
7455 #endif
7456 static int const constants[] =
7457 {
7458 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7459 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7460 };
7461
7462 int
7463 main ()
7464 {
7465
7466 int result = !constants;
7467 #if HAVE_SYMLINK
7468 {
7469 static char const sym[] = "conftest.sym";
7470 if (symlink ("/dev/null", sym) != 0)
7471 result |= 2;
7472 else
7473 {
7474 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7475 if (fd >= 0)
7476 {
7477 close (fd);
7478 result |= 4;
7479 }
7480 }
7481 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7482 result |= 2;
7483 else
7484 {
7485 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7486 if (fd >= 0)
7487 {
7488 close (fd);
7489 result |= 4;
7490 }
7491 }
7492 unlink (sym);
7493 }
7494 #endif
7495 {
7496 static char const file[] = "confdefs.h";
7497 int fd = open (file, O_RDONLY | O_NOATIME);
7498 if (fd < 0)
7499 result |= 8;
7500 else
7501 {
7502 struct stat st0;
7503 if (fstat (fd, &st0) != 0)
7504 result |= 16;
7505 else
7506 {
7507 char c;
7508 sleep (1);
7509 if (read (fd, &c, 1) != 1)
7510 result |= 24;
7511 else
7512 {
7513 if (close (fd) != 0)
7514 result |= 32;
7515 else
7516 {
7517 struct stat st1;
7518 if (stat (file, &st1) != 0)
7519 result |= 40;
7520 else
7521 if (st0.st_atime != st1.st_atime)
7522 result |= 64;
7523 }
7524 }
7525 }
7526 }
7527 }
7528 return result;
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_run "$LINENO"; then :
7534 gl_cv_header_working_fcntl_h=yes
7535 else
7536 case $? in #(
7537 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7538 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7539 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7540 *) gl_cv_header_working_fcntl_h='no';;
7541 esac
7542 fi
7543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7544 conftest.$ac_objext conftest.beam conftest.$ac_ext
7545 fi
7546
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7549 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7550
7551 case $gl_cv_header_working_fcntl_h in #(
7552 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7553 *) ac_val=1;;
7554 esac
7555
7556 cat >>confdefs.h <<_ACEOF
7557 #define HAVE_WORKING_O_NOATIME $ac_val
7558 _ACEOF
7559
7560
7561 case $gl_cv_header_working_fcntl_h in #(
7562 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7563 *) ac_val=1;;
7564 esac
7565
7566 cat >>confdefs.h <<_ACEOF
7567 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7568 _ACEOF
7569
7570
7571 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7572 if test "x$ac_cv_type_pid_t" = xyes; then :
7573
7574 else
7575
7576 cat >>confdefs.h <<_ACEOF
7577 #define pid_t int
7578 _ACEOF
7579
7580 fi
7581
7582 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7583 if test "x$ac_cv_type_mode_t" = xyes; then :
7584
7585 else
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define mode_t int
7589 _ACEOF
7590
7591 fi
7592
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7595 $as_echo_n "checking for stdint.h... " >&6; }
7596 if ${gl_cv_header_stdint_h+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <stdint.h>
7603 int
7604 main ()
7605 {
7606 uintmax_t i = (uintmax_t) -1; return !i;
7607 ;
7608 return 0;
7609 }
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7612 gl_cv_header_stdint_h=yes
7613 else
7614 gl_cv_header_stdint_h=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 fi
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7619 $as_echo "$gl_cv_header_stdint_h" >&6; }
7620 if test $gl_cv_header_stdint_h = yes; then
7621
7622 cat >>confdefs.h <<_ACEOF
7623 #define HAVE_STDINT_H_WITH_UINTMAX 1
7624 _ACEOF
7625
7626 fi
7627
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7630 $as_echo_n "checking for inttypes.h... " >&6; }
7631 if ${gl_cv_header_inttypes_h+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636
7637 #include <sys/types.h>
7638 #include <inttypes.h>
7639
7640 int
7641 main ()
7642 {
7643 uintmax_t i = (uintmax_t) -1; return !i;
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 gl_cv_header_inttypes_h=yes
7650 else
7651 gl_cv_header_inttypes_h=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7656 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7657 if test $gl_cv_header_inttypes_h = yes; then
7658
7659 cat >>confdefs.h <<_ACEOF
7660 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7661 _ACEOF
7662
7663 fi
7664
7665
7666
7667
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
7670 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
7671 if ${gl_cv_func_printf_sizes_c99+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674
7675 if test "$cross_compiling" = yes; then :
7676
7677 case "$host_os" in
7678 # Guess yes on glibc systems.
7679 *-gnu*) gl_cv_func_printf_sizes_c99="guessing yes";;
7680 # Guess yes on FreeBSD >= 5.
7681 freebsd[1-4]*) gl_cv_func_printf_sizes_c99="guessing no";;
7682 freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7683 # Guess yes on Mac OS X >= 10.3.
7684 darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";;
7685 darwin*) gl_cv_func_printf_sizes_c99="guessing yes";;
7686 # Guess yes on OpenBSD >= 3.9.
7687 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
7688 gl_cv_func_printf_sizes_c99="guessing no";;
7689 openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7690 # Guess yes on Solaris >= 2.10.
7691 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
7692 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
7693 # Guess yes on NetBSD >= 3.
7694 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7695 gl_cv_func_printf_sizes_c99="guessing no";;
7696 netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7697 # If we don't know, assume the worst.
7698 *) gl_cv_func_printf_sizes_c99="guessing no";;
7699 esac
7700
7701 else
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704
7705 #include <stddef.h>
7706 #include <stdio.h>
7707 #include <string.h>
7708 #include <sys/types.h>
7709 #if HAVE_STDINT_H_WITH_UINTMAX
7710 # include <stdint.h>
7711 #endif
7712 #if HAVE_INTTYPES_H_WITH_UINTMAX
7713 # include <inttypes.h>
7714 #endif
7715 static char buf[100];
7716 int main ()
7717 {
7718 int result = 0;
7719 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
7720 buf[0] = '\0';
7721 if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
7722 || strcmp (buf, "12345671 33") != 0)
7723 result |= 1;
7724 #endif
7725 buf[0] = '\0';
7726 if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
7727 || strcmp (buf, "12345672 33") != 0)
7728 result |= 2;
7729 buf[0] = '\0';
7730 if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
7731 || strcmp (buf, "12345673 33") != 0)
7732 result |= 4;
7733 buf[0] = '\0';
7734 if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
7735 || strcmp (buf, "1.5 33") != 0)
7736 result |= 8;
7737 return result;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_run "$LINENO"; then :
7741 gl_cv_func_printf_sizes_c99=yes
7742 else
7743 gl_cv_func_printf_sizes_c99=no
7744 fi
7745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7746 conftest.$ac_objext conftest.beam conftest.$ac_ext
7747 fi
7748
7749
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
7752 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
7753
7754
7755
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
7757 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
7758 if ${gl_cv_func_printf_long_double+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761
7762 if test "$cross_compiling" = yes; then :
7763
7764 case "$host_os" in
7765 beos*) gl_cv_func_printf_long_double="guessing no";;
7766 mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
7767 *) gl_cv_func_printf_long_double="guessing yes";;
7768 esac
7769
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773
7774 #include <stdio.h>
7775 #include <string.h>
7776 static char buf[10000];
7777 int main ()
7778 {
7779 int result = 0;
7780 buf[0] = '\0';
7781 if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
7782 || strcmp (buf, "1.750000 33") != 0)
7783 result |= 1;
7784 buf[0] = '\0';
7785 if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
7786 || strcmp (buf, "1.750000e+00 33") != 0)
7787 result |= 2;
7788 buf[0] = '\0';
7789 if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
7790 || strcmp (buf, "1.75 33") != 0)
7791 result |= 4;
7792 return result;
7793 }
7794 _ACEOF
7795 if ac_fn_c_try_run "$LINENO"; then :
7796 gl_cv_func_printf_long_double=yes
7797 else
7798 gl_cv_func_printf_long_double=no
7799 fi
7800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7801 conftest.$ac_objext conftest.beam conftest.$ac_ext
7802 fi
7803
7804
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
7807 $as_echo "$gl_cv_func_printf_long_double" >&6; }
7808
7809
7810
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
7812 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
7813 if ${gl_cv_func_printf_infinite+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816
7817 if test "$cross_compiling" = yes; then :
7818
7819 case "$host_os" in
7820 # Guess yes on glibc systems.
7821 *-gnu*) gl_cv_func_printf_infinite="guessing yes";;
7822 # Guess yes on FreeBSD >= 6.
7823 freebsd[1-5]*) gl_cv_func_printf_infinite="guessing no";;
7824 freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
7825 # Guess yes on Mac OS X >= 10.3.
7826 darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";;
7827 darwin*) gl_cv_func_printf_infinite="guessing yes";;
7828 # Guess yes on HP-UX >= 11.
7829 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
7830 hpux*) gl_cv_func_printf_infinite="guessing yes";;
7831 # Guess yes on NetBSD >= 3.
7832 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7833 gl_cv_func_printf_infinite="guessing no";;
7834 netbsd*) gl_cv_func_printf_infinite="guessing yes";;
7835 # Guess yes on BeOS.
7836 beos*) gl_cv_func_printf_infinite="guessing yes";;
7837 # If we don't know, assume the worst.
7838 *) gl_cv_func_printf_infinite="guessing no";;
7839 esac
7840
7841 else
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844
7845 #include <stdio.h>
7846 #include <string.h>
7847 static int
7848 strisnan (const char *string, size_t start_index, size_t end_index)
7849 {
7850 if (start_index < end_index)
7851 {
7852 if (string[start_index] == '-')
7853 start_index++;
7854 if (start_index + 3 <= end_index
7855 && memcmp (string + start_index, "nan", 3) == 0)
7856 {
7857 start_index += 3;
7858 if (start_index == end_index
7859 || (string[start_index] == '(' && string[end_index - 1] == ')'))
7860 return 1;
7861 }
7862 }
7863 return 0;
7864 }
7865 static int
7866 have_minus_zero ()
7867 {
7868 static double plus_zero = 0.0;
7869 double minus_zero = - plus_zero;
7870 return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
7871 }
7872 static char buf[10000];
7873 static double zero = 0.0;
7874 int main ()
7875 {
7876 int result = 0;
7877 if (sprintf (buf, "%f", 1.0 / zero) < 0
7878 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7879 result |= 1;
7880 if (sprintf (buf, "%f", -1.0 / zero) < 0
7881 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7882 result |= 1;
7883 if (sprintf (buf, "%f", zero / zero) < 0
7884 || !strisnan (buf, 0, strlen (buf)))
7885 result |= 2;
7886 if (sprintf (buf, "%e", 1.0 / zero) < 0
7887 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7888 result |= 4;
7889 if (sprintf (buf, "%e", -1.0 / zero) < 0
7890 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7891 result |= 4;
7892 if (sprintf (buf, "%e", zero / zero) < 0
7893 || !strisnan (buf, 0, strlen (buf)))
7894 result |= 8;
7895 if (sprintf (buf, "%g", 1.0 / zero) < 0
7896 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7897 result |= 16;
7898 if (sprintf (buf, "%g", -1.0 / zero) < 0
7899 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7900 result |= 16;
7901 if (sprintf (buf, "%g", zero / zero) < 0
7902 || !strisnan (buf, 0, strlen (buf)))
7903 result |= 32;
7904 /* This test fails on HP-UX 10.20. */
7905 if (have_minus_zero ())
7906 if (sprintf (buf, "%g", - zero) < 0
7907 || strcmp (buf, "-0") != 0)
7908 result |= 64;
7909 return result;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_run "$LINENO"; then :
7913 gl_cv_func_printf_infinite=yes
7914 else
7915 gl_cv_func_printf_infinite=no
7916 fi
7917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7918 conftest.$ac_objext conftest.beam conftest.$ac_ext
7919 fi
7920
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
7924 $as_echo "$gl_cv_func_printf_infinite" >&6; }
7925
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7928 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7929 if ${ac_cv_c_bigendian+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 ac_cv_c_bigendian=unknown
7933 # See if we're dealing with a universal compiler.
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 #ifndef __APPLE_CC__
7937 not a universal capable compiler
7938 #endif
7939 typedef int dummy;
7940
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943
7944 # Check for potential -arch flags. It is not universal unless
7945 # there are at least two -arch flags with different values.
7946 ac_arch=
7947 ac_prev=
7948 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7949 if test -n "$ac_prev"; then
7950 case $ac_word in
7951 i?86 | x86_64 | ppc | ppc64)
7952 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7953 ac_arch=$ac_word
7954 else
7955 ac_cv_c_bigendian=universal
7956 break
7957 fi
7958 ;;
7959 esac
7960 ac_prev=
7961 elif test "x$ac_word" = "x-arch"; then
7962 ac_prev=arch
7963 fi
7964 done
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 if test $ac_cv_c_bigendian = unknown; then
7968 # See if sys/param.h defines the BYTE_ORDER macro.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <sys/types.h>
7972 #include <sys/param.h>
7973
7974 int
7975 main ()
7976 {
7977 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7978 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7979 && LITTLE_ENDIAN)
7980 bogus endian macros
7981 #endif
7982
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 if ac_fn_c_try_compile "$LINENO"; then :
7988 # It does; now see whether it defined to BIG_ENDIAN or not.
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 #include <sys/types.h>
7992 #include <sys/param.h>
7993
7994 int
7995 main ()
7996 {
7997 #if BYTE_ORDER != BIG_ENDIAN
7998 not big endian
7999 #endif
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_c_bigendian=yes
8007 else
8008 ac_cv_c_bigendian=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 fi
8014 if test $ac_cv_c_bigendian = unknown; then
8015 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 #include <limits.h>
8019
8020 int
8021 main ()
8022 {
8023 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8024 bogus endian macros
8025 #endif
8026
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032 # It does; now see whether it defined to _BIG_ENDIAN or not.
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include <limits.h>
8036
8037 int
8038 main ()
8039 {
8040 #ifndef _BIG_ENDIAN
8041 not big endian
8042 #endif
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049 ac_cv_c_bigendian=yes
8050 else
8051 ac_cv_c_bigendian=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 fi
8057 if test $ac_cv_c_bigendian = unknown; then
8058 # Compile a test program.
8059 if test "$cross_compiling" = yes; then :
8060 # Try to guess by grepping values from an object file.
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 short int ascii_mm[] =
8064 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8065 short int ascii_ii[] =
8066 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8067 int use_ascii (int i) {
8068 return ascii_mm[i] + ascii_ii[i];
8069 }
8070 short int ebcdic_ii[] =
8071 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8072 short int ebcdic_mm[] =
8073 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8074 int use_ebcdic (int i) {
8075 return ebcdic_mm[i] + ebcdic_ii[i];
8076 }
8077 extern int foo;
8078
8079 int
8080 main ()
8081 {
8082 return use_ascii (foo) == use_ebcdic (foo);
8083 ;
8084 return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8089 ac_cv_c_bigendian=yes
8090 fi
8091 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8092 if test "$ac_cv_c_bigendian" = unknown; then
8093 ac_cv_c_bigendian=no
8094 else
8095 # finding both strings is unlikely to happen, but who knows?
8096 ac_cv_c_bigendian=unknown
8097 fi
8098 fi
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 int
8106 main ()
8107 {
8108
8109 /* Are we little or big endian? From Harbison&Steele. */
8110 union
8111 {
8112 long int l;
8113 char c[sizeof (long int)];
8114 } u;
8115 u.l = 1;
8116 return u.c[sizeof (long int) - 1] == 1;
8117
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_run "$LINENO"; then :
8123 ac_cv_c_bigendian=no
8124 else
8125 ac_cv_c_bigendian=yes
8126 fi
8127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8128 conftest.$ac_objext conftest.beam conftest.$ac_ext
8129 fi
8130
8131 fi
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8134 $as_echo "$ac_cv_c_bigendian" >&6; }
8135 case $ac_cv_c_bigendian in #(
8136 yes)
8137 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8138 ;; #(
8139 no)
8140 ;; #(
8141 universal)
8142
8143 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8144
8145 ;; #(
8146 *)
8147 as_fn_error $? "unknown endianness
8148 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8149 esac
8150
8151
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8154 $as_echo_n "checking whether long double and double are the same... " >&6; }
8155 if ${gl_cv_long_double_equals_double+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 #include <float.h>
8161 int
8162 main ()
8163 {
8164 typedef int check[sizeof (long double) == sizeof (double)
8165 && LDBL_MANT_DIG == DBL_MANT_DIG
8166 && LDBL_MAX_EXP == DBL_MAX_EXP
8167 && LDBL_MIN_EXP == DBL_MIN_EXP
8168 ? 1 : -1];
8169
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 if ac_fn_c_try_compile "$LINENO"; then :
8175 gl_cv_long_double_equals_double=yes
8176 else
8177 gl_cv_long_double_equals_double=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8183 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8184 if test $gl_cv_long_double_equals_double = yes; then
8185
8186 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8187
8188 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8189 else
8190 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8191 fi
8192
8193
8194
8195
8196
8197
8198
8199 if test -n "$gl_printf_safe"; then
8200
8201 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
8202
8203 fi
8204 case "$gl_cv_func_printf_long_double" in
8205 *yes)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
8207 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
8208 if ${gl_cv_func_printf_infinite_long_double+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211
8212 if test "$cross_compiling" = yes; then :
8213
8214 case "$host_cpu" in
8215 # Guess no on ia64, x86_64, i386.
8216 ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
8217 *)
8218 case "$host_os" in
8219 # Guess yes on glibc systems.
8220 *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8221 # Guess yes on FreeBSD >= 6.
8222 freebsd[1-5]*) gl_cv_func_printf_infinite_long_double="guessing no";;
8223 freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8224 # Guess yes on HP-UX >= 11.
8225 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
8226 hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8227 # If we don't know, assume the worst.
8228 *) gl_cv_func_printf_infinite_long_double="guessing no";;
8229 esac
8230 ;;
8231 esac
8232
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236
8237
8238 #include <stdlib.h>
8239 #if defined __MACH__ && defined __APPLE__
8240 /* Avoid a crash on Mac OS X. */
8241 #include <mach/mach.h>
8242 #include <mach/mach_error.h>
8243 #include <mach/thread_status.h>
8244 #include <mach/exception.h>
8245 #include <mach/task.h>
8246 #include <pthread.h>
8247 /* The exception port on which our thread listens. */
8248 static mach_port_t our_exception_port;
8249 /* The main function of the thread listening for exceptions of type
8250 EXC_BAD_ACCESS. */
8251 static void *
8252 mach_exception_thread (void *arg)
8253 {
8254 /* Buffer for a message to be received. */
8255 struct {
8256 mach_msg_header_t head;
8257 mach_msg_body_t msgh_body;
8258 char data[1024];
8259 } msg;
8260 mach_msg_return_t retval;
8261 /* Wait for a message on the exception port. */
8262 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8263 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8264 if (retval != MACH_MSG_SUCCESS)
8265 abort ();
8266 exit (1);
8267 }
8268 static void
8269 nocrash_init (void)
8270 {
8271 mach_port_t self = mach_task_self ();
8272 /* Allocate a port on which the thread shall listen for exceptions. */
8273 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8274 == KERN_SUCCESS) {
8275 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
8276 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8277 MACH_MSG_TYPE_MAKE_SEND)
8278 == KERN_SUCCESS) {
8279 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
8280 for us. */
8281 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8282 /* Create the thread listening on the exception port. */
8283 pthread_attr_t attr;
8284 pthread_t thread;
8285 if (pthread_attr_init (&attr) == 0
8286 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8287 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8288 pthread_attr_destroy (&attr);
8289 /* Replace the exception port info for these exceptions with our own.
8290 Note that we replace the exception port for the entire task, not only
8291 for a particular thread. This has the effect that when our exception
8292 port gets the message, the thread specific exception port has already
8293 been asked, and we don't need to bother about it.
8294 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
8295 task_set_exception_ports (self, mask, our_exception_port,
8296 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8297 }
8298 }
8299 }
8300 }
8301 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8302 /* Avoid a crash on native Windows. */
8303 #define WIN32_LEAN_AND_MEAN
8304 #include <windows.h>
8305 #include <winerror.h>
8306 static LONG WINAPI
8307 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
8308 {
8309 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
8310 {
8311 case EXCEPTION_ACCESS_VIOLATION:
8312 case EXCEPTION_IN_PAGE_ERROR:
8313 case EXCEPTION_STACK_OVERFLOW:
8314 case EXCEPTION_GUARD_PAGE:
8315 case EXCEPTION_PRIV_INSTRUCTION:
8316 case EXCEPTION_ILLEGAL_INSTRUCTION:
8317 case EXCEPTION_DATATYPE_MISALIGNMENT:
8318 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
8319 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
8320 exit (1);
8321 }
8322 return EXCEPTION_CONTINUE_SEARCH;
8323 }
8324 static void
8325 nocrash_init (void)
8326 {
8327 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
8328 }
8329 #else
8330 /* Avoid a crash on POSIX systems. */
8331 #include <signal.h>
8332 /* A POSIX signal handler. */
8333 static void
8334 exception_handler (int sig)
8335 {
8336 exit (1);
8337 }
8338 static void
8339 nocrash_init (void)
8340 {
8341 #ifdef SIGSEGV
8342 signal (SIGSEGV, exception_handler);
8343 #endif
8344 #ifdef SIGBUS
8345 signal (SIGBUS, exception_handler);
8346 #endif
8347 }
8348 #endif
8349
8350 #include <float.h>
8351 #include <stdio.h>
8352 #include <string.h>
8353 static int
8354 strisnan (const char *string, size_t start_index, size_t end_index)
8355 {
8356 if (start_index < end_index)
8357 {
8358 if (string[start_index] == '-')
8359 start_index++;
8360 if (start_index + 3 <= end_index
8361 && memcmp (string + start_index, "nan", 3) == 0)
8362 {
8363 start_index += 3;
8364 if (start_index == end_index
8365 || (string[start_index] == '(' && string[end_index - 1] == ')'))
8366 return 1;
8367 }
8368 }
8369 return 0;
8370 }
8371 static char buf[10000];
8372 static long double zeroL = 0.0L;
8373 int main ()
8374 {
8375 int result = 0;
8376 nocrash_init();
8377 if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
8378 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8379 result |= 1;
8380 if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
8381 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8382 result |= 1;
8383 if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
8384 || !strisnan (buf, 0, strlen (buf)))
8385 result |= 1;
8386 if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
8387 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8388 result |= 1;
8389 if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
8390 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8391 result |= 1;
8392 if (sprintf (buf, "%Le", zeroL / zeroL) < 0
8393 || !strisnan (buf, 0, strlen (buf)))
8394 result |= 1;
8395 if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
8396 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8397 result |= 1;
8398 if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
8399 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8400 result |= 1;
8401 if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
8402 || !strisnan (buf, 0, strlen (buf)))
8403 result |= 1;
8404 #if CHECK_PRINTF_SAFE && ((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
8405 /* Representation of an 80-bit 'long double' as an initializer for a sequence
8406 of 'unsigned int' words. */
8407 # ifdef WORDS_BIGENDIAN
8408 # define LDBL80_WORDS(exponent,manthi,mantlo) \
8409 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
8410 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
8411 (unsigned int) (mantlo) << 16 \
8412 }
8413 # else
8414 # define LDBL80_WORDS(exponent,manthi,mantlo) \
8415 { mantlo, manthi, exponent }
8416 # endif
8417 { /* Quiet NaN. */
8418 static union { unsigned int word[4]; long double value; } x =
8419 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
8420 if (sprintf (buf, "%Lf", x.value) < 0
8421 || !strisnan (buf, 0, strlen (buf)))
8422 result |= 2;
8423 if (sprintf (buf, "%Le", x.value) < 0
8424 || !strisnan (buf, 0, strlen (buf)))
8425 result |= 2;
8426 if (sprintf (buf, "%Lg", x.value) < 0
8427 || !strisnan (buf, 0, strlen (buf)))
8428 result |= 2;
8429 }
8430 {
8431 /* Signalling NaN. */
8432 static union { unsigned int word[4]; long double value; } x =
8433 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
8434 if (sprintf (buf, "%Lf", x.value) < 0
8435 || !strisnan (buf, 0, strlen (buf)))
8436 result |= 2;
8437 if (sprintf (buf, "%Le", x.value) < 0
8438 || !strisnan (buf, 0, strlen (buf)))
8439 result |= 2;
8440 if (sprintf (buf, "%Lg", x.value) < 0
8441 || !strisnan (buf, 0, strlen (buf)))
8442 result |= 2;
8443 }
8444 { /* Pseudo-NaN. */
8445 static union { unsigned int word[4]; long double value; } x =
8446 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
8447 if (sprintf (buf, "%Lf", x.value) < 0
8448 || !strisnan (buf, 0, strlen (buf)))
8449 result |= 4;
8450 if (sprintf (buf, "%Le", x.value) < 0
8451 || !strisnan (buf, 0, strlen (buf)))
8452 result |= 4;
8453 if (sprintf (buf, "%Lg", x.value) < 0
8454 || !strisnan (buf, 0, strlen (buf)))
8455 result |= 4;
8456 }
8457 { /* Pseudo-Infinity. */
8458 static union { unsigned int word[4]; long double value; } x =
8459 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
8460 if (sprintf (buf, "%Lf", x.value) < 0
8461 || !strisnan (buf, 0, strlen (buf)))
8462 result |= 8;
8463 if (sprintf (buf, "%Le", x.value) < 0
8464 || !strisnan (buf, 0, strlen (buf)))
8465 result |= 8;
8466 if (sprintf (buf, "%Lg", x.value) < 0
8467 || !strisnan (buf, 0, strlen (buf)))
8468 result |= 8;
8469 }
8470 { /* Pseudo-Zero. */
8471 static union { unsigned int word[4]; long double value; } x =
8472 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
8473 if (sprintf (buf, "%Lf", x.value) < 0
8474 || !strisnan (buf, 0, strlen (buf)))
8475 result |= 16;
8476 if (sprintf (buf, "%Le", x.value) < 0
8477 || !strisnan (buf, 0, strlen (buf)))
8478 result |= 16;
8479 if (sprintf (buf, "%Lg", x.value) < 0
8480 || !strisnan (buf, 0, strlen (buf)))
8481 result |= 16;
8482 }
8483 { /* Unnormalized number. */
8484 static union { unsigned int word[4]; long double value; } x =
8485 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
8486 if (sprintf (buf, "%Lf", x.value) < 0
8487 || !strisnan (buf, 0, strlen (buf)))
8488 result |= 32;
8489 if (sprintf (buf, "%Le", x.value) < 0
8490 || !strisnan (buf, 0, strlen (buf)))
8491 result |= 32;
8492 if (sprintf (buf, "%Lg", x.value) < 0
8493 || !strisnan (buf, 0, strlen (buf)))
8494 result |= 32;
8495 }
8496 { /* Pseudo-Denormal. */
8497 static union { unsigned int word[4]; long double value; } x =
8498 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
8499 if (sprintf (buf, "%Lf", x.value) < 0
8500 || !strisnan (buf, 0, strlen (buf)))
8501 result |= 64;
8502 if (sprintf (buf, "%Le", x.value) < 0
8503 || !strisnan (buf, 0, strlen (buf)))
8504 result |= 64;
8505 if (sprintf (buf, "%Lg", x.value) < 0
8506 || !strisnan (buf, 0, strlen (buf)))
8507 result |= 64;
8508 }
8509 #endif
8510 return result;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_run "$LINENO"; then :
8514 gl_cv_func_printf_infinite_long_double=yes
8515 else
8516 gl_cv_func_printf_infinite_long_double=no
8517 fi
8518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8519 conftest.$ac_objext conftest.beam conftest.$ac_ext
8520 fi
8521
8522
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
8525 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
8526 ;;
8527 *)
8528 gl_cv_func_printf_infinite_long_double="irrelevant"
8529 ;;
8530 esac
8531
8532
8533
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
8535 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
8536 if ${gl_cv_func_printf_directive_a+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539
8540 if test "$cross_compiling" = yes; then :
8541
8542 case "$host_os" in
8543 # Guess yes on glibc >= 2.5 systems.
8544 *-gnu*)
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547
8548 #include <features.h>
8549 #ifdef __GNU_LIBRARY__
8550 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
8551 BZ2908
8552 #endif
8553 #endif
8554
8555 _ACEOF
8556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8557 $EGREP "BZ2908" >/dev/null 2>&1; then :
8558 gl_cv_func_printf_directive_a="guessing yes"
8559 else
8560 gl_cv_func_printf_directive_a="guessing no"
8561 fi
8562 rm -f conftest*
8563
8564 ;;
8565 # If we don't know, assume the worst.
8566 *) gl_cv_func_printf_directive_a="guessing no";;
8567 esac
8568
8569 else
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572
8573 #include <stdio.h>
8574 #include <string.h>
8575 static char buf[100];
8576 static double zero = 0.0;
8577 int main ()
8578 {
8579 int result = 0;
8580 if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
8581 || (strcmp (buf, "0x1.922p+1 33") != 0
8582 && strcmp (buf, "0x3.244p+0 33") != 0
8583 && strcmp (buf, "0x6.488p-1 33") != 0
8584 && strcmp (buf, "0xc.91p-2 33") != 0))
8585 result |= 1;
8586 if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
8587 || (strcmp (buf, "-0X1.922P+1 33") != 0
8588 && strcmp (buf, "-0X3.244P+0 33") != 0
8589 && strcmp (buf, "-0X6.488P-1 33") != 0
8590 && strcmp (buf, "-0XC.91P-2 33") != 0))
8591 result |= 2;
8592 /* This catches a FreeBSD 6.1 bug: it doesn't round. */
8593 if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
8594 || (strcmp (buf, "0x1.83p+0 33") != 0
8595 && strcmp (buf, "0x3.05p-1 33") != 0
8596 && strcmp (buf, "0x6.0ap-2 33") != 0
8597 && strcmp (buf, "0xc.14p-3 33") != 0))
8598 result |= 4;
8599 /* This catches a FreeBSD 6.1 bug. See
8600 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
8601 if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
8602 || buf[0] == '0')
8603 result |= 8;
8604 /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug. */
8605 if (sprintf (buf, "%.1a", 1.999) < 0
8606 || (strcmp (buf, "0x1.0p+1") != 0
8607 && strcmp (buf, "0x2.0p+0") != 0
8608 && strcmp (buf, "0x4.0p-1") != 0
8609 && strcmp (buf, "0x8.0p-2") != 0))
8610 result |= 16;
8611 /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
8612 glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>. */
8613 if (sprintf (buf, "%.1La", 1.999L) < 0
8614 || (strcmp (buf, "0x1.0p+1") != 0
8615 && strcmp (buf, "0x2.0p+0") != 0
8616 && strcmp (buf, "0x4.0p-1") != 0
8617 && strcmp (buf, "0x8.0p-2") != 0))
8618 result |= 32;
8619 return result;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_run "$LINENO"; then :
8623 gl_cv_func_printf_directive_a=yes
8624 else
8625 gl_cv_func_printf_directive_a=no
8626 fi
8627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8628 conftest.$ac_objext conftest.beam conftest.$ac_ext
8629 fi
8630
8631
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
8634 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
8635
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
8639 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
8640 if ${gl_cv_func_printf_directive_f+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643
8644 if test "$cross_compiling" = yes; then :
8645
8646 case "$host_os" in
8647 # Guess yes on glibc systems.
8648 *-gnu*) gl_cv_func_printf_directive_f="guessing yes";;
8649 # Guess yes on FreeBSD >= 6.
8650 freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";;
8651 freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
8652 # Guess yes on Mac OS X >= 10.3.
8653 darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";;
8654 darwin*) gl_cv_func_printf_directive_f="guessing yes";;
8655 # Guess yes on Solaris >= 2.10.
8656 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
8657 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
8658 # If we don't know, assume the worst.
8659 *) gl_cv_func_printf_directive_f="guessing no";;
8660 esac
8661
8662 else
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665
8666 #include <stdio.h>
8667 #include <string.h>
8668 static char buf[100];
8669 static double zero = 0.0;
8670 int main ()
8671 {
8672 int result = 0;
8673 if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
8674 || strcmp (buf, "1234567.000000 33") != 0)
8675 result |= 1;
8676 if (sprintf (buf, "%F", 1.0 / zero) < 0
8677 || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
8678 result |= 2;
8679 /* This catches a Cygwin 1.5.x bug. */
8680 if (sprintf (buf, "%.F", 1234.0) < 0
8681 || strcmp (buf, "1234") != 0)
8682 result |= 4;
8683 return result;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_run "$LINENO"; then :
8687 gl_cv_func_printf_directive_f=yes
8688 else
8689 gl_cv_func_printf_directive_f=no
8690 fi
8691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8692 conftest.$ac_objext conftest.beam conftest.$ac_ext
8693 fi
8694
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
8698 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
8699
8700
8701
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
8703 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
8704 if ${gl_cv_func_printf_directive_n+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707
8708 if test "$cross_compiling" = yes; then :
8709
8710 case "$host_os" in
8711 mingw*) gl_cv_func_printf_directive_n="guessing no";;
8712 *) gl_cv_func_printf_directive_n="guessing yes";;
8713 esac
8714
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718
8719 #include <stdio.h>
8720 #include <stdlib.h>
8721 #include <string.h>
8722 #ifdef _MSC_VER
8723 /* See page about "Parameter Validation" on msdn.microsoft.com. */
8724 static void cdecl
8725 invalid_parameter_handler (const wchar_t *expression,
8726 const wchar_t *function,
8727 const wchar_t *file, unsigned int line,
8728 uintptr_t dummy)
8729 {
8730 exit (1);
8731 }
8732 #endif
8733 static char fmtstring[10];
8734 static char buf[100];
8735 int main ()
8736 {
8737 int count = -1;
8738 #ifdef _MSC_VER
8739 _set_invalid_parameter_handler (invalid_parameter_handler);
8740 #endif
8741 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2)
8742 support %n in format strings in read-only memory but not in writable
8743 memory. */
8744 strcpy (fmtstring, "%d %n");
8745 if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
8746 || strcmp (buf, "123 ") != 0
8747 || count != 4)
8748 return 1;
8749 return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_run "$LINENO"; then :
8753 gl_cv_func_printf_directive_n=yes
8754 else
8755 gl_cv_func_printf_directive_n=no
8756 fi
8757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8758 conftest.$ac_objext conftest.beam conftest.$ac_ext
8759 fi
8760
8761
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
8764 $as_echo "$gl_cv_func_printf_directive_n" >&6; }
8765
8766
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
8769 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
8770 if ${gl_cv_func_printf_directive_ls+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773
8774 if test "$cross_compiling" = yes; then :
8775
8776 case "$host_os" in
8777 openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
8778 irix*) gl_cv_func_printf_directive_ls="guessing no";;
8779 solaris*) gl_cv_func_printf_directive_ls="guessing no";;
8780 cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
8781 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
8782 *) gl_cv_func_printf_directive_ls="guessing yes";;
8783 esac
8784
8785 else
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8788
8789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8790 <wchar.h>.
8791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8792 included before <wchar.h>. */
8793 #include <stddef.h>
8794 #include <stdio.h>
8795 #include <time.h>
8796 #include <wchar.h>
8797 #include <string.h>
8798 int main ()
8799 {
8800 int result = 0;
8801 char buf[100];
8802 /* Test whether %ls works at all.
8803 This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
8804 Cygwin 1.5. */
8805 {
8806 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
8807 buf[0] = '\0';
8808 if (sprintf (buf, "%ls", wstring) < 0
8809 || strcmp (buf, "abc") != 0)
8810 result |= 1;
8811 }
8812 /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
8813 assertion failure inside libc), but not on OpenBSD 4.0. */
8814 {
8815 static const wchar_t wstring[] = { 'a', 0 };
8816 buf[0] = '\0';
8817 if (sprintf (buf, "%ls", wstring) < 0
8818 || strcmp (buf, "a") != 0)
8819 result |= 2;
8820 }
8821 /* Test whether precisions in %ls are supported as specified in ISO C 99
8822 section 7.19.6.1:
8823 "If a precision is specified, no more than that many bytes are written
8824 (including shift sequences, if any), and the array shall contain a
8825 null wide character if, to equal the multibyte character sequence
8826 length given by the precision, the function would need to access a
8827 wide character one past the end of the array."
8828 This test fails on Solaris 10. */
8829 {
8830 static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
8831 buf[0] = '\0';
8832 if (sprintf (buf, "%.2ls", wstring) < 0
8833 || strcmp (buf, "ab") != 0)
8834 result |= 8;
8835 }
8836 return result;
8837 }
8838 _ACEOF
8839 if ac_fn_c_try_run "$LINENO"; then :
8840 gl_cv_func_printf_directive_ls=yes
8841 else
8842 gl_cv_func_printf_directive_ls=no
8843 fi
8844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8845 conftest.$ac_objext conftest.beam conftest.$ac_ext
8846 fi
8847
8848
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
8851 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
8852
8853
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
8856 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
8857 if ${gl_cv_func_printf_positions+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860
8861 if test "$cross_compiling" = yes; then :
8862
8863 case "$host_os" in
8864 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
8865 gl_cv_func_printf_positions="guessing no";;
8866 beos*) gl_cv_func_printf_positions="guessing no";;
8867 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
8868 *) gl_cv_func_printf_positions="guessing yes";;
8869 esac
8870
8871 else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874
8875 #include <stdio.h>
8876 #include <string.h>
8877 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8878 dollar expansion (possibly an autoconf bug). */
8879 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8880 static char buf[100];
8881 int main ()
8882 {
8883 sprintf (buf, format, 33, 55);
8884 return (strcmp (buf, "55 33") != 0);
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_run "$LINENO"; then :
8888 gl_cv_func_printf_positions=yes
8889 else
8890 gl_cv_func_printf_positions=no
8891 fi
8892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8893 conftest.$ac_objext conftest.beam conftest.$ac_ext
8894 fi
8895
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
8899 $as_echo "$gl_cv_func_printf_positions" >&6; }
8900
8901
8902
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
8904 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
8905 if ${gl_cv_func_printf_flag_grouping+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908
8909 if test "$cross_compiling" = yes; then :
8910
8911 case "$host_os" in
8912 cygwin*) gl_cv_func_printf_flag_grouping="guessing no";;
8913 netbsd*) gl_cv_func_printf_flag_grouping="guessing no";;
8914 mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
8915 *) gl_cv_func_printf_flag_grouping="guessing yes";;
8916 esac
8917
8918 else
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921
8922 #include <stdio.h>
8923 #include <string.h>
8924 static char buf[100];
8925 int main ()
8926 {
8927 if (sprintf (buf, "%'d %d", 1234567, 99) < 0
8928 || buf[strlen (buf) - 1] != '9')
8929 return 1;
8930 return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_c_try_run "$LINENO"; then :
8934 gl_cv_func_printf_flag_grouping=yes
8935 else
8936 gl_cv_func_printf_flag_grouping=no
8937 fi
8938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8939 conftest.$ac_objext conftest.beam conftest.$ac_ext
8940 fi
8941
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
8945 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
8946
8947
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
8950 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
8951 if ${gl_cv_func_printf_flag_leftadjust+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954
8955 if test "$cross_compiling" = yes; then :
8956
8957 case "$host_os" in
8958 # Guess yes on HP-UX 11.
8959 hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
8960 # Guess no on HP-UX 10 and older.
8961 hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";;
8962 # Guess yes otherwise.
8963 *) gl_cv_func_printf_flag_leftadjust="guessing yes";;
8964 esac
8965
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969
8970 #include <stdio.h>
8971 #include <string.h>
8972 static char buf[100];
8973 int main ()
8974 {
8975 /* Check that a '-' flag is not annihilated by a negative width. */
8976 if (sprintf (buf, "a%-*sc", -3, "b") < 0
8977 || strcmp (buf, "ab c") != 0)
8978 return 1;
8979 return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_c_try_run "$LINENO"; then :
8983 gl_cv_func_printf_flag_leftadjust=yes
8984 else
8985 gl_cv_func_printf_flag_leftadjust=no
8986 fi
8987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8988 conftest.$ac_objext conftest.beam conftest.$ac_ext
8989 fi
8990
8991
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
8994 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
8995
8996
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
8999 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
9000 if ${gl_cv_func_printf_flag_zero+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003
9004 if test "$cross_compiling" = yes; then :
9005
9006 case "$host_os" in
9007 # Guess yes on glibc systems.
9008 *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
9009 # Guess yes on BeOS.
9010 beos*) gl_cv_func_printf_flag_zero="guessing yes";;
9011 # If we don't know, assume the worst.
9012 *) gl_cv_func_printf_flag_zero="guessing no";;
9013 esac
9014
9015 else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018
9019 #include <stdio.h>
9020 #include <string.h>
9021 static char buf[100];
9022 static double zero = 0.0;
9023 int main ()
9024 {
9025 if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
9026 || (strcmp (buf, " inf") != 0
9027 && strcmp (buf, " infinity") != 0))
9028 return 1;
9029 return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_run "$LINENO"; then :
9033 gl_cv_func_printf_flag_zero=yes
9034 else
9035 gl_cv_func_printf_flag_zero=no
9036 fi
9037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9038 conftest.$ac_objext conftest.beam conftest.$ac_ext
9039 fi
9040
9041
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
9044 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
9045
9046
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
9049 $as_echo_n "checking whether printf supports large precisions... " >&6; }
9050 if ${gl_cv_func_printf_precision+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053
9054 if test "$cross_compiling" = yes; then :
9055
9056 case "$host_os" in
9057 # Guess no only on Solaris, native Windows, and BeOS systems.
9058 solaris*) gl_cv_func_printf_precision="guessing no" ;;
9059 mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
9060 beos*) gl_cv_func_printf_precision="guessing no" ;;
9061 *) gl_cv_func_printf_precision="guessing yes" ;;
9062 esac
9063
9064 else
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067
9068 #include <stdio.h>
9069 #include <string.h>
9070 static char buf[5000];
9071 int main ()
9072 {
9073 int result = 0;
9074 #ifdef __BEOS__
9075 /* On BeOS, this would crash and show a dialog box. Avoid the crash. */
9076 return 1;
9077 #endif
9078 if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
9079 result |= 1;
9080 if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
9081 result |= 2;
9082 if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
9083 || buf[0] != '1')
9084 result |= 4;
9085 if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
9086 || buf[0] != '1')
9087 result |= 4;
9088 return result;
9089 }
9090 _ACEOF
9091 if ac_fn_c_try_run "$LINENO"; then :
9092 gl_cv_func_printf_precision=yes
9093 else
9094 gl_cv_func_printf_precision=no
9095 fi
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9097 conftest.$ac_objext conftest.beam conftest.$ac_ext
9098 fi
9099
9100
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
9103 $as_echo "$gl_cv_func_printf_precision" >&6; }
9104
9105
9106 gl_cv_c_multiarch=no
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #ifndef __APPLE_CC__
9110 not a universal capable compiler
9111 #endif
9112 typedef int dummy;
9113
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"; then :
9116
9117 arch=
9118 prev=
9119 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9120 if test -n "$prev"; then
9121 case $word in
9122 i?86 | x86_64 | ppc | ppc64)
9123 if test -z "$arch" || test "$arch" = "$word"; then
9124 arch="$word"
9125 else
9126 gl_cv_c_multiarch=yes
9127 fi
9128 ;;
9129 esac
9130 prev=
9131 else
9132 if test "x$word" = "x-arch"; then
9133 prev=arch
9134 fi
9135 fi
9136 done
9137
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 if test $gl_cv_c_multiarch = yes; then
9141 APPLE_UNIVERSAL_BUILD=1
9142 else
9143 APPLE_UNIVERSAL_BUILD=0
9144 fi
9145
9146
9147
9148
9149
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
9151 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
9152 if ${gl_cv_func_printf_enomem+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155
9156 gl_cv_func_printf_enomem="guessing no"
9157 if test "$cross_compiling" = no; then
9158 if test $APPLE_UNIVERSAL_BUILD = 0; then
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161
9162
9163 #include <stdlib.h>
9164 #if defined __MACH__ && defined __APPLE__
9165 /* Avoid a crash on Mac OS X. */
9166 #include <mach/mach.h>
9167 #include <mach/mach_error.h>
9168 #include <mach/thread_status.h>
9169 #include <mach/exception.h>
9170 #include <mach/task.h>
9171 #include <pthread.h>
9172 /* The exception port on which our thread listens. */
9173 static mach_port_t our_exception_port;
9174 /* The main function of the thread listening for exceptions of type
9175 EXC_BAD_ACCESS. */
9176 static void *
9177 mach_exception_thread (void *arg)
9178 {
9179 /* Buffer for a message to be received. */
9180 struct {
9181 mach_msg_header_t head;
9182 mach_msg_body_t msgh_body;
9183 char data1024;
9184 } msg;
9185 mach_msg_return_t retval;
9186 /* Wait for a message on the exception port. */
9187 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9188 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9189 if (retval != MACH_MSG_SUCCESS)
9190 abort ();
9191 exit (1);
9192 }
9193 static void
9194 nocrash_init (void)
9195 {
9196 mach_port_t self = mach_task_self ();
9197 /* Allocate a port on which the thread shall listen for exceptions. */
9198 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9199 == KERN_SUCCESS) {
9200 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9201 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9202 MACH_MSG_TYPE_MAKE_SEND)
9203 == KERN_SUCCESS) {
9204 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9205 for us. */
9206 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9207 /* Create the thread listening on the exception port. */
9208 pthread_attr_t attr;
9209 pthread_t thread;
9210 if (pthread_attr_init (&attr) == 0
9211 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9212 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9213 pthread_attr_destroy (&attr);
9214 /* Replace the exception port info for these exceptions with our own.
9215 Note that we replace the exception port for the entire task, not only
9216 for a particular thread. This has the effect that when our exception
9217 port gets the message, the thread specific exception port has already
9218 been asked, and we don't need to bother about it.
9219 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9220 task_set_exception_ports (self, mask, our_exception_port,
9221 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9222 }
9223 }
9224 }
9225 }
9226 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9227 /* Avoid a crash on native Windows. */
9228 #define WIN32_LEAN_AND_MEAN
9229 #include <windows.h>
9230 #include <winerror.h>
9231 static LONG WINAPI
9232 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9233 {
9234 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9235 {
9236 case EXCEPTION_ACCESS_VIOLATION:
9237 case EXCEPTION_IN_PAGE_ERROR:
9238 case EXCEPTION_STACK_OVERFLOW:
9239 case EXCEPTION_GUARD_PAGE:
9240 case EXCEPTION_PRIV_INSTRUCTION:
9241 case EXCEPTION_ILLEGAL_INSTRUCTION:
9242 case EXCEPTION_DATATYPE_MISALIGNMENT:
9243 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9244 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9245 exit (1);
9246 }
9247 return EXCEPTION_CONTINUE_SEARCH;
9248 }
9249 static void
9250 nocrash_init (void)
9251 {
9252 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9253 }
9254 #else
9255 /* Avoid a crash on POSIX systems. */
9256 #include <signal.h>
9257 /* A POSIX signal handler. */
9258 static void
9259 exception_handler (int sig)
9260 {
9261 exit (1);
9262 }
9263 static void
9264 nocrash_init (void)
9265 {
9266 #ifdef SIGSEGV
9267 signal (SIGSEGV, exception_handler);
9268 #endif
9269 #ifdef SIGBUS
9270 signal (SIGBUS, exception_handler);
9271 #endif
9272 }
9273 #endif
9274
9275 #include <stdio.h>
9276 #include <sys/types.h>
9277 #include <sys/time.h>
9278 #include <sys/resource.h>
9279 #include <errno.h>
9280 int main()
9281 {
9282 struct rlimit limit;
9283 int ret;
9284 nocrash_init ();
9285 /* Some printf implementations allocate temporary space with malloc. */
9286 /* On BSD systems, malloc() is limited by RLIMIT_DATA. */
9287 #ifdef RLIMIT_DATA
9288 if (getrlimit (RLIMIT_DATA, &limit) < 0)
9289 return 77;
9290 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9291 limit.rlim_max = 5000000;
9292 limit.rlim_cur = limit.rlim_max;
9293 if (setrlimit (RLIMIT_DATA, &limit) < 0)
9294 return 77;
9295 #endif
9296 /* On Linux systems, malloc() is limited by RLIMIT_AS. */
9297 #ifdef RLIMIT_AS
9298 if (getrlimit (RLIMIT_AS, &limit) < 0)
9299 return 77;
9300 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9301 limit.rlim_max = 5000000;
9302 limit.rlim_cur = limit.rlim_max;
9303 if (setrlimit (RLIMIT_AS, &limit) < 0)
9304 return 77;
9305 #endif
9306 /* Some printf implementations allocate temporary space on the stack. */
9307 #ifdef RLIMIT_STACK
9308 if (getrlimit (RLIMIT_STACK, &limit) < 0)
9309 return 77;
9310 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9311 limit.rlim_max = 5000000;
9312 limit.rlim_cur = limit.rlim_max;
9313 if (setrlimit (RLIMIT_STACK, &limit) < 0)
9314 return 77;
9315 #endif
9316 ret = printf ("%.5000000f", 1.0);
9317 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
9318 }
9319
9320 _ACEOF
9321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9322 (eval $ac_link) 2>&5
9323 ac_status=$?
9324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9325 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9326 (./conftest 2>&5
9327 result=$?
9328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
9329 if test $result != 0 && test $result != 77; then result=1; fi
9330 exit $result
9331 ) >/dev/null 2>/dev/null
9332 case $? in
9333 0) gl_cv_func_printf_enomem="yes" ;;
9334 77) gl_cv_func_printf_enomem="guessing no" ;;
9335 *) gl_cv_func_printf_enomem="no" ;;
9336 esac
9337 else
9338 gl_cv_func_printf_enomem="guessing no"
9339 fi
9340 rm -fr conftest*
9341 else
9342 gl_cv_func_printf_enomem="guessing no"
9343 fi
9344 fi
9345 if test "$gl_cv_func_printf_enomem" = "guessing no"; then
9346 case "$host_os" in
9347 # Guess yes on glibc systems.
9348 *-gnu*) gl_cv_func_printf_enomem="guessing yes";;
9349 # Guess yes on Solaris.
9350 solaris*) gl_cv_func_printf_enomem="guessing yes";;
9351 # Guess yes on AIX.
9352 aix*) gl_cv_func_printf_enomem="guessing yes";;
9353 # Guess yes on HP-UX/hppa.
9354 hpux*) case "$host_cpu" in
9355 hppa*) gl_cv_func_printf_enomem="guessing yes";;
9356 *) gl_cv_func_printf_enomem="guessing no";;
9357 esac
9358 ;;
9359 # Guess yes on IRIX.
9360 irix*) gl_cv_func_printf_enomem="guessing yes";;
9361 # Guess yes on OSF/1.
9362 osf*) gl_cv_func_printf_enomem="guessing yes";;
9363 # Guess yes on BeOS.
9364 beos*) gl_cv_func_printf_enomem="guessing yes";;
9365 # Guess yes on Haiku.
9366 haiku*) gl_cv_func_printf_enomem="guessing yes";;
9367 # If we don't know, assume the worst.
9368 *) gl_cv_func_printf_enomem="guessing no";;
9369 esac
9370 fi
9371
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
9374 $as_echo "$gl_cv_func_printf_enomem" >&6; }
9375
9376
9377
9378 case "$gl_cv_func_printf_long_double" in
9379 *yes)
9380 ;;
9381 *)
9382
9383 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
9384
9385 ;;
9386 esac
9387
9388
9389
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9392 $as_echo_n "checking for unsigned long long int... " >&6; }
9393 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 ac_cv_type_unsigned_long_long_int=yes
9397 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400
9401 /* For now, do not test the preprocessor; as of 2007 there are too many
9402 implementations with broken preprocessors. Perhaps this can
9403 be revisited in 2012. In the meantime, code should not expect
9404 #if to work with literals wider than 32 bits. */
9405 /* Test literals. */
9406 long long int ll = 9223372036854775807ll;
9407 long long int nll = -9223372036854775807LL;
9408 unsigned long long int ull = 18446744073709551615ULL;
9409 /* Test constant expressions. */
9410 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9411 ? 1 : -1)];
9412 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9413 ? 1 : -1)];
9414 int i = 63;
9415 int
9416 main ()
9417 {
9418 /* Test availability of runtime routines for shift and division. */
9419 long long int llmax = 9223372036854775807ll;
9420 unsigned long long int ullmax = 18446744073709551615ull;
9421 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9422 | (llmax / ll) | (llmax % ll)
9423 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9424 | (ullmax / ull) | (ullmax % ull));
9425 ;
9426 return 0;
9427 }
9428
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431
9432 else
9433 ac_cv_type_unsigned_long_long_int=no
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 fi
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9440 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9441 if test $ac_cv_type_unsigned_long_long_int = yes; then
9442
9443 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9444
9445 fi
9446
9447
9448
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9450 $as_echo_n "checking for long long int... " >&6; }
9451 if ${ac_cv_type_long_long_int+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 ac_cv_type_long_long_int=yes
9455 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9456 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9457 if test $ac_cv_type_long_long_int = yes; then
9458 if test "$cross_compiling" = yes; then :
9459 :
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 #include <limits.h>
9464 #ifndef LLONG_MAX
9465 # define HALF \
9466 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9467 # define LLONG_MAX (HALF - 1 + HALF)
9468 #endif
9469 int
9470 main ()
9471 {
9472 long long int n = 1;
9473 int i;
9474 for (i = 0; ; i++)
9475 {
9476 long long int m = n << i;
9477 if (m >> i != n)
9478 return 1;
9479 if (LLONG_MAX / 2 < m)
9480 break;
9481 }
9482 return 0;
9483 ;
9484 return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_run "$LINENO"; then :
9488
9489 else
9490 ac_cv_type_long_long_int=no
9491 fi
9492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9493 conftest.$ac_objext conftest.beam conftest.$ac_ext
9494 fi
9495
9496 fi
9497 fi
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9500 $as_echo "$ac_cv_type_long_long_int" >&6; }
9501 if test $ac_cv_type_long_long_int = yes; then
9502
9503 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9504
9505 fi
9506
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9509 $as_echo_n "checking for wchar_t... " >&6; }
9510 if ${gt_cv_c_wchar_t+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 #include <stddef.h>
9516 wchar_t foo = (wchar_t)'\0';
9517 int
9518 main ()
9519 {
9520
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 if ac_fn_c_try_compile "$LINENO"; then :
9526 gt_cv_c_wchar_t=yes
9527 else
9528 gt_cv_c_wchar_t=no
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9533 $as_echo "$gt_cv_c_wchar_t" >&6; }
9534 if test $gt_cv_c_wchar_t = yes; then
9535
9536 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9537
9538 fi
9539
9540
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9542 $as_echo_n "checking for wint_t... " >&6; }
9543 if ${gt_cv_c_wint_t+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548
9549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9550 <wchar.h>.
9551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9552 before <wchar.h>. */
9553 #include <stddef.h>
9554 #include <stdio.h>
9555 #include <time.h>
9556 #include <wchar.h>
9557 wint_t foo = (wchar_t)'\0';
9558 int
9559 main ()
9560 {
9561
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 if ac_fn_c_try_compile "$LINENO"; then :
9567 gt_cv_c_wint_t=yes
9568 else
9569 gt_cv_c_wint_t=no
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9574 $as_echo "$gt_cv_c_wint_t" >&6; }
9575 if test $gt_cv_c_wint_t = yes; then
9576
9577 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9578
9579 fi
9580
9581
9582
9583
9584
9585 if test $ac_cv_header_features_h = yes; then
9586 HAVE_FEATURES_H=1
9587 else
9588 HAVE_FEATURES_H=0
9589 fi
9590
9591
9592
9593
9594
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9596 $as_echo_n "checking for intmax_t... " >&6; }
9597 if ${gt_cv_c_intmax_t+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602
9603 #include <stddef.h>
9604 #include <stdlib.h>
9605 #if HAVE_STDINT_H_WITH_UINTMAX
9606 #include <stdint.h>
9607 #endif
9608 #if HAVE_INTTYPES_H_WITH_UINTMAX
9609 #include <inttypes.h>
9610 #endif
9611
9612 int
9613 main ()
9614 {
9615 intmax_t x = -1; return !x;
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 if ac_fn_c_try_compile "$LINENO"; then :
9621 gt_cv_c_intmax_t=yes
9622 else
9623 gt_cv_c_intmax_t=no
9624 fi
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9628 $as_echo "$gt_cv_c_intmax_t" >&6; }
9629 if test $gt_cv_c_intmax_t = yes; then
9630
9631 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9632
9633 else
9634
9635 test $ac_cv_type_long_long_int = yes \
9636 && ac_type='long long' \
9637 || ac_type='long'
9638
9639 cat >>confdefs.h <<_ACEOF
9640 #define intmax_t $ac_type
9641 _ACEOF
9642
9643 fi
9644
9645
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9647 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9648 if ${gl_cv_cc_double_expbit0+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651
9652 if test "$cross_compiling" = yes; then :
9653
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656
9657 #if defined arm || defined __arm || defined __arm__
9658 mixed_endianness
9659 #endif
9660
9661 _ACEOF
9662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9663 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9664 gl_cv_cc_double_expbit0="unknown"
9665 else
9666
9667 :
9668 if ${ac_cv_c_bigendian+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 ac_cv_c_bigendian=unknown
9672 # See if we're dealing with a universal compiler.
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #ifndef __APPLE_CC__
9676 not a universal capable compiler
9677 #endif
9678 typedef int dummy;
9679
9680 _ACEOF
9681 if ac_fn_c_try_compile "$LINENO"; then :
9682
9683 # Check for potential -arch flags. It is not universal unless
9684 # there are at least two -arch flags with different values.
9685 ac_arch=
9686 ac_prev=
9687 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9688 if test -n "$ac_prev"; then
9689 case $ac_word in
9690 i?86 | x86_64 | ppc | ppc64)
9691 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9692 ac_arch=$ac_word
9693 else
9694 ac_cv_c_bigendian=universal
9695 break
9696 fi
9697 ;;
9698 esac
9699 ac_prev=
9700 elif test "x$ac_word" = "x-arch"; then
9701 ac_prev=arch
9702 fi
9703 done
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 if test $ac_cv_c_bigendian = unknown; then
9707 # See if sys/param.h defines the BYTE_ORDER macro.
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #include <sys/types.h>
9711 #include <sys/param.h>
9712
9713 int
9714 main ()
9715 {
9716 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9717 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9718 && LITTLE_ENDIAN)
9719 bogus endian macros
9720 #endif
9721
9722 ;
9723 return 0;
9724 }
9725 _ACEOF
9726 if ac_fn_c_try_compile "$LINENO"; then :
9727 # It does; now see whether it defined to BIG_ENDIAN or not.
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #include <sys/types.h>
9731 #include <sys/param.h>
9732
9733 int
9734 main ()
9735 {
9736 #if BYTE_ORDER != BIG_ENDIAN
9737 not big endian
9738 #endif
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_compile "$LINENO"; then :
9745 ac_cv_c_bigendian=yes
9746 else
9747 ac_cv_c_bigendian=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 fi
9753 if test $ac_cv_c_bigendian = unknown; then
9754 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 #include <limits.h>
9758
9759 int
9760 main ()
9761 {
9762 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9763 bogus endian macros
9764 #endif
9765
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"; then :
9771 # It does; now see whether it defined to _BIG_ENDIAN or not.
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 #include <limits.h>
9775
9776 int
9777 main ()
9778 {
9779 #ifndef _BIG_ENDIAN
9780 not big endian
9781 #endif
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_compile "$LINENO"; then :
9788 ac_cv_c_bigendian=yes
9789 else
9790 ac_cv_c_bigendian=no
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 fi
9796 if test $ac_cv_c_bigendian = unknown; then
9797 # Compile a test program.
9798 if test "$cross_compiling" = yes; then :
9799 # Try to guess by grepping values from an object file.
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 short int ascii_mm[] =
9803 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9804 short int ascii_ii[] =
9805 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9806 int use_ascii (int i) {
9807 return ascii_mm[i] + ascii_ii[i];
9808 }
9809 short int ebcdic_ii[] =
9810 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9811 short int ebcdic_mm[] =
9812 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9813 int use_ebcdic (int i) {
9814 return ebcdic_mm[i] + ebcdic_ii[i];
9815 }
9816 extern int foo;
9817
9818 int
9819 main ()
9820 {
9821 return use_ascii (foo) == use_ebcdic (foo);
9822 ;
9823 return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_compile "$LINENO"; then :
9827 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9828 ac_cv_c_bigendian=yes
9829 fi
9830 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9831 if test "$ac_cv_c_bigendian" = unknown; then
9832 ac_cv_c_bigendian=no
9833 else
9834 # finding both strings is unlikely to happen, but who knows?
9835 ac_cv_c_bigendian=unknown
9836 fi
9837 fi
9838 fi
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 int
9845 main ()
9846 {
9847
9848 /* Are we little or big endian? From Harbison&Steele. */
9849 union
9850 {
9851 long int l;
9852 char c[sizeof (long int)];
9853 } u;
9854 u.l = 1;
9855 return u.c[sizeof (long int) - 1] == 1;
9856
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_run "$LINENO"; then :
9862 ac_cv_c_bigendian=no
9863 else
9864 ac_cv_c_bigendian=yes
9865 fi
9866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9867 conftest.$ac_objext conftest.beam conftest.$ac_ext
9868 fi
9869
9870 fi
9871 fi
9872 :
9873 case $ac_cv_c_bigendian in #(
9874 yes)
9875 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9876 no)
9877 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9878 universal)
9879
9880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9881
9882 ;; #(
9883 *)
9884 gl_cv_cc_double_expbit0="unknown" ;;
9885 esac
9886
9887
9888 fi
9889 rm -f conftest*
9890
9891
9892 else
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895
9896 #include <float.h>
9897 #include <stddef.h>
9898 #include <stdio.h>
9899 #include <string.h>
9900 #define NWORDS \
9901 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9902 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9903 static unsigned int ored_words[NWORDS];
9904 static unsigned int anded_words[NWORDS];
9905 static void add_to_ored_words (double x)
9906 {
9907 memory_double m;
9908 size_t i;
9909 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9910 memset (&m, 0, sizeof (memory_double));
9911 m.value = x;
9912 for (i = 0; i < NWORDS; i++)
9913 {
9914 ored_words[i] |= m.word[i];
9915 anded_words[i] &= m.word[i];
9916 }
9917 }
9918 int main ()
9919 {
9920 size_t j;
9921 FILE *fp = fopen ("conftest.out", "w");
9922 if (fp == NULL)
9923 return 1;
9924 for (j = 0; j < NWORDS; j++)
9925 anded_words[j] = ~ (unsigned int) 0;
9926 add_to_ored_words (0.25);
9927 add_to_ored_words (0.5);
9928 add_to_ored_words (1.0);
9929 add_to_ored_words (2.0);
9930 add_to_ored_words (4.0);
9931 /* Remove bits that are common (e.g. if representation of the first mantissa
9932 bit is explicit). */
9933 for (j = 0; j < NWORDS; j++)
9934 ored_words[j] &= ~anded_words[j];
9935 /* Now find the nonzero word. */
9936 for (j = 0; j < NWORDS; j++)
9937 if (ored_words[j] != 0)
9938 break;
9939 if (j < NWORDS)
9940 {
9941 size_t i;
9942 for (i = j + 1; i < NWORDS; i++)
9943 if (ored_words[i] != 0)
9944 {
9945 fprintf (fp, "unknown");
9946 return (fclose (fp) != 0);
9947 }
9948 for (i = 0; ; i++)
9949 if ((ored_words[j] >> i) & 1)
9950 {
9951 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9952 return (fclose (fp) != 0);
9953 }
9954 }
9955 fprintf (fp, "unknown");
9956 return (fclose (fp) != 0);
9957 }
9958
9959 _ACEOF
9960 if ac_fn_c_try_run "$LINENO"; then :
9961 gl_cv_cc_double_expbit0=`cat conftest.out`
9962 else
9963 gl_cv_cc_double_expbit0="unknown"
9964 fi
9965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9966 conftest.$ac_objext conftest.beam conftest.$ac_ext
9967 fi
9968
9969 rm -f conftest.out
9970
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9973 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9974 case "$gl_cv_cc_double_expbit0" in
9975 word*bit*)
9976 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9977 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
9978
9979 cat >>confdefs.h <<_ACEOF
9980 #define DBL_EXPBIT0_WORD $word
9981 _ACEOF
9982
9983
9984 cat >>confdefs.h <<_ACEOF
9985 #define DBL_EXPBIT0_BIT $bit
9986 _ACEOF
9987
9988 ;;
9989 esac
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
10000 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
10001 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004
10005 if test "$cross_compiling" = yes; then :
10006
10007 case "$host_os" in
10008 # Guess yes on glibc systems.
10009 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10010 # Guess yes on FreeBSD >= 5.
10011 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
10012 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10013 # Guess yes on Mac OS X >= 10.3.
10014 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
10015 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10016 # Guess yes on OpenBSD >= 3.9.
10017 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
10018 gl_cv_func_snprintf_retval_c99="guessing no";;
10019 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10020 # Guess yes on Solaris >= 2.10.
10021 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
10022 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
10023 # Guess yes on AIX >= 4.
10024 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
10025 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10026 # Guess yes on NetBSD >= 3.
10027 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
10028 gl_cv_func_snprintf_retval_c99="guessing no";;
10029 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10030 # Guess yes on BeOS.
10031 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10032 # If we don't know, assume the worst.
10033 *) gl_cv_func_snprintf_retval_c99="guessing no";;
10034 esac
10035
10036 else
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039
10040 #include <stdio.h>
10041 #include <string.h>
10042 #if HAVE_SNPRINTF
10043 # define my_snprintf snprintf
10044 #else
10045 # include <stdarg.h>
10046 static int my_snprintf (char *buf, int size, const char *format, ...)
10047 {
10048 va_list args;
10049 int ret;
10050 va_start (args, format);
10051 ret = vsnprintf (buf, size, format, args);
10052 va_end (args);
10053 return ret;
10054 }
10055 #endif
10056 static char buf[100];
10057 int main ()
10058 {
10059 strcpy (buf, "ABCDEF");
10060 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
10061 return 1;
10062 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
10063 return 2;
10064 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
10065 return 3;
10066 return 0;
10067 }
10068 _ACEOF
10069 if ac_fn_c_try_run "$LINENO"; then :
10070 gl_cv_func_snprintf_retval_c99=yes
10071 else
10072 gl_cv_func_snprintf_retval_c99=no
10073 fi
10074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10075 conftest.$ac_objext conftest.beam conftest.$ac_ext
10076 fi
10077
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
10081 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
10082
10083
10084
10085
10086
10087
10088 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10089 do :
10090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10093 cat >>confdefs.h <<_ACEOF
10094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10095 _ACEOF
10096
10097 fi
10098 done
10099
10100 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10101 "
10102 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10103 ac_have_decl=1
10104 else
10105 ac_have_decl=0
10106 fi
10107
10108 cat >>confdefs.h <<_ACEOF
10109 #define HAVE_DECL__SNPRINTF $ac_have_decl
10110 _ACEOF
10111
10112
10113
10114 case "$gl_cv_func_snprintf_retval_c99" in
10115 *yes)
10116
10117 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
10118
10119 ;;
10120 esac
10121
10122
10123 GNULIB_DPRINTF=0;
10124 GNULIB_FCLOSE=0;
10125 GNULIB_FDOPEN=0;
10126 GNULIB_FFLUSH=0;
10127 GNULIB_FGETC=0;
10128 GNULIB_FGETS=0;
10129 GNULIB_FOPEN=0;
10130 GNULIB_FPRINTF=0;
10131 GNULIB_FPRINTF_POSIX=0;
10132 GNULIB_FPURGE=0;
10133 GNULIB_FPUTC=0;
10134 GNULIB_FPUTS=0;
10135 GNULIB_FREAD=0;
10136 GNULIB_FREOPEN=0;
10137 GNULIB_FSCANF=0;
10138 GNULIB_FSEEK=0;
10139 GNULIB_FSEEKO=0;
10140 GNULIB_FTELL=0;
10141 GNULIB_FTELLO=0;
10142 GNULIB_FWRITE=0;
10143 GNULIB_GETC=0;
10144 GNULIB_GETCHAR=0;
10145 GNULIB_GETDELIM=0;
10146 GNULIB_GETLINE=0;
10147 GNULIB_OBSTACK_PRINTF=0;
10148 GNULIB_OBSTACK_PRINTF_POSIX=0;
10149 GNULIB_PCLOSE=0;
10150 GNULIB_PERROR=0;
10151 GNULIB_POPEN=0;
10152 GNULIB_PRINTF=0;
10153 GNULIB_PRINTF_POSIX=0;
10154 GNULIB_PUTC=0;
10155 GNULIB_PUTCHAR=0;
10156 GNULIB_PUTS=0;
10157 GNULIB_REMOVE=0;
10158 GNULIB_RENAME=0;
10159 GNULIB_RENAMEAT=0;
10160 GNULIB_SCANF=0;
10161 GNULIB_SNPRINTF=0;
10162 GNULIB_SPRINTF_POSIX=0;
10163 GNULIB_STDIO_H_NONBLOCKING=0;
10164 GNULIB_STDIO_H_SIGPIPE=0;
10165 GNULIB_TMPFILE=0;
10166 GNULIB_VASPRINTF=0;
10167 GNULIB_VFSCANF=0;
10168 GNULIB_VSCANF=0;
10169 GNULIB_VDPRINTF=0;
10170 GNULIB_VFPRINTF=0;
10171 GNULIB_VFPRINTF_POSIX=0;
10172 GNULIB_VPRINTF=0;
10173 GNULIB_VPRINTF_POSIX=0;
10174 GNULIB_VSNPRINTF=0;
10175 GNULIB_VSPRINTF_POSIX=0;
10176 HAVE_DECL_FPURGE=1;
10177 HAVE_DECL_FSEEKO=1;
10178 HAVE_DECL_FTELLO=1;
10179 HAVE_DECL_GETDELIM=1;
10180 HAVE_DECL_GETLINE=1;
10181 HAVE_DECL_OBSTACK_PRINTF=1;
10182 HAVE_DECL_SNPRINTF=1;
10183 HAVE_DECL_VSNPRINTF=1;
10184 HAVE_DPRINTF=1;
10185 HAVE_FSEEKO=1;
10186 HAVE_FTELLO=1;
10187 HAVE_PCLOSE=1;
10188 HAVE_POPEN=1;
10189 HAVE_RENAMEAT=1;
10190 HAVE_VASPRINTF=1;
10191 HAVE_VDPRINTF=1;
10192 REPLACE_DPRINTF=0;
10193 REPLACE_FCLOSE=0;
10194 REPLACE_FDOPEN=0;
10195 REPLACE_FFLUSH=0;
10196 REPLACE_FOPEN=0;
10197 REPLACE_FPRINTF=0;
10198 REPLACE_FPURGE=0;
10199 REPLACE_FREOPEN=0;
10200 REPLACE_FSEEK=0;
10201 REPLACE_FSEEKO=0;
10202 REPLACE_FTELL=0;
10203 REPLACE_FTELLO=0;
10204 REPLACE_GETDELIM=0;
10205 REPLACE_GETLINE=0;
10206 REPLACE_OBSTACK_PRINTF=0;
10207 REPLACE_PERROR=0;
10208 REPLACE_POPEN=0;
10209 REPLACE_PRINTF=0;
10210 REPLACE_REMOVE=0;
10211 REPLACE_RENAME=0;
10212 REPLACE_RENAMEAT=0;
10213 REPLACE_SNPRINTF=0;
10214 REPLACE_SPRINTF=0;
10215 REPLACE_STDIO_READ_FUNCS=0;
10216 REPLACE_STDIO_WRITE_FUNCS=0;
10217 REPLACE_TMPFILE=0;
10218 REPLACE_VASPRINTF=0;
10219 REPLACE_VDPRINTF=0;
10220 REPLACE_VFPRINTF=0;
10221 REPLACE_VPRINTF=0;
10222 REPLACE_VSNPRINTF=0;
10223 REPLACE_VSPRINTF=0;
10224
10225
10226 GNULIB_ACOSF=0;
10227 GNULIB_ACOSL=0;
10228 GNULIB_ASINF=0;
10229 GNULIB_ASINL=0;
10230 GNULIB_ATANF=0;
10231 GNULIB_ATANL=0;
10232 GNULIB_ATAN2F=0;
10233 GNULIB_CBRT=0;
10234 GNULIB_CBRTF=0;
10235 GNULIB_CBRTL=0;
10236 GNULIB_CEIL=0;
10237 GNULIB_CEILF=0;
10238 GNULIB_CEILL=0;
10239 GNULIB_COPYSIGN=0;
10240 GNULIB_COPYSIGNF=0;
10241 GNULIB_COPYSIGNL=0;
10242 GNULIB_COSF=0;
10243 GNULIB_COSL=0;
10244 GNULIB_COSHF=0;
10245 GNULIB_EXPF=0;
10246 GNULIB_EXPL=0;
10247 GNULIB_EXP2=0;
10248 GNULIB_EXP2F=0;
10249 GNULIB_EXP2L=0;
10250 GNULIB_EXPM1=0;
10251 GNULIB_EXPM1F=0;
10252 GNULIB_EXPM1L=0;
10253 GNULIB_FABSF=0;
10254 GNULIB_FABSL=0;
10255 GNULIB_FLOOR=0;
10256 GNULIB_FLOORF=0;
10257 GNULIB_FLOORL=0;
10258 GNULIB_FMA=0;
10259 GNULIB_FMAF=0;
10260 GNULIB_FMAL=0;
10261 GNULIB_FMOD=0;
10262 GNULIB_FMODF=0;
10263 GNULIB_FMODL=0;
10264 GNULIB_FREXPF=0;
10265 GNULIB_FREXP=0;
10266 GNULIB_FREXPL=0;
10267 GNULIB_HYPOT=0;
10268 GNULIB_HYPOTF=0;
10269 GNULIB_HYPOTL=0;
10270 GNULIB_ILOGB=0;
10271 GNULIB_ILOGBF=0;
10272 GNULIB_ILOGBL=0;
10273 GNULIB_ISFINITE=0;
10274 GNULIB_ISINF=0;
10275 GNULIB_ISNAN=0;
10276 GNULIB_ISNANF=0;
10277 GNULIB_ISNAND=0;
10278 GNULIB_ISNANL=0;
10279 GNULIB_LDEXPF=0;
10280 GNULIB_LDEXPL=0;
10281 GNULIB_LOG=0;
10282 GNULIB_LOGF=0;
10283 GNULIB_LOGL=0;
10284 GNULIB_LOG10=0;
10285 GNULIB_LOG10F=0;
10286 GNULIB_LOG10L=0;
10287 GNULIB_LOG1P=0;
10288 GNULIB_LOG1PF=0;
10289 GNULIB_LOG1PL=0;
10290 GNULIB_LOG2=0;
10291 GNULIB_LOG2F=0;
10292 GNULIB_LOG2L=0;
10293 GNULIB_LOGB=0;
10294 GNULIB_LOGBF=0;
10295 GNULIB_LOGBL=0;
10296 GNULIB_MODF=0;
10297 GNULIB_MODFF=0;
10298 GNULIB_MODFL=0;
10299 GNULIB_POWF=0;
10300 GNULIB_REMAINDER=0;
10301 GNULIB_REMAINDERF=0;
10302 GNULIB_REMAINDERL=0;
10303 GNULIB_RINT=0;
10304 GNULIB_RINTF=0;
10305 GNULIB_RINTL=0;
10306 GNULIB_ROUND=0;
10307 GNULIB_ROUNDF=0;
10308 GNULIB_ROUNDL=0;
10309 GNULIB_SIGNBIT=0;
10310 GNULIB_SINF=0;
10311 GNULIB_SINL=0;
10312 GNULIB_SINHF=0;
10313 GNULIB_SQRTF=0;
10314 GNULIB_SQRTL=0;
10315 GNULIB_TANF=0;
10316 GNULIB_TANL=0;
10317 GNULIB_TANHF=0;
10318 GNULIB_TRUNC=0;
10319 GNULIB_TRUNCF=0;
10320 GNULIB_TRUNCL=0;
10321 HAVE_ACOSF=1;
10322 HAVE_ACOSL=1;
10323 HAVE_ASINF=1;
10324 HAVE_ASINL=1;
10325 HAVE_ATANF=1;
10326 HAVE_ATANL=1;
10327 HAVE_ATAN2F=1;
10328 HAVE_CBRT=1;
10329 HAVE_CBRTF=1;
10330 HAVE_CBRTL=1;
10331 HAVE_COPYSIGN=1;
10332 HAVE_COPYSIGNL=1;
10333 HAVE_COSF=1;
10334 HAVE_COSL=1;
10335 HAVE_COSHF=1;
10336 HAVE_EXPF=1;
10337 HAVE_EXPL=1;
10338 HAVE_EXPM1=1;
10339 HAVE_EXPM1F=1;
10340 HAVE_FABSF=1;
10341 HAVE_FABSL=1;
10342 HAVE_FMA=1;
10343 HAVE_FMAF=1;
10344 HAVE_FMAL=1;
10345 HAVE_FMODF=1;
10346 HAVE_FMODL=1;
10347 HAVE_FREXPF=1;
10348 HAVE_HYPOTF=1;
10349 HAVE_HYPOTL=1;
10350 HAVE_ILOGB=1;
10351 HAVE_ILOGBF=1;
10352 HAVE_ILOGBL=1;
10353 HAVE_ISNANF=1;
10354 HAVE_ISNAND=1;
10355 HAVE_ISNANL=1;
10356 HAVE_LDEXPF=1;
10357 HAVE_LOGF=1;
10358 HAVE_LOGL=1;
10359 HAVE_LOG10F=1;
10360 HAVE_LOG10L=1;
10361 HAVE_LOG1P=1;
10362 HAVE_LOG1PF=1;
10363 HAVE_LOG1PL=1;
10364 HAVE_LOGBF=1;
10365 HAVE_LOGBL=1;
10366 HAVE_MODFF=1;
10367 HAVE_MODFL=1;
10368 HAVE_POWF=1;
10369 HAVE_REMAINDER=1;
10370 HAVE_REMAINDERF=1;
10371 HAVE_RINT=1;
10372 HAVE_RINTL=1;
10373 HAVE_SINF=1;
10374 HAVE_SINL=1;
10375 HAVE_SINHF=1;
10376 HAVE_SQRTF=1;
10377 HAVE_SQRTL=1;
10378 HAVE_TANF=1;
10379 HAVE_TANL=1;
10380 HAVE_TANHF=1;
10381 HAVE_DECL_ACOSL=1;
10382 HAVE_DECL_ASINL=1;
10383 HAVE_DECL_ATANL=1;
10384 HAVE_DECL_CBRTF=1;
10385 HAVE_DECL_CBRTL=1;
10386 HAVE_DECL_CEILF=1;
10387 HAVE_DECL_CEILL=1;
10388 HAVE_DECL_COPYSIGNF=1;
10389 HAVE_DECL_COSL=1;
10390 HAVE_DECL_EXPL=1;
10391 HAVE_DECL_EXP2=1;
10392 HAVE_DECL_EXP2F=1;
10393 HAVE_DECL_EXP2L=1;
10394 HAVE_DECL_EXPM1L=1;
10395 HAVE_DECL_FLOORF=1;
10396 HAVE_DECL_FLOORL=1;
10397 HAVE_DECL_FREXPL=1;
10398 HAVE_DECL_LDEXPL=1;
10399 HAVE_DECL_LOGL=1;
10400 HAVE_DECL_LOG10L=1;
10401 HAVE_DECL_LOG2=1;
10402 HAVE_DECL_LOG2F=1;
10403 HAVE_DECL_LOG2L=1;
10404 HAVE_DECL_LOGB=1;
10405 HAVE_DECL_REMAINDER=1;
10406 HAVE_DECL_REMAINDERL=1;
10407 HAVE_DECL_RINTF=1;
10408 HAVE_DECL_ROUND=1;
10409 HAVE_DECL_ROUNDF=1;
10410 HAVE_DECL_ROUNDL=1;
10411 HAVE_DECL_SINL=1;
10412 HAVE_DECL_SQRTL=1;
10413 HAVE_DECL_TANL=1;
10414 HAVE_DECL_TRUNC=1;
10415 HAVE_DECL_TRUNCF=1;
10416 HAVE_DECL_TRUNCL=1;
10417 REPLACE_CBRTF=0;
10418 REPLACE_CBRTL=0;
10419 REPLACE_CEIL=0;
10420 REPLACE_CEILF=0;
10421 REPLACE_CEILL=0;
10422 REPLACE_EXPM1=0;
10423 REPLACE_EXPM1F=0;
10424 REPLACE_EXP2=0;
10425 REPLACE_EXP2L=0;
10426 REPLACE_FABSL=0;
10427 REPLACE_FLOOR=0;
10428 REPLACE_FLOORF=0;
10429 REPLACE_FLOORL=0;
10430 REPLACE_FMA=0;
10431 REPLACE_FMAF=0;
10432 REPLACE_FMAL=0;
10433 REPLACE_FMOD=0;
10434 REPLACE_FMODF=0;
10435 REPLACE_FMODL=0;
10436 REPLACE_FREXPF=0;
10437 REPLACE_FREXP=0;
10438 REPLACE_FREXPL=0;
10439 REPLACE_HUGE_VAL=0;
10440 REPLACE_HYPOT=0;
10441 REPLACE_HYPOTF=0;
10442 REPLACE_HYPOTL=0;
10443 REPLACE_ILOGB=0;
10444 REPLACE_ILOGBF=0;
10445 REPLACE_ISFINITE=0;
10446 REPLACE_ISINF=0;
10447 REPLACE_ISNAN=0;
10448 REPLACE_LDEXPL=0;
10449 REPLACE_LOG=0;
10450 REPLACE_LOGF=0;
10451 REPLACE_LOGL=0;
10452 REPLACE_LOG10=0;
10453 REPLACE_LOG10F=0;
10454 REPLACE_LOG10L=0;
10455 REPLACE_LOG1P=0;
10456 REPLACE_LOG1PF=0;
10457 REPLACE_LOG1PL=0;
10458 REPLACE_LOG2=0;
10459 REPLACE_LOG2F=0;
10460 REPLACE_LOG2L=0;
10461 REPLACE_LOGB=0;
10462 REPLACE_LOGBF=0;
10463 REPLACE_LOGBL=0;
10464 REPLACE_MODF=0;
10465 REPLACE_MODFF=0;
10466 REPLACE_MODFL=0;
10467 REPLACE_NAN=0;
10468 REPLACE_REMAINDER=0;
10469 REPLACE_REMAINDERF=0;
10470 REPLACE_REMAINDERL=0;
10471 REPLACE_ROUND=0;
10472 REPLACE_ROUNDF=0;
10473 REPLACE_ROUNDL=0;
10474 REPLACE_SIGNBIT=0;
10475 REPLACE_SIGNBIT_USING_GCC=0;
10476 REPLACE_SQRTL=0;
10477 REPLACE_TRUNC=0;
10478 REPLACE_TRUNCF=0;
10479 REPLACE_TRUNCL=0;
10480
10481
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
10483 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
10484 if ${gl_cv_func_frexp_no_libm+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 #include <math.h>
10491 double x;
10492 int
10493 main ()
10494 {
10495 int e; return frexp (x, &e) > 0;
10496 ;
10497 return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_link "$LINENO"; then :
10501 gl_cv_func_frexp_no_libm=yes
10502 else
10503 gl_cv_func_frexp_no_libm=no
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
10507
10508 fi
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
10510 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
10511
10512 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
10513 if test "x$ac_cv_have_decl_alarm" = xyes; then :
10514 ac_have_decl=1
10515 else
10516 ac_have_decl=0
10517 fi
10518
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_DECL_ALARM $ac_have_decl
10521 _ACEOF
10522
10523
10524
10525
10526 GNULIB_CHDIR=0;
10527 GNULIB_CHOWN=0;
10528 GNULIB_CLOSE=0;
10529 GNULIB_DUP=0;
10530 GNULIB_DUP2=0;
10531 GNULIB_DUP3=0;
10532 GNULIB_ENVIRON=0;
10533 GNULIB_EUIDACCESS=0;
10534 GNULIB_FACCESSAT=0;
10535 GNULIB_FCHDIR=0;
10536 GNULIB_FCHOWNAT=0;
10537 GNULIB_FDATASYNC=0;
10538 GNULIB_FSYNC=0;
10539 GNULIB_FTRUNCATE=0;
10540 GNULIB_GETCWD=0;
10541 GNULIB_GETDOMAINNAME=0;
10542 GNULIB_GETDTABLESIZE=0;
10543 GNULIB_GETGROUPS=0;
10544 GNULIB_GETHOSTNAME=0;
10545 GNULIB_GETLOGIN=0;
10546 GNULIB_GETLOGIN_R=0;
10547 GNULIB_GETPAGESIZE=0;
10548 GNULIB_GETUSERSHELL=0;
10549 GNULIB_GROUP_MEMBER=0;
10550 GNULIB_ISATTY=0;
10551 GNULIB_LCHOWN=0;
10552 GNULIB_LINK=0;
10553 GNULIB_LINKAT=0;
10554 GNULIB_LSEEK=0;
10555 GNULIB_PIPE=0;
10556 GNULIB_PIPE2=0;
10557 GNULIB_PREAD=0;
10558 GNULIB_PWRITE=0;
10559 GNULIB_READ=0;
10560 GNULIB_READLINK=0;
10561 GNULIB_READLINKAT=0;
10562 GNULIB_RMDIR=0;
10563 GNULIB_SETHOSTNAME=0;
10564 GNULIB_SLEEP=0;
10565 GNULIB_SYMLINK=0;
10566 GNULIB_SYMLINKAT=0;
10567 GNULIB_TTYNAME_R=0;
10568 GNULIB_UNISTD_H_NONBLOCKING=0;
10569 GNULIB_UNISTD_H_SIGPIPE=0;
10570 GNULIB_UNLINK=0;
10571 GNULIB_UNLINKAT=0;
10572 GNULIB_USLEEP=0;
10573 GNULIB_WRITE=0;
10574 HAVE_CHOWN=1;
10575 HAVE_DUP2=1;
10576 HAVE_DUP3=1;
10577 HAVE_EUIDACCESS=1;
10578 HAVE_FACCESSAT=1;
10579 HAVE_FCHDIR=1;
10580 HAVE_FCHOWNAT=1;
10581 HAVE_FDATASYNC=1;
10582 HAVE_FSYNC=1;
10583 HAVE_FTRUNCATE=1;
10584 HAVE_GETDTABLESIZE=1;
10585 HAVE_GETGROUPS=1;
10586 HAVE_GETHOSTNAME=1;
10587 HAVE_GETLOGIN=1;
10588 HAVE_GETPAGESIZE=1;
10589 HAVE_GROUP_MEMBER=1;
10590 HAVE_LCHOWN=1;
10591 HAVE_LINK=1;
10592 HAVE_LINKAT=1;
10593 HAVE_PIPE=1;
10594 HAVE_PIPE2=1;
10595 HAVE_PREAD=1;
10596 HAVE_PWRITE=1;
10597 HAVE_READLINK=1;
10598 HAVE_READLINKAT=1;
10599 HAVE_SETHOSTNAME=1;
10600 HAVE_SLEEP=1;
10601 HAVE_SYMLINK=1;
10602 HAVE_SYMLINKAT=1;
10603 HAVE_UNLINKAT=1;
10604 HAVE_USLEEP=1;
10605 HAVE_DECL_ENVIRON=1;
10606 HAVE_DECL_FCHDIR=1;
10607 HAVE_DECL_FDATASYNC=1;
10608 HAVE_DECL_GETDOMAINNAME=1;
10609 HAVE_DECL_GETLOGIN_R=1;
10610 HAVE_DECL_GETPAGESIZE=1;
10611 HAVE_DECL_GETUSERSHELL=1;
10612 HAVE_DECL_SETHOSTNAME=1;
10613 HAVE_DECL_TTYNAME_R=1;
10614 HAVE_OS_H=0;
10615 HAVE_SYS_PARAM_H=0;
10616 REPLACE_CHOWN=0;
10617 REPLACE_CLOSE=0;
10618 REPLACE_DUP=0;
10619 REPLACE_DUP2=0;
10620 REPLACE_FCHOWNAT=0;
10621 REPLACE_FTRUNCATE=0;
10622 REPLACE_GETCWD=0;
10623 REPLACE_GETDOMAINNAME=0;
10624 REPLACE_GETDTABLESIZE=0;
10625 REPLACE_GETLOGIN_R=0;
10626 REPLACE_GETGROUPS=0;
10627 REPLACE_GETPAGESIZE=0;
10628 REPLACE_ISATTY=0;
10629 REPLACE_LCHOWN=0;
10630 REPLACE_LINK=0;
10631 REPLACE_LINKAT=0;
10632 REPLACE_LSEEK=0;
10633 REPLACE_PREAD=0;
10634 REPLACE_PWRITE=0;
10635 REPLACE_READ=0;
10636 REPLACE_READLINK=0;
10637 REPLACE_RMDIR=0;
10638 REPLACE_SLEEP=0;
10639 REPLACE_SYMLINK=0;
10640 REPLACE_TTYNAME_R=0;
10641 REPLACE_UNLINK=0;
10642 REPLACE_UNLINKAT=0;
10643 REPLACE_USLEEP=0;
10644 REPLACE_WRITE=0;
10645 UNISTD_H_HAVE_WINSOCK2_H=0;
10646 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10647
10648
10649
10650 GNULIB_FCHMODAT=0;
10651 GNULIB_FSTAT=0;
10652 GNULIB_FSTATAT=0;
10653 GNULIB_FUTIMENS=0;
10654 GNULIB_LCHMOD=0;
10655 GNULIB_LSTAT=0;
10656 GNULIB_MKDIRAT=0;
10657 GNULIB_MKFIFO=0;
10658 GNULIB_MKFIFOAT=0;
10659 GNULIB_MKNOD=0;
10660 GNULIB_MKNODAT=0;
10661 GNULIB_STAT=0;
10662 GNULIB_UTIMENSAT=0;
10663 HAVE_FCHMODAT=1;
10664 HAVE_FSTATAT=1;
10665 HAVE_FUTIMENS=1;
10666 HAVE_LCHMOD=1;
10667 HAVE_LSTAT=1;
10668 HAVE_MKDIRAT=1;
10669 HAVE_MKFIFO=1;
10670 HAVE_MKFIFOAT=1;
10671 HAVE_MKNOD=1;
10672 HAVE_MKNODAT=1;
10673 HAVE_UTIMENSAT=1;
10674 REPLACE_FSTAT=0;
10675 REPLACE_FSTATAT=0;
10676 REPLACE_FUTIMENS=0;
10677 REPLACE_LSTAT=0;
10678 REPLACE_MKDIR=0;
10679 REPLACE_MKFIFO=0;
10680 REPLACE_MKNOD=0;
10681 REPLACE_STAT=0;
10682 REPLACE_UTIMENSAT=0;
10683
10684
10685
10686
10687
10688 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
10689 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
10690
10691 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
10692
10693 else
10694 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
10695 fi
10696
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10699 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10700 if ${ac_cv_header_stat_broken+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <sys/types.h>
10706 #include <sys/stat.h>
10707
10708 #if defined S_ISBLK && defined S_IFDIR
10709 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10710 #endif
10711
10712 #if defined S_ISBLK && defined S_IFCHR
10713 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10714 #endif
10715
10716 #if defined S_ISLNK && defined S_IFREG
10717 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10718 #endif
10719
10720 #if defined S_ISSOCK && defined S_IFREG
10721 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10722 #endif
10723
10724 _ACEOF
10725 if ac_fn_c_try_compile "$LINENO"; then :
10726 ac_cv_header_stat_broken=no
10727 else
10728 ac_cv_header_stat_broken=yes
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 fi
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10733 $as_echo "$ac_cv_header_stat_broken" >&6; }
10734 if test $ac_cv_header_stat_broken = yes; then
10735
10736 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10737
10738 fi
10739
10740
10741
10742
10743
10744 case "$host_os" in
10745 mingw*)
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10747 $as_echo_n "checking for 64-bit off_t... " >&6; }
10748 if ${gl_cv_type_off_t_64+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 #include <sys/types.h>
10754 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10755
10756 int
10757 main ()
10758 {
10759
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_compile "$LINENO"; then :
10765 gl_cv_type_off_t_64=yes
10766 else
10767 gl_cv_type_off_t_64=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770
10771 fi
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10773 $as_echo "$gl_cv_type_off_t_64" >&6; }
10774 if test $gl_cv_type_off_t_64 = no; then
10775 WINDOWS_64_BIT_OFF_T=1
10776 else
10777 WINDOWS_64_BIT_OFF_T=0
10778 fi
10779 WINDOWS_64_BIT_ST_SIZE=1
10780 ;;
10781 *)
10782 WINDOWS_64_BIT_OFF_T=0
10783 WINDOWS_64_BIT_ST_SIZE=0
10784 ;;
10785 esac
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 if test $gl_cv_have_include_next = yes; then
10802 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10805 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10806 if ${gl_cv_next_sys_stat_h+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809
10810 if test $ac_cv_header_sys_stat_h = yes; then
10811
10812
10813
10814
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #include <sys/stat.h>
10818 _ACEOF
10819 case "$host_os" in
10820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10821 *) gl_absname_cpp="$ac_cpp" ;;
10822 esac
10823
10824 case "$host_os" in
10825 mingw*)
10826 gl_dirsep_regex='[/\\]'
10827 ;;
10828 *)
10829 gl_dirsep_regex='\/'
10830 ;;
10831 esac
10832 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10833 gl_header_literal_regex=`echo 'sys/stat.h' \
10834 | sed -e "$gl_make_literal_regex_sed"`
10835 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10836 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10837 s|^/[^/]|//&|
10838 p
10839 q
10840 }'
10841
10842 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10843 sed -n "$gl_absolute_header_sed"`
10844
10845 gl_header=$gl_cv_absolute_sys_stat_h
10846 gl_cv_next_sys_stat_h='"'$gl_header'"'
10847 else
10848 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10849 fi
10850
10851
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10854 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10855 fi
10856 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
10857
10858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10860 gl_next_as_first_directive='<'sys/stat.h'>'
10861 else
10862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10863 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
10864 fi
10865 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
10878
10879 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
10880
10881 fi
10882
10883 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10884 #include <sys/stat.h>
10885 "
10886 if test "x$ac_cv_type_nlink_t" = xyes; then :
10887
10888 else
10889
10890 $as_echo "#define nlink_t int" >>confdefs.h
10891
10892 fi
10893
10894
10895
10896
10897 :
10898
10899
10900
10901
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10903 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10904 if ${ac_cv_c_restrict+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_cv_c_restrict=no
10908 # The order here caters to the fact that C++ does not require restrict.
10909 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 typedef int * int_ptr;
10913 int foo (int_ptr $ac_kw ip) {
10914 return ip[0];
10915 }
10916 int
10917 main ()
10918 {
10919 int s[1];
10920 int * $ac_kw t = s;
10921 t[0] = 0;
10922 return foo(t)
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_compile "$LINENO"; then :
10928 ac_cv_c_restrict=$ac_kw
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 test "$ac_cv_c_restrict" != no && break
10932 done
10933
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10936 $as_echo "$ac_cv_c_restrict" >&6; }
10937
10938 case $ac_cv_c_restrict in
10939 restrict) ;;
10940 no) $as_echo "#define restrict /**/" >>confdefs.h
10941 ;;
10942 *) cat >>confdefs.h <<_ACEOF
10943 #define restrict $ac_cv_c_restrict
10944 _ACEOF
10945 ;;
10946 esac
10947
10948
10949 GNULIB_GETTIMEOFDAY=0;
10950 HAVE_GETTIMEOFDAY=1;
10951 HAVE_STRUCT_TIMEVAL=1;
10952 HAVE_SYS_TIME_H=1;
10953 REPLACE_GETTIMEOFDAY=0;
10954 REPLACE_STRUCT_TIMEVAL=0;
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973 if test $gl_cv_have_include_next = yes; then
10974 gl_cv_next_sys_time_h='<'sys/time.h'>'
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10977 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10978 if ${gl_cv_next_sys_time_h+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981
10982 if test $ac_cv_header_sys_time_h = yes; then
10983
10984
10985
10986
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 #include <sys/time.h>
10990 _ACEOF
10991 case "$host_os" in
10992 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10993 *) gl_absname_cpp="$ac_cpp" ;;
10994 esac
10995
10996 case "$host_os" in
10997 mingw*)
10998 gl_dirsep_regex='[/\\]'
10999 ;;
11000 *)
11001 gl_dirsep_regex='\/'
11002 ;;
11003 esac
11004 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11005 gl_header_literal_regex=`echo 'sys/time.h' \
11006 | sed -e "$gl_make_literal_regex_sed"`
11007 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11008 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11009 s|^/[^/]|//&|
11010 p
11011 q
11012 }'
11013
11014 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11015 sed -n "$gl_absolute_header_sed"`
11016
11017 gl_header=$gl_cv_absolute_sys_time_h
11018 gl_cv_next_sys_time_h='"'$gl_header'"'
11019 else
11020 gl_cv_next_sys_time_h='<'sys/time.h'>'
11021 fi
11022
11023
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
11026 $as_echo "$gl_cv_next_sys_time_h" >&6; }
11027 fi
11028 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
11029
11030 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11032 gl_next_as_first_directive='<'sys/time.h'>'
11033 else
11034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11035 gl_next_as_first_directive=$gl_cv_next_sys_time_h
11036 fi
11037 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
11038
11039
11040
11041
11042
11043 if test $ac_cv_header_sys_time_h != yes; then
11044 HAVE_SYS_TIME_H=0
11045 fi
11046
11047
11048
11049
11050
11051 if test $ac_cv_header_sys_socket_h != yes; then
11052 for ac_header in winsock2.h
11053 do :
11054 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11055 if test "x$ac_cv_header_winsock2_h" = xyes; then :
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_WINSOCK2_H 1
11058 _ACEOF
11059
11060 fi
11061
11062 done
11063
11064 fi
11065 if test "$ac_cv_header_winsock2_h" = yes; then
11066 HAVE_WINSOCK2_H=1
11067 UNISTD_H_HAVE_WINSOCK2_H=1
11068 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11069 else
11070 HAVE_WINSOCK2_H=0
11071 fi
11072
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
11075 $as_echo_n "checking for struct timeval... " >&6; }
11076 if ${gl_cv_sys_struct_timeval+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #if HAVE_SYS_TIME_H
11082 #include <sys/time.h>
11083 #endif
11084 #include <time.h>
11085 #if HAVE_WINSOCK2_H
11086 # include <winsock2.h>
11087 #endif
11088
11089 int
11090 main ()
11091 {
11092 static struct timeval x; x.tv_sec = x.tv_usec;
11093 ;
11094 return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_compile "$LINENO"; then :
11098 gl_cv_sys_struct_timeval=yes
11099 else
11100 gl_cv_sys_struct_timeval=no
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103
11104 fi
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
11106 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
11107 if test $gl_cv_sys_struct_timeval != yes; then
11108 HAVE_STRUCT_TIMEVAL=0
11109 else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
11111 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
11112 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #if HAVE_SYS_TIME_H
11118 #include <sys/time.h>
11119 #endif
11120 #include <time.h>
11121 #if HAVE_WINSOCK2_H
11122 # include <winsock2.h>
11123 #endif
11124
11125 int
11126 main ()
11127 {
11128 static struct timeval x;
11129 typedef int verify_tv_sec_type[
11130 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
11131 ];
11132
11133 ;
11134 return 0;
11135 }
11136 _ACEOF
11137 if ac_fn_c_try_compile "$LINENO"; then :
11138 gl_cv_sys_struct_timeval_tv_sec=yes
11139 else
11140 gl_cv_sys_struct_timeval_tv_sec=no
11141 fi
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
11146 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
11147 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
11148 REPLACE_STRUCT_TIMEVAL=1
11149 fi
11150 fi
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164 if test $ac_cv_type_long_long_int = yes; then
11165 HAVE_LONG_LONG_INT=1
11166 else
11167 HAVE_LONG_LONG_INT=0
11168 fi
11169
11170
11171 if test $ac_cv_type_unsigned_long_long_int = yes; then
11172 HAVE_UNSIGNED_LONG_LONG_INT=1
11173 else
11174 HAVE_UNSIGNED_LONG_LONG_INT=0
11175 fi
11176
11177
11178
11179 if test $ac_cv_header_wchar_h = yes; then
11180 HAVE_WCHAR_H=1
11181 else
11182 HAVE_WCHAR_H=0
11183 fi
11184
11185
11186 if test $ac_cv_header_inttypes_h = yes; then
11187 HAVE_INTTYPES_H=1
11188 else
11189 HAVE_INTTYPES_H=0
11190 fi
11191
11192
11193 if test $ac_cv_header_sys_types_h = yes; then
11194 HAVE_SYS_TYPES_H=1
11195 else
11196 HAVE_SYS_TYPES_H=0
11197 fi
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209 if test $gl_cv_have_include_next = yes; then
11210 gl_cv_next_stdint_h='<'stdint.h'>'
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
11213 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11214 if ${gl_cv_next_stdint_h+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217
11218 if test $ac_cv_header_stdint_h = yes; then
11219
11220
11221
11222
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #include <stdint.h>
11226 _ACEOF
11227 case "$host_os" in
11228 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11229 *) gl_absname_cpp="$ac_cpp" ;;
11230 esac
11231
11232 case "$host_os" in
11233 mingw*)
11234 gl_dirsep_regex='[/\\]'
11235 ;;
11236 *)
11237 gl_dirsep_regex='\/'
11238 ;;
11239 esac
11240 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11241 gl_header_literal_regex=`echo 'stdint.h' \
11242 | sed -e "$gl_make_literal_regex_sed"`
11243 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11244 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11245 s|^/[^/]|//&|
11246 p
11247 q
11248 }'
11249
11250 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11251 sed -n "$gl_absolute_header_sed"`
11252
11253 gl_header=$gl_cv_absolute_stdint_h
11254 gl_cv_next_stdint_h='"'$gl_header'"'
11255 else
11256 gl_cv_next_stdint_h='<'stdint.h'>'
11257 fi
11258
11259
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
11262 $as_echo "$gl_cv_next_stdint_h" >&6; }
11263 fi
11264 NEXT_STDINT_H=$gl_cv_next_stdint_h
11265
11266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11268 gl_next_as_first_directive='<'stdint.h'>'
11269 else
11270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11271 gl_next_as_first_directive=$gl_cv_next_stdint_h
11272 fi
11273 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
11274
11275
11276
11277
11278 if test $ac_cv_header_stdint_h = yes; then
11279 HAVE_STDINT_H=1
11280 else
11281 HAVE_STDINT_H=0
11282 fi
11283
11284
11285 if test $ac_cv_header_stdint_h = yes; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
11287 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11288 if ${gl_cv_header_working_stdint_h+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 gl_cv_header_working_stdint_h=no
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294
11295
11296 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11297 #include <stdint.h>
11298 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
11299 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
11300 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
11301 #endif
11302
11303
11304 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11305 included before <wchar.h>. */
11306 #include <stddef.h>
11307 #include <signal.h>
11308 #if HAVE_WCHAR_H
11309 # include <stdio.h>
11310 # include <time.h>
11311 # include <wchar.h>
11312 #endif
11313
11314
11315 #ifdef INT8_MAX
11316 int8_t a1 = INT8_MAX;
11317 int8_t a1min = INT8_MIN;
11318 #endif
11319 #ifdef INT16_MAX
11320 int16_t a2 = INT16_MAX;
11321 int16_t a2min = INT16_MIN;
11322 #endif
11323 #ifdef INT32_MAX
11324 int32_t a3 = INT32_MAX;
11325 int32_t a3min = INT32_MIN;
11326 #endif
11327 #ifdef INT64_MAX
11328 int64_t a4 = INT64_MAX;
11329 int64_t a4min = INT64_MIN;
11330 #endif
11331 #ifdef UINT8_MAX
11332 uint8_t b1 = UINT8_MAX;
11333 #else
11334 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11335 #endif
11336 #ifdef UINT16_MAX
11337 uint16_t b2 = UINT16_MAX;
11338 #endif
11339 #ifdef UINT32_MAX
11340 uint32_t b3 = UINT32_MAX;
11341 #endif
11342 #ifdef UINT64_MAX
11343 uint64_t b4 = UINT64_MAX;
11344 #endif
11345 int_least8_t c1 = INT8_C (0x7f);
11346 int_least8_t c1max = INT_LEAST8_MAX;
11347 int_least8_t c1min = INT_LEAST8_MIN;
11348 int_least16_t c2 = INT16_C (0x7fff);
11349 int_least16_t c2max = INT_LEAST16_MAX;
11350 int_least16_t c2min = INT_LEAST16_MIN;
11351 int_least32_t c3 = INT32_C (0x7fffffff);
11352 int_least32_t c3max = INT_LEAST32_MAX;
11353 int_least32_t c3min = INT_LEAST32_MIN;
11354 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11355 int_least64_t c4max = INT_LEAST64_MAX;
11356 int_least64_t c4min = INT_LEAST64_MIN;
11357 uint_least8_t d1 = UINT8_C (0xff);
11358 uint_least8_t d1max = UINT_LEAST8_MAX;
11359 uint_least16_t d2 = UINT16_C (0xffff);
11360 uint_least16_t d2max = UINT_LEAST16_MAX;
11361 uint_least32_t d3 = UINT32_C (0xffffffff);
11362 uint_least32_t d3max = UINT_LEAST32_MAX;
11363 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11364 uint_least64_t d4max = UINT_LEAST64_MAX;
11365 int_fast8_t e1 = INT_FAST8_MAX;
11366 int_fast8_t e1min = INT_FAST8_MIN;
11367 int_fast16_t e2 = INT_FAST16_MAX;
11368 int_fast16_t e2min = INT_FAST16_MIN;
11369 int_fast32_t e3 = INT_FAST32_MAX;
11370 int_fast32_t e3min = INT_FAST32_MIN;
11371 int_fast64_t e4 = INT_FAST64_MAX;
11372 int_fast64_t e4min = INT_FAST64_MIN;
11373 uint_fast8_t f1 = UINT_FAST8_MAX;
11374 uint_fast16_t f2 = UINT_FAST16_MAX;
11375 uint_fast32_t f3 = UINT_FAST32_MAX;
11376 uint_fast64_t f4 = UINT_FAST64_MAX;
11377 #ifdef INTPTR_MAX
11378 intptr_t g = INTPTR_MAX;
11379 intptr_t gmin = INTPTR_MIN;
11380 #endif
11381 #ifdef UINTPTR_MAX
11382 uintptr_t h = UINTPTR_MAX;
11383 #endif
11384 intmax_t i = INTMAX_MAX;
11385 uintmax_t j = UINTMAX_MAX;
11386
11387 #include <limits.h> /* for CHAR_BIT */
11388 #define TYPE_MINIMUM(t) \
11389 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11390 #define TYPE_MAXIMUM(t) \
11391 ((t) ((t) 0 < (t) -1 \
11392 ? (t) -1 \
11393 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11394 struct s {
11395 int check_PTRDIFF:
11396 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11397 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11398 ? 1 : -1;
11399 /* Detect bug in FreeBSD 6.0 / ia64. */
11400 int check_SIG_ATOMIC:
11401 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11402 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11403 ? 1 : -1;
11404 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11405 int check_WCHAR:
11406 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11407 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11408 ? 1 : -1;
11409 /* Detect bug in mingw. */
11410 int check_WINT:
11411 WINT_MIN == TYPE_MINIMUM (wint_t)
11412 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11413 ? 1 : -1;
11414
11415 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11416 int check_UINT8_C:
11417 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11418 int check_UINT16_C:
11419 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11420
11421 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11422 #ifdef UINT8_MAX
11423 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11424 #endif
11425 #ifdef UINT16_MAX
11426 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11427 #endif
11428 #ifdef UINT32_MAX
11429 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11430 #endif
11431 #ifdef UINT64_MAX
11432 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11433 #endif
11434 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11435 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11436 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11437 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11438 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11439 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11440 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11441 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11442 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11443 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11444 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11445 };
11446
11447 int
11448 main ()
11449 {
11450
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_compile "$LINENO"; then :
11456 if test "$cross_compiling" = yes; then :
11457 gl_cv_header_working_stdint_h=yes
11458
11459 else
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462
11463
11464 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11465 #include <stdint.h>
11466
11467
11468 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11469 included before <wchar.h>. */
11470 #include <stddef.h>
11471 #include <signal.h>
11472 #if HAVE_WCHAR_H
11473 # include <stdio.h>
11474 # include <time.h>
11475 # include <wchar.h>
11476 #endif
11477
11478
11479 #include <stdio.h>
11480 #include <string.h>
11481 #define MVAL(macro) MVAL1(macro)
11482 #define MVAL1(expression) #expression
11483 static const char *macro_values[] =
11484 {
11485 #ifdef INT8_MAX
11486 MVAL (INT8_MAX),
11487 #endif
11488 #ifdef INT16_MAX
11489 MVAL (INT16_MAX),
11490 #endif
11491 #ifdef INT32_MAX
11492 MVAL (INT32_MAX),
11493 #endif
11494 #ifdef INT64_MAX
11495 MVAL (INT64_MAX),
11496 #endif
11497 #ifdef UINT8_MAX
11498 MVAL (UINT8_MAX),
11499 #endif
11500 #ifdef UINT16_MAX
11501 MVAL (UINT16_MAX),
11502 #endif
11503 #ifdef UINT32_MAX
11504 MVAL (UINT32_MAX),
11505 #endif
11506 #ifdef UINT64_MAX
11507 MVAL (UINT64_MAX),
11508 #endif
11509 NULL
11510 };
11511
11512 int
11513 main ()
11514 {
11515
11516 const char **mv;
11517 for (mv = macro_values; *mv != NULL; mv++)
11518 {
11519 const char *value = *mv;
11520 /* Test whether it looks like a cast expression. */
11521 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11522 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11523 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11524 || strncmp (value, "((int)"/*)*/, 6) == 0
11525 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11526 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11527 return mv - macro_values + 1;
11528 }
11529 return 0;
11530
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_run "$LINENO"; then :
11536 gl_cv_header_working_stdint_h=yes
11537 fi
11538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11539 conftest.$ac_objext conftest.beam conftest.$ac_ext
11540 fi
11541
11542
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11548 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11549 fi
11550 if test "$gl_cv_header_working_stdint_h" = yes; then
11551 STDINT_H=
11552 else
11553 for ac_header in sys/inttypes.h sys/bitypes.h
11554 do :
11555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11557 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11558 cat >>confdefs.h <<_ACEOF
11559 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11560 _ACEOF
11561
11562 fi
11563
11564 done
11565
11566 if test $ac_cv_header_sys_inttypes_h = yes; then
11567 HAVE_SYS_INTTYPES_H=1
11568 else
11569 HAVE_SYS_INTTYPES_H=0
11570 fi
11571
11572 if test $ac_cv_header_sys_bitypes_h = yes; then
11573 HAVE_SYS_BITYPES_H=1
11574 else
11575 HAVE_SYS_BITYPES_H=0
11576 fi
11577
11578
11579
11580
11581 if test $APPLE_UNIVERSAL_BUILD = 0; then
11582
11583
11584 for gltype in ptrdiff_t size_t ; do
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11586 $as_echo_n "checking for bit size of $gltype... " >&6; }
11587 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11591 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11592 included before <wchar.h>. */
11593 #include <stddef.h>
11594 #include <signal.h>
11595 #if HAVE_WCHAR_H
11596 # include <stdio.h>
11597 # include <time.h>
11598 # include <wchar.h>
11599 #endif
11600
11601 #include <limits.h>"; then :
11602
11603 else
11604 result=unknown
11605 fi
11606
11607 eval gl_cv_bitsizeof_${gltype}=\$result
11608
11609 fi
11610 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11612 $as_echo "$ac_res" >&6; }
11613 eval result=\$gl_cv_bitsizeof_${gltype}
11614 if test $result = unknown; then
11615 result=0
11616 fi
11617 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11618 cat >>confdefs.h <<_ACEOF
11619 #define BITSIZEOF_${GLTYPE} $result
11620 _ACEOF
11621
11622 eval BITSIZEOF_${GLTYPE}=\$result
11623 done
11624
11625
11626 fi
11627
11628
11629 for gltype in sig_atomic_t wchar_t wint_t ; do
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11631 $as_echo_n "checking for bit size of $gltype... " >&6; }
11632 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11636 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11637 included before <wchar.h>. */
11638 #include <stddef.h>
11639 #include <signal.h>
11640 #if HAVE_WCHAR_H
11641 # include <stdio.h>
11642 # include <time.h>
11643 # include <wchar.h>
11644 #endif
11645
11646 #include <limits.h>"; then :
11647
11648 else
11649 result=unknown
11650 fi
11651
11652 eval gl_cv_bitsizeof_${gltype}=\$result
11653
11654 fi
11655 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11658 eval result=\$gl_cv_bitsizeof_${gltype}
11659 if test $result = unknown; then
11660 result=0
11661 fi
11662 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11663 cat >>confdefs.h <<_ACEOF
11664 #define BITSIZEOF_${GLTYPE} $result
11665 _ACEOF
11666
11667 eval BITSIZEOF_${GLTYPE}=\$result
11668 done
11669
11670
11671
11672
11673 for gltype in sig_atomic_t wchar_t wint_t ; do
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11675 $as_echo_n "checking whether $gltype is signed... " >&6; }
11676 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681
11682 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11683 included before <wchar.h>. */
11684 #include <stddef.h>
11685 #include <signal.h>
11686 #if HAVE_WCHAR_H
11687 # include <stdio.h>
11688 # include <time.h>
11689 # include <wchar.h>
11690 #endif
11691
11692 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11693 int
11694 main ()
11695 {
11696
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_compile "$LINENO"; then :
11702 result=yes
11703 else
11704 result=no
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 eval gl_cv_type_${gltype}_signed=\$result
11708
11709 fi
11710 eval ac_res=\$gl_cv_type_${gltype}_signed
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11712 $as_echo "$ac_res" >&6; }
11713 eval result=\$gl_cv_type_${gltype}_signed
11714 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11715 if test "$result" = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_SIGNED_${GLTYPE} 1
11718 _ACEOF
11719
11720 eval HAVE_SIGNED_${GLTYPE}=1
11721 else
11722 eval HAVE_SIGNED_${GLTYPE}=0
11723 fi
11724 done
11725
11726
11727 gl_cv_type_ptrdiff_t_signed=yes
11728 gl_cv_type_size_t_signed=no
11729 if test $APPLE_UNIVERSAL_BUILD = 0; then
11730
11731
11732 for gltype in ptrdiff_t size_t ; do
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11734 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11735 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 eval gl_cv_type_${gltype}_suffix=no
11739 eval result=\$gl_cv_type_${gltype}_signed
11740 if test "$result" = yes; then
11741 glsufu=
11742 else
11743 glsufu=u
11744 fi
11745 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11746 case $glsuf in
11747 '') gltype1='int';;
11748 l) gltype1='long int';;
11749 ll) gltype1='long long int';;
11750 i64) gltype1='__int64';;
11751 u) gltype1='unsigned int';;
11752 ul) gltype1='unsigned long int';;
11753 ull) gltype1='unsigned long long int';;
11754 ui64)gltype1='unsigned __int64';;
11755 esac
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758
11759 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11760 included before <wchar.h>. */
11761 #include <stddef.h>
11762 #include <signal.h>
11763 #if HAVE_WCHAR_H
11764 # include <stdio.h>
11765 # include <time.h>
11766 # include <wchar.h>
11767 #endif
11768
11769 extern $gltype foo;
11770 extern $gltype1 foo;
11771 int
11772 main ()
11773 {
11774
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_c_try_compile "$LINENO"; then :
11780 eval gl_cv_type_${gltype}_suffix=\$glsuf
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 eval result=\$gl_cv_type_${gltype}_suffix
11784 test "$result" != no && break
11785 done
11786 fi
11787 eval ac_res=\$gl_cv_type_${gltype}_suffix
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11789 $as_echo "$ac_res" >&6; }
11790 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11791 eval result=\$gl_cv_type_${gltype}_suffix
11792 test "$result" = no && result=
11793 eval ${GLTYPE}_SUFFIX=\$result
11794 cat >>confdefs.h <<_ACEOF
11795 #define ${GLTYPE}_SUFFIX $result
11796 _ACEOF
11797
11798 done
11799
11800
11801 fi
11802
11803
11804 for gltype in sig_atomic_t wchar_t wint_t ; do
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11806 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11807 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 eval gl_cv_type_${gltype}_suffix=no
11811 eval result=\$gl_cv_type_${gltype}_signed
11812 if test "$result" = yes; then
11813 glsufu=
11814 else
11815 glsufu=u
11816 fi
11817 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11818 case $glsuf in
11819 '') gltype1='int';;
11820 l) gltype1='long int';;
11821 ll) gltype1='long long int';;
11822 i64) gltype1='__int64';;
11823 u) gltype1='unsigned int';;
11824 ul) gltype1='unsigned long int';;
11825 ull) gltype1='unsigned long long int';;
11826 ui64)gltype1='unsigned __int64';;
11827 esac
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11832 included before <wchar.h>. */
11833 #include <stddef.h>
11834 #include <signal.h>
11835 #if HAVE_WCHAR_H
11836 # include <stdio.h>
11837 # include <time.h>
11838 # include <wchar.h>
11839 #endif
11840
11841 extern $gltype foo;
11842 extern $gltype1 foo;
11843 int
11844 main ()
11845 {
11846
11847 ;
11848 return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_c_try_compile "$LINENO"; then :
11852 eval gl_cv_type_${gltype}_suffix=\$glsuf
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 eval result=\$gl_cv_type_${gltype}_suffix
11856 test "$result" != no && break
11857 done
11858 fi
11859 eval ac_res=\$gl_cv_type_${gltype}_suffix
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11861 $as_echo "$ac_res" >&6; }
11862 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11863 eval result=\$gl_cv_type_${gltype}_suffix
11864 test "$result" = no && result=
11865 eval ${GLTYPE}_SUFFIX=\$result
11866 cat >>confdefs.h <<_ACEOF
11867 #define ${GLTYPE}_SUFFIX $result
11868 _ACEOF
11869
11870 done
11871
11872
11873
11874 if test $BITSIZEOF_WINT_T -lt 32; then
11875 BITSIZEOF_WINT_T=32
11876 fi
11877
11878 STDINT_H=stdint.h
11879 fi
11880
11881 if test -n "$STDINT_H"; then
11882 GL_GENERATE_STDINT_H_TRUE=
11883 GL_GENERATE_STDINT_H_FALSE='#'
11884 else
11885 GL_GENERATE_STDINT_H_TRUE='#'
11886 GL_GENERATE_STDINT_H_FALSE=
11887 fi
11888
11889
11890
11891
11892
11893 GNULIB_IMAXABS=0;
11894 GNULIB_IMAXDIV=0;
11895 GNULIB_STRTOIMAX=0;
11896 GNULIB_STRTOUMAX=0;
11897 HAVE_DECL_IMAXABS=1;
11898 HAVE_DECL_IMAXDIV=1;
11899 HAVE_DECL_STRTOIMAX=1;
11900 HAVE_DECL_STRTOUMAX=1;
11901 REPLACE_STRTOIMAX=0;
11902 REPLACE_STRTOUMAX=0;
11903 INT32_MAX_LT_INTMAX_MAX=1;
11904 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11905 PRI_MACROS_BROKEN=0;
11906 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11907 UINT32_MAX_LT_UINTMAX_MAX=1;
11908 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924 if test $gl_cv_have_include_next = yes; then
11925 gl_cv_next_inttypes_h='<'inttypes.h'>'
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11928 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11929 if ${gl_cv_next_inttypes_h+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932
11933 if test $ac_cv_header_inttypes_h = yes; then
11934
11935
11936
11937
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 #include <inttypes.h>
11941 _ACEOF
11942 case "$host_os" in
11943 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11944 *) gl_absname_cpp="$ac_cpp" ;;
11945 esac
11946
11947 case "$host_os" in
11948 mingw*)
11949 gl_dirsep_regex='[/\\]'
11950 ;;
11951 *)
11952 gl_dirsep_regex='\/'
11953 ;;
11954 esac
11955 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11956 gl_header_literal_regex=`echo 'inttypes.h' \
11957 | sed -e "$gl_make_literal_regex_sed"`
11958 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11959 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11960 s|^/[^/]|//&|
11961 p
11962 q
11963 }'
11964
11965 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11966 sed -n "$gl_absolute_header_sed"`
11967
11968 gl_header=$gl_cv_absolute_inttypes_h
11969 gl_cv_next_inttypes_h='"'$gl_header'"'
11970 else
11971 gl_cv_next_inttypes_h='<'inttypes.h'>'
11972 fi
11973
11974
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11977 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11978 fi
11979 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11980
11981 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11983 gl_next_as_first_directive='<'inttypes.h'>'
11984 else
11985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11986 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11987 fi
11988 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999 for ac_header in inttypes.h
12000 do :
12001 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12002 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12003 cat >>confdefs.h <<_ACEOF
12004 #define HAVE_INTTYPES_H 1
12005 _ACEOF
12006
12007 fi
12008
12009 done
12010
12011 if test $ac_cv_header_inttypes_h = yes; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12013 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12014 if ${gt_cv_inttypes_pri_broken+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020
12021 #include <inttypes.h>
12022 #ifdef PRId32
12023 char *p = PRId32;
12024 #endif
12025
12026 int
12027 main ()
12028 {
12029
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035 gt_cv_inttypes_pri_broken=no
12036 else
12037 gt_cv_inttypes_pri_broken=yes
12038 fi
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12043 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12044 fi
12045 if test "$gt_cv_inttypes_pri_broken" = yes; then
12046
12047 cat >>confdefs.h <<_ACEOF
12048 #define PRI_MACROS_BROKEN 1
12049 _ACEOF
12050
12051 PRI_MACROS_BROKEN=1
12052 else
12053 PRI_MACROS_BROKEN=0
12054 fi
12055
12056
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
12059 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
12060 if ${gl_cv_cc_float_expbit0+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063
12064 if test "$cross_compiling" = yes; then :
12065 gl_cv_cc_float_expbit0="word 0 bit 23"
12066 else
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069
12070 #include <float.h>
12071 #include <stddef.h>
12072 #include <stdio.h>
12073 #include <string.h>
12074 #define NWORDS \
12075 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12076 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
12077 static unsigned int ored_words[NWORDS];
12078 static unsigned int anded_words[NWORDS];
12079 static void add_to_ored_words (float x)
12080 {
12081 memory_float m;
12082 size_t i;
12083 /* Clear it first, in case
12084 sizeof (float) < sizeof (memory_float). */
12085 memset (&m, 0, sizeof (memory_float));
12086 m.value = x;
12087 for (i = 0; i < NWORDS; i++)
12088 {
12089 ored_words[i] |= m.word[i];
12090 anded_words[i] &= m.word[i];
12091 }
12092 }
12093 int main ()
12094 {
12095 size_t j;
12096 FILE *fp = fopen ("conftest.out", "w");
12097 if (fp == NULL)
12098 return 1;
12099 for (j = 0; j < NWORDS; j++)
12100 anded_words[j] = ~ (unsigned int) 0;
12101 add_to_ored_words (0.25f);
12102 add_to_ored_words (0.5f);
12103 add_to_ored_words (1.0f);
12104 add_to_ored_words (2.0f);
12105 add_to_ored_words (4.0f);
12106 /* Remove bits that are common (e.g. if representation of the first mantissa
12107 bit is explicit). */
12108 for (j = 0; j < NWORDS; j++)
12109 ored_words[j] &= ~anded_words[j];
12110 /* Now find the nonzero word. */
12111 for (j = 0; j < NWORDS; j++)
12112 if (ored_words[j] != 0)
12113 break;
12114 if (j < NWORDS)
12115 {
12116 size_t i;
12117 for (i = j + 1; i < NWORDS; i++)
12118 if (ored_words[i] != 0)
12119 {
12120 fprintf (fp, "unknown");
12121 return (fclose (fp) != 0);
12122 }
12123 for (i = 0; ; i++)
12124 if ((ored_words[j] >> i) & 1)
12125 {
12126 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12127 return (fclose (fp) != 0);
12128 }
12129 }
12130 fprintf (fp, "unknown");
12131 return (fclose (fp) != 0);
12132 }
12133
12134 _ACEOF
12135 if ac_fn_c_try_run "$LINENO"; then :
12136 gl_cv_cc_float_expbit0=`cat conftest.out`
12137 else
12138 gl_cv_cc_float_expbit0="unknown"
12139 fi
12140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12141 conftest.$ac_objext conftest.beam conftest.$ac_ext
12142 fi
12143
12144 rm -f conftest.out
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
12148 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
12149 case "$gl_cv_cc_float_expbit0" in
12150 word*bit*)
12151 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12152 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
12153
12154 cat >>confdefs.h <<_ACEOF
12155 #define FLT_EXPBIT0_WORD $word
12156 _ACEOF
12157
12158
12159 cat >>confdefs.h <<_ACEOF
12160 #define FLT_EXPBIT0_BIT $bit
12161 _ACEOF
12162
12163 ;;
12164 esac
12165
12166
12167
12168
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12170 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
12171 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 rm -f conftest.sym conftest.file
12175 echo >conftest.file
12176 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12177 if test "$cross_compiling" = yes; then :
12178 case "$host_os" in
12179 # Guess yes on glibc systems.
12180 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12181 # If we don't know, assume the worst.
12182 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
12183 esac
12184
12185 else
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188 $ac_includes_default
12189 int
12190 main ()
12191 {
12192 struct stat sbuf;
12193 /* Linux will dereference the symlink and fail, as required by
12194 POSIX. That is better in the sense that it means we will not
12195 have to compile and use the lstat wrapper. */
12196 return lstat ("conftest.sym/", &sbuf) == 0;
12197
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_run "$LINENO"; then :
12203 gl_cv_func_lstat_dereferences_slashed_symlink=yes
12204 else
12205 gl_cv_func_lstat_dereferences_slashed_symlink=no
12206 fi
12207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12208 conftest.$ac_objext conftest.beam conftest.$ac_ext
12209 fi
12210
12211 else
12212 # If the 'ln -s' command failed, then we probably don't even
12213 # have an lstat function.
12214 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
12215 fi
12216 rm -f conftest.sym conftest.file
12217
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
12220 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12221 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
12222 *yes)
12223
12224 cat >>confdefs.h <<_ACEOF
12225 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12226 _ACEOF
12227
12228 ;;
12229 esac
12230
12231
12232 GNULIB__EXIT=0;
12233 GNULIB_ATOLL=0;
12234 GNULIB_CALLOC_POSIX=0;
12235 GNULIB_CANONICALIZE_FILE_NAME=0;
12236 GNULIB_GETLOADAVG=0;
12237 GNULIB_GETSUBOPT=0;
12238 GNULIB_GRANTPT=0;
12239 GNULIB_MALLOC_POSIX=0;
12240 GNULIB_MBTOWC=0;
12241 GNULIB_MKDTEMP=0;
12242 GNULIB_MKOSTEMP=0;
12243 GNULIB_MKOSTEMPS=0;
12244 GNULIB_MKSTEMP=0;
12245 GNULIB_MKSTEMPS=0;
12246 GNULIB_POSIX_OPENPT=0;
12247 GNULIB_PTSNAME=0;
12248 GNULIB_PTSNAME_R=0;
12249 GNULIB_PUTENV=0;
12250 GNULIB_RANDOM=0;
12251 GNULIB_RANDOM_R=0;
12252 GNULIB_REALLOC_POSIX=0;
12253 GNULIB_REALPATH=0;
12254 GNULIB_RPMATCH=0;
12255 GNULIB_SECURE_GETENV=0;
12256 GNULIB_SETENV=0;
12257 GNULIB_STRTOD=0;
12258 GNULIB_STRTOLL=0;
12259 GNULIB_STRTOULL=0;
12260 GNULIB_SYSTEM_POSIX=0;
12261 GNULIB_UNLOCKPT=0;
12262 GNULIB_UNSETENV=0;
12263 GNULIB_WCTOMB=0;
12264 HAVE__EXIT=1;
12265 HAVE_ATOLL=1;
12266 HAVE_CANONICALIZE_FILE_NAME=1;
12267 HAVE_DECL_GETLOADAVG=1;
12268 HAVE_GETSUBOPT=1;
12269 HAVE_GRANTPT=1;
12270 HAVE_MKDTEMP=1;
12271 HAVE_MKOSTEMP=1;
12272 HAVE_MKOSTEMPS=1;
12273 HAVE_MKSTEMP=1;
12274 HAVE_MKSTEMPS=1;
12275 HAVE_POSIX_OPENPT=1;
12276 HAVE_PTSNAME=1;
12277 HAVE_PTSNAME_R=1;
12278 HAVE_RANDOM=1;
12279 HAVE_RANDOM_H=1;
12280 HAVE_RANDOM_R=1;
12281 HAVE_REALPATH=1;
12282 HAVE_RPMATCH=1;
12283 HAVE_SECURE_GETENV=1;
12284 HAVE_SETENV=1;
12285 HAVE_DECL_SETENV=1;
12286 HAVE_STRTOD=1;
12287 HAVE_STRTOLL=1;
12288 HAVE_STRTOULL=1;
12289 HAVE_STRUCT_RANDOM_DATA=1;
12290 HAVE_SYS_LOADAVG_H=0;
12291 HAVE_UNLOCKPT=1;
12292 HAVE_DECL_UNSETENV=1;
12293 REPLACE_CALLOC=0;
12294 REPLACE_CANONICALIZE_FILE_NAME=0;
12295 REPLACE_MALLOC=0;
12296 REPLACE_MBTOWC=0;
12297 REPLACE_MKSTEMP=0;
12298 REPLACE_PTSNAME=0;
12299 REPLACE_PTSNAME_R=0;
12300 REPLACE_PUTENV=0;
12301 REPLACE_RANDOM_R=0;
12302 REPLACE_REALLOC=0;
12303 REPLACE_REALPATH=0;
12304 REPLACE_SETENV=0;
12305 REPLACE_STRTOD=0;
12306 REPLACE_UNSETENV=0;
12307 REPLACE_WCTOMB=0;
12308
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12311 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12312 if ${gl_cv_func_malloc_posix+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318
12319 int
12320 main ()
12321 {
12322 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12323 choke me
12324 #endif
12325
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331 gl_cv_func_malloc_posix=yes
12332 else
12333 gl_cv_func_malloc_posix=no
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12339 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12340
12341
12342
12343
12344
12345
12346
12347
12348 GNULIB_FFSL=0;
12349 GNULIB_FFSLL=0;
12350 GNULIB_MEMCHR=0;
12351 GNULIB_MEMMEM=0;
12352 GNULIB_MEMPCPY=0;
12353 GNULIB_MEMRCHR=0;
12354 GNULIB_RAWMEMCHR=0;
12355 GNULIB_STPCPY=0;
12356 GNULIB_STPNCPY=0;
12357 GNULIB_STRCHRNUL=0;
12358 GNULIB_STRDUP=0;
12359 GNULIB_STRNCAT=0;
12360 GNULIB_STRNDUP=0;
12361 GNULIB_STRNLEN=0;
12362 GNULIB_STRPBRK=0;
12363 GNULIB_STRSEP=0;
12364 GNULIB_STRSTR=0;
12365 GNULIB_STRCASESTR=0;
12366 GNULIB_STRTOK_R=0;
12367 GNULIB_MBSLEN=0;
12368 GNULIB_MBSNLEN=0;
12369 GNULIB_MBSCHR=0;
12370 GNULIB_MBSRCHR=0;
12371 GNULIB_MBSSTR=0;
12372 GNULIB_MBSCASECMP=0;
12373 GNULIB_MBSNCASECMP=0;
12374 GNULIB_MBSPCASECMP=0;
12375 GNULIB_MBSCASESTR=0;
12376 GNULIB_MBSCSPN=0;
12377 GNULIB_MBSPBRK=0;
12378 GNULIB_MBSSPN=0;
12379 GNULIB_MBSSEP=0;
12380 GNULIB_MBSTOK_R=0;
12381 GNULIB_STRERROR=0;
12382 GNULIB_STRERROR_R=0;
12383 GNULIB_STRSIGNAL=0;
12384 GNULIB_STRVERSCMP=0;
12385 HAVE_MBSLEN=0;
12386 HAVE_FFSL=1;
12387 HAVE_FFSLL=1;
12388 HAVE_MEMCHR=1;
12389 HAVE_DECL_MEMMEM=1;
12390 HAVE_MEMPCPY=1;
12391 HAVE_DECL_MEMRCHR=1;
12392 HAVE_RAWMEMCHR=1;
12393 HAVE_STPCPY=1;
12394 HAVE_STPNCPY=1;
12395 HAVE_STRCHRNUL=1;
12396 HAVE_DECL_STRDUP=1;
12397 HAVE_DECL_STRNDUP=1;
12398 HAVE_DECL_STRNLEN=1;
12399 HAVE_STRPBRK=1;
12400 HAVE_STRSEP=1;
12401 HAVE_STRCASESTR=1;
12402 HAVE_DECL_STRTOK_R=1;
12403 HAVE_DECL_STRERROR_R=1;
12404 HAVE_DECL_STRSIGNAL=1;
12405 HAVE_STRVERSCMP=1;
12406 REPLACE_MEMCHR=0;
12407 REPLACE_MEMMEM=0;
12408 REPLACE_STPNCPY=0;
12409 REPLACE_STRDUP=0;
12410 REPLACE_STRSTR=0;
12411 REPLACE_STRCASESTR=0;
12412 REPLACE_STRCHRNUL=0;
12413 REPLACE_STRERROR=0;
12414 REPLACE_STRERROR_R=0;
12415 REPLACE_STRNCAT=0;
12416 REPLACE_STRNDUP=0;
12417 REPLACE_STRNLEN=0;
12418 REPLACE_STRSIGNAL=0;
12419 REPLACE_STRTOK_R=0;
12420 UNDEFINE_STRTOK_R=0;
12421
12422
12423
12424
12425
12426 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12427 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12428 # irrelevant for anonymous mappings.
12429 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12430 if test "x$ac_cv_func_mmap" = xyes; then :
12431 gl_have_mmap=yes
12432 else
12433 gl_have_mmap=no
12434 fi
12435
12436
12437 # Try to allow MAP_ANONYMOUS.
12438 gl_have_mmap_anonymous=no
12439 if test $gl_have_mmap = yes; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12441 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444
12445 #include <sys/mman.h>
12446 #ifdef MAP_ANONYMOUS
12447 I cannot identify this map
12448 #endif
12449
12450 _ACEOF
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
12453 gl_have_mmap_anonymous=yes
12454 fi
12455 rm -f conftest*
12456
12457 if test $gl_have_mmap_anonymous != yes; then
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460
12461 #include <sys/mman.h>
12462 #ifdef MAP_ANON
12463 I cannot identify this map
12464 #endif
12465
12466 _ACEOF
12467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12468 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
12469
12470 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12471
12472 gl_have_mmap_anonymous=yes
12473 fi
12474 rm -f conftest*
12475
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12478 $as_echo "$gl_have_mmap_anonymous" >&6; }
12479 if test $gl_have_mmap_anonymous = yes; then
12480
12481 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12482
12483 fi
12484 fi
12485
12486
12487
12488
12489
12490
12491 if test $HAVE_MEMCHR = 1; then
12492 # Detect platform-specific bugs in some versions of glibc:
12493 # memchr should not dereference anything with length 0
12494 # http://bugzilla.redhat.com/499689
12495 # memchr should not dereference overestimated length after a match
12496 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12497 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12498 # Assume that memchr works on platforms that lack mprotect.
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12500 $as_echo_n "checking whether memchr works... " >&6; }
12501 if ${gl_cv_func_memchr_works+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 if test "$cross_compiling" = yes; then :
12505 gl_cv_func_memchr_works="guessing no"
12506 else
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509
12510 #include <string.h>
12511 #if HAVE_SYS_MMAN_H
12512 # include <fcntl.h>
12513 # include <unistd.h>
12514 # include <sys/types.h>
12515 # include <sys/mman.h>
12516 # ifndef MAP_FILE
12517 # define MAP_FILE 0
12518 # endif
12519 #endif
12520
12521 int
12522 main ()
12523 {
12524
12525 int result = 0;
12526 char *fence = NULL;
12527 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12528 # if HAVE_MAP_ANONYMOUS
12529 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12530 const int fd = -1;
12531 # else /* !HAVE_MAP_ANONYMOUS */
12532 const int flags = MAP_FILE | MAP_PRIVATE;
12533 int fd = open ("/dev/zero", O_RDONLY, 0666);
12534 if (fd >= 0)
12535 # endif
12536 {
12537 int pagesize = getpagesize ();
12538 char *two_pages =
12539 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12540 flags, fd, 0);
12541 if (two_pages != (char *)(-1)
12542 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12543 fence = two_pages + pagesize;
12544 }
12545 #endif
12546 if (fence)
12547 {
12548 if (memchr (fence, 0, 0))
12549 result |= 1;
12550 strcpy (fence - 9, "12345678");
12551 if (memchr (fence - 9, 0, 79) != fence - 1)
12552 result |= 2;
12553 if (memchr (fence - 1, 0, 3) != fence - 1)
12554 result |= 4;
12555 }
12556 return result;
12557
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 if ac_fn_c_try_run "$LINENO"; then :
12563 gl_cv_func_memchr_works=yes
12564 else
12565 gl_cv_func_memchr_works=no
12566 fi
12567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12568 conftest.$ac_objext conftest.beam conftest.$ac_ext
12569 fi
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12573 $as_echo "$gl_cv_func_memchr_works" >&6; }
12574 if test "$gl_cv_func_memchr_works" != yes; then
12575 REPLACE_MEMCHR=1
12576 fi
12577 fi
12578
12579
12580
12581
12582 HAVE_PTHREAD_H=1;
12583 HAVE_PTHREAD_T=1;
12584 HAVE_PTHREAD_SPINLOCK_T=1;
12585
12586
12587
12588
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12591 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12592 if ${ac_cv_header_stdbool_h+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 #include <stdbool.h>
12599 #ifndef bool
12600 "error: bool is not defined"
12601 #endif
12602 #ifndef false
12603 "error: false is not defined"
12604 #endif
12605 #if false
12606 "error: false is not 0"
12607 #endif
12608 #ifndef true
12609 "error: true is not defined"
12610 #endif
12611 #if true != 1
12612 "error: true is not 1"
12613 #endif
12614 #ifndef __bool_true_false_are_defined
12615 "error: __bool_true_false_are_defined is not defined"
12616 #endif
12617
12618 struct s { _Bool s: 1; _Bool t; } s;
12619
12620 char a[true == 1 ? 1 : -1];
12621 char b[false == 0 ? 1 : -1];
12622 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12623 char d[(bool) 0.5 == true ? 1 : -1];
12624 /* See body of main program for 'e'. */
12625 char f[(_Bool) 0.0 == false ? 1 : -1];
12626 char g[true];
12627 char h[sizeof (_Bool)];
12628 char i[sizeof s.t];
12629 enum { j = false, k = true, l = false * true, m = true * 256 };
12630 /* The following fails for
12631 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12632 _Bool n[m];
12633 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12634 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12635 /* Catch a bug in an HP-UX C compiler. See
12636 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12637 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12638 */
12639 _Bool q = true;
12640 _Bool *pq = &q;
12641
12642 int
12643 main ()
12644 {
12645
12646 bool e = &s;
12647 *pq |= q;
12648 *pq |= ! q;
12649 /* Refer to every declared value, to avoid compiler optimizations. */
12650 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12651 + !m + !n + !o + !p + !q + !pq);
12652
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_compile "$LINENO"; then :
12658 ac_cv_header_stdbool_h=yes
12659 else
12660 ac_cv_header_stdbool_h=no
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12665 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12666 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12667 if test "x$ac_cv_type__Bool" = xyes; then :
12668
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE__BOOL 1
12671 _ACEOF
12672
12673
12674 fi
12675
12676
12677
12678 REPLACE_NULL=0;
12679 HAVE_WCHAR_T=1;
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 if test $gl_cv_have_include_next = yes; then
12693 gl_cv_next_string_h='<'string.h'>'
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
12696 $as_echo_n "checking absolute name of <string.h>... " >&6; }
12697 if ${gl_cv_next_string_h+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700
12701
12702
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <string.h>
12706 _ACEOF
12707 case "$host_os" in
12708 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12709 *) gl_absname_cpp="$ac_cpp" ;;
12710 esac
12711
12712 case "$host_os" in
12713 mingw*)
12714 gl_dirsep_regex='[/\\]'
12715 ;;
12716 *)
12717 gl_dirsep_regex='\/'
12718 ;;
12719 esac
12720 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12721 gl_header_literal_regex=`echo 'string.h' \
12722 | sed -e "$gl_make_literal_regex_sed"`
12723 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12724 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12725 s|^/[^/]|//&|
12726 p
12727 q
12728 }'
12729
12730 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12731 sed -n "$gl_absolute_header_sed"`
12732
12733 gl_header=$gl_cv_absolute_string_h
12734 gl_cv_next_string_h='"'$gl_header'"'
12735
12736
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
12739 $as_echo "$gl_cv_next_string_h" >&6; }
12740 fi
12741 NEXT_STRING_H=$gl_cv_next_string_h
12742
12743 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12745 gl_next_as_first_directive='<'string.h'>'
12746 else
12747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12748 gl_next_as_first_directive=$gl_cv_next_string_h
12749 fi
12750 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776 if test $gl_cv_have_include_next = yes; then
12777 gl_cv_next_sys_types_h='<'sys/types.h'>'
12778 else
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12780 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
12781 if ${gl_cv_next_sys_types_h+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784
12785
12786
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789 #include <sys/types.h>
12790 _ACEOF
12791 case "$host_os" in
12792 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12793 *) gl_absname_cpp="$ac_cpp" ;;
12794 esac
12795
12796 case "$host_os" in
12797 mingw*)
12798 gl_dirsep_regex='[/\\]'
12799 ;;
12800 *)
12801 gl_dirsep_regex='\/'
12802 ;;
12803 esac
12804 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12805 gl_header_literal_regex=`echo 'sys/types.h' \
12806 | sed -e "$gl_make_literal_regex_sed"`
12807 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12808 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12809 s|^/[^/]|//&|
12810 p
12811 q
12812 }'
12813
12814 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12815 sed -n "$gl_absolute_header_sed"`
12816
12817 gl_header=$gl_cv_absolute_sys_types_h
12818 gl_cv_next_sys_types_h='"'$gl_header'"'
12819
12820
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12823 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12824 fi
12825 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12826
12827 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12829 gl_next_as_first_directive='<'sys/types.h'>'
12830 else
12831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12832 gl_next_as_first_directive=$gl_cv_next_sys_types_h
12833 fi
12834 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847 GNULIB_MKTIME=0;
12848 GNULIB_NANOSLEEP=0;
12849 GNULIB_STRPTIME=0;
12850 GNULIB_TIMEGM=0;
12851 GNULIB_TIME_R=0;
12852 HAVE_DECL_LOCALTIME_R=1;
12853 HAVE_NANOSLEEP=1;
12854 HAVE_STRPTIME=1;
12855 HAVE_TIMEGM=1;
12856 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12857 REPLACE_MKTIME=GNULIB_PORTCHECK;
12858 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12859 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12860
12861 : ${GNULIB_GETTIMEOFDAY=0};
12862 REPLACE_GMTIME=0;
12863 REPLACE_LOCALTIME=0;
12864
12865
12866
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12868 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12869 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <time.h>
12875
12876 int
12877 main ()
12878 {
12879 static struct timespec x; x.tv_sec = x.tv_nsec;
12880 ;
12881 return 0;
12882 }
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 gl_cv_sys_struct_timespec_in_time_h=yes
12886 else
12887 gl_cv_sys_struct_timespec_in_time_h=no
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12892 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12893
12894 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12895 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12896 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12897 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12898 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12899 else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12901 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12902 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 #include <sys/time.h>
12908
12909 int
12910 main ()
12911 {
12912 static struct timespec x; x.tv_sec = x.tv_nsec;
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_c_try_compile "$LINENO"; then :
12918 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12919 else
12920 gl_cv_sys_struct_timespec_in_sys_time_h=no
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 fi
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12925 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12926 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12927 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12930 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12931 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 #include <pthread.h>
12937
12938 int
12939 main ()
12940 {
12941 static struct timespec x; x.tv_sec = x.tv_nsec;
12942 ;
12943 return 0;
12944 }
12945 _ACEOF
12946 if ac_fn_c_try_compile "$LINENO"; then :
12947 gl_cv_sys_struct_timespec_in_pthread_h=yes
12948 else
12949 gl_cv_sys_struct_timespec_in_pthread_h=no
12950 fi
12951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12954 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12955 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12956 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12957 fi
12958 fi
12959 fi
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975 if test $gl_cv_have_include_next = yes; then
12976 gl_cv_next_time_h='<'time.h'>'
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12979 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12980 if ${gl_cv_next_time_h+:} false; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983
12984
12985
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988 #include <time.h>
12989 _ACEOF
12990 case "$host_os" in
12991 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12992 *) gl_absname_cpp="$ac_cpp" ;;
12993 esac
12994
12995 case "$host_os" in
12996 mingw*)
12997 gl_dirsep_regex='[/\\]'
12998 ;;
12999 *)
13000 gl_dirsep_regex='\/'
13001 ;;
13002 esac
13003 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13004 gl_header_literal_regex=`echo 'time.h' \
13005 | sed -e "$gl_make_literal_regex_sed"`
13006 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13007 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13008 s|^/[^/]|//&|
13009 p
13010 q
13011 }'
13012
13013 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13014 sed -n "$gl_absolute_header_sed"`
13015
13016 gl_header=$gl_cv_absolute_time_h
13017 gl_cv_next_time_h='"'$gl_header'"'
13018
13019
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
13022 $as_echo "$gl_cv_next_time_h" >&6; }
13023 fi
13024 NEXT_TIME_H=$gl_cv_next_time_h
13025
13026 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13028 gl_next_as_first_directive='<'time.h'>'
13029 else
13030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13031 gl_next_as_first_directive=$gl_cv_next_time_h
13032 fi
13033 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
13034
13035
13036
13037
13038
13039
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
13042 $as_echo_n "checking whether the utimes function works... " >&6; }
13043 if ${gl_cv_func_working_utimes+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046
13047 if test "$cross_compiling" = yes; then :
13048 gl_cv_func_working_utimes=no
13049 else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052
13053 #include <sys/types.h>
13054 #include <sys/stat.h>
13055 #include <fcntl.h>
13056 #include <sys/time.h>
13057 #include <time.h>
13058 #include <unistd.h>
13059 #include <stdlib.h>
13060 #include <stdio.h>
13061 #include <utime.h>
13062
13063 static int
13064 inorder (time_t a, time_t b, time_t c)
13065 {
13066 return a <= b && b <= c;
13067 }
13068
13069 int
13070 main ()
13071 {
13072 int result = 0;
13073 char const *file = "conftest.utimes";
13074 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
13075
13076 /* Test whether utimes() essentially works. */
13077 {
13078 struct stat sbuf;
13079 FILE *f = fopen (file, "w");
13080 if (f == NULL)
13081 result |= 1;
13082 else if (fclose (f) != 0)
13083 result |= 1;
13084 else if (utimes (file, timeval) != 0)
13085 result |= 2;
13086 else if (lstat (file, &sbuf) != 0)
13087 result |= 1;
13088 else if (!(sbuf.st_atime == timeval[0].tv_sec
13089 && sbuf.st_mtime == timeval[1].tv_sec))
13090 result |= 4;
13091 if (unlink (file) != 0)
13092 result |= 1;
13093 }
13094
13095 /* Test whether utimes() with a NULL argument sets the file's timestamp
13096 to the current time. Use 'fstat' as well as 'time' to
13097 determine the "current" time, to accommodate NFS file systems
13098 if there is a time skew between the host and the NFS server. */
13099 {
13100 int fd = open (file, O_WRONLY|O_CREAT, 0644);
13101 if (fd < 0)
13102 result |= 1;
13103 else
13104 {
13105 time_t t0, t2;
13106 struct stat st0, st1, st2;
13107 if (time (&t0) == (time_t) -1)
13108 result |= 1;
13109 else if (fstat (fd, &st0) != 0)
13110 result |= 1;
13111 else if (utimes (file, timeval) != 0)
13112 result |= 2;
13113 else if (utimes (file, NULL) != 0)
13114 result |= 8;
13115 else if (fstat (fd, &st1) != 0)
13116 result |= 1;
13117 else if (write (fd, "\n", 1) != 1)
13118 result |= 1;
13119 else if (fstat (fd, &st2) != 0)
13120 result |= 1;
13121 else if (time (&t2) == (time_t) -1)
13122 result |= 1;
13123 else
13124 {
13125 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
13126 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
13127 if (! (st1.st_atime == st1.st_mtime))
13128 result |= 16;
13129 if (! (m_ok_POSIX || m_ok_NFS))
13130 result |= 32;
13131 }
13132 if (close (fd) != 0)
13133 result |= 1;
13134 }
13135 if (unlink (file) != 0)
13136 result |= 1;
13137 }
13138
13139 /* Test whether utimes() with a NULL argument works on read-only files. */
13140 {
13141 int fd = open (file, O_WRONLY|O_CREAT, 0444);
13142 if (fd < 0)
13143 result |= 1;
13144 else if (close (fd) != 0)
13145 result |= 1;
13146 else if (utimes (file, NULL) != 0)
13147 result |= 64;
13148 if (unlink (file) != 0)
13149 result |= 1;
13150 }
13151
13152 return result;
13153 }
13154
13155 _ACEOF
13156 if ac_fn_c_try_run "$LINENO"; then :
13157 gl_cv_func_working_utimes=yes
13158 else
13159 gl_cv_func_working_utimes=no
13160 fi
13161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13162 conftest.$ac_objext conftest.beam conftest.$ac_ext
13163 fi
13164
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
13167 $as_echo "$gl_cv_func_working_utimes" >&6; }
13168
13169 if test $gl_cv_func_working_utimes = yes; then
13170
13171 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
13172
13173 fi
13174
13175
13176
13177
13178
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
13180 $as_echo_n "checking for struct utimbuf... " >&6; }
13181 if ${gl_cv_sys_struct_utimbuf+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #if HAVE_SYS_TIME_H
13187 #include <sys/time.h>
13188 #endif
13189 #include <time.h>
13190 #ifdef HAVE_UTIME_H
13191 #include <utime.h>
13192 #endif
13193
13194 int
13195 main ()
13196 {
13197 static struct utimbuf x; x.actime = x.modtime;
13198 ;
13199 return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_compile "$LINENO"; then :
13203 gl_cv_sys_struct_utimbuf=yes
13204 else
13205 gl_cv_sys_struct_utimbuf=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
13210 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
13211
13212 if test $gl_cv_sys_struct_utimbuf = yes; then
13213
13214 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
13215
13216 fi
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229 GNULIB_BTOWC=0;
13230 GNULIB_WCTOB=0;
13231 GNULIB_MBSINIT=0;
13232 GNULIB_MBRTOWC=0;
13233 GNULIB_MBRLEN=0;
13234 GNULIB_MBSRTOWCS=0;
13235 GNULIB_MBSNRTOWCS=0;
13236 GNULIB_WCRTOMB=0;
13237 GNULIB_WCSRTOMBS=0;
13238 GNULIB_WCSNRTOMBS=0;
13239 GNULIB_WCWIDTH=0;
13240 GNULIB_WMEMCHR=0;
13241 GNULIB_WMEMCMP=0;
13242 GNULIB_WMEMCPY=0;
13243 GNULIB_WMEMMOVE=0;
13244 GNULIB_WMEMSET=0;
13245 GNULIB_WCSLEN=0;
13246 GNULIB_WCSNLEN=0;
13247 GNULIB_WCSCPY=0;
13248 GNULIB_WCPCPY=0;
13249 GNULIB_WCSNCPY=0;
13250 GNULIB_WCPNCPY=0;
13251 GNULIB_WCSCAT=0;
13252 GNULIB_WCSNCAT=0;
13253 GNULIB_WCSCMP=0;
13254 GNULIB_WCSNCMP=0;
13255 GNULIB_WCSCASECMP=0;
13256 GNULIB_WCSNCASECMP=0;
13257 GNULIB_WCSCOLL=0;
13258 GNULIB_WCSXFRM=0;
13259 GNULIB_WCSDUP=0;
13260 GNULIB_WCSCHR=0;
13261 GNULIB_WCSRCHR=0;
13262 GNULIB_WCSCSPN=0;
13263 GNULIB_WCSSPN=0;
13264 GNULIB_WCSPBRK=0;
13265 GNULIB_WCSSTR=0;
13266 GNULIB_WCSTOK=0;
13267 GNULIB_WCSWIDTH=0;
13268 HAVE_BTOWC=1;
13269 HAVE_MBSINIT=1;
13270 HAVE_MBRTOWC=1;
13271 HAVE_MBRLEN=1;
13272 HAVE_MBSRTOWCS=1;
13273 HAVE_MBSNRTOWCS=1;
13274 HAVE_WCRTOMB=1;
13275 HAVE_WCSRTOMBS=1;
13276 HAVE_WCSNRTOMBS=1;
13277 HAVE_WMEMCHR=1;
13278 HAVE_WMEMCMP=1;
13279 HAVE_WMEMCPY=1;
13280 HAVE_WMEMMOVE=1;
13281 HAVE_WMEMSET=1;
13282 HAVE_WCSLEN=1;
13283 HAVE_WCSNLEN=1;
13284 HAVE_WCSCPY=1;
13285 HAVE_WCPCPY=1;
13286 HAVE_WCSNCPY=1;
13287 HAVE_WCPNCPY=1;
13288 HAVE_WCSCAT=1;
13289 HAVE_WCSNCAT=1;
13290 HAVE_WCSCMP=1;
13291 HAVE_WCSNCMP=1;
13292 HAVE_WCSCASECMP=1;
13293 HAVE_WCSNCASECMP=1;
13294 HAVE_WCSCOLL=1;
13295 HAVE_WCSXFRM=1;
13296 HAVE_WCSDUP=1;
13297 HAVE_WCSCHR=1;
13298 HAVE_WCSRCHR=1;
13299 HAVE_WCSCSPN=1;
13300 HAVE_WCSSPN=1;
13301 HAVE_WCSPBRK=1;
13302 HAVE_WCSSTR=1;
13303 HAVE_WCSTOK=1;
13304 HAVE_WCSWIDTH=1;
13305 HAVE_DECL_WCTOB=1;
13306 HAVE_DECL_WCWIDTH=1;
13307 REPLACE_MBSTATE_T=0;
13308 REPLACE_BTOWC=0;
13309 REPLACE_WCTOB=0;
13310 REPLACE_MBSINIT=0;
13311 REPLACE_MBRTOWC=0;
13312 REPLACE_MBRLEN=0;
13313 REPLACE_MBSRTOWCS=0;
13314 REPLACE_MBSNRTOWCS=0;
13315 REPLACE_WCRTOMB=0;
13316 REPLACE_WCSRTOMBS=0;
13317 REPLACE_WCSNRTOMBS=0;
13318 REPLACE_WCWIDTH=0;
13319 REPLACE_WCSWIDTH=0;
13320
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13323 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13324 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 gl_cv_header_wchar_h_correct_inline=yes
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330
13331 #define wcstod renamed_wcstod
13332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13333 <wchar.h>.
13334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13335 included before <wchar.h>. */
13336 #include <stddef.h>
13337 #include <stdio.h>
13338 #include <time.h>
13339 #include <wchar.h>
13340 extern int zero (void);
13341 int main () { return zero(); }
13342
13343 _ACEOF
13344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13345 (eval $ac_compile) 2>&5
13346 ac_status=$?
13347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13348 test $ac_status = 0; }; then
13349 mv conftest.$ac_objext conftest1.$ac_objext
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352
13353 #define wcstod renamed_wcstod
13354 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13355 <wchar.h>.
13356 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13357 included before <wchar.h>. */
13358 #include <stddef.h>
13359 #include <stdio.h>
13360 #include <time.h>
13361 #include <wchar.h>
13362 int zero (void) { return 0; }
13363
13364 _ACEOF
13365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13366 (eval $ac_compile) 2>&5
13367 ac_status=$?
13368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13369 test $ac_status = 0; }; then
13370 mv conftest.$ac_objext conftest2.$ac_objext
13371 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
13372 :
13373 else
13374 gl_cv_header_wchar_h_correct_inline=no
13375 fi
13376 fi
13377 fi
13378 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
13379
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13382 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13383 if test $gl_cv_header_wchar_h_correct_inline = no; then
13384 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13385 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13386 C99 mode. You have four options:
13387 - Add the flag -fgnu89-inline to CC and reconfigure, or
13388 - Fix your include files, using parts of
13389 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13390 - Use a gcc version older than 4.3, or
13391 - Don't use the flags -std=c99 or -std=gnu99.
13392 Configuration aborted." "$LINENO" 5
13393 fi
13394
13395
13396 if false; then
13397 GL_COND_LIBTOOL_TRUE=
13398 GL_COND_LIBTOOL_FALSE='#'
13399 else
13400 GL_COND_LIBTOOL_TRUE='#'
13401 GL_COND_LIBTOOL_FALSE=
13402 fi
13403
13404 gl_cond_libtool=false
13405 gl_libdeps=
13406 gl_ltlibdeps=
13407 gl_m4_base='m4'
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417 gl_source_base='lib'
13418
13419
13420 if test $ac_cv_func_alloca_works = no; then
13421 :
13422 fi
13423
13424 # Define an additional variable used in the Makefile substitution.
13425 if test $ac_cv_working_alloca_h = yes; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13427 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13428 if ${gl_cv_rpl_alloca+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13436 Need own alloca
13437 #endif
13438
13439 _ACEOF
13440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13441 $EGREP "Need own alloca" >/dev/null 2>&1; then :
13442 gl_cv_rpl_alloca=yes
13443 else
13444 gl_cv_rpl_alloca=no
13445 fi
13446 rm -f conftest*
13447
13448
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13451 $as_echo "$gl_cv_rpl_alloca" >&6; }
13452 if test $gl_cv_rpl_alloca = yes; then
13453
13454 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13455
13456 ALLOCA_H=alloca.h
13457 else
13458 ALLOCA_H=
13459 fi
13460 else
13461 ALLOCA_H=alloca.h
13462 fi
13463
13464 if test -n "$ALLOCA_H"; then
13465 GL_GENERATE_ALLOCA_H_TRUE=
13466 GL_GENERATE_ALLOCA_H_FALSE='#'
13467 else
13468 GL_GENERATE_ALLOCA_H_TRUE='#'
13469 GL_GENERATE_ALLOCA_H_FALSE=
13470 fi
13471
13472
13473
13474
13475
13476 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
13477 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
13478
13479 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
13480 # programs in the package would end up linked with that potentially-shared
13481 # library, inducing unnecessary run-time overhead.
13482 LIB_CLOCK_GETTIME=
13483
13484 gl_saved_libs=$LIBS
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13486 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13487 if ${ac_cv_search_clock_gettime+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 ac_func_search_save_LIBS=$LIBS
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493
13494 /* Override any GCC internal prototype to avoid an error.
13495 Use char because int might match the return type of a GCC
13496 builtin and then its argument prototype would still apply. */
13497 #ifdef __cplusplus
13498 extern "C"
13499 #endif
13500 char clock_gettime ();
13501 int
13502 main ()
13503 {
13504 return clock_gettime ();
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 for ac_lib in '' rt posix4; do
13510 if test -z "$ac_lib"; then
13511 ac_res="none required"
13512 else
13513 ac_res=-l$ac_lib
13514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13515 fi
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_search_clock_gettime=$ac_res
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext
13521 if ${ac_cv_search_clock_gettime+:} false; then :
13522 break
13523 fi
13524 done
13525 if ${ac_cv_search_clock_gettime+:} false; then :
13526
13527 else
13528 ac_cv_search_clock_gettime=no
13529 fi
13530 rm conftest.$ac_ext
13531 LIBS=$ac_func_search_save_LIBS
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13534 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13535 ac_res=$ac_cv_search_clock_gettime
13536 if test "$ac_res" != no; then :
13537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13538 test "$ac_cv_search_clock_gettime" = "none required" ||
13539 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
13540 fi
13541
13542 for ac_func in clock_gettime clock_settime
13543 do :
13544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13549 _ACEOF
13550
13551 fi
13552 done
13553
13554 LIBS=$gl_saved_libs
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569 if test $gl_cv_have_include_next = yes; then
13570 gl_cv_next_fcntl_h='<'fcntl.h'>'
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
13573 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
13574 if ${gl_cv_next_fcntl_h+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577
13578
13579
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582 #include <fcntl.h>
13583 _ACEOF
13584 case "$host_os" in
13585 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13586 *) gl_absname_cpp="$ac_cpp" ;;
13587 esac
13588
13589 case "$host_os" in
13590 mingw*)
13591 gl_dirsep_regex='[/\\]'
13592 ;;
13593 *)
13594 gl_dirsep_regex='\/'
13595 ;;
13596 esac
13597 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13598 gl_header_literal_regex=`echo 'fcntl.h' \
13599 | sed -e "$gl_make_literal_regex_sed"`
13600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13602 s|^/[^/]|//&|
13603 p
13604 q
13605 }'
13606
13607 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13608 sed -n "$gl_absolute_header_sed"`
13609
13610 gl_header=$gl_cv_absolute_fcntl_h
13611 gl_cv_next_fcntl_h='"'$gl_header'"'
13612
13613
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
13616 $as_echo "$gl_cv_next_fcntl_h" >&6; }
13617 fi
13618 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
13619
13620 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13621 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13622 gl_next_as_first_directive='<'fcntl.h'>'
13623 else
13624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13625 gl_next_as_first_directive=$gl_cv_next_fcntl_h
13626 fi
13627 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642 FLOAT_H=
13643 REPLACE_FLOAT_LDBL=0
13644 case "$host_os" in
13645 aix* | beos* | openbsd* | mirbsd* | irix*)
13646 FLOAT_H=float.h
13647 ;;
13648 freebsd*)
13649 case "$host_cpu" in
13650 i[34567]86 )
13651 FLOAT_H=float.h
13652 ;;
13653 x86_64 )
13654 # On x86_64 systems, the C compiler may still be generating
13655 # 32-bit code.
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
13659 yes
13660 #endif
13661 _ACEOF
13662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13663 $EGREP "yes" >/dev/null 2>&1; then :
13664
13665 else
13666 FLOAT_H=float.h
13667 fi
13668 rm -f conftest*
13669
13670 ;;
13671 esac
13672 ;;
13673 linux*)
13674 case "$host_cpu" in
13675 powerpc*)
13676 FLOAT_H=float.h
13677 ;;
13678 esac
13679 ;;
13680 esac
13681 case "$host_os" in
13682 aix* | freebsd* | linux*)
13683 if test -n "$FLOAT_H"; then
13684 REPLACE_FLOAT_LDBL=1
13685 fi
13686 ;;
13687 esac
13688
13689 REPLACE_ITOLD=0
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13691 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13692 if ${gl_cv_func_itold_works+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695
13696 if test "$cross_compiling" = yes; then :
13697 case "$host" in
13698 sparc*-*-linux*)
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701 #if defined __LP64__ || defined __arch64__
13702 yes
13703 #endif
13704 _ACEOF
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "yes" >/dev/null 2>&1; then :
13707 gl_cv_func_itold_works="guessing no"
13708 else
13709 gl_cv_func_itold_works="guessing yes"
13710 fi
13711 rm -f conftest*
13712
13713 ;;
13714 *) gl_cv_func_itold_works="guessing yes" ;;
13715 esac
13716
13717 else
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13720
13721 int i = -1;
13722 volatile long double ld;
13723 int main ()
13724 {
13725 ld += i * 1.0L;
13726 if (ld > 0)
13727 return 1;
13728 return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_run "$LINENO"; then :
13732 gl_cv_func_itold_works=yes
13733 else
13734 gl_cv_func_itold_works=no
13735 fi
13736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13737 conftest.$ac_objext conftest.beam conftest.$ac_ext
13738 fi
13739
13740
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13743 $as_echo "$gl_cv_func_itold_works" >&6; }
13744 case "$gl_cv_func_itold_works" in
13745 *no)
13746 REPLACE_ITOLD=1
13747 FLOAT_H=float.h
13748 ;;
13749 esac
13750
13751 if test -n "$FLOAT_H"; then
13752
13753
13754
13755
13756
13757
13758
13759
13760 if test $gl_cv_have_include_next = yes; then
13761 gl_cv_next_float_h='<'float.h'>'
13762 else
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13764 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13765 if ${gl_cv_next_float_h+:} false; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768
13769
13770
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 #include <float.h>
13774 _ACEOF
13775 case "$host_os" in
13776 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13777 *) gl_absname_cpp="$ac_cpp" ;;
13778 esac
13779
13780 case "$host_os" in
13781 mingw*)
13782 gl_dirsep_regex='[/\\]'
13783 ;;
13784 *)
13785 gl_dirsep_regex='\/'
13786 ;;
13787 esac
13788 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13789 gl_header_literal_regex=`echo 'float.h' \
13790 | sed -e "$gl_make_literal_regex_sed"`
13791 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13792 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13793 s|^/[^/]|//&|
13794 p
13795 q
13796 }'
13797
13798 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13799 sed -n "$gl_absolute_header_sed"`
13800
13801 gl_header=$gl_cv_absolute_float_h
13802 gl_cv_next_float_h='"'$gl_header'"'
13803
13804
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13807 $as_echo "$gl_cv_next_float_h" >&6; }
13808 fi
13809 NEXT_FLOAT_H=$gl_cv_next_float_h
13810
13811 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13813 gl_next_as_first_directive='<'float.h'>'
13814 else
13815 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13816 gl_next_as_first_directive=$gl_cv_next_float_h
13817 fi
13818 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13819
13820
13821
13822
13823 fi
13824
13825 if test -n "$FLOAT_H"; then
13826 GL_GENERATE_FLOAT_H_TRUE=
13827 GL_GENERATE_FLOAT_H_FALSE='#'
13828 else
13829 GL_GENERATE_FLOAT_H_TRUE='#'
13830 GL_GENERATE_FLOAT_H_FALSE=
13831 fi
13832
13833
13834
13835 if test $REPLACE_FLOAT_LDBL = 1; then
13836
13837
13838
13839
13840
13841
13842
13843
13844 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13845
13846 fi
13847 if test $REPLACE_ITOLD = 1; then
13848
13849
13850
13851
13852
13853
13854
13855
13856 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13857
13858 fi
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874 gl_cv_func_fprintf_posix=no
13875 case "$gl_cv_func_printf_sizes_c99" in
13876 *yes)
13877 case "$gl_cv_func_printf_long_double" in
13878 *yes)
13879 case "$gl_cv_func_printf_infinite" in
13880 *yes)
13881 case "$gl_cv_func_printf_infinite_long_double" in
13882 *yes)
13883 case "$gl_cv_func_printf_directive_a" in
13884 *yes)
13885 case "$gl_cv_func_printf_directive_f" in
13886 *yes)
13887 case "$gl_cv_func_printf_directive_n" in
13888 *yes)
13889 case "$gl_cv_func_printf_directive_ls" in
13890 *yes)
13891 case "$gl_cv_func_printf_positions" in
13892 *yes)
13893 case "$gl_cv_func_printf_flag_grouping" in
13894 *yes)
13895 case "$gl_cv_func_printf_flag_leftadjust" in
13896 *yes)
13897 case "$gl_cv_func_printf_flag_zero" in
13898 *yes)
13899 case "$gl_cv_func_printf_precision" in
13900 *yes)
13901 case "$gl_cv_func_printf_enomem" in
13902 *yes)
13903 # fprintf exists and is
13904 # already POSIX compliant.
13905 gl_cv_func_fprintf_posix=yes
13906 ;;
13907 esac
13908 ;;
13909 esac
13910 ;;
13911 esac
13912 ;;
13913 esac
13914 ;;
13915 esac
13916 ;;
13917 esac
13918 ;;
13919 esac
13920 ;;
13921 esac
13922 ;;
13923 esac
13924 ;;
13925 esac
13926 ;;
13927 esac
13928 ;;
13929 esac
13930 ;;
13931 esac
13932 ;;
13933 esac
13934 if test $gl_cv_func_fprintf_posix = no; then
13935
13936
13937
13938 case "$gl_cv_func_printf_infinite" in
13939 *yes)
13940 ;;
13941 *)
13942
13943 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
13944
13945 ;;
13946 esac
13947
13948
13949
13950
13951 case "$gl_cv_func_printf_long_double" in
13952 *yes)
13953 case "$gl_cv_func_printf_infinite_long_double" in
13954 *yes)
13955 ;;
13956 *)
13957
13958 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
13959
13960 ;;
13961 esac
13962 ;;
13963 esac
13964
13965
13966
13967 case "$gl_cv_func_printf_directive_a" in
13968 *yes)
13969 ;;
13970 *)
13971
13972 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
13973
13974 for ac_func in nl_langinfo
13975 do :
13976 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
13977 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
13978 cat >>confdefs.h <<_ACEOF
13979 #define HAVE_NL_LANGINFO 1
13980 _ACEOF
13981
13982 fi
13983 done
13984
13985 ;;
13986 esac
13987
13988
13989
13990 case "$gl_cv_func_printf_directive_f" in
13991 *yes)
13992 ;;
13993 *)
13994
13995 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
13996
13997 ;;
13998 esac
13999
14000
14001
14002 case "$gl_cv_func_printf_directive_ls" in
14003 *yes)
14004 ;;
14005 *)
14006
14007 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
14008
14009 ;;
14010 esac
14011
14012
14013
14014 case "$gl_cv_func_printf_flag_grouping" in
14015 *yes)
14016 ;;
14017 *)
14018
14019 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
14020
14021 ;;
14022 esac
14023
14024
14025
14026 case "$gl_cv_func_printf_flag_leftadjust" in
14027 *yes)
14028 ;;
14029 *)
14030
14031 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
14032
14033 ;;
14034 esac
14035
14036
14037
14038 case "$gl_cv_func_printf_flag_zero" in
14039 *yes)
14040 ;;
14041 *)
14042
14043 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
14044
14045 ;;
14046 esac
14047
14048
14049
14050 case "$gl_cv_func_printf_precision" in
14051 *yes)
14052 ;;
14053 *)
14054
14055 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
14056
14057
14058 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
14059
14060
14061 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
14062
14063 ;;
14064 esac
14065
14066
14067
14068 case "$gl_cv_func_printf_enomem" in
14069 *yes)
14070 ;;
14071 *)
14072
14073 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
14074
14075
14076 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
14077
14078
14079 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
14080
14081 ;;
14082 esac
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
14125
14126 if test $ac_cv_func_vasnprintf = yes; then
14127
14128 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
14129
14130 fi
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14143 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
14144
14145 else
14146
14147 $as_echo "#define ptrdiff_t long" >>confdefs.h
14148
14149
14150 fi
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168 gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
14169
14170 REPLACE_FPRINTF=1
14171
14172 $as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
14173
14174 :
14175
14176 fi
14177
14178
14179
14180
14181
14182
14183 GNULIB_FPRINTF_POSIX=1
14184
14185
14186
14187
14188
14189
14190
14191
14192 if test $gl_cv_func_frexp_no_libm = yes; then
14193
14194
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
14197 $as_echo_n "checking whether frexp works... " >&6; }
14198 if ${gl_cv_func_frexp_works+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201
14202 if test "$cross_compiling" = yes; then :
14203 case "$host_os" in
14204 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
14205 *) gl_cv_func_frexp_works="guessing yes";;
14206 esac
14207
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211
14212 #include <float.h>
14213 #include <math.h>
14214 #include <string.h>
14215 #if HAVE_DECL_ALARM
14216 # include <signal.h>
14217 # include <unistd.h>
14218 #endif
14219 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
14220 ICC 10.0 has a bug when optimizing the expression -zero.
14221 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
14222 to PowerPC on Mac OS X 10.5. */
14223 #if defined __hpux || defined __sgi || defined __ICC
14224 static double
14225 compute_minus_zero (void)
14226 {
14227 return -DBL_MIN * DBL_MIN;
14228 }
14229 # define minus_zero compute_minus_zero ()
14230 #else
14231 double minus_zero = -0.0;
14232 #endif
14233 int main()
14234 {
14235 int result = 0;
14236 int i;
14237 volatile double x;
14238 double zero = 0.0;
14239 #if HAVE_DECL_ALARM
14240 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
14241 number. Let the test fail in this case. */
14242 signal (SIGALRM, SIG_DFL);
14243 alarm (5);
14244 #endif
14245 /* Test on denormalized numbers. */
14246 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
14247 ;
14248 if (x > 0.0)
14249 {
14250 int exp;
14251 double y = frexp (x, &exp);
14252 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
14253 On NetBSD: y = 0.75. Correct: y = 0.5. */
14254 if (y != 0.5)
14255 result |= 1;
14256 }
14257 /* Test on infinite numbers. */
14258 x = 1.0 / zero;
14259 {
14260 int exp;
14261 double y = frexp (x, &exp);
14262 if (y != x)
14263 result |= 2;
14264 }
14265 /* Test on negative zero. */
14266 x = minus_zero;
14267 {
14268 int exp;
14269 double y = frexp (x, &exp);
14270 if (memcmp (&y, &x, sizeof x))
14271 result |= 4;
14272 }
14273 return result;
14274 }
14275 _ACEOF
14276 if ac_fn_c_try_run "$LINENO"; then :
14277 gl_cv_func_frexp_works=yes
14278 else
14279 gl_cv_func_frexp_works=no
14280 fi
14281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14282 conftest.$ac_objext conftest.beam conftest.$ac_ext
14283 fi
14284
14285
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
14288 $as_echo "$gl_cv_func_frexp_works" >&6; }
14289
14290 case "$gl_cv_func_frexp_works" in
14291 *yes) gl_func_frexp_no_libm=yes ;;
14292 *) gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
14293 esac
14294 else
14295 gl_func_frexp_no_libm=no
14296 REPLACE_FREXP=1
14297 fi
14298 if test $gl_func_frexp_no_libm = yes; then
14299
14300 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
14301
14302 fi
14303
14304 if test $gl_func_frexp_no_libm != yes; then
14305
14306
14307
14308
14309
14310
14311
14312
14313 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
14314
14315 fi
14316
14317
14318
14319
14320
14321 GNULIB_FREXP=1
14322
14323
14324
14325
14326
14327
14328
14329
14330 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
14331 "
14332 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
14333
14334 else
14335 HAVE_DECL_FREXPL=0
14336 fi
14337
14338 if test $HAVE_DECL_FREXPL = 1; then
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
14341 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
14342 if ${gl_cv_func_frexpl_no_libm+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #include <math.h>
14349 long double x;
14350 int
14351 main ()
14352 {
14353 int e; return frexpl (x, &e) > 0;
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"; then :
14359 gl_cv_func_frexpl_no_libm=yes
14360 else
14361 gl_cv_func_frexpl_no_libm=no
14362 fi
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365
14366 fi
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
14368 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
14369
14370 if test $gl_cv_func_frexpl_no_libm = yes; then
14371
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
14374 $as_echo_n "checking whether frexpl works... " >&6; }
14375 if ${gl_cv_func_frexpl_works+:} false; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378
14379 if test "$cross_compiling" = yes; then :
14380
14381 case "$host_os" in
14382 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
14383 gl_cv_func_frexpl_works="guessing no";;
14384 *) gl_cv_func_frexpl_works="guessing yes";;
14385 esac
14386
14387 else
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390
14391 #include <float.h>
14392 #include <math.h>
14393 /* Override the values of <float.h>, like done in float.in.h. */
14394 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
14395 # undef LDBL_MIN_EXP
14396 # define LDBL_MIN_EXP (-16381)
14397 #endif
14398 #if defined __i386__ && defined __FreeBSD__
14399 # undef LDBL_MIN_EXP
14400 # define LDBL_MIN_EXP (-16381)
14401 #endif
14402 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
14403 # undef LDBL_MIN_EXP
14404 # define LDBL_MIN_EXP DBL_MIN_EXP
14405 #endif
14406 #if defined __sgi && (LDBL_MANT_DIG >= 106)
14407 # if defined __GNUC__
14408 # undef LDBL_MIN_EXP
14409 # define LDBL_MIN_EXP DBL_MIN_EXP
14410 # endif
14411 #endif
14412 extern
14413 #ifdef __cplusplus
14414 "C"
14415 #endif
14416 long double frexpl (long double, int *);
14417 int main()
14418 {
14419 int result = 0;
14420 volatile long double x;
14421 /* Test on finite numbers that fails on AIX 5.1. */
14422 x = 16.0L;
14423 {
14424 int exp = -9999;
14425 frexpl (x, &exp);
14426 if (exp != 5)
14427 result |= 1;
14428 }
14429 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
14430 function returns an invalid (incorrectly normalized) value: it returns
14431 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
14432 but the correct result is
14433 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
14434 x = 1.01L;
14435 {
14436 int exp = -9999;
14437 long double y = frexpl (x, &exp);
14438 if (!(exp == 1 && y == 0.505L))
14439 result |= 2;
14440 }
14441 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
14442 LDBL_MAX_EXP = 16384.
14443 In the loop end test, we test x against Infinity, rather than comparing
14444 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
14445 {
14446 int i;
14447 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
14448 {
14449 int exp = -9999;
14450 frexpl (x, &exp);
14451 if (exp != i)
14452 {
14453 result |= 4;
14454 break;
14455 }
14456 }
14457 }
14458 /* Test on denormalized numbers. */
14459 {
14460 int i;
14461 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
14462 ;
14463 if (x > 0.0L)
14464 {
14465 int exp;
14466 long double y = frexpl (x, &exp);
14467 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
14468 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
14469 if (exp != LDBL_MIN_EXP - 1)
14470 result |= 8;
14471 }
14472 }
14473 /* Test on infinite numbers. */
14474 x = 1.0L / 0.0L;
14475 {
14476 int exp;
14477 long double y = frexpl (x, &exp);
14478 if (y != x)
14479 result |= 16;
14480 }
14481 return result;
14482 }
14483 _ACEOF
14484 if ac_fn_c_try_run "$LINENO"; then :
14485 gl_cv_func_frexpl_works=yes
14486 else
14487 gl_cv_func_frexpl_works=no
14488 fi
14489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14490 conftest.$ac_objext conftest.beam conftest.$ac_ext
14491 fi
14492
14493
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
14496 $as_echo "$gl_cv_func_frexpl_works" >&6; }
14497
14498 case "$gl_cv_func_frexpl_works" in
14499 *yes) gl_func_frexpl_no_libm=yes ;;
14500 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
14501 esac
14502 else
14503 gl_func_frexpl_no_libm=no
14504 REPLACE_FREXPL=1
14505 fi
14506 if test $gl_func_frexpl_no_libm = yes; then
14507
14508 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
14509
14510 fi
14511 fi
14512
14513 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
14514
14515
14516
14517
14518
14519
14520
14521
14522 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
14523
14524 fi
14525
14526
14527
14528
14529
14530 GNULIB_FREXPL=1
14531
14532
14533
14534
14535
14536
14537
14538
14539 if test $ac_cv_func___fseterr = no; then
14540
14541
14542
14543
14544
14545
14546
14547
14548 gl_LIBOBJS="$gl_LIBOBJS fseterr.$ac_objext"
14549
14550 fi
14551
14552
14553
14554
14555 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14556 REPLACE_FSTAT=1
14557 fi
14558
14559
14560 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
14561 REPLACE_FSTAT=1
14562 fi
14563
14564
14565
14566 if test $REPLACE_FSTAT = 1; then
14567
14568
14569
14570
14571
14572
14573
14574
14575 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
14576
14577 :
14578 fi
14579
14580
14581
14582
14583
14584 GNULIB_FSTAT=1
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601 gl_gettimeofday_timezone=void
14602 if test $ac_cv_func_gettimeofday != yes; then
14603 HAVE_GETTIMEOFDAY=0
14604 else
14605
14606
14607
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14609 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14610 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 if test "$cross_compiling" = yes; then :
14614 # When cross-compiling:
14615 case "$host_os" in
14616 # Guess all is fine on glibc systems.
14617 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
14618 # If we don't know, assume the worst.
14619 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
14620 esac
14621
14622 else
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14625 #include <string.h>
14626 #include <sys/time.h>
14627 #include <time.h>
14628 #include <stdlib.h>
14629
14630 int
14631 main ()
14632 {
14633
14634 time_t t = 0;
14635 struct tm *lt;
14636 struct tm saved_lt;
14637 struct timeval tv;
14638 lt = localtime (&t);
14639 saved_lt = *lt;
14640 gettimeofday (&tv, NULL);
14641 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14642
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 if ac_fn_c_try_run "$LINENO"; then :
14648 gl_cv_func_gettimeofday_clobber=no
14649 else
14650 gl_cv_func_gettimeofday_clobber=yes
14651 fi
14652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14653 conftest.$ac_objext conftest.beam conftest.$ac_ext
14654 fi
14655
14656 fi
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14658 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14659
14660 case "$gl_cv_func_gettimeofday_clobber" in
14661 *yes)
14662 REPLACE_GETTIMEOFDAY=1
14663
14664 REPLACE_GMTIME=1
14665 REPLACE_LOCALTIME=1
14666
14667
14668 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14669
14670 ;;
14671 esac
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14674 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14675 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680 #include <sys/time.h>
14681 struct timeval c;
14682 int gettimeofday (struct timeval *restrict, void *restrict);
14683
14684 int
14685 main ()
14686 {
14687 /* glibc uses struct timezone * rather than the POSIX void *
14688 if _GNU_SOURCE is defined. However, since the only portable
14689 use of gettimeofday uses NULL as the second parameter, and
14690 since the glibc definition is actually more typesafe, it is
14691 not worth wrapping this to get a compliant signature. */
14692 int (*f) (struct timeval *restrict, void *restrict)
14693 = gettimeofday;
14694 int x = f (&c, 0);
14695 return !(x | c.tv_sec | c.tv_usec);
14696
14697 ;
14698 return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_compile "$LINENO"; then :
14702 gl_cv_func_gettimeofday_posix_signature=yes
14703 else
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 #include <sys/time.h>
14707 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14708
14709 int
14710 main ()
14711 {
14712
14713 ;
14714 return 0;
14715 }
14716 _ACEOF
14717 if ac_fn_c_try_compile "$LINENO"; then :
14718 gl_cv_func_gettimeofday_posix_signature=almost
14719 else
14720 gl_cv_func_gettimeofday_posix_signature=no
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 fi
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 fi
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14727 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14728 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14729 gl_gettimeofday_timezone='struct timezone'
14730 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14731 REPLACE_GETTIMEOFDAY=1
14732 fi
14733 if test $REPLACE_STRUCT_TIMEVAL = 1; then
14734 REPLACE_GETTIMEOFDAY=1
14735 fi
14736
14737 fi
14738
14739 cat >>confdefs.h <<_ACEOF
14740 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14741 _ACEOF
14742
14743
14744 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
14745
14746
14747
14748
14749
14750
14751
14752
14753 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14754
14755
14756 for ac_header in sys/timeb.h
14757 do :
14758 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14759 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14760 cat >>confdefs.h <<_ACEOF
14761 #define HAVE_SYS_TIMEB_H 1
14762 _ACEOF
14763
14764 fi
14765
14766 done
14767
14768 for ac_func in _ftime
14769 do :
14770 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14771 if test "x$ac_cv_func__ftime" = xyes; then :
14772 cat >>confdefs.h <<_ACEOF
14773 #define HAVE__FTIME 1
14774 _ACEOF
14775
14776 fi
14777 done
14778
14779
14780 fi
14781
14782
14783
14784
14785
14786 GNULIB_GETTIMEOFDAY=1
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797 PRIPTR_PREFIX=
14798 if test -n "$STDINT_H"; then
14799 PRIPTR_PREFIX='"l"'
14800 else
14801 for glpfx in '' l ll I64; do
14802 case $glpfx in
14803 '') gltype1='int';;
14804 l) gltype1='long int';;
14805 ll) gltype1='long long int';;
14806 I64) gltype1='__int64';;
14807 esac
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14810 #include <stdint.h>
14811 extern intptr_t foo;
14812 extern $gltype1 foo;
14813 int
14814 main ()
14815 {
14816
14817 ;
14818 return 0;
14819 }
14820 _ACEOF
14821 if ac_fn_c_try_compile "$LINENO"; then :
14822 PRIPTR_PREFIX='"'$glpfx'"'
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 test -n "$PRIPTR_PREFIX" && break
14826 done
14827 fi
14828
14829
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
14832 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14833 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14838 /* Work also in C++ mode. */
14839 #define __STDC_LIMIT_MACROS 1
14840
14841 /* Work if build is not clean. */
14842 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14843
14844 #include <limits.h>
14845 #if HAVE_STDINT_H
14846 #include <stdint.h>
14847 #endif
14848
14849 #if defined INT32_MAX && defined INTMAX_MAX
14850 #define CONDITION (INT32_MAX < INTMAX_MAX)
14851 #elif HAVE_LONG_LONG_INT
14852 #define CONDITION (sizeof (int) < sizeof (long long int))
14853 #else
14854 #define CONDITION 0
14855 #endif
14856 int test[CONDITION ? 1 : -1];
14857 int
14858 main ()
14859 {
14860
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14867 else
14868 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 fi
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14873 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14874 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14875 INT32_MAX_LT_INTMAX_MAX=1;
14876 else
14877 INT32_MAX_LT_INTMAX_MAX=0;
14878 fi
14879
14880
14881 if test $APPLE_UNIVERSAL_BUILD = 0; then
14882
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
14884 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14885 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890 /* Work also in C++ mode. */
14891 #define __STDC_LIMIT_MACROS 1
14892
14893 /* Work if build is not clean. */
14894 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14895
14896 #include <limits.h>
14897 #if HAVE_STDINT_H
14898 #include <stdint.h>
14899 #endif
14900
14901 #if defined INT64_MAX
14902 #define CONDITION (INT64_MAX == LONG_MAX)
14903 #elif HAVE_LONG_LONG_INT
14904 #define CONDITION (sizeof (long long int) == sizeof (long int))
14905 #else
14906 #define CONDITION 0
14907 #endif
14908 int test[CONDITION ? 1 : -1];
14909 int
14910 main ()
14911 {
14912
14913 ;
14914 return 0;
14915 }
14916 _ACEOF
14917 if ac_fn_c_try_compile "$LINENO"; then :
14918 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14919 else
14920 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 fi
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14925 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14926 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14927 INT64_MAX_EQ_LONG_MAX=1;
14928 else
14929 INT64_MAX_EQ_LONG_MAX=0;
14930 fi
14931
14932
14933 else
14934 INT64_MAX_EQ_LONG_MAX=-1
14935 fi
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14938 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14939 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
14940 $as_echo_n "(cached) " >&6
14941 else
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14944 /* Work also in C++ mode. */
14945 #define __STDC_LIMIT_MACROS 1
14946
14947 /* Work if build is not clean. */
14948 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14949
14950 #include <limits.h>
14951 #if HAVE_STDINT_H
14952 #include <stdint.h>
14953 #endif
14954
14955 #if defined UINT32_MAX && defined UINTMAX_MAX
14956 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14957 #elif HAVE_LONG_LONG_INT
14958 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
14959 #else
14960 #define CONDITION 0
14961 #endif
14962 int test[CONDITION ? 1 : -1];
14963 int
14964 main ()
14965 {
14966
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14973 else
14974 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14975 fi
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 fi
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14979 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14980 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14981 UINT32_MAX_LT_UINTMAX_MAX=1;
14982 else
14983 UINT32_MAX_LT_UINTMAX_MAX=0;
14984 fi
14985
14986
14987 if test $APPLE_UNIVERSAL_BUILD = 0; then
14988
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
14990 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14991 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996 /* Work also in C++ mode. */
14997 #define __STDC_LIMIT_MACROS 1
14998
14999 /* Work if build is not clean. */
15000 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
15001
15002 #include <limits.h>
15003 #if HAVE_STDINT_H
15004 #include <stdint.h>
15005 #endif
15006
15007 #if defined UINT64_MAX
15008 #define CONDITION (UINT64_MAX == ULONG_MAX)
15009 #elif HAVE_LONG_LONG_INT
15010 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
15011 #else
15012 #define CONDITION 0
15013 #endif
15014 int test[CONDITION ? 1 : -1];
15015 int
15016 main ()
15017 {
15018
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 if ac_fn_c_try_compile "$LINENO"; then :
15024 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
15025 else
15026 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
15031 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
15032 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
15033 UINT64_MAX_EQ_ULONG_MAX=1;
15034 else
15035 UINT64_MAX_EQ_ULONG_MAX=0;
15036 fi
15037
15038
15039 else
15040 UINT64_MAX_EQ_ULONG_MAX=-1
15041 fi
15042
15043
15044
15045
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
15048 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
15049 if ${gl_cv_func_isnand_no_libm+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055 #include <math.h>
15056 #if __GNUC__ >= 4
15057 # undef isnand
15058 # define isnand(x) __builtin_isnan ((double)(x))
15059 #else
15060 # undef isnand
15061 # define isnand(x) isnan ((double)(x))
15062 #endif
15063 double x;
15064 int
15065 main ()
15066 {
15067 return isnand (x);
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 gl_cv_func_isnand_no_libm=yes
15074 else
15075 gl_cv_func_isnand_no_libm=no
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079
15080 fi
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
15082 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
15083
15084 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
15085 if test $gl_cv_func_isnand_no_libm = yes; then
15086
15087 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
15088
15089 fi
15090
15091 if test $gl_func_isnand_no_libm != yes; then
15092
15093
15094
15095
15096
15097
15098
15099
15100 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
15101
15102
15103
15104
15105 fi
15106
15107
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
15109 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
15110 if ${gl_cv_func_isnanf_no_libm+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112 else
15113
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 #include <math.h>
15117 #if __GNUC__ >= 4
15118 # undef isnanf
15119 # define isnanf(x) __builtin_isnanf ((float)(x))
15120 #elif defined isnan
15121 # undef isnanf
15122 # define isnanf(x) isnan ((float)(x))
15123 #endif
15124 float x;
15125 int
15126 main ()
15127 {
15128 return isnanf (x);
15129 ;
15130 return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_c_try_link "$LINENO"; then :
15134 gl_cv_func_isnanf_no_libm=yes
15135 else
15136 gl_cv_func_isnanf_no_libm=no
15137 fi
15138 rm -f core conftest.err conftest.$ac_objext \
15139 conftest$ac_exeext conftest.$ac_ext
15140
15141 fi
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
15143 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
15144
15145 if test $gl_cv_func_isnanf_no_libm = yes; then
15146
15147
15148
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
15150 $as_echo_n "checking whether isnan(float) works... " >&6; }
15151 if ${gl_cv_func_isnanf_works+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154
15155 if test "$cross_compiling" = yes; then :
15156 case "$host_os" in
15157 irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
15158 *) gl_cv_func_isnanf_works="guessing yes";;
15159 esac
15160
15161 else
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15164
15165 #include <math.h>
15166 #if __GNUC__ >= 4
15167 # undef isnanf
15168 # define isnanf(x) __builtin_isnanf ((float)(x))
15169 #elif defined isnan
15170 # undef isnanf
15171 # define isnanf(x) isnan ((float)(x))
15172 #endif
15173 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */
15174 #ifdef __DECC
15175 static float
15176 NaN ()
15177 {
15178 static float zero = 0.0f;
15179 return zero / zero;
15180 }
15181 #else
15182 # define NaN() (0.0f / 0.0f)
15183 #endif
15184 #define NWORDS \
15185 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15186 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
15187 int main()
15188 {
15189 int result = 0;
15190
15191 if (isnanf (1.0f / 0.0f))
15192 result |= 1;
15193
15194 if (!isnanf (NaN ()))
15195 result |= 2;
15196
15197 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
15198 /* The isnanf function should be immune against changes in the sign bit and
15199 in the mantissa bits. The xor operation twiddles a bit that can only be
15200 a sign bit or a mantissa bit. */
15201 if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
15202 {
15203 memory_float m;
15204
15205 m.value = NaN ();
15206 /* Set the bits below the exponent to 01111...111. */
15207 m.word[0] &= -1U << FLT_EXPBIT0_BIT;
15208 m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
15209 if (!isnanf (m.value))
15210 result |= 4;
15211 }
15212 #endif
15213
15214 return result;
15215 }
15216 _ACEOF
15217 if ac_fn_c_try_run "$LINENO"; then :
15218 gl_cv_func_isnanf_works=yes
15219 else
15220 gl_cv_func_isnanf_works=no
15221 fi
15222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15223 conftest.$ac_objext conftest.beam conftest.$ac_ext
15224 fi
15225
15226
15227 fi
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
15229 $as_echo "$gl_cv_func_isnanf_works" >&6; }
15230
15231 fi
15232 if test $gl_cv_func_isnanf_no_libm = yes \
15233 && { case "$gl_cv_func_isnanf_works" in
15234 *yes) true;;
15235 *) false;;
15236 esac
15237 }; then
15238 gl_func_isnanf_no_libm=yes
15239
15240 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
15241
15242 else
15243 gl_func_isnanf_no_libm=no
15244 fi
15245
15246 if test $gl_func_isnanf_no_libm != yes; then
15247
15248
15249
15250
15251
15252
15253
15254
15255 gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
15256
15257
15258
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
15260 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
15261 if ${gl_cv_cc_float_expbit0+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264
15265 if test "$cross_compiling" = yes; then :
15266 gl_cv_cc_float_expbit0="word 0 bit 23"
15267 else
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270
15271 #include <float.h>
15272 #include <stddef.h>
15273 #include <stdio.h>
15274 #include <string.h>
15275 #define NWORDS \
15276 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15277 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
15278 static unsigned int ored_words[NWORDS];
15279 static unsigned int anded_words[NWORDS];
15280 static void add_to_ored_words (float x)
15281 {
15282 memory_float m;
15283 size_t i;
15284 /* Clear it first, in case
15285 sizeof (float) < sizeof (memory_float). */
15286 memset (&m, 0, sizeof (memory_float));
15287 m.value = x;
15288 for (i = 0; i < NWORDS; i++)
15289 {
15290 ored_words[i] |= m.word[i];
15291 anded_words[i] &= m.word[i];
15292 }
15293 }
15294 int main ()
15295 {
15296 size_t j;
15297 FILE *fp = fopen ("conftest.out", "w");
15298 if (fp == NULL)
15299 return 1;
15300 for (j = 0; j < NWORDS; j++)
15301 anded_words[j] = ~ (unsigned int) 0;
15302 add_to_ored_words (0.25f);
15303 add_to_ored_words (0.5f);
15304 add_to_ored_words (1.0f);
15305 add_to_ored_words (2.0f);
15306 add_to_ored_words (4.0f);
15307 /* Remove bits that are common (e.g. if representation of the first mantissa
15308 bit is explicit). */
15309 for (j = 0; j < NWORDS; j++)
15310 ored_words[j] &= ~anded_words[j];
15311 /* Now find the nonzero word. */
15312 for (j = 0; j < NWORDS; j++)
15313 if (ored_words[j] != 0)
15314 break;
15315 if (j < NWORDS)
15316 {
15317 size_t i;
15318 for (i = j + 1; i < NWORDS; i++)
15319 if (ored_words[i] != 0)
15320 {
15321 fprintf (fp, "unknown");
15322 return (fclose (fp) != 0);
15323 }
15324 for (i = 0; ; i++)
15325 if ((ored_words[j] >> i) & 1)
15326 {
15327 fprintf (fp, "word %d bit %d", (int) j, (int) i);
15328 return (fclose (fp) != 0);
15329 }
15330 }
15331 fprintf (fp, "unknown");
15332 return (fclose (fp) != 0);
15333 }
15334
15335 _ACEOF
15336 if ac_fn_c_try_run "$LINENO"; then :
15337 gl_cv_cc_float_expbit0=`cat conftest.out`
15338 else
15339 gl_cv_cc_float_expbit0="unknown"
15340 fi
15341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15342 conftest.$ac_objext conftest.beam conftest.$ac_ext
15343 fi
15344
15345 rm -f conftest.out
15346
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
15349 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
15350 case "$gl_cv_cc_float_expbit0" in
15351 word*bit*)
15352 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15353 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
15354
15355 cat >>confdefs.h <<_ACEOF
15356 #define FLT_EXPBIT0_WORD $word
15357 _ACEOF
15358
15359
15360 cat >>confdefs.h <<_ACEOF
15361 #define FLT_EXPBIT0_BIT $bit
15362 _ACEOF
15363
15364 ;;
15365 esac
15366
15367
15368 fi
15369
15370
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
15372 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
15373 if ${gl_cv_func_isnanl_no_libm+:} false; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 #include <math.h>
15380 #if __GNUC__ >= 4
15381 # undef isnanl
15382 # define isnanl(x) __builtin_isnanl ((long double)(x))
15383 #elif defined isnan
15384 # undef isnanl
15385 # define isnanl(x) isnan ((long double)(x))
15386 #endif
15387 long double x;
15388 int
15389 main ()
15390 {
15391 return isnanl (x);
15392 ;
15393 return 0;
15394 }
15395 _ACEOF
15396 if ac_fn_c_try_link "$LINENO"; then :
15397 gl_cv_func_isnanl_no_libm=yes
15398 else
15399 gl_cv_func_isnanl_no_libm=no
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15403
15404 fi
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
15406 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
15407
15408 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
15409 if test $gl_func_isnanl_no_libm = yes; then
15410
15411
15412
15413
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
15415 $as_echo_n "checking whether isnanl works... " >&6; }
15416 if ${gl_cv_func_isnanl_works+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419
15420 if test "$cross_compiling" = yes; then :
15421 case "$host_cpu" in
15422 # Guess no on ia64, x86_64, i386.
15423 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
15424 *)
15425 case "$host_os" in
15426 netbsd*) gl_cv_func_isnanl_works="guessing no";;
15427 *) gl_cv_func_isnanl_works="guessing yes";;
15428 esac
15429 ;;
15430 esac
15431
15432 else
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435
15436 #include <float.h>
15437 #include <limits.h>
15438 #include <math.h>
15439 #if __GNUC__ >= 4
15440 # undef isnanl
15441 # define isnanl(x) __builtin_isnanl ((long double)(x))
15442 #elif defined isnan
15443 # undef isnanl
15444 # define isnanl(x) isnan ((long double)(x))
15445 #endif
15446 #define NWORDS \
15447 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15448 typedef union { unsigned int word[NWORDS]; long double value; }
15449 memory_long_double;
15450 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
15451 runtime type conversion. */
15452 #ifdef __sgi
15453 static long double NaNl ()
15454 {
15455 double zero = 0.0;
15456 return zero / zero;
15457 }
15458 #else
15459 # define NaNl() (0.0L / 0.0L)
15460 #endif
15461 int main ()
15462 {
15463 int result = 0;
15464
15465 if (!isnanl (NaNl ()))
15466 result |= 1;
15467
15468 {
15469 memory_long_double m;
15470 unsigned int i;
15471
15472 /* The isnanl function should be immune against changes in the sign bit and
15473 in the mantissa bits. The xor operation twiddles a bit that can only be
15474 a sign bit or a mantissa bit (since the exponent never extends to
15475 bit 31). */
15476 m.value = NaNl ();
15477 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
15478 for (i = 0; i < NWORDS; i++)
15479 m.word[i] |= 1;
15480 if (!isnanl (m.value))
15481 result |= 1;
15482 }
15483
15484 #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
15485 /* Representation of an 80-bit 'long double' as an initializer for a sequence
15486 of 'unsigned int' words. */
15487 # ifdef WORDS_BIGENDIAN
15488 # define LDBL80_WORDS(exponent,manthi,mantlo) \
15489 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
15490 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
15491 (unsigned int) (mantlo) << 16 \
15492 }
15493 # else
15494 # define LDBL80_WORDS(exponent,manthi,mantlo) \
15495 { mantlo, manthi, exponent }
15496 # endif
15497 { /* Quiet NaN. */
15498 static memory_long_double x =
15499 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
15500 if (!isnanl (x.value))
15501 result |= 2;
15502 }
15503 {
15504 /* Signalling NaN. */
15505 static memory_long_double x =
15506 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
15507 if (!isnanl (x.value))
15508 result |= 2;
15509 }
15510 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
15511 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
15512 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
15513 Application Architecture.
15514 Table 5-2 "Floating-Point Register Encodings"
15515 Figure 5-6 "Memory to Floating-Point Register Data Translation"
15516 */
15517 { /* Pseudo-NaN. */
15518 static memory_long_double x =
15519 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
15520 if (!isnanl (x.value))
15521 result |= 4;
15522 }
15523 { /* Pseudo-Infinity. */
15524 static memory_long_double x =
15525 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
15526 if (!isnanl (x.value))
15527 result |= 8;
15528 }
15529 { /* Pseudo-Zero. */
15530 static memory_long_double x =
15531 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
15532 if (!isnanl (x.value))
15533 result |= 16;
15534 }
15535 { /* Unnormalized number. */
15536 static memory_long_double x =
15537 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
15538 if (!isnanl (x.value))
15539 result |= 32;
15540 }
15541 { /* Pseudo-Denormal. */
15542 static memory_long_double x =
15543 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
15544 if (!isnanl (x.value))
15545 result |= 64;
15546 }
15547 #endif
15548
15549 return result;
15550 }
15551 _ACEOF
15552 if ac_fn_c_try_run "$LINENO"; then :
15553 gl_cv_func_isnanl_works=yes
15554 else
15555 gl_cv_func_isnanl_works=no
15556 fi
15557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15558 conftest.$ac_objext conftest.beam conftest.$ac_ext
15559 fi
15560
15561
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
15564 $as_echo "$gl_cv_func_isnanl_works" >&6; }
15565
15566 case "$gl_cv_func_isnanl_works" in
15567 *yes) ;;
15568 *) gl_func_isnanl_no_libm=no ;;
15569 esac
15570 fi
15571 if test $gl_func_isnanl_no_libm = yes; then
15572
15573 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
15574
15575 fi
15576
15577 if test $gl_func_isnanl_no_libm != yes; then
15578
15579
15580
15581
15582
15583
15584
15585
15586 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
15587
15588
15589
15590
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
15592 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
15593 if ${gl_cv_cc_long_double_expbit0+:} false; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596
15597 if test "$cross_compiling" = yes; then :
15598
15599 gl_cv_cc_long_double_expbit0="unknown"
15600
15601 else
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604
15605 #include <float.h>
15606 #include <stddef.h>
15607 #include <stdio.h>
15608 #include <string.h>
15609 #define NWORDS \
15610 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15611 typedef union { long double value; unsigned int word[NWORDS]; }
15612 memory_long_double;
15613 static unsigned int ored_words[NWORDS];
15614 static unsigned int anded_words[NWORDS];
15615 static void add_to_ored_words (long double x)
15616 {
15617 memory_long_double m;
15618 size_t i;
15619 /* Clear it first, in case
15620 sizeof (long double) < sizeof (memory_long_double). */
15621 memset (&m, 0, sizeof (memory_long_double));
15622 m.value = x;
15623 for (i = 0; i < NWORDS; i++)
15624 {
15625 ored_words[i] |= m.word[i];
15626 anded_words[i] &= m.word[i];
15627 }
15628 }
15629 int main ()
15630 {
15631 size_t j;
15632 FILE *fp = fopen ("conftest.out", "w");
15633 if (fp == NULL)
15634 return 1;
15635 for (j = 0; j < NWORDS; j++)
15636 anded_words[j] = ~ (unsigned int) 0;
15637 add_to_ored_words (0.25L);
15638 add_to_ored_words (0.5L);
15639 add_to_ored_words (1.0L);
15640 add_to_ored_words (2.0L);
15641 add_to_ored_words (4.0L);
15642 /* Remove bits that are common (e.g. if representation of the first mantissa
15643 bit is explicit). */
15644 for (j = 0; j < NWORDS; j++)
15645 ored_words[j] &= ~anded_words[j];
15646 /* Now find the nonzero word. */
15647 for (j = 0; j < NWORDS; j++)
15648 if (ored_words[j] != 0)
15649 break;
15650 if (j < NWORDS)
15651 {
15652 size_t i;
15653 for (i = j + 1; i < NWORDS; i++)
15654 if (ored_words[i] != 0)
15655 {
15656 fprintf (fp, "unknown");
15657 return (fclose (fp) != 0);
15658 }
15659 for (i = 0; ; i++)
15660 if ((ored_words[j] >> i) & 1)
15661 {
15662 fprintf (fp, "word %d bit %d", (int) j, (int) i);
15663 return (fclose (fp) != 0);
15664 }
15665 }
15666 fprintf (fp, "unknown");
15667 return (fclose (fp) != 0);
15668 }
15669
15670 _ACEOF
15671 if ac_fn_c_try_run "$LINENO"; then :
15672 gl_cv_cc_long_double_expbit0=`cat conftest.out`
15673 else
15674 gl_cv_cc_long_double_expbit0="unknown"
15675 fi
15676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15677 conftest.$ac_objext conftest.beam conftest.$ac_ext
15678 fi
15679
15680 rm -f conftest.out
15681
15682 fi
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
15684 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
15685 case "$gl_cv_cc_long_double_expbit0" in
15686 word*bit*)
15687 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15688 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
15689
15690 cat >>confdefs.h <<_ACEOF
15691 #define LDBL_EXPBIT0_WORD $word
15692 _ACEOF
15693
15694
15695 cat >>confdefs.h <<_ACEOF
15696 #define LDBL_EXPBIT0_BIT $bit
15697 _ACEOF
15698
15699 ;;
15700 esac
15701
15702
15703
15704 fi
15705
15706
15707
15708
15709 if test $ac_cv_func_lstat = yes; then
15710
15711 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
15712 *no)
15713 REPLACE_LSTAT=1
15714 ;;
15715 esac
15716 else
15717 HAVE_LSTAT=0
15718 fi
15719
15720 if test $REPLACE_LSTAT = 1; then
15721
15722
15723
15724
15725
15726
15727
15728
15729 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
15730
15731 :
15732 fi
15733
15734
15735
15736
15737
15738 GNULIB_LSTAT=1
15739
15740
15741
15742
15743
15744
15745
15746
15747 for ac_header in stdlib.h
15748 do :
15749 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15750 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15751 cat >>confdefs.h <<_ACEOF
15752 #define HAVE_STDLIB_H 1
15753 _ACEOF
15754
15755 fi
15756
15757 done
15758
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15760 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15761 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15762 $as_echo_n "(cached) " >&6
15763 else
15764 if test "$cross_compiling" = yes; then :
15765 case "$host_os" in
15766 # Guess yes on platforms where we know the result.
15767 *-gnu* | freebsd* | netbsd* | openbsd* \
15768 | hpux* | solaris* | cygwin* | mingw*)
15769 ac_cv_func_malloc_0_nonnull=yes ;;
15770 # If we don't know, assume the worst.
15771 *) ac_cv_func_malloc_0_nonnull=no ;;
15772 esac
15773
15774 else
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15778 # include <stdlib.h>
15779 #else
15780 char *malloc ();
15781 #endif
15782
15783 int
15784 main ()
15785 {
15786 return ! malloc (0);
15787 ;
15788 return 0;
15789 }
15790
15791 _ACEOF
15792 if ac_fn_c_try_run "$LINENO"; then :
15793 ac_cv_func_malloc_0_nonnull=yes
15794 else
15795 ac_cv_func_malloc_0_nonnull=no
15796 fi
15797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15798 conftest.$ac_objext conftest.beam conftest.$ac_ext
15799 fi
15800
15801
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15804 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15805 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15806
15807 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15808
15809 else
15810 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15811
15812 REPLACE_MALLOC=1
15813
15814 fi
15815
15816
15817 if test $REPLACE_MALLOC = 1; then
15818
15819
15820
15821
15822
15823
15824
15825
15826 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15827
15828 fi
15829
15830
15831 cat >>confdefs.h <<_ACEOF
15832 #define GNULIB_MALLOC_GNU 1
15833 _ACEOF
15834
15835
15836
15837
15838
15839 if test $gl_cv_func_malloc_posix = yes; then
15840
15841 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15842
15843 else
15844 REPLACE_MALLOC=1
15845 fi
15846
15847 if test $REPLACE_MALLOC = 1; then
15848
15849
15850
15851
15852
15853
15854
15855
15856 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15857
15858 fi
15859
15860
15861
15862
15863
15864 GNULIB_MALLOC_POSIX=1
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881 if test $gl_cv_have_include_next = yes; then
15882 gl_cv_next_math_h='<'math.h'>'
15883 else
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
15885 $as_echo_n "checking absolute name of <math.h>... " >&6; }
15886 if ${gl_cv_next_math_h+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889
15890 if test $ac_cv_header_math_h = yes; then
15891
15892
15893
15894
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15897 #include <math.h>
15898 _ACEOF
15899 case "$host_os" in
15900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15901 *) gl_absname_cpp="$ac_cpp" ;;
15902 esac
15903
15904 case "$host_os" in
15905 mingw*)
15906 gl_dirsep_regex='[/\\]'
15907 ;;
15908 *)
15909 gl_dirsep_regex='\/'
15910 ;;
15911 esac
15912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15913 gl_header_literal_regex=`echo 'math.h' \
15914 | sed -e "$gl_make_literal_regex_sed"`
15915 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15916 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15917 s|^/[^/]|//&|
15918 p
15919 q
15920 }'
15921
15922 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15923 sed -n "$gl_absolute_header_sed"`
15924
15925 gl_header=$gl_cv_absolute_math_h
15926 gl_cv_next_math_h='"'$gl_header'"'
15927 else
15928 gl_cv_next_math_h='<'math.h'>'
15929 fi
15930
15931
15932 fi
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
15934 $as_echo "$gl_cv_next_math_h" >&6; }
15935 fi
15936 NEXT_MATH_H=$gl_cv_next_math_h
15937
15938 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15940 gl_next_as_first_directive='<'math.h'>'
15941 else
15942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15943 gl_next_as_first_directive=$gl_cv_next_math_h
15944 fi
15945 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
15946
15947
15948
15949
15950
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
15952 $as_echo_n "checking whether NAN macro works... " >&6; }
15953 if ${gl_cv_header_math_nan_works+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15958 #include <math.h>
15959 int
15960 main ()
15961 {
15962 /* Solaris 10 has a broken definition of NAN. Other platforms
15963 fail to provide NAN, or provide it only in C99 mode; this
15964 test only needs to fail when NAN is provided but wrong. */
15965 float f = 1.0f;
15966 #ifdef NAN
15967 f = NAN;
15968 #endif
15969 return f == 0;
15970 ;
15971 return 0;
15972 }
15973 _ACEOF
15974 if ac_fn_c_try_compile "$LINENO"; then :
15975 gl_cv_header_math_nan_works=yes
15976 else
15977 gl_cv_header_math_nan_works=no
15978 fi
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 fi
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15982 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15983 if test $gl_cv_header_math_nan_works = no; then
15984 REPLACE_NAN=1
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15987 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15988 if ${gl_cv_header_math_huge_val_works+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 #include <math.h>
15994 int
15995 main ()
15996 {
15997 /* Solaris 10 has a broken definition of HUGE_VAL. */
15998 double d = HUGE_VAL;
15999 return d == 0;
16000 ;
16001 return 0;
16002 }
16003 _ACEOF
16004 if ac_fn_c_try_compile "$LINENO"; then :
16005 gl_cv_header_math_huge_val_works=yes
16006 else
16007 gl_cv_header_math_huge_val_works=no
16008 fi
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010 fi
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
16012 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
16013 if test $gl_cv_header_math_huge_val_works = no; then
16014 REPLACE_HUGE_VAL=1
16015 fi
16016
16017
16018
16019
16020 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
16021
16022
16023
16024
16025
16026
16027
16028
16029 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
16030
16031
16032 for ac_header in bp-sym.h
16033 do :
16034 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
16035 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
16036 cat >>confdefs.h <<_ACEOF
16037 #define HAVE_BP_SYM_H 1
16038 _ACEOF
16039
16040 fi
16041
16042 done
16043
16044
16045 fi
16046
16047
16048
16049
16050
16051 GNULIB_MEMCHR=1
16052
16053
16054
16055
16056
16057
16058
16059 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
16060 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
16061
16062 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
16063
16064 else
16065 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
16066 fi
16067
16068
16069 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16070
16071
16072
16073
16074
16075
16076
16077
16078 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
16079
16080 fi
16081
16082
16083
16084
16085
16086
16087 if test $gl_cv_func_frexp_no_libm = yes; then
16088
16089
16090
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
16092 $as_echo_n "checking whether frexp works... " >&6; }
16093 if ${gl_cv_func_frexp_works+:} false; then :
16094 $as_echo_n "(cached) " >&6
16095 else
16096
16097 if test "$cross_compiling" = yes; then :
16098 case "$host_os" in
16099 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
16100 *) gl_cv_func_frexp_works="guessing yes";;
16101 esac
16102
16103 else
16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106
16107 #include <float.h>
16108 #include <math.h>
16109 #include <string.h>
16110 #if HAVE_DECL_ALARM
16111 # include <signal.h>
16112 # include <unistd.h>
16113 #endif
16114 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16115 ICC 10.0 has a bug when optimizing the expression -zero.
16116 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
16117 to PowerPC on Mac OS X 10.5. */
16118 #if defined __hpux || defined __sgi || defined __ICC
16119 static double
16120 compute_minus_zero (void)
16121 {
16122 return -DBL_MIN * DBL_MIN;
16123 }
16124 # define minus_zero compute_minus_zero ()
16125 #else
16126 double minus_zero = -0.0;
16127 #endif
16128 int main()
16129 {
16130 int result = 0;
16131 int i;
16132 volatile double x;
16133 double zero = 0.0;
16134 #if HAVE_DECL_ALARM
16135 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
16136 number. Let the test fail in this case. */
16137 signal (SIGALRM, SIG_DFL);
16138 alarm (5);
16139 #endif
16140 /* Test on denormalized numbers. */
16141 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
16142 ;
16143 if (x > 0.0)
16144 {
16145 int exp;
16146 double y = frexp (x, &exp);
16147 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
16148 On NetBSD: y = 0.75. Correct: y = 0.5. */
16149 if (y != 0.5)
16150 result |= 1;
16151 }
16152 /* Test on infinite numbers. */
16153 x = 1.0 / zero;
16154 {
16155 int exp;
16156 double y = frexp (x, &exp);
16157 if (y != x)
16158 result |= 2;
16159 }
16160 /* Test on negative zero. */
16161 x = minus_zero;
16162 {
16163 int exp;
16164 double y = frexp (x, &exp);
16165 if (memcmp (&y, &x, sizeof x))
16166 result |= 4;
16167 }
16168 return result;
16169 }
16170 _ACEOF
16171 if ac_fn_c_try_run "$LINENO"; then :
16172 gl_cv_func_frexp_works=yes
16173 else
16174 gl_cv_func_frexp_works=no
16175 fi
16176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16177 conftest.$ac_objext conftest.beam conftest.$ac_ext
16178 fi
16179
16180
16181 fi
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
16183 $as_echo "$gl_cv_func_frexp_works" >&6; }
16184
16185 case "$gl_cv_func_frexp_works" in
16186 *yes)
16187
16188 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
16189
16190 ;;
16191 esac
16192 fi
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
16195 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
16196 if ${gl_cv_func_ldexp_no_libm+:} false; then :
16197 $as_echo_n "(cached) " >&6
16198 else
16199
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16202 #include <math.h>
16203 double x;
16204 int y;
16205 int
16206 main ()
16207 {
16208 return ldexp (x, y) < 1;
16209 ;
16210 return 0;
16211 }
16212 _ACEOF
16213 if ac_fn_c_try_link "$LINENO"; then :
16214 gl_cv_func_ldexp_no_libm=yes
16215 else
16216 gl_cv_func_ldexp_no_libm=no
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext \
16219 conftest$ac_exeext conftest.$ac_ext
16220
16221 fi
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
16223 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
16224 if test $gl_cv_func_ldexp_no_libm = yes; then
16225
16226 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
16227
16228 fi
16229
16230
16231
16232
16233
16234
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
16236 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
16237 if ${gl_cv_func_frexpl_no_libm+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <math.h>
16244 long double x;
16245 int
16246 main ()
16247 {
16248 int e; return frexpl (x, &e) > 0;
16249 ;
16250 return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_link "$LINENO"; then :
16254 gl_cv_func_frexpl_no_libm=yes
16255 else
16256 gl_cv_func_frexpl_no_libm=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext \
16259 conftest$ac_exeext conftest.$ac_ext
16260
16261 fi
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
16263 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
16264
16265 if test $gl_cv_func_frexpl_no_libm = yes; then
16266
16267
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
16269 $as_echo_n "checking whether frexpl works... " >&6; }
16270 if ${gl_cv_func_frexpl_works+:} false; then :
16271 $as_echo_n "(cached) " >&6
16272 else
16273
16274 if test "$cross_compiling" = yes; then :
16275
16276 case "$host_os" in
16277 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
16278 gl_cv_func_frexpl_works="guessing no";;
16279 *) gl_cv_func_frexpl_works="guessing yes";;
16280 esac
16281
16282 else
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285
16286 #include <float.h>
16287 #include <math.h>
16288 /* Override the values of <float.h>, like done in float.in.h. */
16289 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
16290 # undef LDBL_MIN_EXP
16291 # define LDBL_MIN_EXP (-16381)
16292 #endif
16293 #if defined __i386__ && defined __FreeBSD__
16294 # undef LDBL_MIN_EXP
16295 # define LDBL_MIN_EXP (-16381)
16296 #endif
16297 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
16298 # undef LDBL_MIN_EXP
16299 # define LDBL_MIN_EXP DBL_MIN_EXP
16300 #endif
16301 #if defined __sgi && (LDBL_MANT_DIG >= 106)
16302 # if defined __GNUC__
16303 # undef LDBL_MIN_EXP
16304 # define LDBL_MIN_EXP DBL_MIN_EXP
16305 # endif
16306 #endif
16307 extern
16308 #ifdef __cplusplus
16309 "C"
16310 #endif
16311 long double frexpl (long double, int *);
16312 int main()
16313 {
16314 int result = 0;
16315 volatile long double x;
16316 /* Test on finite numbers that fails on AIX 5.1. */
16317 x = 16.0L;
16318 {
16319 int exp = -9999;
16320 frexpl (x, &exp);
16321 if (exp != 5)
16322 result |= 1;
16323 }
16324 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
16325 function returns an invalid (incorrectly normalized) value: it returns
16326 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
16327 but the correct result is
16328 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
16329 x = 1.01L;
16330 {
16331 int exp = -9999;
16332 long double y = frexpl (x, &exp);
16333 if (!(exp == 1 && y == 0.505L))
16334 result |= 2;
16335 }
16336 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
16337 LDBL_MAX_EXP = 16384.
16338 In the loop end test, we test x against Infinity, rather than comparing
16339 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
16340 {
16341 int i;
16342 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
16343 {
16344 int exp = -9999;
16345 frexpl (x, &exp);
16346 if (exp != i)
16347 {
16348 result |= 4;
16349 break;
16350 }
16351 }
16352 }
16353 /* Test on denormalized numbers. */
16354 {
16355 int i;
16356 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
16357 ;
16358 if (x > 0.0L)
16359 {
16360 int exp;
16361 long double y = frexpl (x, &exp);
16362 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
16363 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
16364 if (exp != LDBL_MIN_EXP - 1)
16365 result |= 8;
16366 }
16367 }
16368 /* Test on infinite numbers. */
16369 x = 1.0L / 0.0L;
16370 {
16371 int exp;
16372 long double y = frexpl (x, &exp);
16373 if (y != x)
16374 result |= 16;
16375 }
16376 return result;
16377 }
16378 _ACEOF
16379 if ac_fn_c_try_run "$LINENO"; then :
16380 gl_cv_func_frexpl_works=yes
16381 else
16382 gl_cv_func_frexpl_works=no
16383 fi
16384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16385 conftest.$ac_objext conftest.beam conftest.$ac_ext
16386 fi
16387
16388
16389 fi
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
16391 $as_echo "$gl_cv_func_frexpl_works" >&6; }
16392
16393 case "$gl_cv_func_frexpl_works" in
16394 *yes) gl_func_frexpl_no_libm=yes ;;
16395 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
16396 esac
16397 else
16398 gl_func_frexpl_no_libm=no
16399 REPLACE_FREXPL=1
16400 fi
16401 if test $gl_func_frexpl_no_libm = yes; then
16402
16403 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
16404
16405 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
16406 "
16407 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
16408
16409 else
16410 HAVE_DECL_FREXPL=0
16411 fi
16412
16413 fi
16414
16415
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
16417 $as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
16418 if ${gl_cv_func_ldexpl_no_libm+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424 #include <math.h>
16425 long double x;
16426 int
16427 main ()
16428 {
16429 return ldexpl (x, -1) > 0;
16430 ;
16431 return 0;
16432 }
16433 _ACEOF
16434 if ac_fn_c_try_link "$LINENO"; then :
16435 gl_cv_func_ldexpl_no_libm=yes
16436 else
16437 gl_cv_func_ldexpl_no_libm=no
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441
16442 fi
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
16444 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
16445
16446 if test $gl_cv_func_ldexpl_no_libm = yes; then
16447
16448
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
16450 $as_echo_n "checking whether ldexpl works... " >&6; }
16451 if ${gl_cv_func_ldexpl_works+:} false; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454
16455 if test "$cross_compiling" = yes; then :
16456
16457 case "$host_os" in
16458 aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no";;
16459 *) gl_cv_func_ldexpl_works="guessing yes";;
16460 esac
16461
16462 else
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465
16466 #include <math.h>
16467 extern
16468 #ifdef __cplusplus
16469 "C"
16470 #endif
16471 long double ldexpl (long double, int);
16472 int main()
16473 {
16474 int result = 0;
16475 {
16476 volatile long double x = 1.0;
16477 volatile long double y = ldexpl (x, -1);
16478 if (y != 0.5L)
16479 result |= 1;
16480 }
16481 {
16482 volatile long double x = 1.73205L;
16483 volatile long double y = ldexpl (x, 0);
16484 if (y != x)
16485 result |= 2;
16486 }
16487 return result;
16488 }
16489 _ACEOF
16490 if ac_fn_c_try_run "$LINENO"; then :
16491 gl_cv_func_ldexpl_works=yes
16492 else
16493 gl_cv_func_ldexpl_works=no
16494 fi
16495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16496 conftest.$ac_objext conftest.beam conftest.$ac_ext
16497 fi
16498
16499
16500 fi
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
16502 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
16503
16504 case "$gl_cv_func_ldexpl_works" in
16505 *yes)
16506
16507 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
16508
16509 ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
16510 "
16511 if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
16512
16513 else
16514 HAVE_DECL_LDEXPL=0
16515 fi
16516
16517 ;;
16518 esac
16519 fi
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533 if test $gl_cv_have_include_next = yes; then
16534 gl_cv_next_pthread_h='<'pthread.h'>'
16535 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
16537 $as_echo_n "checking absolute name of <pthread.h>... " >&6; }
16538 if ${gl_cv_next_pthread_h+:} false; then :
16539 $as_echo_n "(cached) " >&6
16540 else
16541
16542 if test $ac_cv_header_pthread_h = yes; then
16543
16544
16545
16546
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549 #include <pthread.h>
16550 _ACEOF
16551 case "$host_os" in
16552 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16553 *) gl_absname_cpp="$ac_cpp" ;;
16554 esac
16555
16556 case "$host_os" in
16557 mingw*)
16558 gl_dirsep_regex='[/\\]'
16559 ;;
16560 *)
16561 gl_dirsep_regex='\/'
16562 ;;
16563 esac
16564 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16565 gl_header_literal_regex=`echo 'pthread.h' \
16566 | sed -e "$gl_make_literal_regex_sed"`
16567 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16568 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16569 s|^/[^/]|//&|
16570 p
16571 q
16572 }'
16573
16574 gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16575 sed -n "$gl_absolute_header_sed"`
16576
16577 gl_header=$gl_cv_absolute_pthread_h
16578 gl_cv_next_pthread_h='"'$gl_header'"'
16579 else
16580 gl_cv_next_pthread_h='<'pthread.h'>'
16581 fi
16582
16583
16584 fi
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
16586 $as_echo "$gl_cv_next_pthread_h" >&6; }
16587 fi
16588 NEXT_PTHREAD_H=$gl_cv_next_pthread_h
16589
16590 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16592 gl_next_as_first_directive='<'pthread.h'>'
16593 else
16594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16595 gl_next_as_first_directive=$gl_cv_next_pthread_h
16596 fi
16597 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
16598
16599
16600
16601
16602 if test $ac_cv_header_pthread_h = yes; then
16603 HAVE_PTHREAD_H=1
16604 # mingw 3.0 uses winpthreads which installs broken macros via <pthread.h>
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <pthread.h> pollutes the namespace" >&5
16606 $as_echo_n "checking whether <pthread.h> pollutes the namespace... " >&6; }
16607 if ${gl_cv_header_pthread_h_pollution+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 #include <pthread.h>
16613 #ifdef strtok_r
16614 #error
16615 break me
16616 #endif
16617
16618 int
16619 main ()
16620 {
16621
16622 ;
16623 return 0;
16624 }
16625 _ACEOF
16626 if ac_fn_c_try_compile "$LINENO"; then :
16627 gl_cv_header_pthread_h_pollution=no
16628 else
16629 gl_cv_header_pthread_h_pollution=yes
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_pthread_h_pollution" >&5
16634 $as_echo "$gl_cv_header_pthread_h_pollution" >&6; }
16635 else
16636 HAVE_PTHREAD_H=0
16637 fi
16638
16639 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
16640 #if HAVE_PTHREAD_H
16641 #include <pthread.h>
16642 #endif
16643 "
16644 if test "x$ac_cv_type_pthread_t" = xyes; then :
16645
16646 cat >>confdefs.h <<_ACEOF
16647 #define HAVE_PTHREAD_T 1
16648 _ACEOF
16649
16650
16651 fi
16652 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
16653 #if HAVE_PTHREAD_H
16654 #include <pthread.h>
16655 #endif
16656 "
16657 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16658
16659 cat >>confdefs.h <<_ACEOF
16660 #define HAVE_PTHREAD_SPINLOCK_T 1
16661 _ACEOF
16662
16663
16664 fi
16665
16666 if test $ac_cv_type_pthread_t != yes; then
16667 HAVE_PTHREAD_T=0
16668 fi
16669 if test $ac_cv_type_pthread_spinlock_t != yes; then
16670 HAVE_PTHREAD_SPINLOCK_T=0
16671 fi
16672
16673 if test $ac_cv_header_pthread_h != yes ||
16674 test $ac_cv_type_pthread_t != yes ||
16675 test $ac_cv_type_pthread_spinlock_t != yes; then
16676 PTHREAD_H='pthread.h'
16677
16678
16679
16680
16681
16682
16683
16684
16685 gl_LIBOBJS="$gl_LIBOBJS pthread.$ac_objext"
16686
16687 elif test $gl_cv_header_pthread_h_pollution = yes; then
16688 PTHREAD_H=pthread.h
16689 else
16690 PTHREAD_H=
16691 fi
16692
16693 if test -n "$PTHREAD_H"; then
16694 GL_GENERATE_PTHREAD_H_TRUE=
16695 GL_GENERATE_PTHREAD_H_FALSE='#'
16696 else
16697 GL_GENERATE_PTHREAD_H_TRUE='#'
16698 GL_GENERATE_PTHREAD_H_FALSE=
16699 fi
16700
16701
16702 LIB_PTHREAD=
16703 if test $ac_cv_header_pthread_h = yes; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create and pthread_join" >&5
16705 $as_echo_n "checking for library containing pthread_create and pthread_join... " >&6; }
16706 if ${gl_cv_lib_pthread+:} false; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 gl_saved_libs=$LIBS
16710 gl_cv_lib_pthread=
16711 for gl_lib_prefix in '' '-lpthread'; do
16712 LIBS="$gl_lib_prefix $gl_saved_libs"
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715 #include <pthread.h>
16716 void *noop (void *p) { return p; }
16717 int
16718 main ()
16719 {
16720 pthread_t pt;
16721 void *arg = 0;
16722 pthread_create (&pt, 0, noop, arg);
16723 pthread_join (pthread_self (), &arg);
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 if ac_fn_c_try_link "$LINENO"; then :
16729 if test -z "$gl_lib_prefix"; then
16730 gl_cv_lib_pthread="none required"
16731 else
16732 gl_cv_lib_pthread=$gl_lib_prefix
16733 fi
16734 fi
16735 rm -f core conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 test -n "$gl_cv_lib_pthread" && break
16738 done
16739 LIBS="$gl_saved_libs"
16740
16741 fi
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_pthread" >&5
16743 $as_echo "$gl_cv_lib_pthread" >&6; }
16744 if test "$gl_cv_lib_pthread" != "none required"; then
16745 LIB_PTHREAD="$gl_cv_lib_pthread"
16746 fi
16747 fi
16748
16749
16750
16751
16752
16753
16754 cat >>confdefs.h <<_ACEOF
16755 #define GNULIB_PTHREAD 1
16756 _ACEOF
16757
16758
16759
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16762
16763 #include <sched.h>
16764 struct sched_param a;
16765 int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
16766 pid_t t1;
16767
16768 int
16769 main ()
16770 {
16771
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_compile "$LINENO"; then :
16777 SCHED_H=''
16778 else
16779 SCHED_H='sched.h'
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790 if test $gl_cv_have_include_next = yes; then
16791 gl_cv_next_sched_h='<'sched.h'>'
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
16794 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
16795 if ${gl_cv_next_sched_h+:} false; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798
16799 if test $ac_cv_header_sched_h = yes; then
16800
16801
16802
16803
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806 #include <sched.h>
16807 _ACEOF
16808 case "$host_os" in
16809 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16810 *) gl_absname_cpp="$ac_cpp" ;;
16811 esac
16812
16813 case "$host_os" in
16814 mingw*)
16815 gl_dirsep_regex='[/\\]'
16816 ;;
16817 *)
16818 gl_dirsep_regex='\/'
16819 ;;
16820 esac
16821 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16822 gl_header_literal_regex=`echo 'sched.h' \
16823 | sed -e "$gl_make_literal_regex_sed"`
16824 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16825 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16826 s|^/[^/]|//&|
16827 p
16828 q
16829 }'
16830
16831 gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16832 sed -n "$gl_absolute_header_sed"`
16833
16834 gl_header=$gl_cv_absolute_sched_h
16835 gl_cv_next_sched_h='"'$gl_header'"'
16836 else
16837 gl_cv_next_sched_h='<'sched.h'>'
16838 fi
16839
16840
16841 fi
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
16843 $as_echo "$gl_cv_next_sched_h" >&6; }
16844 fi
16845 NEXT_SCHED_H=$gl_cv_next_sched_h
16846
16847 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16849 gl_next_as_first_directive='<'sched.h'>'
16850 else
16851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16852 gl_next_as_first_directive=$gl_cv_next_sched_h
16853 fi
16854 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
16855
16856
16857
16858
16859
16860 if test $ac_cv_header_sched_h = yes; then
16861 HAVE_SCHED_H=1
16862 else
16863 HAVE_SCHED_H=0
16864 fi
16865
16866
16867 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
16868 "
16869 if test "x$ac_cv_type_struct_sched_param" = xyes; then :
16870 HAVE_STRUCT_SCHED_PARAM=1
16871 else
16872 HAVE_STRUCT_SCHED_PARAM=0
16873 fi
16874
16875
16876
16877
16878
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881
16882 if test -n "$SCHED_H"; then
16883 GL_GENERATE_SCHED_H_TRUE=
16884 GL_GENERATE_SCHED_H_FALSE='#'
16885 else
16886 GL_GENERATE_SCHED_H_TRUE='#'
16887 GL_GENERATE_SCHED_H_FALSE=
16888 fi
16889
16890
16891
16892
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
16894 $as_echo_n "checking for signbit macro... " >&6; }
16895 if ${gl_cv_func_signbit+:} false; then :
16896 $as_echo_n "(cached) " >&6
16897 else
16898
16899 if test "$cross_compiling" = yes; then :
16900 case "$host_os" in
16901 # Guess yes on glibc systems.
16902 *-gnu*) gl_cv_func_signbit="guessing yes" ;;
16903 # If we don't know, assume the worst.
16904 *) gl_cv_func_signbit="guessing no" ;;
16905 esac
16906
16907 else
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910
16911 #include <math.h>
16912 /* If signbit is defined as a function, don't use it, since calling it for
16913 'float' or 'long double' arguments would involve conversions.
16914 If signbit is not declared at all but exists as a library function, don't
16915 use it, since the prototype may not match.
16916 If signbit is not declared at all but exists as a compiler built-in, don't
16917 use it, since it's preferable to use __builtin_signbit* (no warnings,
16918 no conversions). */
16919 #ifndef signbit
16920 # error "signbit should be a macro"
16921 #endif
16922 #include <string.h>
16923
16924 /* Global variables.
16925 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16926 but cannot constant-fold __builtin_signbitl (variable). */
16927 float vf;
16928 double vd;
16929 long double vl;
16930 int main ()
16931 {
16932 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16933 So we use -p0f and -p0d instead. */
16934 float p0f = 0.0f;
16935 float m0f = -p0f;
16936 double p0d = 0.0;
16937 double m0d = -p0d;
16938 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16939 So we use another constant expression instead.
16940 But that expression does not work on other platforms, such as when
16941 cross-compiling to PowerPC on Mac OS X 10.5. */
16942 long double p0l = 0.0L;
16943 #if defined __hpux || defined __sgi
16944 long double m0l = -LDBL_MIN * LDBL_MIN;
16945 #else
16946 long double m0l = -p0l;
16947 #endif
16948 int result = 0;
16949 if (signbit (vf)) /* link check */
16950 vf++;
16951 {
16952 float plus_inf = 1.0f / p0f;
16953 float minus_inf = -1.0f / p0f;
16954 if (!(!signbit (255.0f)
16955 && signbit (-255.0f)
16956 && !signbit (p0f)
16957 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16958 && !signbit (plus_inf)
16959 && signbit (minus_inf)))
16960 result |= 1;
16961 }
16962 if (signbit (vd)) /* link check */
16963 vd++;
16964 {
16965 double plus_inf = 1.0 / p0d;
16966 double minus_inf = -1.0 / p0d;
16967 if (!(!signbit (255.0)
16968 && signbit (-255.0)
16969 && !signbit (p0d)
16970 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16971 && !signbit (plus_inf)
16972 && signbit (minus_inf)))
16973 result |= 2;
16974 }
16975 if (signbit (vl)) /* link check */
16976 vl++;
16977 {
16978 long double plus_inf = 1.0L / p0l;
16979 long double minus_inf = -1.0L / p0l;
16980 if (signbit (255.0L))
16981 result |= 4;
16982 if (!signbit (-255.0L))
16983 result |= 4;
16984 if (signbit (p0l))
16985 result |= 8;
16986 if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
16987 result |= 16;
16988 if (signbit (plus_inf))
16989 result |= 32;
16990 if (!signbit (minus_inf))
16991 result |= 64;
16992 }
16993 return result;
16994 }
16995
16996
16997 _ACEOF
16998 if ac_fn_c_try_run "$LINENO"; then :
16999 gl_cv_func_signbit=yes
17000 else
17001 gl_cv_func_signbit=no
17002 fi
17003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17004 conftest.$ac_objext conftest.beam conftest.$ac_ext
17005 fi
17006
17007
17008 fi
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
17010 $as_echo "$gl_cv_func_signbit" >&6; }
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
17012 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
17013 if ${gl_cv_func_signbit_gcc+:} false; then :
17014 $as_echo_n "(cached) " >&6
17015 else
17016
17017 if test "$cross_compiling" = yes; then :
17018 case "$host_os" in
17019 # Guess yes on glibc systems.
17020 *-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
17021 # If we don't know, assume the worst.
17022 *) gl_cv_func_signbit_gcc="guessing no" ;;
17023 esac
17024
17025 else
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17028
17029 #if __GNUC__ >= 4
17030 # define signbit(x) \
17031 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
17032 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
17033 __builtin_signbitf (x))
17034 #else
17035 # error "signbit should be three compiler built-ins"
17036 #endif
17037 #include <string.h>
17038
17039 /* Global variables.
17040 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
17041 but cannot constant-fold __builtin_signbitl (variable). */
17042 float vf;
17043 double vd;
17044 long double vl;
17045 int main ()
17046 {
17047 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
17048 So we use -p0f and -p0d instead. */
17049 float p0f = 0.0f;
17050 float m0f = -p0f;
17051 double p0d = 0.0;
17052 double m0d = -p0d;
17053 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
17054 So we use another constant expression instead.
17055 But that expression does not work on other platforms, such as when
17056 cross-compiling to PowerPC on Mac OS X 10.5. */
17057 long double p0l = 0.0L;
17058 #if defined __hpux || defined __sgi
17059 long double m0l = -LDBL_MIN * LDBL_MIN;
17060 #else
17061 long double m0l = -p0l;
17062 #endif
17063 int result = 0;
17064 if (signbit (vf)) /* link check */
17065 vf++;
17066 {
17067 float plus_inf = 1.0f / p0f;
17068 float minus_inf = -1.0f / p0f;
17069 if (!(!signbit (255.0f)
17070 && signbit (-255.0f)
17071 && !signbit (p0f)
17072 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
17073 && !signbit (plus_inf)
17074 && signbit (minus_inf)))
17075 result |= 1;
17076 }
17077 if (signbit (vd)) /* link check */
17078 vd++;
17079 {
17080 double plus_inf = 1.0 / p0d;
17081 double minus_inf = -1.0 / p0d;
17082 if (!(!signbit (255.0)
17083 && signbit (-255.0)
17084 && !signbit (p0d)
17085 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
17086 && !signbit (plus_inf)
17087 && signbit (minus_inf)))
17088 result |= 2;
17089 }
17090 if (signbit (vl)) /* link check */
17091 vl++;
17092 {
17093 long double plus_inf = 1.0L / p0l;
17094 long double minus_inf = -1.0L / p0l;
17095 if (signbit (255.0L))
17096 result |= 4;
17097 if (!signbit (-255.0L))
17098 result |= 4;
17099 if (signbit (p0l))
17100 result |= 8;
17101 if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
17102 result |= 16;
17103 if (signbit (plus_inf))
17104 result |= 32;
17105 if (!signbit (minus_inf))
17106 result |= 64;
17107 }
17108 return result;
17109 }
17110
17111
17112 _ACEOF
17113 if ac_fn_c_try_run "$LINENO"; then :
17114 gl_cv_func_signbit_gcc=yes
17115 else
17116 gl_cv_func_signbit_gcc=no
17117 fi
17118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17119 conftest.$ac_objext conftest.beam conftest.$ac_ext
17120 fi
17121
17122
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
17125 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
17126 case "$gl_cv_func_signbit_gcc" in
17127 *yes)
17128 REPLACE_SIGNBIT_USING_GCC=1
17129 ;;
17130 *)
17131 case "$gl_cv_func_signbit" in
17132 *yes) ;;
17133 *)
17134 REPLACE_SIGNBIT=1
17135
17136
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
17138 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
17139 if ${gl_cv_cc_float_signbit+:} false; then :
17140 $as_echo_n "(cached) " >&6
17141 else
17142
17143 if test "$cross_compiling" = yes; then :
17144
17145 gl_cv_cc_float_signbit="unknown"
17146
17147 else
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150
17151 #include <stddef.h>
17152 #include <stdio.h>
17153 #define NWORDS \
17154 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17155 typedef union { float value; unsigned int word[NWORDS]; }
17156 memory_float;
17157 static memory_float plus = { 1.0f };
17158 static memory_float minus = { -1.0f };
17159 int main ()
17160 {
17161 size_t j, k, i;
17162 unsigned int m;
17163 FILE *fp = fopen ("conftest.out", "w");
17164 if (fp == NULL)
17165 return 1;
17166 /* Find the different bit. */
17167 k = 0; m = 0;
17168 for (j = 0; j < NWORDS; j++)
17169 {
17170 unsigned int x = plus.word[j] ^ minus.word[j];
17171 if ((x & (x - 1)) || (x && m))
17172 {
17173 /* More than one bit difference. */
17174 fprintf (fp, "unknown");
17175 return 2;
17176 }
17177 if (x)
17178 {
17179 k = j;
17180 m = x;
17181 }
17182 }
17183 if (m == 0)
17184 {
17185 /* No difference. */
17186 fprintf (fp, "unknown");
17187 return 3;
17188 }
17189 /* Now m = plus.word[k] ^ ~minus.word[k]. */
17190 if (plus.word[k] & ~minus.word[k])
17191 {
17192 /* Oh? The sign bit is set in the positive and cleared in the negative
17193 numbers? */
17194 fprintf (fp, "unknown");
17195 return 4;
17196 }
17197 for (i = 0; ; i++)
17198 if ((m >> i) & 1)
17199 break;
17200 fprintf (fp, "word %d bit %d", (int) k, (int) i);
17201 if (fclose (fp) != 0)
17202 return 5;
17203 return 0;
17204 }
17205
17206 _ACEOF
17207 if ac_fn_c_try_run "$LINENO"; then :
17208 gl_cv_cc_float_signbit=`cat conftest.out`
17209 else
17210 gl_cv_cc_float_signbit="unknown"
17211 fi
17212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17213 conftest.$ac_objext conftest.beam conftest.$ac_ext
17214 fi
17215
17216 rm -f conftest.out
17217
17218 fi
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
17220 $as_echo "$gl_cv_cc_float_signbit" >&6; }
17221 case "$gl_cv_cc_float_signbit" in
17222 word*bit*)
17223 word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
17224 bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define FLT_SIGNBIT_WORD $word
17228 _ACEOF
17229
17230
17231 cat >>confdefs.h <<_ACEOF
17232 #define FLT_SIGNBIT_BIT $bit
17233 _ACEOF
17234
17235 ;;
17236 esac
17237
17238
17239
17240
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
17242 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
17243 if ${gl_cv_cc_double_signbit+:} false; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246
17247 if test "$cross_compiling" = yes; then :
17248
17249 gl_cv_cc_double_signbit="unknown"
17250
17251 else
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254
17255 #include <stddef.h>
17256 #include <stdio.h>
17257 #define NWORDS \
17258 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17259 typedef union { double value; unsigned int word[NWORDS]; }
17260 memory_float;
17261 static memory_float plus = { 1.0 };
17262 static memory_float minus = { -1.0 };
17263 int main ()
17264 {
17265 size_t j, k, i;
17266 unsigned int m;
17267 FILE *fp = fopen ("conftest.out", "w");
17268 if (fp == NULL)
17269 return 1;
17270 /* Find the different bit. */
17271 k = 0; m = 0;
17272 for (j = 0; j < NWORDS; j++)
17273 {
17274 unsigned int x = plus.word[j] ^ minus.word[j];
17275 if ((x & (x - 1)) || (x && m))
17276 {
17277 /* More than one bit difference. */
17278 fprintf (fp, "unknown");
17279 return 2;
17280 }
17281 if (x)
17282 {
17283 k = j;
17284 m = x;
17285 }
17286 }
17287 if (m == 0)
17288 {
17289 /* No difference. */
17290 fprintf (fp, "unknown");
17291 return 3;
17292 }
17293 /* Now m = plus.word[k] ^ ~minus.word[k]. */
17294 if (plus.word[k] & ~minus.word[k])
17295 {
17296 /* Oh? The sign bit is set in the positive and cleared in the negative
17297 numbers? */
17298 fprintf (fp, "unknown");
17299 return 4;
17300 }
17301 for (i = 0; ; i++)
17302 if ((m >> i) & 1)
17303 break;
17304 fprintf (fp, "word %d bit %d", (int) k, (int) i);
17305 if (fclose (fp) != 0)
17306 return 5;
17307 return 0;
17308 }
17309
17310 _ACEOF
17311 if ac_fn_c_try_run "$LINENO"; then :
17312 gl_cv_cc_double_signbit=`cat conftest.out`
17313 else
17314 gl_cv_cc_double_signbit="unknown"
17315 fi
17316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17317 conftest.$ac_objext conftest.beam conftest.$ac_ext
17318 fi
17319
17320 rm -f conftest.out
17321
17322 fi
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
17324 $as_echo "$gl_cv_cc_double_signbit" >&6; }
17325 case "$gl_cv_cc_double_signbit" in
17326 word*bit*)
17327 word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
17328 bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
17329
17330 cat >>confdefs.h <<_ACEOF
17331 #define DBL_SIGNBIT_WORD $word
17332 _ACEOF
17333
17334
17335 cat >>confdefs.h <<_ACEOF
17336 #define DBL_SIGNBIT_BIT $bit
17337 _ACEOF
17338
17339 ;;
17340 esac
17341
17342
17343
17344
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
17346 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
17347 if ${gl_cv_cc_long_double_signbit+:} false; then :
17348 $as_echo_n "(cached) " >&6
17349 else
17350
17351 if test "$cross_compiling" = yes; then :
17352
17353 gl_cv_cc_long_double_signbit="unknown"
17354
17355 else
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17358
17359 #include <stddef.h>
17360 #include <stdio.h>
17361 #define NWORDS \
17362 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
17363 typedef union { long double value; unsigned int word[NWORDS]; }
17364 memory_float;
17365 static memory_float plus = { 1.0L };
17366 static memory_float minus = { -1.0L };
17367 int main ()
17368 {
17369 size_t j, k, i;
17370 unsigned int m;
17371 FILE *fp = fopen ("conftest.out", "w");
17372 if (fp == NULL)
17373 return 1;
17374 /* Find the different bit. */
17375 k = 0; m = 0;
17376 for (j = 0; j < NWORDS; j++)
17377 {
17378 unsigned int x = plus.word[j] ^ minus.word[j];
17379 if ((x & (x - 1)) || (x && m))
17380 {
17381 /* More than one bit difference. */
17382 fprintf (fp, "unknown");
17383 return 2;
17384 }
17385 if (x)
17386 {
17387 k = j;
17388 m = x;
17389 }
17390 }
17391 if (m == 0)
17392 {
17393 /* No difference. */
17394 fprintf (fp, "unknown");
17395 return 3;
17396 }
17397 /* Now m = plus.word[k] ^ ~minus.word[k]. */
17398 if (plus.word[k] & ~minus.word[k])
17399 {
17400 /* Oh? The sign bit is set in the positive and cleared in the negative
17401 numbers? */
17402 fprintf (fp, "unknown");
17403 return 4;
17404 }
17405 for (i = 0; ; i++)
17406 if ((m >> i) & 1)
17407 break;
17408 fprintf (fp, "word %d bit %d", (int) k, (int) i);
17409 if (fclose (fp) != 0)
17410 return 5;
17411 return 0;
17412 }
17413
17414 _ACEOF
17415 if ac_fn_c_try_run "$LINENO"; then :
17416 gl_cv_cc_long_double_signbit=`cat conftest.out`
17417 else
17418 gl_cv_cc_long_double_signbit="unknown"
17419 fi
17420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17421 conftest.$ac_objext conftest.beam conftest.$ac_ext
17422 fi
17423
17424 rm -f conftest.out
17425
17426 fi
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
17428 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
17429 case "$gl_cv_cc_long_double_signbit" in
17430 word*bit*)
17431 word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
17432 bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
17433
17434 cat >>confdefs.h <<_ACEOF
17435 #define LDBL_SIGNBIT_WORD $word
17436 _ACEOF
17437
17438
17439 cat >>confdefs.h <<_ACEOF
17440 #define LDBL_SIGNBIT_BIT $bit
17441 _ACEOF
17442
17443 ;;
17444 esac
17445
17446
17447 if test "$gl_cv_cc_float_signbit" = unknown; then
17448 ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
17449 "
17450 if test "x$ac_cv_have_decl_copysignf" = xyes; then :
17451 ac_have_decl=1
17452 else
17453 ac_have_decl=0
17454 fi
17455
17456 cat >>confdefs.h <<_ACEOF
17457 #define HAVE_DECL_COPYSIGNF $ac_have_decl
17458 _ACEOF
17459
17460 if test "$ac_cv_have_decl_copysignf" = yes; then
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
17462 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
17463 if ${gl_cv_func_copysignf_no_libm+:} false; then :
17464 $as_echo_n "(cached) " >&6
17465 else
17466
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17469 #include <math.h>
17470 float x, y;
17471 int
17472 main ()
17473 {
17474 return copysignf (x, y) < 0;
17475 ;
17476 return 0;
17477 }
17478 _ACEOF
17479 if ac_fn_c_try_link "$LINENO"; then :
17480 gl_cv_func_copysignf_no_libm=yes
17481 else
17482 gl_cv_func_copysignf_no_libm=no
17483 fi
17484 rm -f core conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
17486
17487 fi
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
17489 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
17490 if test $gl_cv_func_copysignf_no_libm = yes; then
17491
17492 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
17493
17494 fi
17495 fi
17496 fi
17497 if test "$gl_cv_cc_double_signbit" = unknown; then
17498 ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
17499 "
17500 if test "x$ac_cv_have_decl_copysign" = xyes; then :
17501 ac_have_decl=1
17502 else
17503 ac_have_decl=0
17504 fi
17505
17506 cat >>confdefs.h <<_ACEOF
17507 #define HAVE_DECL_COPYSIGN $ac_have_decl
17508 _ACEOF
17509
17510 if test "$ac_cv_have_decl_copysign" = yes; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
17512 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
17513 if ${gl_cv_func_copysign_no_libm+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17516
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 #include <math.h>
17520 double x, y;
17521 int
17522 main ()
17523 {
17524 return copysign (x, y) < 0;
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 gl_cv_func_copysign_no_libm=yes
17531 else
17532 gl_cv_func_copysign_no_libm=no
17533 fi
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17536
17537 fi
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
17539 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
17540 if test $gl_cv_func_copysign_no_libm = yes; then
17541
17542 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
17543
17544 fi
17545 fi
17546 fi
17547 if test "$gl_cv_cc_long_double_signbit" = unknown; then
17548 ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
17549 "
17550 if test "x$ac_cv_have_decl_copysignl" = xyes; then :
17551 ac_have_decl=1
17552 else
17553 ac_have_decl=0
17554 fi
17555
17556 cat >>confdefs.h <<_ACEOF
17557 #define HAVE_DECL_COPYSIGNL $ac_have_decl
17558 _ACEOF
17559
17560 if test "$ac_cv_have_decl_copysignl" = yes; then
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
17562 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
17563 if ${gl_cv_func_copysignl_no_libm+:} false; then :
17564 $as_echo_n "(cached) " >&6
17565 else
17566
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 #include <math.h>
17570 long double x, y;
17571 int
17572 main ()
17573 {
17574 return copysignl (x, y) < 0;
17575 ;
17576 return 0;
17577 }
17578 _ACEOF
17579 if ac_fn_c_try_link "$LINENO"; then :
17580 gl_cv_func_copysignl_no_libm=yes
17581 else
17582 gl_cv_func_copysignl_no_libm=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
17589 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
17590 if test $gl_cv_func_copysignl_no_libm = yes; then
17591
17592 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
17593
17594 fi
17595 fi
17596 fi
17597 ;;
17598 esac
17599 ;;
17600 esac
17601
17602 if test $REPLACE_SIGNBIT = 1; then
17603
17604
17605
17606
17607
17608
17609
17610
17611 gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621 gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631 gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
17632
17633 fi
17634
17635
17636
17637
17638
17639 GNULIB_SIGNBIT=1
17640
17641
17642
17643
17644
17645
17646 for ac_header in stdint.h
17647 do :
17648 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17649 if test "x$ac_cv_header_stdint_h" = xyes; then :
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_STDINT_H 1
17652 _ACEOF
17653
17654 fi
17655
17656 done
17657
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17659 $as_echo_n "checking for SIZE_MAX... " >&6; }
17660 if ${gl_cv_size_max+:} false; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663
17664 gl_cv_size_max=
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667
17668 #include <limits.h>
17669 #if HAVE_STDINT_H
17670 #include <stdint.h>
17671 #endif
17672 #ifdef SIZE_MAX
17673 Found it
17674 #endif
17675
17676 _ACEOF
17677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17678 $EGREP "Found it" >/dev/null 2>&1; then :
17679 gl_cv_size_max=yes
17680 fi
17681 rm -f conftest*
17682
17683 if test -z "$gl_cv_size_max"; then
17684 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
17685 #include <limits.h>"; then :
17686
17687 else
17688 size_t_bits_minus_1=
17689 fi
17690
17691 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
17692
17693 else
17694 fits_in_uint=
17695 fi
17696
17697 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17698 if test $fits_in_uint = 1; then
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 #include <stddef.h>
17702 extern size_t foo;
17703 extern unsigned long foo;
17704
17705 int
17706 main ()
17707 {
17708
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"; then :
17714 fits_in_uint=0
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 fi
17718 if test $fits_in_uint = 1; then
17719 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17720 else
17721 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17722 fi
17723 else
17724 gl_cv_size_max='((size_t)~(size_t)0)'
17725 fi
17726 fi
17727
17728 fi
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17730 $as_echo "$gl_cv_size_max" >&6; }
17731 if test "$gl_cv_size_max" != yes; then
17732
17733 cat >>confdefs.h <<_ACEOF
17734 #define SIZE_MAX $gl_cv_size_max
17735 _ACEOF
17736
17737 fi
17738
17739
17740
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17742 $as_echo_n "checking for ssize_t... " >&6; }
17743 if ${gt_cv_ssize_t+:} false; then :
17744 $as_echo_n "(cached) " >&6
17745 else
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 #include <sys/types.h>
17749 int
17750 main ()
17751 {
17752 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17753 return !x;
17754 ;
17755 return 0;
17756 }
17757 _ACEOF
17758 if ac_fn_c_try_compile "$LINENO"; then :
17759 gt_cv_ssize_t=yes
17760 else
17761 gt_cv_ssize_t=no
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17764 fi
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17766 $as_echo "$gt_cv_ssize_t" >&6; }
17767 if test $gt_cv_ssize_t = no; then
17768
17769 $as_echo "#define ssize_t int" >>confdefs.h
17770
17771 fi
17772
17773
17774
17775
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17777 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17778 if ${gl_cv_func_stat_dir_slash+:} false; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781 if test "$cross_compiling" = yes; then :
17782 case $host_os in
17783 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17784 *) gl_cv_func_stat_dir_slash="guessing yes";;
17785 esac
17786 else
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <sys/stat.h>
17790
17791 int
17792 main ()
17793 {
17794 struct stat st; return stat (".", &st) != stat ("./", &st);
17795 ;
17796 return 0;
17797 }
17798 _ACEOF
17799 if ac_fn_c_try_run "$LINENO"; then :
17800 gl_cv_func_stat_dir_slash=yes
17801 else
17802 gl_cv_func_stat_dir_slash=no
17803 fi
17804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17805 conftest.$ac_objext conftest.beam conftest.$ac_ext
17806 fi
17807
17808 fi
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17810 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17812 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17813 if ${gl_cv_func_stat_file_slash+:} false; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 touch conftest.tmp
17817 # Assume that if we have lstat, we can also check symlinks.
17818 if test $ac_cv_func_lstat = yes; then
17819 ln -s conftest.tmp conftest.lnk
17820 fi
17821 if test "$cross_compiling" = yes; then :
17822 case "$host_os" in
17823 # Guess yes on glibc systems.
17824 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17825 # If we don't know, assume the worst.
17826 *) gl_cv_func_stat_file_slash="guessing no" ;;
17827 esac
17828
17829 else
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 #include <sys/stat.h>
17833
17834 int
17835 main ()
17836 {
17837 int result = 0;
17838 struct stat st;
17839 if (!stat ("conftest.tmp/", &st))
17840 result |= 1;
17841 #if HAVE_LSTAT
17842 if (!stat ("conftest.lnk/", &st))
17843 result |= 2;
17844 #endif
17845 return result;
17846
17847 ;
17848 return 0;
17849 }
17850 _ACEOF
17851 if ac_fn_c_try_run "$LINENO"; then :
17852 gl_cv_func_stat_file_slash=yes
17853 else
17854 gl_cv_func_stat_file_slash=no
17855 fi
17856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17857 conftest.$ac_objext conftest.beam conftest.$ac_ext
17858 fi
17859
17860 rm -f conftest.tmp conftest.lnk
17861 fi
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17863 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17864 case $gl_cv_func_stat_dir_slash in
17865 *no) REPLACE_STAT=1
17866
17867 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17868 ;;
17869 esac
17870 case $gl_cv_func_stat_file_slash in
17871 *no) REPLACE_STAT=1
17872
17873 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17874 ;;
17875 esac
17876
17877 if test $REPLACE_STAT = 1; then
17878
17879
17880
17881
17882
17883
17884
17885
17886 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17887
17888 :
17889 fi
17890
17891
17892
17893
17894
17895 GNULIB_STAT=1
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
17906 #include <sys/stat.h>
17907 "
17908 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
17909
17910 cat >>confdefs.h <<_ACEOF
17911 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
17912 _ACEOF
17913
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
17915 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
17916 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921
17922 #include <sys/types.h>
17923 #include <sys/stat.h>
17924 #if HAVE_SYS_TIME_H
17925 # include <sys/time.h>
17926 #endif
17927 #include <time.h>
17928 struct timespec ts;
17929 struct stat st;
17930
17931 int
17932 main ()
17933 {
17934
17935 st.st_atim = ts;
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_compile "$LINENO"; then :
17942 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
17943 else
17944 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
17945 fi
17946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947 fi
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
17949 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
17950 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
17951
17952 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
17953
17954 fi
17955 else
17956 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
17957 #include <sys/stat.h>
17958 "
17959 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
17960
17961 cat >>confdefs.h <<_ACEOF
17962 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
17963 _ACEOF
17964
17965
17966 else
17967 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
17968 #include <sys/stat.h>
17969 "
17970 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
17971
17972 cat >>confdefs.h <<_ACEOF
17973 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
17974 _ACEOF
17975
17976
17977 else
17978 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
17979 #include <sys/stat.h>
17980 "
17981 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
17982
17983 cat >>confdefs.h <<_ACEOF
17984 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
17985 _ACEOF
17986
17987
17988 fi
17989
17990 fi
17991
17992 fi
17993
17994 fi
17995
17996
17997
17998
17999
18000 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
18001 #include <sys/stat.h>
18002 "
18003 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
18004
18005 cat >>confdefs.h <<_ACEOF
18006 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
18007 _ACEOF
18008
18009
18010 else
18011 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
18012 #include <sys/stat.h>
18013 "
18014 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
18015
18016 cat >>confdefs.h <<_ACEOF
18017 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
18018 _ACEOF
18019
18020
18021 else
18022 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
18023 #include <sys/stat.h>
18024 "
18025 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
18026
18027 cat >>confdefs.h <<_ACEOF
18028 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
18029 _ACEOF
18030
18031
18032 fi
18033
18034 fi
18035
18036 fi
18037
18038
18039
18040
18041
18042 # Define two additional variables used in the Makefile substitution.
18043
18044 if test "$ac_cv_header_stdbool_h" = yes; then
18045 STDBOOL_H=''
18046 else
18047 STDBOOL_H='stdbool.h'
18048 fi
18049
18050 if test -n "$STDBOOL_H"; then
18051 GL_GENERATE_STDBOOL_H_TRUE=
18052 GL_GENERATE_STDBOOL_H_FALSE='#'
18053 else
18054 GL_GENERATE_STDBOOL_H_TRUE='#'
18055 GL_GENERATE_STDBOOL_H_FALSE=
18056 fi
18057
18058
18059 if test "$ac_cv_type__Bool" = yes; then
18060 HAVE__BOOL=1
18061 else
18062 HAVE__BOOL=0
18063 fi
18064
18065
18066
18067
18068
18069 STDDEF_H=
18070 if test $gt_cv_c_wchar_t = no; then
18071 HAVE_WCHAR_T=0
18072 STDDEF_H=stddef.h
18073 fi
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
18075 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
18076 if ${gl_cv_decl_null_works+:} false; then :
18077 $as_echo_n "(cached) " >&6
18078 else
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18081 #include <stddef.h>
18082 int test[2 * (sizeof NULL == sizeof (void *)) -1];
18083
18084 int
18085 main ()
18086 {
18087
18088 ;
18089 return 0;
18090 }
18091 _ACEOF
18092 if ac_fn_c_try_compile "$LINENO"; then :
18093 gl_cv_decl_null_works=yes
18094 else
18095 gl_cv_decl_null_works=no
18096 fi
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098 fi
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
18100 $as_echo "$gl_cv_decl_null_works" >&6; }
18101 if test $gl_cv_decl_null_works = no; then
18102 REPLACE_NULL=1
18103 STDDEF_H=stddef.h
18104 fi
18105
18106 if test -n "$STDDEF_H"; then
18107 GL_GENERATE_STDDEF_H_TRUE=
18108 GL_GENERATE_STDDEF_H_FALSE='#'
18109 else
18110 GL_GENERATE_STDDEF_H_TRUE='#'
18111 GL_GENERATE_STDDEF_H_FALSE=
18112 fi
18113
18114 if test -n "$STDDEF_H"; then
18115
18116
18117
18118
18119
18120
18121
18122
18123 if test $gl_cv_have_include_next = yes; then
18124 gl_cv_next_stddef_h='<'stddef.h'>'
18125 else
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
18127 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
18128 if ${gl_cv_next_stddef_h+:} false; then :
18129 $as_echo_n "(cached) " >&6
18130 else
18131
18132
18133
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #include <stddef.h>
18137 _ACEOF
18138 case "$host_os" in
18139 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18140 *) gl_absname_cpp="$ac_cpp" ;;
18141 esac
18142
18143 case "$host_os" in
18144 mingw*)
18145 gl_dirsep_regex='[/\\]'
18146 ;;
18147 *)
18148 gl_dirsep_regex='\/'
18149 ;;
18150 esac
18151 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18152 gl_header_literal_regex=`echo 'stddef.h' \
18153 | sed -e "$gl_make_literal_regex_sed"`
18154 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18155 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18156 s|^/[^/]|//&|
18157 p
18158 q
18159 }'
18160
18161 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18162 sed -n "$gl_absolute_header_sed"`
18163
18164 gl_header=$gl_cv_absolute_stddef_h
18165 gl_cv_next_stddef_h='"'$gl_header'"'
18166
18167
18168 fi
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
18170 $as_echo "$gl_cv_next_stddef_h" >&6; }
18171 fi
18172 NEXT_STDDEF_H=$gl_cv_next_stddef_h
18173
18174 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18176 gl_next_as_first_directive='<'stddef.h'>'
18177 else
18178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18179 gl_next_as_first_directive=$gl_cv_next_stddef_h
18180 fi
18181 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
18182
18183
18184
18185
18186 fi
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199 if test $gl_cv_have_include_next = yes; then
18200 gl_cv_next_stdio_h='<'stdio.h'>'
18201 else
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18203 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18204 if ${gl_cv_next_stdio_h+:} false; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207
18208
18209
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18212 #include <stdio.h>
18213 _ACEOF
18214 case "$host_os" in
18215 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18216 *) gl_absname_cpp="$ac_cpp" ;;
18217 esac
18218
18219 case "$host_os" in
18220 mingw*)
18221 gl_dirsep_regex='[/\\]'
18222 ;;
18223 *)
18224 gl_dirsep_regex='\/'
18225 ;;
18226 esac
18227 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18228 gl_header_literal_regex=`echo 'stdio.h' \
18229 | sed -e "$gl_make_literal_regex_sed"`
18230 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18231 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18232 s|^/[^/]|//&|
18233 p
18234 q
18235 }'
18236
18237 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18238 sed -n "$gl_absolute_header_sed"`
18239
18240 gl_header=$gl_cv_absolute_stdio_h
18241 gl_cv_next_stdio_h='"'$gl_header'"'
18242
18243
18244 fi
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18246 $as_echo "$gl_cv_next_stdio_h" >&6; }
18247 fi
18248 NEXT_STDIO_H=$gl_cv_next_stdio_h
18249
18250 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18252 gl_next_as_first_directive='<'stdio.h'>'
18253 else
18254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18255 gl_next_as_first_directive=$gl_cv_next_stdio_h
18256 fi
18257 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18258
18259
18260
18261
18262
18263 GNULIB_FSCANF=1
18264
18265
18266 cat >>confdefs.h <<_ACEOF
18267 #define GNULIB_FSCANF 1
18268 _ACEOF
18269
18270
18271 GNULIB_SCANF=1
18272
18273
18274 cat >>confdefs.h <<_ACEOF
18275 #define GNULIB_SCANF 1
18276 _ACEOF
18277
18278
18279 GNULIB_FGETC=1
18280 GNULIB_GETC=1
18281 GNULIB_GETCHAR=1
18282 GNULIB_FGETS=1
18283 GNULIB_FREAD=1
18284
18285
18286 GNULIB_FPRINTF=1
18287 GNULIB_PRINTF=1
18288 GNULIB_VFPRINTF=1
18289 GNULIB_VPRINTF=1
18290 GNULIB_FPUTC=1
18291 GNULIB_PUTC=1
18292 GNULIB_PUTCHAR=1
18293 GNULIB_FPUTS=1
18294 GNULIB_PUTS=1
18295 GNULIB_FWRITE=1
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311 if test $gl_cv_have_include_next = yes; then
18312 gl_cv_next_stdlib_h='<'stdlib.h'>'
18313 else
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18315 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18316 if ${gl_cv_next_stdlib_h+:} false; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18319
18320
18321
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324 #include <stdlib.h>
18325 _ACEOF
18326 case "$host_os" in
18327 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18328 *) gl_absname_cpp="$ac_cpp" ;;
18329 esac
18330
18331 case "$host_os" in
18332 mingw*)
18333 gl_dirsep_regex='[/\\]'
18334 ;;
18335 *)
18336 gl_dirsep_regex='\/'
18337 ;;
18338 esac
18339 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18340 gl_header_literal_regex=`echo 'stdlib.h' \
18341 | sed -e "$gl_make_literal_regex_sed"`
18342 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18343 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18344 s|^/[^/]|//&|
18345 p
18346 q
18347 }'
18348
18349 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18350 sed -n "$gl_absolute_header_sed"`
18351
18352 gl_header=$gl_cv_absolute_stdlib_h
18353 gl_cv_next_stdlib_h='"'$gl_header'"'
18354
18355
18356 fi
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18358 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18359 fi
18360 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18361
18362 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18364 gl_next_as_first_directive='<'stdlib.h'>'
18365 else
18366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18367 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18368 fi
18369 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394 if test $gl_cv_have_include_next = yes; then
18395 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18396 else
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18398 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18399 if ${gl_cv_next_sys_stat_h+:} false; then :
18400 $as_echo_n "(cached) " >&6
18401 else
18402
18403 if test $ac_cv_header_sys_stat_h = yes; then
18404
18405
18406
18407
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18410 #include <sys/stat.h>
18411 _ACEOF
18412 case "$host_os" in
18413 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18414 *) gl_absname_cpp="$ac_cpp" ;;
18415 esac
18416
18417 case "$host_os" in
18418 mingw*)
18419 gl_dirsep_regex='[/\\]'
18420 ;;
18421 *)
18422 gl_dirsep_regex='\/'
18423 ;;
18424 esac
18425 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18426 gl_header_literal_regex=`echo 'sys/stat.h' \
18427 | sed -e "$gl_make_literal_regex_sed"`
18428 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18429 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18430 s|^/[^/]|//&|
18431 p
18432 q
18433 }'
18434
18435 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18436 sed -n "$gl_absolute_header_sed"`
18437
18438 gl_header=$gl_cv_absolute_sys_stat_h
18439 gl_cv_next_sys_stat_h='"'$gl_header'"'
18440 else
18441 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18442 fi
18443
18444
18445 fi
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18447 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18448 fi
18449 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18450
18451 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18452 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18453 gl_next_as_first_directive='<'sys/stat.h'>'
18454 else
18455 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18456 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18457 fi
18458 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18471
18472 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18473
18474 fi
18475
18476 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18477 #include <sys/stat.h>
18478 "
18479 if test "x$ac_cv_type_nlink_t" = xyes; then :
18480
18481 else
18482
18483 $as_echo "#define nlink_t int" >>confdefs.h
18484
18485 fi
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500 :
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513 if test $gl_cv_have_include_next = yes; then
18514 gl_cv_next_unistd_h='<'unistd.h'>'
18515 else
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18517 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18518 if ${gl_cv_next_unistd_h+:} false; then :
18519 $as_echo_n "(cached) " >&6
18520 else
18521
18522 if test $ac_cv_header_unistd_h = yes; then
18523
18524
18525
18526
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529 #include <unistd.h>
18530 _ACEOF
18531 case "$host_os" in
18532 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18533 *) gl_absname_cpp="$ac_cpp" ;;
18534 esac
18535
18536 case "$host_os" in
18537 mingw*)
18538 gl_dirsep_regex='[/\\]'
18539 ;;
18540 *)
18541 gl_dirsep_regex='\/'
18542 ;;
18543 esac
18544 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18545 gl_header_literal_regex=`echo 'unistd.h' \
18546 | sed -e "$gl_make_literal_regex_sed"`
18547 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18548 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18549 s|^/[^/]|//&|
18550 p
18551 q
18552 }'
18553
18554 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18555 sed -n "$gl_absolute_header_sed"`
18556
18557 gl_header=$gl_cv_absolute_unistd_h
18558 gl_cv_next_unistd_h='"'$gl_header'"'
18559 else
18560 gl_cv_next_unistd_h='<'unistd.h'>'
18561 fi
18562
18563
18564 fi
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18566 $as_echo "$gl_cv_next_unistd_h" >&6; }
18567 fi
18568 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18569
18570 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18572 gl_next_as_first_directive='<'unistd.h'>'
18573 else
18574 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18575 gl_next_as_first_directive=$gl_cv_next_unistd_h
18576 fi
18577 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18578
18579
18580
18581
18582 if test $ac_cv_header_unistd_h = yes; then
18583 HAVE_UNISTD_H=1
18584 else
18585 HAVE_UNISTD_H=0
18586 fi
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
18603 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
18604 if ${gl_cv_func_futimesat_works+:} false; then :
18605 $as_echo_n "(cached) " >&6
18606 else
18607 touch conftest.file
18608 if test "$cross_compiling" = yes; then :
18609 case "$host_os" in
18610 # Guess yes on glibc systems.
18611 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
18612 # If we don't know, assume the worst.
18613 *) gl_cv_func_futimesat_works="guessing no" ;;
18614 esac
18615
18616 else
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18619
18620 #include <stddef.h>
18621 #include <sys/times.h>
18622 #include <fcntl.h>
18623
18624 int
18625 main ()
18626 {
18627 int fd = open ("conftest.file", O_RDWR);
18628 if (fd < 0) return 1;
18629 if (futimesat (fd, NULL, NULL)) return 2;
18630
18631 ;
18632 return 0;
18633 }
18634 _ACEOF
18635 if ac_fn_c_try_run "$LINENO"; then :
18636 gl_cv_func_futimesat_works=yes
18637 else
18638 gl_cv_func_futimesat_works=no
18639 fi
18640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18641 conftest.$ac_objext conftest.beam conftest.$ac_ext
18642 fi
18643
18644 rm -f conftest.file
18645 fi
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
18647 $as_echo "$gl_cv_func_futimesat_works" >&6; }
18648 case "$gl_cv_func_futimesat_works" in
18649 *yes) ;;
18650 *)
18651
18652 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
18653
18654 ;;
18655 esac
18656 fi
18657
18658
18659
18660 if test $ac_cv_func_vasnprintf = no; then
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18702
18703 if test $ac_cv_func_vasnprintf = yes; then
18704
18705 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18706
18707 fi
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18720 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18721
18722 else
18723
18724 $as_echo "#define ptrdiff_t long" >>confdefs.h
18725
18726
18727 fi
18728
18729
18730
18731
18732
18733
18734
18735 fi
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749 if test $gl_cv_have_include_next = yes; then
18750 gl_cv_next_wchar_h='<'wchar.h'>'
18751 else
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18753 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18754 if ${gl_cv_next_wchar_h+:} false; then :
18755 $as_echo_n "(cached) " >&6
18756 else
18757
18758 if test $ac_cv_header_wchar_h = yes; then
18759
18760
18761
18762
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18765 #include <wchar.h>
18766 _ACEOF
18767 case "$host_os" in
18768 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18769 *) gl_absname_cpp="$ac_cpp" ;;
18770 esac
18771
18772 case "$host_os" in
18773 mingw*)
18774 gl_dirsep_regex='[/\\]'
18775 ;;
18776 *)
18777 gl_dirsep_regex='\/'
18778 ;;
18779 esac
18780 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18781 gl_header_literal_regex=`echo 'wchar.h' \
18782 | sed -e "$gl_make_literal_regex_sed"`
18783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18785 s|^/[^/]|//&|
18786 p
18787 q
18788 }'
18789
18790 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18791 sed -n "$gl_absolute_header_sed"`
18792
18793 gl_header=$gl_cv_absolute_wchar_h
18794 gl_cv_next_wchar_h='"'$gl_header'"'
18795 else
18796 gl_cv_next_wchar_h='<'wchar.h'>'
18797 fi
18798
18799
18800 fi
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18802 $as_echo "$gl_cv_next_wchar_h" >&6; }
18803 fi
18804 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18805
18806 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18808 gl_next_as_first_directive='<'wchar.h'>'
18809 else
18810 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18811 gl_next_as_first_directive=$gl_cv_next_wchar_h
18812 fi
18813 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18814
18815
18816
18817
18818 if test $ac_cv_header_wchar_h = yes; then
18819 HAVE_WCHAR_H=1
18820 else
18821 HAVE_WCHAR_H=0
18822 fi
18823
18824
18825
18826
18827
18828 if test $gt_cv_c_wint_t = yes; then
18829 HAVE_WINT_T=1
18830 else
18831 HAVE_WINT_T=0
18832 fi
18833
18834
18835
18836
18837 :
18838
18839
18840 for ac_header in stdint.h
18841 do :
18842 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18843 if test "x$ac_cv_header_stdint_h" = xyes; then :
18844 cat >>confdefs.h <<_ACEOF
18845 #define HAVE_STDINT_H 1
18846 _ACEOF
18847
18848 fi
18849
18850 done
18851
18852
18853 # End of code from modules
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863 gltests_libdeps=
18864 gltests_ltlibdeps=
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874 gl_source_base='tests'
18875 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
18876
18877 gl_module_indicator_condition=$gltests_WITNESS
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887 LIBGNU_LIBDEPS="$gl_libdeps"
18888
18889 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18890
18891
18892
18893 ac_config_files="$ac_config_files Makefile src/Makefile lib/Makefile man/Makefile tests/Makefile"
18894
18895 cat >confcache <<\_ACEOF
18896 # This file is a shell script that caches the results of configure
18897 # tests run on this system so they can be shared between configure
18898 # scripts and configure runs, see configure's option --config-cache.
18899 # It is not useful on other systems. If it contains results you don't
18900 # want to keep, you may remove or edit it.
18901 #
18902 # config.status only pays attention to the cache file if you give it
18903 # the --recheck option to rerun configure.
18904 #
18905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18907 # following values.
18908
18909 _ACEOF
18910
18911 # The following way of writing the cache mishandles newlines in values,
18912 # but we know of no workaround that is simple, portable, and efficient.
18913 # So, we kill variables containing newlines.
18914 # Ultrix sh set writes to stderr and can't be redirected directly,
18915 # and sets the high bit in the cache file unless we assign to the vars.
18916 (
18917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18918 eval ac_val=\$$ac_var
18919 case $ac_val in #(
18920 *${as_nl}*)
18921 case $ac_var in #(
18922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18924 esac
18925 case $ac_var in #(
18926 _ | IFS | as_nl) ;; #(
18927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18928 *) { eval $ac_var=; unset $ac_var;} ;;
18929 esac ;;
18930 esac
18931 done
18932
18933 (set) 2>&1 |
18934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18935 *${as_nl}ac_space=\ *)
18936 # `set' does not quote correctly, so add quotes: double-quote
18937 # substitution turns \\\\ into \\, and sed turns \\ into \.
18938 sed -n \
18939 "s/'/'\\\\''/g;
18940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18941 ;; #(
18942 *)
18943 # `set' quotes correctly as required by POSIX, so do not add quotes.
18944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18945 ;;
18946 esac |
18947 sort
18948 ) |
18949 sed '
18950 /^ac_cv_env_/b end
18951 t clear
18952 :clear
18953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18954 t end
18955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18956 :end' >>confcache
18957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18958 if test -w "$cache_file"; then
18959 if test "x$cache_file" != "x/dev/null"; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18961 $as_echo "$as_me: updating cache $cache_file" >&6;}
18962 if test ! -f "$cache_file" || test -h "$cache_file"; then
18963 cat confcache >"$cache_file"
18964 else
18965 case $cache_file in #(
18966 */* | ?:*)
18967 mv -f confcache "$cache_file"$$ &&
18968 mv -f "$cache_file"$$ "$cache_file" ;; #(
18969 *)
18970 mv -f confcache "$cache_file" ;;
18971 esac
18972 fi
18973 fi
18974 else
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18977 fi
18978 fi
18979 rm -f confcache
18980
18981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18982 # Let make expand exec_prefix.
18983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18984
18985 DEFS=-DHAVE_CONFIG_H
18986
18987 ac_libobjs=
18988 ac_ltlibobjs=
18989 U=
18990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18991 # 1. Remove the extension, and $U if already installed.
18992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18995 # will be set to the directory where LIBOBJS objects are built.
18996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18998 done
18999 LIBOBJS=$ac_libobjs
19000
19001 LTLIBOBJS=$ac_ltlibobjs
19002
19003
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19005 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19006 if test -n "$am_sleep_pid"; then
19007 # Hide warnings about reused PIDs.
19008 wait $am_sleep_pid 2>/dev/null
19009 fi
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19011 $as_echo "done" >&6; }
19012 if test -n "$EXEEXT"; then
19013 am__EXEEXT_TRUE=
19014 am__EXEEXT_FALSE='#'
19015 else
19016 am__EXEEXT_TRUE='#'
19017 am__EXEEXT_FALSE=
19018 fi
19019
19020 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19021 as_fn_error $? "conditional \"AMDEP\" was never defined.
19022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19023 fi
19024 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19025 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19027 fi
19028 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19029 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19031 fi
19032 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19033 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19035 fi
19036 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19037 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19039 fi
19040 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19041 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19043 fi
19044
19045
19046 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19047 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
19048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19049 fi
19050 if test -z "${GL_GENERATE_PTHREAD_H_TRUE}" && test -z "${GL_GENERATE_PTHREAD_H_FALSE}"; then
19051 as_fn_error $? "conditional \"GL_GENERATE_PTHREAD_H\" was never defined.
19052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19053 fi
19054 if test -z "${GL_GENERATE_SCHED_H_TRUE}" && test -z "${GL_GENERATE_SCHED_H_FALSE}"; then
19055 as_fn_error $? "conditional \"GL_GENERATE_SCHED_H\" was never defined.
19056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19057 fi
19058 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19059 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19061 fi
19062 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19063 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19065 fi
19066
19067 gl_libobjs=
19068 gl_ltlibobjs=
19069 if test -n "$gl_LIBOBJS"; then
19070 # Remove the extension.
19071 sed_drop_objext='s/\.o$//;s/\.obj$//'
19072 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19073 gl_libobjs="$gl_libobjs $i.$ac_objext"
19074 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19075 done
19076 fi
19077 gl_LIBOBJS=$gl_libobjs
19078
19079 gl_LTLIBOBJS=$gl_ltlibobjs
19080
19081
19082
19083 gltests_libobjs=
19084 gltests_ltlibobjs=
19085 if test -n "$gltests_LIBOBJS"; then
19086 # Remove the extension.
19087 sed_drop_objext='s/\.o$//;s/\.obj$//'
19088 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19089 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19090 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19091 done
19092 fi
19093 gltests_LIBOBJS=$gltests_libobjs
19094
19095 gltests_LTLIBOBJS=$gltests_ltlibobjs
19096
19097
19098
19099 : "${CONFIG_STATUS=./config.status}"
19100 ac_write_fail=0
19101 ac_clean_files_save=$ac_clean_files
19102 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19104 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19105 as_write_fail=0
19106 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19107 #! $SHELL
19108 # Generated by $as_me.
19109 # Run this file to recreate the current configuration.
19110 # Compiler output produced by configure, useful for debugging
19111 # configure, is in config.log if it exists.
19112
19113 debug=false
19114 ac_cs_recheck=false
19115 ac_cs_silent=false
19116
19117 SHELL=\${CONFIG_SHELL-$SHELL}
19118 export SHELL
19119 _ASEOF
19120 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19121 ## -------------------- ##
19122 ## M4sh Initialization. ##
19123 ## -------------------- ##
19124
19125 # Be more Bourne compatible
19126 DUALCASE=1; export DUALCASE # for MKS sh
19127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19128 emulate sh
19129 NULLCMD=:
19130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19131 # is contrary to our usage. Disable this feature.
19132 alias -g '${1+"$@"}'='"$@"'
19133 setopt NO_GLOB_SUBST
19134 else
19135 case `(set -o) 2>/dev/null` in #(
19136 *posix*) :
19137 set -o posix ;; #(
19138 *) :
19139 ;;
19140 esac
19141 fi
19142
19143
19144 as_nl='
19145 '
19146 export as_nl
19147 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19148 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19151 # Prefer a ksh shell builtin over an external printf program on Solaris,
19152 # but without wasting forks for bash or zsh.
19153 if test -z "$BASH_VERSION$ZSH_VERSION" \
19154 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19155 as_echo='print -r --'
19156 as_echo_n='print -rn --'
19157 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19158 as_echo='printf %s\n'
19159 as_echo_n='printf %s'
19160 else
19161 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19162 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19163 as_echo_n='/usr/ucb/echo -n'
19164 else
19165 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19166 as_echo_n_body='eval
19167 arg=$1;
19168 case $arg in #(
19169 *"$as_nl"*)
19170 expr "X$arg" : "X\\(.*\\)$as_nl";
19171 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19172 esac;
19173 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19174 '
19175 export as_echo_n_body
19176 as_echo_n='sh -c $as_echo_n_body as_echo'
19177 fi
19178 export as_echo_body
19179 as_echo='sh -c $as_echo_body as_echo'
19180 fi
19181
19182 # The user is always right.
19183 if test "${PATH_SEPARATOR+set}" != set; then
19184 PATH_SEPARATOR=:
19185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19187 PATH_SEPARATOR=';'
19188 }
19189 fi
19190
19191
19192 # IFS
19193 # We need space, tab and new line, in precisely that order. Quoting is
19194 # there to prevent editors from complaining about space-tab.
19195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19196 # splitting by setting IFS to empty value.)
19197 IFS=" "" $as_nl"
19198
19199 # Find who we are. Look in the path if we contain no directory separator.
19200 as_myself=
19201 case $0 in #((
19202 *[\\/]* ) as_myself=$0 ;;
19203 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19204 for as_dir in $PATH
19205 do
19206 IFS=$as_save_IFS
19207 test -z "$as_dir" && as_dir=.
19208 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19209 done
19210 IFS=$as_save_IFS
19211
19212 ;;
19213 esac
19214 # We did not find ourselves, most probably we were run as `sh COMMAND'
19215 # in which case we are not to be found in the path.
19216 if test "x$as_myself" = x; then
19217 as_myself=$0
19218 fi
19219 if test ! -f "$as_myself"; then
19220 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19221 exit 1
19222 fi
19223
19224 # Unset variables that we do not need and which cause bugs (e.g. in
19225 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19226 # suppresses any "Segmentation fault" message there. '((' could
19227 # trigger a bug in pdksh 5.2.14.
19228 for as_var in BASH_ENV ENV MAIL MAILPATH
19229 do eval test x\${$as_var+set} = xset \
19230 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19231 done
19232 PS1='$ '
19233 PS2='> '
19234 PS4='+ '
19235
19236 # NLS nuisances.
19237 LC_ALL=C
19238 export LC_ALL
19239 LANGUAGE=C
19240 export LANGUAGE
19241
19242 # CDPATH.
19243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19244
19245
19246 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19247 # ----------------------------------------
19248 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19249 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19250 # script with STATUS, using 1 if that was 0.
19251 as_fn_error ()
19252 {
19253 as_status=$1; test $as_status -eq 0 && as_status=1
19254 if test "$4"; then
19255 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19256 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19257 fi
19258 $as_echo "$as_me: error: $2" >&2
19259 as_fn_exit $as_status
19260 } # as_fn_error
19261
19262
19263 # as_fn_set_status STATUS
19264 # -----------------------
19265 # Set $? to STATUS, without forking.
19266 as_fn_set_status ()
19267 {
19268 return $1
19269 } # as_fn_set_status
19270
19271 # as_fn_exit STATUS
19272 # -----------------
19273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19274 as_fn_exit ()
19275 {
19276 set +e
19277 as_fn_set_status $1
19278 exit $1
19279 } # as_fn_exit
19280
19281 # as_fn_unset VAR
19282 # ---------------
19283 # Portably unset VAR.
19284 as_fn_unset ()
19285 {
19286 { eval $1=; unset $1;}
19287 }
19288 as_unset=as_fn_unset
19289 # as_fn_append VAR VALUE
19290 # ----------------------
19291 # Append the text in VALUE to the end of the definition contained in VAR. Take
19292 # advantage of any shell optimizations that allow amortized linear growth over
19293 # repeated appends, instead of the typical quadratic growth present in naive
19294 # implementations.
19295 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19296 eval 'as_fn_append ()
19297 {
19298 eval $1+=\$2
19299 }'
19300 else
19301 as_fn_append ()
19302 {
19303 eval $1=\$$1\$2
19304 }
19305 fi # as_fn_append
19306
19307 # as_fn_arith ARG...
19308 # ------------------
19309 # Perform arithmetic evaluation on the ARGs, and store the result in the
19310 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19311 # must be portable across $(()) and expr.
19312 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19313 eval 'as_fn_arith ()
19314 {
19315 as_val=$(( $* ))
19316 }'
19317 else
19318 as_fn_arith ()
19319 {
19320 as_val=`expr "$@" || test $? -eq 1`
19321 }
19322 fi # as_fn_arith
19323
19324
19325 if expr a : '\(a\)' >/dev/null 2>&1 &&
19326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19327 as_expr=expr
19328 else
19329 as_expr=false
19330 fi
19331
19332 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19333 as_basename=basename
19334 else
19335 as_basename=false
19336 fi
19337
19338 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19339 as_dirname=dirname
19340 else
19341 as_dirname=false
19342 fi
19343
19344 as_me=`$as_basename -- "$0" ||
19345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19346 X"$0" : 'X\(//\)$' \| \
19347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19348 $as_echo X/"$0" |
19349 sed '/^.*\/\([^/][^/]*\)\/*$/{
19350 s//\1/
19351 q
19352 }
19353 /^X\/\(\/\/\)$/{
19354 s//\1/
19355 q
19356 }
19357 /^X\/\(\/\).*/{
19358 s//\1/
19359 q
19360 }
19361 s/.*/./; q'`
19362
19363 # Avoid depending upon Character Ranges.
19364 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19365 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19366 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19367 as_cr_digits='0123456789'
19368 as_cr_alnum=$as_cr_Letters$as_cr_digits
19369
19370 ECHO_C= ECHO_N= ECHO_T=
19371 case `echo -n x` in #(((((
19372 -n*)
19373 case `echo 'xy\c'` in
19374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19375 xy) ECHO_C='\c';;
19376 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19377 ECHO_T=' ';;
19378 esac;;
19379 *)
19380 ECHO_N='-n';;
19381 esac
19382
19383 rm -f conf$$ conf$$.exe conf$$.file
19384 if test -d conf$$.dir; then
19385 rm -f conf$$.dir/conf$$.file
19386 else
19387 rm -f conf$$.dir
19388 mkdir conf$$.dir 2>/dev/null
19389 fi
19390 if (echo >conf$$.file) 2>/dev/null; then
19391 if ln -s conf$$.file conf$$ 2>/dev/null; then
19392 as_ln_s='ln -s'
19393 # ... but there are two gotchas:
19394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19396 # In both cases, we have to default to `cp -pR'.
19397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19398 as_ln_s='cp -pR'
19399 elif ln conf$$.file conf$$ 2>/dev/null; then
19400 as_ln_s=ln
19401 else
19402 as_ln_s='cp -pR'
19403 fi
19404 else
19405 as_ln_s='cp -pR'
19406 fi
19407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19408 rmdir conf$$.dir 2>/dev/null
19409
19410
19411 # as_fn_mkdir_p
19412 # -------------
19413 # Create "$as_dir" as a directory, including parents if necessary.
19414 as_fn_mkdir_p ()
19415 {
19416
19417 case $as_dir in #(
19418 -*) as_dir=./$as_dir;;
19419 esac
19420 test -d "$as_dir" || eval $as_mkdir_p || {
19421 as_dirs=
19422 while :; do
19423 case $as_dir in #(
19424 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19425 *) as_qdir=$as_dir;;
19426 esac
19427 as_dirs="'$as_qdir' $as_dirs"
19428 as_dir=`$as_dirname -- "$as_dir" ||
19429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19430 X"$as_dir" : 'X\(//\)[^/]' \| \
19431 X"$as_dir" : 'X\(//\)$' \| \
19432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19433 $as_echo X"$as_dir" |
19434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19435 s//\1/
19436 q
19437 }
19438 /^X\(\/\/\)[^/].*/{
19439 s//\1/
19440 q
19441 }
19442 /^X\(\/\/\)$/{
19443 s//\1/
19444 q
19445 }
19446 /^X\(\/\).*/{
19447 s//\1/
19448 q
19449 }
19450 s/.*/./; q'`
19451 test -d "$as_dir" && break
19452 done
19453 test -z "$as_dirs" || eval "mkdir $as_dirs"
19454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19455
19456
19457 } # as_fn_mkdir_p
19458 if mkdir -p . 2>/dev/null; then
19459 as_mkdir_p='mkdir -p "$as_dir"'
19460 else
19461 test -d ./-p && rmdir ./-p
19462 as_mkdir_p=false
19463 fi
19464
19465
19466 # as_fn_executable_p FILE
19467 # -----------------------
19468 # Test if FILE is an executable regular file.
19469 as_fn_executable_p ()
19470 {
19471 test -f "$1" && test -x "$1"
19472 } # as_fn_executable_p
19473 as_test_x='test -x'
19474 as_executable_p=as_fn_executable_p
19475
19476 # Sed expression to map a string onto a valid CPP name.
19477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19478
19479 # Sed expression to map a string onto a valid variable name.
19480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19481
19482
19483 exec 6>&1
19484 ## ----------------------------------- ##
19485 ## Main body of $CONFIG_STATUS script. ##
19486 ## ----------------------------------- ##
19487 _ASEOF
19488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19489
19490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19491 # Save the log message, to keep $0 and so on meaningful, and to
19492 # report actual input values of CONFIG_FILES etc. instead of their
19493 # values after options handling.
19494 ac_log="
19495 This file was extended by lbzip2 $as_me 2.5, which was
19496 generated by GNU Autoconf 2.69. Invocation command line was
19497
19498 CONFIG_FILES = $CONFIG_FILES
19499 CONFIG_HEADERS = $CONFIG_HEADERS
19500 CONFIG_LINKS = $CONFIG_LINKS
19501 CONFIG_COMMANDS = $CONFIG_COMMANDS
19502 $ $0 $@
19503
19504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19505 "
19506
19507 _ACEOF
19508
19509 case $ac_config_files in *"
19510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19511 esac
19512
19513 case $ac_config_headers in *"
19514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19515 esac
19516
19517
19518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19519 # Files that config.status was made for.
19520 config_files="$ac_config_files"
19521 config_headers="$ac_config_headers"
19522 config_commands="$ac_config_commands"
19523
19524 _ACEOF
19525
19526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19527 ac_cs_usage="\
19528 \`$as_me' instantiates files and other configuration actions
19529 from templates according to the current configuration. Unless the files
19530 and actions are specified as TAGs, all are instantiated by default.
19531
19532 Usage: $0 [OPTION]... [TAG]...
19533
19534 -h, --help print this help, then exit
19535 -V, --version print version number and configuration settings, then exit
19536 --config print configuration, then exit
19537 -q, --quiet, --silent
19538 do not print progress messages
19539 -d, --debug don't remove temporary files
19540 --recheck update $as_me by reconfiguring in the same conditions
19541 --file=FILE[:TEMPLATE]
19542 instantiate the configuration file FILE
19543 --header=FILE[:TEMPLATE]
19544 instantiate the configuration header FILE
19545
19546 Configuration files:
19547 $config_files
19548
19549 Configuration headers:
19550 $config_headers
19551
19552 Configuration commands:
19553 $config_commands
19554
19555 Report bugs to the package provider."
19556
19557 _ACEOF
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19560 ac_cs_version="\\
19561 lbzip2 config.status 2.5
19562 configured by $0, generated by GNU Autoconf 2.69,
19563 with options \\"\$ac_cs_config\\"
19564
19565 Copyright (C) 2012 Free Software Foundation, Inc.
19566 This config.status script is free software; the Free Software Foundation
19567 gives unlimited permission to copy, distribute and modify it."
19568
19569 ac_pwd='$ac_pwd'
19570 srcdir='$srcdir'
19571 INSTALL='$INSTALL'
19572 MKDIR_P='$MKDIR_P'
19573 AWK='$AWK'
19574 test -n "\$AWK" || AWK=awk
19575 _ACEOF
19576
19577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19578 # The default lists apply if the user does not specify any file.
19579 ac_need_defaults=:
19580 while test $# != 0
19581 do
19582 case $1 in
19583 --*=?*)
19584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19586 ac_shift=:
19587 ;;
19588 --*=)
19589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19590 ac_optarg=
19591 ac_shift=:
19592 ;;
19593 *)
19594 ac_option=$1
19595 ac_optarg=$2
19596 ac_shift=shift
19597 ;;
19598 esac
19599
19600 case $ac_option in
19601 # Handling of the options.
19602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19603 ac_cs_recheck=: ;;
19604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19605 $as_echo "$ac_cs_version"; exit ;;
19606 --config | --confi | --conf | --con | --co | --c )
19607 $as_echo "$ac_cs_config"; exit ;;
19608 --debug | --debu | --deb | --de | --d | -d )
19609 debug=: ;;
19610 --file | --fil | --fi | --f )
19611 $ac_shift
19612 case $ac_optarg in
19613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19614 '') as_fn_error $? "missing file argument" ;;
19615 esac
19616 as_fn_append CONFIG_FILES " '$ac_optarg'"
19617 ac_need_defaults=false;;
19618 --header | --heade | --head | --hea )
19619 $ac_shift
19620 case $ac_optarg in
19621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19622 esac
19623 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19624 ac_need_defaults=false;;
19625 --he | --h)
19626 # Conflict between --help and --header
19627 as_fn_error $? "ambiguous option: \`$1'
19628 Try \`$0 --help' for more information.";;
19629 --help | --hel | -h )
19630 $as_echo "$ac_cs_usage"; exit ;;
19631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19633 ac_cs_silent=: ;;
19634
19635 # This is an error.
19636 -*) as_fn_error $? "unrecognized option: \`$1'
19637 Try \`$0 --help' for more information." ;;
19638
19639 *) as_fn_append ac_config_targets " $1"
19640 ac_need_defaults=false ;;
19641
19642 esac
19643 shift
19644 done
19645
19646 ac_configure_extra_args=
19647
19648 if $ac_cs_silent; then
19649 exec 6>/dev/null
19650 ac_configure_extra_args="$ac_configure_extra_args --silent"
19651 fi
19652
19653 _ACEOF
19654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19655 if \$ac_cs_recheck; then
19656 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19657 shift
19658 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19659 CONFIG_SHELL='$SHELL'
19660 export CONFIG_SHELL
19661 exec "\$@"
19662 fi
19663
19664 _ACEOF
19665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19666 exec 5>>config.log
19667 {
19668 echo
19669 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19670 ## Running $as_me. ##
19671 _ASBOX
19672 $as_echo "$ac_log"
19673 } >&5
19674
19675 _ACEOF
19676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19677 #
19678 # INIT-COMMANDS
19679 #
19680 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19681
19682 _ACEOF
19683
19684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19685
19686 # Handling of arguments.
19687 for ac_config_target in $ac_config_targets
19688 do
19689 case $ac_config_target in
19690 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
19691 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19692 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19693 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19694 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19695 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19696 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19697
19698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19699 esac
19700 done
19701
19702
19703 # If the user did not use the arguments to specify the items to instantiate,
19704 # then the envvar interface is used. Set only those that are not.
19705 # We use the long form for the default assignment because of an extremely
19706 # bizarre bug on SunOS 4.1.3.
19707 if $ac_need_defaults; then
19708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19711 fi
19712
19713 # Have a temporary directory for convenience. Make it in the build tree
19714 # simply because there is no reason against having it here, and in addition,
19715 # creating and moving files from /tmp can sometimes cause problems.
19716 # Hook for its removal unless debugging.
19717 # Note that there is a small window in which the directory will not be cleaned:
19718 # after its creation but before its name has been assigned to `$tmp'.
19719 $debug ||
19720 {
19721 tmp= ac_tmp=
19722 trap 'exit_status=$?
19723 : "${ac_tmp:=$tmp}"
19724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19725 ' 0
19726 trap 'as_fn_exit 1' 1 2 13 15
19727 }
19728 # Create a (secure) tmp directory for tmp files.
19729
19730 {
19731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19732 test -d "$tmp"
19733 } ||
19734 {
19735 tmp=./conf$$-$RANDOM
19736 (umask 077 && mkdir "$tmp")
19737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19738 ac_tmp=$tmp
19739
19740 # Set up the scripts for CONFIG_FILES section.
19741 # No need to generate them if there are no CONFIG_FILES.
19742 # This happens for instance with `./config.status config.h'.
19743 if test -n "$CONFIG_FILES"; then
19744
19745
19746 ac_cr=`echo X | tr X '\015'`
19747 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19748 # But we know of no other shell where ac_cr would be empty at this
19749 # point, so we can use a bashism as a fallback.
19750 if test "x$ac_cr" = x; then
19751 eval ac_cr=\$\'\\r\'
19752 fi
19753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19755 ac_cs_awk_cr='\\r'
19756 else
19757 ac_cs_awk_cr=$ac_cr
19758 fi
19759
19760 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19761 _ACEOF
19762
19763
19764 {
19765 echo "cat >conf$$subs.awk <<_ACEOF" &&
19766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19767 echo "_ACEOF"
19768 } >conf$$subs.sh ||
19769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19771 ac_delim='%!_!# '
19772 for ac_last_try in false false false false false :; do
19773 . ./conf$$subs.sh ||
19774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19775
19776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19777 if test $ac_delim_n = $ac_delim_num; then
19778 break
19779 elif $ac_last_try; then
19780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19781 else
19782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19783 fi
19784 done
19785 rm -f conf$$subs.sh
19786
19787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19788 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19789 _ACEOF
19790 sed -n '
19791 h
19792 s/^/S["/; s/!.*/"]=/
19793 p
19794 g
19795 s/^[^!]*!//
19796 :repl
19797 t repl
19798 s/'"$ac_delim"'$//
19799 t delim
19800 :nl
19801 h
19802 s/\(.\{148\}\)..*/\1/
19803 t more1
19804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19805 p
19806 n
19807 b repl
19808 :more1
19809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19810 p
19811 g
19812 s/.\{148\}//
19813 t nl
19814 :delim
19815 h
19816 s/\(.\{148\}\)..*/\1/
19817 t more2
19818 s/["\\]/\\&/g; s/^/"/; s/$/"/
19819 p
19820 b
19821 :more2
19822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19823 p
19824 g
19825 s/.\{148\}//
19826 t delim
19827 ' <conf$$subs.awk | sed '
19828 /^[^""]/{
19829 N
19830 s/\n//
19831 }
19832 ' >>$CONFIG_STATUS || ac_write_fail=1
19833 rm -f conf$$subs.awk
19834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19835 _ACAWK
19836 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19837 for (key in S) S_is_set[key] = 1
19838 FS = ""
19839
19840 }
19841 {
19842 line = $ 0
19843 nfields = split(line, field, "@")
19844 substed = 0
19845 len = length(field[1])
19846 for (i = 2; i < nfields; i++) {
19847 key = field[i]
19848 keylen = length(key)
19849 if (S_is_set[key]) {
19850 value = S[key]
19851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19852 len += length(value) + length(field[++i])
19853 substed = 1
19854 } else
19855 len += 1 + keylen
19856 }
19857
19858 print line
19859 }
19860
19861 _ACAWK
19862 _ACEOF
19863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19866 else
19867 cat
19868 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19870 _ACEOF
19871
19872 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19873 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19874 # trailing colons and then remove the whole line if VPATH becomes empty
19875 # (actually we leave an empty line to preserve line numbers).
19876 if test "x$srcdir" = x.; then
19877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19878 h
19879 s///
19880 s/^/:/
19881 s/[ ]*$/:/
19882 s/:\$(srcdir):/:/g
19883 s/:\${srcdir}:/:/g
19884 s/:@srcdir@:/:/g
19885 s/^:*//
19886 s/:*$//
19887 x
19888 s/\(=[ ]*\).*/\1/
19889 G
19890 s/\n//
19891 s/^[^=]*=[ ]*$//
19892 }'
19893 fi
19894
19895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19896 fi # test -n "$CONFIG_FILES"
19897
19898 # Set up the scripts for CONFIG_HEADERS section.
19899 # No need to generate them if there are no CONFIG_HEADERS.
19900 # This happens for instance with `./config.status Makefile'.
19901 if test -n "$CONFIG_HEADERS"; then
19902 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19903 BEGIN {
19904 _ACEOF
19905
19906 # Transform confdefs.h into an awk script `defines.awk', embedded as
19907 # here-document in config.status, that substitutes the proper values into
19908 # config.h.in to produce config.h.
19909
19910 # Create a delimiter string that does not exist in confdefs.h, to ease
19911 # handling of long lines.
19912 ac_delim='%!_!# '
19913 for ac_last_try in false false :; do
19914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19915 if test -z "$ac_tt"; then
19916 break
19917 elif $ac_last_try; then
19918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19919 else
19920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19921 fi
19922 done
19923
19924 # For the awk script, D is an array of macro values keyed by name,
19925 # likewise P contains macro parameters if any. Preserve backslash
19926 # newline sequences.
19927
19928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19929 sed -n '
19930 s/.\{148\}/&'"$ac_delim"'/g
19931 t rset
19932 :rset
19933 s/^[ ]*#[ ]*define[ ][ ]*/ /
19934 t def
19935 d
19936 :def
19937 s/\\$//
19938 t bsnl
19939 s/["\\]/\\&/g
19940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19941 D["\1"]=" \3"/p
19942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19943 d
19944 :bsnl
19945 s/["\\]/\\&/g
19946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19947 D["\1"]=" \3\\\\\\n"\\/p
19948 t cont
19949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19950 t cont
19951 d
19952 :cont
19953 n
19954 s/.\{148\}/&'"$ac_delim"'/g
19955 t clear
19956 :clear
19957 s/\\$//
19958 t bsnlc
19959 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19960 d
19961 :bsnlc
19962 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19963 b cont
19964 ' <confdefs.h | sed '
19965 s/'"$ac_delim"'/"\\\
19966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19967
19968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19969 for (key in D) D_is_set[key] = 1
19970 FS = ""
19971 }
19972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19973 line = \$ 0
19974 split(line, arg, " ")
19975 if (arg[1] == "#") {
19976 defundef = arg[2]
19977 mac1 = arg[3]
19978 } else {
19979 defundef = substr(arg[1], 2)
19980 mac1 = arg[2]
19981 }
19982 split(mac1, mac2, "(") #)
19983 macro = mac2[1]
19984 prefix = substr(line, 1, index(line, defundef) - 1)
19985 if (D_is_set[macro]) {
19986 # Preserve the white space surrounding the "#".
19987 print prefix "define", macro P[macro] D[macro]
19988 next
19989 } else {
19990 # Replace #undef with comments. This is necessary, for example,
19991 # in the case of _POSIX_SOURCE, which is predefined and required
19992 # on some systems where configure will not decide to define it.
19993 if (defundef == "undef") {
19994 print "/*", prefix defundef, macro, "*/"
19995 next
19996 }
19997 }
19998 }
19999 { print }
20000 _ACAWK
20001 _ACEOF
20002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20004 fi # test -n "$CONFIG_HEADERS"
20005
20006
20007 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20008 shift
20009 for ac_tag
20010 do
20011 case $ac_tag in
20012 :[FHLC]) ac_mode=$ac_tag; continue;;
20013 esac
20014 case $ac_mode$ac_tag in
20015 :[FHL]*:*);;
20016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20017 :[FH]-) ac_tag=-:-;;
20018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20019 esac
20020 ac_save_IFS=$IFS
20021 IFS=:
20022 set x $ac_tag
20023 IFS=$ac_save_IFS
20024 shift
20025 ac_file=$1
20026 shift
20027
20028 case $ac_mode in
20029 :L) ac_source=$1;;
20030 :[FH])
20031 ac_file_inputs=
20032 for ac_f
20033 do
20034 case $ac_f in
20035 -) ac_f="$ac_tmp/stdin";;
20036 *) # Look for the file first in the build tree, then in the source tree
20037 # (if the path is not absolute). The absolute path cannot be DOS-style,
20038 # because $ac_f cannot contain `:'.
20039 test -f "$ac_f" ||
20040 case $ac_f in
20041 [\\/$]*) false;;
20042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20043 esac ||
20044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20045 esac
20046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20047 as_fn_append ac_file_inputs " '$ac_f'"
20048 done
20049
20050 # Let's still pretend it is `configure' which instantiates (i.e., don't
20051 # use $as_me), people would be surprised to read:
20052 # /* config.h. Generated by config.status. */
20053 configure_input='Generated from '`
20054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20055 `' by configure.'
20056 if test x"$ac_file" != x-; then
20057 configure_input="$ac_file. $configure_input"
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20059 $as_echo "$as_me: creating $ac_file" >&6;}
20060 fi
20061 # Neutralize special characters interpreted by sed in replacement strings.
20062 case $configure_input in #(
20063 *\&* | *\|* | *\\* )
20064 ac_sed_conf_input=`$as_echo "$configure_input" |
20065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20066 *) ac_sed_conf_input=$configure_input;;
20067 esac
20068
20069 case $ac_tag in
20070 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20072 esac
20073 ;;
20074 esac
20075
20076 ac_dir=`$as_dirname -- "$ac_file" ||
20077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20078 X"$ac_file" : 'X\(//\)[^/]' \| \
20079 X"$ac_file" : 'X\(//\)$' \| \
20080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20081 $as_echo X"$ac_file" |
20082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20083 s//\1/
20084 q
20085 }
20086 /^X\(\/\/\)[^/].*/{
20087 s//\1/
20088 q
20089 }
20090 /^X\(\/\/\)$/{
20091 s//\1/
20092 q
20093 }
20094 /^X\(\/\).*/{
20095 s//\1/
20096 q
20097 }
20098 s/.*/./; q'`
20099 as_dir="$ac_dir"; as_fn_mkdir_p
20100 ac_builddir=.
20101
20102 case "$ac_dir" in
20103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20104 *)
20105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20106 # A ".." for each directory in $ac_dir_suffix.
20107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20108 case $ac_top_builddir_sub in
20109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20111 esac ;;
20112 esac
20113 ac_abs_top_builddir=$ac_pwd
20114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20115 # for backward compatibility:
20116 ac_top_builddir=$ac_top_build_prefix
20117
20118 case $srcdir in
20119 .) # We are building in place.
20120 ac_srcdir=.
20121 ac_top_srcdir=$ac_top_builddir_sub
20122 ac_abs_top_srcdir=$ac_pwd ;;
20123 [\\/]* | ?:[\\/]* ) # Absolute name.
20124 ac_srcdir=$srcdir$ac_dir_suffix;
20125 ac_top_srcdir=$srcdir
20126 ac_abs_top_srcdir=$srcdir ;;
20127 *) # Relative name.
20128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20129 ac_top_srcdir=$ac_top_build_prefix$srcdir
20130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20131 esac
20132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20133
20134
20135 case $ac_mode in
20136 :F)
20137 #
20138 # CONFIG_FILE
20139 #
20140
20141 case $INSTALL in
20142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20144 esac
20145 ac_MKDIR_P=$MKDIR_P
20146 case $MKDIR_P in
20147 [\\/$]* | ?:[\\/]* ) ;;
20148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20149 esac
20150 _ACEOF
20151
20152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20153 # If the template does not know about datarootdir, expand it.
20154 # FIXME: This hack should be removed a few years after 2.60.
20155 ac_datarootdir_hack=; ac_datarootdir_seen=
20156 ac_sed_dataroot='
20157 /datarootdir/ {
20158 p
20159 q
20160 }
20161 /@datadir@/p
20162 /@docdir@/p
20163 /@infodir@/p
20164 /@localedir@/p
20165 /@mandir@/p'
20166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20167 *datarootdir*) ac_datarootdir_seen=yes;;
20168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20171 _ACEOF
20172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20173 ac_datarootdir_hack='
20174 s&@datadir@&$datadir&g
20175 s&@docdir@&$docdir&g
20176 s&@infodir@&$infodir&g
20177 s&@localedir@&$localedir&g
20178 s&@mandir@&$mandir&g
20179 s&\\\${datarootdir}&$datarootdir&g' ;;
20180 esac
20181 _ACEOF
20182
20183 # Neutralize VPATH when `$srcdir' = `.'.
20184 # Shell code in configure.ac might set extrasub.
20185 # FIXME: do we really want to maintain this feature?
20186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187 ac_sed_extra="$ac_vpsub
20188 $extrasub
20189 _ACEOF
20190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20191 :t
20192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20193 s|@configure_input@|$ac_sed_conf_input|;t t
20194 s&@top_builddir@&$ac_top_builddir_sub&;t t
20195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20196 s&@srcdir@&$ac_srcdir&;t t
20197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20198 s&@top_srcdir@&$ac_top_srcdir&;t t
20199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20200 s&@builddir@&$ac_builddir&;t t
20201 s&@abs_builddir@&$ac_abs_builddir&;t t
20202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20203 s&@INSTALL@&$ac_INSTALL&;t t
20204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20205 $ac_datarootdir_hack
20206 "
20207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20209
20210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20215 which seems to be undefined. Please make sure it is defined" >&5
20216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20217 which seems to be undefined. Please make sure it is defined" >&2;}
20218
20219 rm -f "$ac_tmp/stdin"
20220 case $ac_file in
20221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20223 esac \
20224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20225 ;;
20226 :H)
20227 #
20228 # CONFIG_HEADER
20229 #
20230 if test x"$ac_file" != x-; then
20231 {
20232 $as_echo "/* $configure_input */" \
20233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20234 } >"$ac_tmp/config.h" \
20235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20239 else
20240 rm -f "$ac_file"
20241 mv "$ac_tmp/config.h" "$ac_file" \
20242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20243 fi
20244 else
20245 $as_echo "/* $configure_input */" \
20246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20247 || as_fn_error $? "could not create -" "$LINENO" 5
20248 fi
20249 # Compute "$ac_file"'s index in $config_headers.
20250 _am_arg="$ac_file"
20251 _am_stamp_count=1
20252 for _am_header in $config_headers :; do
20253 case $_am_header in
20254 $_am_arg | $_am_arg:* )
20255 break ;;
20256 * )
20257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20258 esac
20259 done
20260 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20261 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20262 X"$_am_arg" : 'X\(//\)[^/]' \| \
20263 X"$_am_arg" : 'X\(//\)$' \| \
20264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20265 $as_echo X"$_am_arg" |
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20267 s//\1/
20268 q
20269 }
20270 /^X\(\/\/\)[^/].*/{
20271 s//\1/
20272 q
20273 }
20274 /^X\(\/\/\)$/{
20275 s//\1/
20276 q
20277 }
20278 /^X\(\/\).*/{
20279 s//\1/
20280 q
20281 }
20282 s/.*/./; q'`/stamp-h$_am_stamp_count
20283 ;;
20284
20285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20286 $as_echo "$as_me: executing $ac_file commands" >&6;}
20287 ;;
20288 esac
20289
20290
20291 case $ac_file$ac_mode in
20292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20293 # Older Autoconf quotes --file arguments for eval, but not when files
20294 # are listed without --file. Let's play safe and only enable the eval
20295 # if we detect the quoting.
20296 case $CONFIG_FILES in
20297 *\'*) eval set x "$CONFIG_FILES" ;;
20298 *) set x $CONFIG_FILES ;;
20299 esac
20300 shift
20301 for mf
20302 do
20303 # Strip MF so we end up with the name of the file.
20304 mf=`echo "$mf" | sed -e 's/:.*$//'`
20305 # Check whether this is an Automake generated Makefile or not.
20306 # We used to match only the files named 'Makefile.in', but
20307 # some people rename them; so instead we look at the file content.
20308 # Grep'ing the first line is not enough: some people post-process
20309 # each Makefile.in and add a new line on top of each file to say so.
20310 # Grep'ing the whole file is not good either: AIX grep has a line
20311 # limit of 2048, but all sed's we know have understand at least 4000.
20312 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20313 dirpart=`$as_dirname -- "$mf" ||
20314 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20315 X"$mf" : 'X\(//\)[^/]' \| \
20316 X"$mf" : 'X\(//\)$' \| \
20317 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20318 $as_echo X"$mf" |
20319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20320 s//\1/
20321 q
20322 }
20323 /^X\(\/\/\)[^/].*/{
20324 s//\1/
20325 q
20326 }
20327 /^X\(\/\/\)$/{
20328 s//\1/
20329 q
20330 }
20331 /^X\(\/\).*/{
20332 s//\1/
20333 q
20334 }
20335 s/.*/./; q'`
20336 else
20337 continue
20338 fi
20339 # Extract the definition of DEPDIR, am__include, and am__quote
20340 # from the Makefile without running 'make'.
20341 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20342 test -z "$DEPDIR" && continue
20343 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20344 test -z "$am__include" && continue
20345 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20346 # Find all dependency output files, they are included files with
20347 # $(DEPDIR) in their names. We invoke sed twice because it is the
20348 # simplest approach to changing $(DEPDIR) to its actual value in the
20349 # expansion.
20350 for file in `sed -n "
20351 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20352 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20353 # Make sure the directory exists.
20354 test -f "$dirpart/$file" && continue
20355 fdir=`$as_dirname -- "$file" ||
20356 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20357 X"$file" : 'X\(//\)[^/]' \| \
20358 X"$file" : 'X\(//\)$' \| \
20359 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20360 $as_echo X"$file" |
20361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20362 s//\1/
20363 q
20364 }
20365 /^X\(\/\/\)[^/].*/{
20366 s//\1/
20367 q
20368 }
20369 /^X\(\/\/\)$/{
20370 s//\1/
20371 q
20372 }
20373 /^X\(\/\).*/{
20374 s//\1/
20375 q
20376 }
20377 s/.*/./; q'`
20378 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20379 # echo "creating $dirpart/$file"
20380 echo '# dummy' > "$dirpart/$file"
20381 done
20382 done
20383 }
20384 ;;
20385
20386 esac
20387 done # for ac_tag
20388
20389
20390 as_fn_exit 0
20391 _ACEOF
20392 ac_clean_files=$ac_clean_files_save
20393
20394 test $ac_write_fail = 0 ||
20395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20396
20397
20398 # configure is writing to config.log, and then calls config.status.
20399 # config.status does its own redirection, appending to config.log.
20400 # Unfortunately, on DOS this fails, as config.log is still kept open
20401 # by configure, so config.status won't be able to write to it; its
20402 # output is simply discarded. So we exec the FD to /dev/null,
20403 # effectively closing config.log, so it can be properly (re)opened and
20404 # appended to by config.status. When coming back to configure, we
20405 # need to make the FD available again.
20406 if test "$no_create" != yes; then
20407 ac_cs_success=:
20408 ac_config_status_args=
20409 test "$silent" = yes &&
20410 ac_config_status_args="$ac_config_status_args --quiet"
20411 exec 5>/dev/null
20412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20413 exec 5>>config.log
20414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20415 # would make configure fail if this is the last instruction.
20416 $ac_cs_success || as_fn_exit 1
20417 fi
20418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20421 fi
20422
20423
20424
20425