comparison configure @ 265:68fbca173508 2.6

Added generated files for release
author lost
date Tue, 22 Dec 2009 05:31:23 +0000
parents
children 5f25e7afac21
comparison
equal deleted inserted replaced
264:61d1db1dfe2a 265:68fbca173508
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LWTOOLS 2.6-pre.
4 #
5 # Report bugs to <lost@l-w.ca>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and lost@l-w.ca about
232 $0: your system, including any error possibly output before
233 $0: this message. Then install a modern shell, or manually
234 $0: run the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 exec 7<&0 </dev/null 6>&1
530
531 # Name of the host.
532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
533 # so uname gets run too.
534 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535
536 #
537 # Initializations.
538 #
539 ac_default_prefix=/usr/local
540 ac_clean_files=
541 ac_config_libobj_dir=.
542 LIBOBJS=
543 cross_compiling=no
544 subdirs=
545 MFLAGS=
546 MAKEFLAGS=
547
548 # Identity of this package.
549 PACKAGE_NAME='LWTOOLS'
550 PACKAGE_TARNAME='lwtools'
551 PACKAGE_VERSION='2.6-pre'
552 PACKAGE_STRING='LWTOOLS 2.6-pre'
553 PACKAGE_BUGREPORT='lost@l-w.ca'
554 PACKAGE_URL=''
555
556 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 # include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 # include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
591
592 gl_func_list=
593 gl_header_list=
594 ac_subst_vars='gltests_LTLIBOBJS
595 gltests_LIBOBJS
596 gl_LTLIBOBJS
597 gl_LIBOBJS
598 am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 LIBOBJS
602 LIBGNU_LTLIBDEPS
603 LIBGNU_LIBDEPS
604 NEXT_WCHAR_H
605 HAVE_WCHAR_H
606 HAVE_WINT_T
607 WCHAR_H
608 REPLACE_WCWIDTH
609 REPLACE_WCSRTOMBS
610 REPLACE_WCRTOMB
611 REPLACE_MBSNRTOWCS
612 REPLACE_MBSRTOWCS
613 REPLACE_MBRLEN
614 REPLACE_MBRTOWC
615 REPLACE_MBSINIT
616 REPLACE_WCTOB
617 REPLACE_BTOWC
618 REPLACE_MBSTATE_T
619 HAVE_DECL_WCWIDTH
620 HAVE_DECL_WCTOB
621 HAVE_WCSNRTOMBS
622 HAVE_WCSRTOMBS
623 HAVE_WCRTOMB
624 HAVE_MBSNRTOWCS
625 HAVE_MBSRTOWCS
626 HAVE_MBRLEN
627 HAVE_MBRTOWC
628 HAVE_MBSINIT
629 HAVE_BTOWC
630 GNULIB_WCWIDTH
631 GNULIB_WCSNRTOMBS
632 GNULIB_WCSRTOMBS
633 GNULIB_WCRTOMB
634 GNULIB_MBSNRTOWCS
635 GNULIB_MBSRTOWCS
636 GNULIB_MBRLEN
637 GNULIB_MBRTOWC
638 GNULIB_MBSINIT
639 GNULIB_WCTOB
640 GNULIB_BTOWC
641 HAVE_UNISTD_H
642 NEXT_UNISTD_H
643 SYSEXITS_H
644 HAVE_SYSEXITS_H
645 NEXT_SYSEXITS_H
646 NEXT_STRINGS_H
647 NEXT_STRING_H
648 HAVE_DECL_STRNCASECMP
649 HAVE_STRCASECMP
650 HAVE_RANDOM_H
651 NEXT_STDLIB_H
652 NEXT_STDIO_H
653 REPLACE_PERROR
654 REPLACE_GETLINE
655 HAVE_DECL_GETLINE
656 HAVE_DECL_GETDELIM
657 REPLACE_FCLOSE
658 REPLACE_FFLUSH
659 REPLACE_FTELL
660 REPLACE_FTELLO
661 HAVE_FTELLO
662 REPLACE_FSEEK
663 REPLACE_FSEEKO
664 HAVE_FSEEKO
665 REPLACE_FREOPEN
666 REPLACE_FOPEN
667 REPLACE_OBSTACK_PRINTF
668 HAVE_DECL_OBSTACK_PRINTF
669 REPLACE_VASPRINTF
670 HAVE_VASPRINTF
671 REPLACE_VDPRINTF
672 HAVE_VDPRINTF
673 REPLACE_DPRINTF
674 HAVE_DPRINTF
675 REPLACE_VSPRINTF
676 REPLACE_SPRINTF
677 HAVE_DECL_VSNPRINTF
678 REPLACE_VSNPRINTF
679 HAVE_DECL_SNPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_VPRINTF
682 REPLACE_PRINTF
683 REPLACE_VFPRINTF
684 REPLACE_FPRINTF
685 REPLACE_STDIO_WRITE_FUNCS
686 GNULIB_STDIO_H_SIGPIPE
687 GNULIB_PERROR
688 GNULIB_GETLINE
689 GNULIB_GETDELIM
690 GNULIB_FWRITE
691 GNULIB_PUTS
692 GNULIB_FPUTS
693 GNULIB_PUTCHAR
694 GNULIB_PUTC
695 GNULIB_FPUTC
696 GNULIB_FCLOSE
697 GNULIB_FFLUSH
698 GNULIB_FTELLO
699 GNULIB_FTELL
700 GNULIB_FSEEKO
701 GNULIB_FSEEK
702 GNULIB_FREOPEN
703 GNULIB_FOPEN
704 GNULIB_OBSTACK_PRINTF_POSIX
705 GNULIB_OBSTACK_PRINTF
706 GNULIB_VASPRINTF
707 GNULIB_VDPRINTF
708 GNULIB_DPRINTF
709 GNULIB_VSPRINTF_POSIX
710 GNULIB_VSNPRINTF
711 GNULIB_VPRINTF_POSIX
712 GNULIB_VPRINTF
713 GNULIB_VFPRINTF_POSIX
714 GNULIB_VFPRINTF
715 GNULIB_SPRINTF_POSIX
716 GNULIB_SNPRINTF
717 GNULIB_PRINTF_POSIX
718 GNULIB_PRINTF
719 GNULIB_FPRINTF_POSIX
720 GNULIB_FPRINTF
721 STDINT_H
722 WINT_T_SUFFIX
723 WCHAR_T_SUFFIX
724 SIG_ATOMIC_T_SUFFIX
725 SIZE_T_SUFFIX
726 PTRDIFF_T_SUFFIX
727 HAVE_SIGNED_WINT_T
728 HAVE_SIGNED_WCHAR_T
729 HAVE_SIGNED_SIG_ATOMIC_T
730 BITSIZEOF_WINT_T
731 BITSIZEOF_WCHAR_T
732 BITSIZEOF_SIG_ATOMIC_T
733 BITSIZEOF_SIZE_T
734 BITSIZEOF_PTRDIFF_T
735 HAVE_SYS_BITYPES_H
736 HAVE_SYS_INTTYPES_H
737 HAVE_STDINT_H
738 NEXT_STDINT_H
739 HAVE_SYS_TYPES_H
740 HAVE_INTTYPES_H
741 HAVE_UNSIGNED_LONG_LONG_INT
742 HAVE_LONG_LONG_INT
743 HAVE__BOOL
744 STDBOOL_H
745 UNISTD_H_HAVE_WINSOCK2_H
746 REPLACE_WRITE
747 REPLACE_LSEEK
748 REPLACE_LCHOWN
749 REPLACE_GETPAGESIZE
750 REPLACE_GETCWD
751 REPLACE_FCHDIR
752 REPLACE_CLOSE
753 REPLACE_CHOWN
754 HAVE_SYS_PARAM_H
755 HAVE_OS_H
756 HAVE_DECL_GETLOGIN_R
757 HAVE_DECL_ENVIRON
758 HAVE_SLEEP
759 HAVE_READLINK
760 HAVE_LINK
761 HAVE_GETUSERSHELL
762 HAVE_GETPAGESIZE
763 HAVE_GETHOSTNAME
764 HAVE_GETDTABLESIZE
765 HAVE_GETDOMAINNAME
766 HAVE_FTRUNCATE
767 HAVE_FSYNC
768 HAVE_EUIDACCESS
769 HAVE_DUP2
770 GNULIB_WRITE
771 GNULIB_UNISTD_H_SIGPIPE
772 GNULIB_SLEEP
773 GNULIB_READLINK
774 GNULIB_LSEEK
775 GNULIB_LINK
776 GNULIB_LCHOWN
777 GNULIB_GETUSERSHELL
778 GNULIB_GETPAGESIZE
779 GNULIB_GETLOGIN_R
780 GNULIB_GETHOSTNAME
781 GNULIB_GETDTABLESIZE
782 GNULIB_GETDOMAINNAME
783 GNULIB_GETCWD
784 GNULIB_FTRUNCATE
785 GNULIB_FSYNC
786 GNULIB_FCHDIR
787 GNULIB_EUIDACCESS
788 GNULIB_ENVIRON
789 GNULIB_DUP2
790 GNULIB_CLOSE
791 GNULIB_CHOWN
792 APPLE_UNIVERSAL_BUILD
793 REPLACE_STRSIGNAL
794 REPLACE_STRERROR
795 REPLACE_STRCASESTR
796 REPLACE_STRSTR
797 REPLACE_STRDUP
798 REPLACE_MEMMEM
799 HAVE_STRVERSCMP
800 HAVE_DECL_STRSIGNAL
801 HAVE_DECL_STRERROR
802 HAVE_DECL_STRTOK_R
803 HAVE_STRCASESTR
804 HAVE_STRSEP
805 HAVE_STRPBRK
806 HAVE_DECL_STRNLEN
807 HAVE_DECL_STRNDUP
808 HAVE_STRNDUP
809 HAVE_DECL_STRDUP
810 HAVE_STRCHRNUL
811 HAVE_STPNCPY
812 HAVE_STPCPY
813 HAVE_RAWMEMCHR
814 HAVE_DECL_MEMRCHR
815 HAVE_MEMPCPY
816 HAVE_DECL_MEMMEM
817 GNULIB_STRVERSCMP
818 GNULIB_STRSIGNAL
819 GNULIB_STRERROR
820 GNULIB_MBSTOK_R
821 GNULIB_MBSSEP
822 GNULIB_MBSSPN
823 GNULIB_MBSPBRK
824 GNULIB_MBSCSPN
825 GNULIB_MBSCASESTR
826 GNULIB_MBSPCASECMP
827 GNULIB_MBSNCASECMP
828 GNULIB_MBSCASECMP
829 GNULIB_MBSSTR
830 GNULIB_MBSRCHR
831 GNULIB_MBSCHR
832 GNULIB_MBSNLEN
833 GNULIB_MBSLEN
834 GNULIB_STRTOK_R
835 GNULIB_STRCASESTR
836 GNULIB_STRSTR
837 GNULIB_STRSEP
838 GNULIB_STRPBRK
839 GNULIB_STRNLEN
840 GNULIB_STRNDUP
841 GNULIB_STRDUP
842 GNULIB_STRCHRNUL
843 GNULIB_STPNCPY
844 GNULIB_STPCPY
845 GNULIB_RAWMEMCHR
846 GNULIB_MEMRCHR
847 GNULIB_MEMPCPY
848 GNULIB_MEMMEM
849 VOID_UNSETENV
850 REPLACE_STRTOD
851 REPLACE_PUTENV
852 REPLACE_MKSTEMP
853 HAVE_DECL_GETLOADAVG
854 HAVE_UNSETENV
855 HAVE_SYS_LOADAVG_H
856 HAVE_STRUCT_RANDOM_DATA
857 HAVE_STRTOULL
858 HAVE_STRTOLL
859 HAVE_STRTOD
860 HAVE_SETENV
861 HAVE_RPMATCH
862 HAVE_RANDOM_R
863 HAVE_REALLOC_POSIX
864 HAVE_MKDTEMP
865 HAVE_GETSUBOPT
866 HAVE_CALLOC_POSIX
867 HAVE_ATOLL
868 GNULIB_UNSETENV
869 GNULIB_STRTOULL
870 GNULIB_STRTOLL
871 GNULIB_STRTOD
872 GNULIB_SETENV
873 GNULIB_RPMATCH
874 GNULIB_RANDOM_R
875 GNULIB_PUTENV
876 GNULIB_MKSTEMP
877 GNULIB_MKDTEMP
878 GNULIB_GETSUBOPT
879 GNULIB_GETLOADAVG
880 GNULIB_ATOLL
881 GNULIB_CALLOC_POSIX
882 GNULIB_REALLOC_POSIX
883 GNULIB_MALLOC_POSIX
884 HAVE_MALLOC_POSIX
885 LTLIBINTL
886 LIBINTL
887 FLOAT_H
888 NEXT_FLOAT_H
889 EOVERFLOW_VALUE
890 EOVERFLOW_HIDDEN
891 ENOLINK_VALUE
892 ENOLINK_HIDDEN
893 EMULTIHOP_VALUE
894 EMULTIHOP_HIDDEN
895 ERRNO_H
896 NEXT_ERRNO_H
897 PRAGMA_SYSTEM_HEADER
898 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
899 INCLUDE_NEXT
900 GETOPT_H
901 ALLOCA_H
902 ALLOCA
903 GL_COND_LIBTOOL_FALSE
904 GL_COND_LIBTOOL_TRUE
905 EGREP
906 GREP
907 CPP
908 host_os
909 host_vendor
910 host_cpu
911 host
912 build_os
913 build_vendor
914 build_cpu
915 build
916 RANLIB
917 am__fastdepCC_FALSE
918 am__fastdepCC_TRUE
919 CCDEPMODE
920 AMDEPBACKSLASH
921 AMDEP_FALSE
922 AMDEP_TRUE
923 am__quote
924 am__include
925 DEPDIR
926 OBJEXT
927 EXEEXT
928 ac_ct_CC
929 CPPFLAGS
930 LDFLAGS
931 CFLAGS
932 CC
933 am__untar
934 am__tar
935 AMTAR
936 am__leading_dot
937 SET_MAKE
938 AWK
939 mkdir_p
940 MKDIR_P
941 INSTALL_STRIP_PROGRAM
942 STRIP
943 install_sh
944 MAKEINFO
945 AUTOHEADER
946 AUTOMAKE
947 AUTOCONF
948 ACLOCAL
949 VERSION
950 PACKAGE
951 CYGPATH_W
952 am__isrc
953 INSTALL_DATA
954 INSTALL_SCRIPT
955 INSTALL_PROGRAM
956 target_alias
957 host_alias
958 build_alias
959 LIBS
960 ECHO_T
961 ECHO_N
962 ECHO_C
963 DEFS
964 mandir
965 localedir
966 libdir
967 psdir
968 pdfdir
969 dvidir
970 htmldir
971 infodir
972 docdir
973 oldincludedir
974 includedir
975 localstatedir
976 sharedstatedir
977 sysconfdir
978 datadir
979 datarootdir
980 libexecdir
981 sbindir
982 bindir
983 program_transform_name
984 prefix
985 exec_prefix
986 PACKAGE_URL
987 PACKAGE_BUGREPORT
988 PACKAGE_STRING
989 PACKAGE_VERSION
990 PACKAGE_TARNAME
991 PACKAGE_NAME
992 PATH_SEPARATOR
993 SHELL'
994 ac_subst_files=''
995 ac_user_opts='
996 enable_option_checking
997 enable_dependency_tracking
998 '
999 ac_precious_vars='build_alias
1000 host_alias
1001 target_alias
1002 CC
1003 CFLAGS
1004 LDFLAGS
1005 LIBS
1006 CPPFLAGS
1007 CPP'
1008
1009
1010 # Initialize some variables set by options.
1011 ac_init_help=
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1018 exec_prefix=NONE
1019 no_create=
1020 no_recursion=
1021 prefix=NONE
1022 program_prefix=NONE
1023 program_suffix=NONE
1024 program_transform_name=s,x,x,
1025 silent=
1026 site=
1027 srcdir=
1028 verbose=
1029 x_includes=NONE
1030 x_libraries=NONE
1031
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1050 htmldir='${docdir}'
1051 dvidir='${docdir}'
1052 pdfdir='${docdir}'
1053 psdir='${docdir}'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1057
1058 ac_prev=
1059 ac_dashdash=
1060 for ac_option
1061 do
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1065 ac_prev=
1066 continue
1067 fi
1068
1069 case $ac_option in
1070 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071 *) ac_optarg=yes ;;
1072 esac
1073
1074 # Accept the important Cygnus configure options, so we can diagnose typos.
1075
1076 case $ac_dashdash$ac_option in
1077 --)
1078 ac_dashdash=yes ;;
1079
1080 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081 ac_prev=bindir ;;
1082 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083 bindir=$ac_optarg ;;
1084
1085 -build | --build | --buil | --bui | --bu)
1086 ac_prev=build_alias ;;
1087 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088 build_alias=$ac_optarg ;;
1089
1090 -cache-file | --cache-file | --cache-fil | --cache-fi \
1091 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092 ac_prev=cache_file ;;
1093 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095 cache_file=$ac_optarg ;;
1096
1097 --config-cache | -C)
1098 cache_file=config.cache ;;
1099
1100 -datadir | --datadir | --datadi | --datad)
1101 ac_prev=datadir ;;
1102 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103 datadir=$ac_optarg ;;
1104
1105 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106 | --dataroo | --dataro | --datar)
1107 ac_prev=datarootdir ;;
1108 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110 datarootdir=$ac_optarg ;;
1111
1112 -disable-* | --disable-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid feature name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1120 *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval enable_$ac_useropt=no ;;
1127
1128 -docdir | --docdir | --docdi | --doc | --do)
1129 ac_prev=docdir ;;
1130 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1131 docdir=$ac_optarg ;;
1132
1133 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134 ac_prev=dvidir ;;
1135 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1136 dvidir=$ac_optarg ;;
1137
1138 -enable-* | --enable-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid feature name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "enable_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval enable_$ac_useropt=\$ac_optarg ;;
1153
1154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156 | --exec | --exe | --ex)
1157 ac_prev=exec_prefix ;;
1158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160 | --exec=* | --exe=* | --ex=*)
1161 exec_prefix=$ac_optarg ;;
1162
1163 -gas | --gas | --ga | --g)
1164 # Obsolete; use --with-gas.
1165 with_gas=yes ;;
1166
1167 -help | --help | --hel | --he | -h)
1168 ac_init_help=long ;;
1169 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170 ac_init_help=recursive ;;
1171 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172 ac_init_help=short ;;
1173
1174 -host | --host | --hos | --ho)
1175 ac_prev=host_alias ;;
1176 -host=* | --host=* | --hos=* | --ho=*)
1177 host_alias=$ac_optarg ;;
1178
1179 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180 ac_prev=htmldir ;;
1181 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182 | --ht=*)
1183 htmldir=$ac_optarg ;;
1184
1185 -includedir | --includedir | --includedi | --included | --include \
1186 | --includ | --inclu | --incl | --inc)
1187 ac_prev=includedir ;;
1188 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189 | --includ=* | --inclu=* | --incl=* | --inc=*)
1190 includedir=$ac_optarg ;;
1191
1192 -infodir | --infodir | --infodi | --infod | --info | --inf)
1193 ac_prev=infodir ;;
1194 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195 infodir=$ac_optarg ;;
1196
1197 -libdir | --libdir | --libdi | --libd)
1198 ac_prev=libdir ;;
1199 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200 libdir=$ac_optarg ;;
1201
1202 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203 | --libexe | --libex | --libe)
1204 ac_prev=libexecdir ;;
1205 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206 | --libexe=* | --libex=* | --libe=*)
1207 libexecdir=$ac_optarg ;;
1208
1209 -localedir | --localedir | --localedi | --localed | --locale)
1210 ac_prev=localedir ;;
1211 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212 localedir=$ac_optarg ;;
1213
1214 -localstatedir | --localstatedir | --localstatedi | --localstated \
1215 | --localstate | --localstat | --localsta | --localst | --locals)
1216 ac_prev=localstatedir ;;
1217 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219 localstatedir=$ac_optarg ;;
1220
1221 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222 ac_prev=mandir ;;
1223 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224 mandir=$ac_optarg ;;
1225
1226 -nfp | --nfp | --nf)
1227 # Obsolete; use --without-fp.
1228 with_fp=no ;;
1229
1230 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231 | --no-cr | --no-c | -n)
1232 no_create=yes ;;
1233
1234 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236 no_recursion=yes ;;
1237
1238 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240 | --oldin | --oldi | --old | --ol | --o)
1241 ac_prev=oldincludedir ;;
1242 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245 oldincludedir=$ac_optarg ;;
1246
1247 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248 ac_prev=prefix ;;
1249 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250 prefix=$ac_optarg ;;
1251
1252 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253 | --program-pre | --program-pr | --program-p)
1254 ac_prev=program_prefix ;;
1255 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257 program_prefix=$ac_optarg ;;
1258
1259 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260 | --program-suf | --program-su | --program-s)
1261 ac_prev=program_suffix ;;
1262 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264 program_suffix=$ac_optarg ;;
1265
1266 -program-transform-name | --program-transform-name \
1267 | --program-transform-nam | --program-transform-na \
1268 | --program-transform-n | --program-transform- \
1269 | --program-transform | --program-transfor \
1270 | --program-transfo | --program-transf \
1271 | --program-trans | --program-tran \
1272 | --progr-tra | --program-tr | --program-t)
1273 ac_prev=program_transform_name ;;
1274 -program-transform-name=* | --program-transform-name=* \
1275 | --program-transform-nam=* | --program-transform-na=* \
1276 | --program-transform-n=* | --program-transform-=* \
1277 | --program-transform=* | --program-transfor=* \
1278 | --program-transfo=* | --program-transf=* \
1279 | --program-trans=* | --program-tran=* \
1280 | --progr-tra=* | --program-tr=* | --program-t=*)
1281 program_transform_name=$ac_optarg ;;
1282
1283 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284 ac_prev=pdfdir ;;
1285 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286 pdfdir=$ac_optarg ;;
1287
1288 -psdir | --psdir | --psdi | --psd | --ps)
1289 ac_prev=psdir ;;
1290 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291 psdir=$ac_optarg ;;
1292
1293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294 | -silent | --silent | --silen | --sile | --sil)
1295 silent=yes ;;
1296
1297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298 ac_prev=sbindir ;;
1299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300 | --sbi=* | --sb=*)
1301 sbindir=$ac_optarg ;;
1302
1303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305 | --sharedst | --shareds | --shared | --share | --shar \
1306 | --sha | --sh)
1307 ac_prev=sharedstatedir ;;
1308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311 | --sha=* | --sh=*)
1312 sharedstatedir=$ac_optarg ;;
1313
1314 -site | --site | --sit)
1315 ac_prev=site ;;
1316 -site=* | --site=* | --sit=*)
1317 site=$ac_optarg ;;
1318
1319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320 ac_prev=srcdir ;;
1321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322 srcdir=$ac_optarg ;;
1323
1324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325 | --syscon | --sysco | --sysc | --sys | --sy)
1326 ac_prev=sysconfdir ;;
1327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329 sysconfdir=$ac_optarg ;;
1330
1331 -target | --target | --targe | --targ | --tar | --ta | --t)
1332 ac_prev=target_alias ;;
1333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334 target_alias=$ac_optarg ;;
1335
1336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 verbose=yes ;;
1338
1339 -version | --version | --versio | --versi | --vers | -V)
1340 ac_init_version=: ;;
1341
1342 -with-* | --with-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error "invalid package name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1350 *"
1351 "with_$ac_useropt"
1352 "*) ;;
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1355 esac
1356 eval with_$ac_useropt=\$ac_optarg ;;
1357
1358 -without-* | --without-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error "invalid package name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1366 *"
1367 "with_$ac_useropt"
1368 "*) ;;
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1371 esac
1372 eval with_$ac_useropt=no ;;
1373
1374 --x)
1375 # Obsolete; use --with-x.
1376 with_x=yes ;;
1377
1378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1379 | --x-incl | --x-inc | --x-in | --x-i)
1380 ac_prev=x_includes ;;
1381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1383 x_includes=$ac_optarg ;;
1384
1385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1387 ac_prev=x_libraries ;;
1388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1390 x_libraries=$ac_optarg ;;
1391
1392 -*) as_fn_error "unrecognized option: \`$ac_option'
1393 Try \`$0 --help' for more information."
1394 ;;
1395
1396 *=*)
1397 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398 # Reject names that are not valid shell variable names.
1399 case $ac_envvar in #(
1400 '' | [0-9]* | *[!_$as_cr_alnum]* )
1401 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1402 esac
1403 eval $ac_envvar=\$ac_optarg
1404 export $ac_envvar ;;
1405
1406 *)
1407 # FIXME: should be removed in autoconf 3.0.
1408 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1409 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1411 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1412 ;;
1413
1414 esac
1415 done
1416
1417 if test -n "$ac_prev"; then
1418 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1419 as_fn_error "missing argument to $ac_option"
1420 fi
1421
1422 if test -n "$ac_unrecognized_opts"; then
1423 case $enable_option_checking in
1424 no) ;;
1425 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1426 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1427 esac
1428 fi
1429
1430 # Check all directory arguments for consistency.
1431 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1432 datadir sysconfdir sharedstatedir localstatedir includedir \
1433 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1434 libdir localedir mandir
1435 do
1436 eval ac_val=\$$ac_var
1437 # Remove trailing slashes.
1438 case $ac_val in
1439 */ )
1440 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1441 eval $ac_var=\$ac_val;;
1442 esac
1443 # Be sure to have absolute directory names.
1444 case $ac_val in
1445 [\\/$]* | ?:[\\/]* ) continue;;
1446 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1447 esac
1448 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1449 done
1450
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1454 build=$build_alias
1455 host=$host_alias
1456 target=$target_alias
1457
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460 if test "x$build_alias" = x; then
1461 cross_compiling=maybe
1462 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1463 If a cross compiler is detected then cross compile mode will be used." >&2
1464 elif test "x$build_alias" != "x$host_alias"; then
1465 cross_compiling=yes
1466 fi
1467 fi
1468
1469 ac_tool_prefix=
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
1472 test "$silent" = yes && exec 6>/dev/null
1473
1474
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478 as_fn_error "working directory cannot be determined"
1479 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1480 as_fn_error "pwd does not report name of working directory"
1481
1482
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485 ac_srcdir_defaulted=yes
1486 # Try the directory containing this script, then the parent directory.
1487 ac_confdir=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489 X"$as_myself" : 'X\(//\)[^/]' \| \
1490 X"$as_myself" : 'X\(//\)$' \| \
1491 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494 s//\1/
1495 q
1496 }
1497 /^X\(\/\/\)[^/].*/{
1498 s//\1/
1499 q
1500 }
1501 /^X\(\/\/\)$/{
1502 s//\1/
1503 q
1504 }
1505 /^X\(\/\).*/{
1506 s//\1/
1507 q
1508 }
1509 s/.*/./; q'`
1510 srcdir=$ac_confdir
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 srcdir=..
1513 fi
1514 else
1515 ac_srcdir_defaulted=no
1516 fi
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1520 fi
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 ac_abs_confdir=`(
1523 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1524 pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527 srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1548 cat <<_ACEOF
1549 \`configure' configures LWTOOLS 2.6-pre to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1573 [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/lwtools]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1602 _ACEOF
1603
1604 cat <<\_ACEOF
1605
1606 Program names:
1607 --program-prefix=PREFIX prepend PREFIX to installed program names
1608 --program-suffix=SUFFIX append SUFFIX to installed program names
1609 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1610
1611 System types:
1612 --build=BUILD configure for building on BUILD [guessed]
1613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1614 _ACEOF
1615 fi
1616
1617 if test -n "$ac_init_help"; then
1618 case $ac_init_help in
1619 short | recursive ) echo "Configuration of LWTOOLS 2.6-pre:";;
1620 esac
1621 cat <<\_ACEOF
1622
1623 Optional Features:
1624 --disable-option-checking ignore unrecognized --enable/--with options
1625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627 --disable-dependency-tracking speeds up one-time build
1628 --enable-dependency-tracking do not reject slow dependency extractors
1629
1630 Some influential environment variables:
1631 CC C compiler command
1632 CFLAGS C compiler flags
1633 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1634 nonstandard directory <lib dir>
1635 LIBS libraries to pass to the linker, e.g. -l<library>
1636 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1637 you have headers in a nonstandard directory <include dir>
1638 CPP C preprocessor
1639
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1642
1643 Report bugs to <lost@l-w.ca>.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1654 ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673 .) # We are building in place.
1674 ac_srcdir=.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705 cat <<\_ACEOF
1706 LWTOOLS configure 2.6-pre
1707 generated by GNU Autoconf 2.64
1708
1709 Copyright (C) 2009 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713 exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756 } # ac_fn_c_try_compile
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789 fi
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1799 # accordingly.
1800 ac_fn_c_check_header_mongrel ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 else
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1823 else
1824 ac_header_compiler=no
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1829
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1839 else
1840 ac_header_preproc=no
1841 fi
1842 rm -f conftest.err conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1845
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848 yes:no: )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ;;
1854 no:yes:* )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ( cat <<\_ASBOX
1866 ## -------------------------- ##
1867 ## Report this to lost@l-w.ca ##
1868 ## -------------------------- ##
1869 _ASBOX
1870 ) | sed "s/^/$as_me: WARNING: /" >&2
1871 ;;
1872 esac
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 eval "$3=\$ac_header_compiler"
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 fi
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885
1886 } # ac_fn_c_check_header_mongrel
1887
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891 # that executables *can* be run.
1892 ac_fn_c_try_run ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1913 ac_status=$?
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: program exited with status $ac_status" >&5
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=$ac_status
1923 fi
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1927
1928 } # ac_fn_c_try_run
1929
1930 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_c_check_header_compile ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$3=yes"
1949 else
1950 eval "$3=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_header_compile
1960
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_c_try_link ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest$ac_exeext
1989 }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996 fi
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003 return $ac_retval
2004
2005 } # ac_fn_c_try_link
2006
2007 # ac_fn_c_check_func LINENO FUNC VAR
2008 # ----------------------------------
2009 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2010 ac_fn_c_check_func ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2022 #define $2 innocuous_$2
2023
2024 /* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char $2 (); below.
2026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2027 <limits.h> exists even on freestanding compilers. */
2028
2029 #ifdef __STDC__
2030 # include <limits.h>
2031 #else
2032 # include <assert.h>
2033 #endif
2034
2035 #undef $2
2036
2037 /* Override any GCC internal prototype to avoid an error.
2038 Use char because int might match the return type of a GCC
2039 builtin and then its argument prototype would still apply. */
2040 #ifdef __cplusplus
2041 extern "C"
2042 #endif
2043 char $2 ();
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined __stub_$2 || defined __stub___$2
2048 choke me
2049 #endif
2050
2051 int
2052 main ()
2053 {
2054 return $2 ();
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_link "$LINENO"; then :
2060 eval "$3=yes"
2061 else
2062 eval "$3=no"
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext \
2065 conftest$ac_exeext conftest.$ac_ext
2066 fi
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071
2072 } # ac_fn_c_check_func
2073
2074 # ac_fn_c_check_decl LINENO SYMBOL VAR
2075 # ------------------------------------
2076 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2077 ac_fn_c_check_decl ()
2078 {
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2081 $as_echo_n "checking whether $2 is declared... " >&6; }
2082 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2083 $as_echo_n "(cached) " >&6
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 $4
2088 int
2089 main ()
2090 {
2091 #ifndef $2
2092 (void) $2;
2093 #endif
2094
2095 ;
2096 return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111 } # ac_fn_c_check_decl
2112
2113 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2114 # --------------------------------------------
2115 # Tries to find the compile-time value of EXPR in a program that includes
2116 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2117 # computed
2118 ac_fn_c_compute_int ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if test "$cross_compiling" = yes; then
2122 # Depending upon the size, compute the lo and hi bounds.
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) >= 0)];
2130 test_array [0] = 0
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=0 ac_mid=0
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 test_array [0] = 0
2147
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=$ac_mid; break
2154 else
2155 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2156 if test $ac_lo -le $ac_mid; then
2157 ac_lo= ac_hi=
2158 break
2159 fi
2160 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164 else
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) < 0)];
2172 test_array [0] = 0
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_hi=-1 ac_mid=-1
2180 while :; do
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2188 test_array [0] = 0
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_lo=$ac_mid; break
2196 else
2197 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198 if test $ac_mid -le $ac_hi; then
2199 ac_lo= ac_hi=
2200 break
2201 fi
2202 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 else
2207 ac_lo= ac_hi=
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 # Binary search between lo and hi bounds.
2213 while test "x$ac_lo" != "x$ac_hi"; do
2214 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 test_array [0] = 0
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid
2230 else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2247 int
2248 main ()
2249 {
2250
2251 FILE *f = fopen ("conftest.val", "w");
2252 if (! f)
2253 return 1;
2254 if (($2) < 0)
2255 {
2256 long int i = longval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%ld", i);
2260 }
2261 else
2262 {
2263 unsigned long int i = ulongval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%lu", i);
2267 }
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2271
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279 ac_retval=1
2280 fi
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2284
2285 fi
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287 return $ac_retval
2288
2289 } # ac_fn_c_compute_int
2290
2291 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2292 # -------------------------------------------
2293 # Tests whether TYPE exists after having included INCLUDES, setting cache
2294 # variable VAR accordingly.
2295 ac_fn_c_check_type ()
2296 {
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 eval "$3=no"
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 $4
2307 int
2308 main ()
2309 {
2310 if (sizeof ($2))
2311 return 0;
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 int
2321 main ()
2322 {
2323 if (sizeof (($2)))
2324 return 0;
2325 ;
2326 return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330
2331 else
2332 eval "$3=yes"
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343 } # ac_fn_c_check_type
2344 cat >config.log <<_ACEOF
2345 This file contains any messages produced by compilers while
2346 running configure, to aid debugging if configure makes a mistake.
2347
2348 It was created by LWTOOLS $as_me 2.6-pre, which was
2349 generated by GNU Autoconf 2.64. Invocation command line was
2350
2351 $ $0 $@
2352
2353 _ACEOF
2354 exec 5>>config.log
2355 {
2356 cat <<_ASUNAME
2357 ## --------- ##
2358 ## Platform. ##
2359 ## --------- ##
2360
2361 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366
2367 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369
2370 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2374 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377
2378 _ASUNAME
2379
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 $as_echo "PATH: $as_dir"
2386 done
2387 IFS=$as_save_IFS
2388
2389 } >&5
2390
2391 cat >&5 <<_ACEOF
2392
2393
2394 ## ----------- ##
2395 ## Core tests. ##
2396 ## ----------- ##
2397
2398 _ACEOF
2399
2400
2401 # Keep a trace of the command line.
2402 # Strip out --no-create and --no-recursion so they do not pile up.
2403 # Strip out --silent because we don't want to record it for future runs.
2404 # Also quote any args containing shell meta-characters.
2405 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_configure_args=
2407 ac_configure_args0=
2408 ac_configure_args1=
2409 ac_must_keep_next=false
2410 for ac_pass in 1 2
2411 do
2412 for ac_arg
2413 do
2414 case $ac_arg in
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2418 continue ;;
2419 *\'*)
2420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 esac
2422 case $ac_pass in
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 2)
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2428 else
2429 case $ac_arg in
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 esac
2437 ;;
2438 -* ) ac_must_keep_next=true ;;
2439 esac
2440 fi
2441 as_fn_append ac_configure_args " '$ac_arg'"
2442 ;;
2443 esac
2444 done
2445 done
2446 { ac_configure_args0=; unset ac_configure_args0;}
2447 { ac_configure_args1=; unset ac_configure_args1;}
2448
2449 # When interrupted or exit'd, cleanup temporary files, and complete
2450 # config.log. We remove comments because anyway the quotes in there
2451 # would cause problems or look ugly.
2452 # WARNING: Use '\'' to represent an apostrophe within the trap.
2453 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454 trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2456 {
2457 echo
2458
2459 cat <<\_ASBOX
2460 ## ---------------- ##
2461 ## Cache variables. ##
2462 ## ---------------- ##
2463 _ASBOX
2464 echo
2465 # The following way of writing the cache mishandles newlines in values,
2466 (
2467 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in #(
2470 *${as_nl}*)
2471 case $ac_var in #(
2472 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2473 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474 esac
2475 case $ac_var in #(
2476 _ | IFS | as_nl) ;; #(
2477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2478 *) { eval $ac_var=; unset $ac_var;} ;;
2479 esac ;;
2480 esac
2481 done
2482 (set) 2>&1 |
2483 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2484 *${as_nl}ac_space=\ *)
2485 sed -n \
2486 "s/'\''/'\''\\\\'\'''\''/g;
2487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488 ;; #(
2489 *)
2490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491 ;;
2492 esac |
2493 sort
2494 )
2495 echo
2496
2497 cat <<\_ASBOX
2498 ## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##
2501 _ASBOX
2502 echo
2503 for ac_var in $ac_subst_vars
2504 do
2505 eval ac_val=\$$ac_var
2506 case $ac_val in
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 esac
2509 $as_echo "$ac_var='\''$ac_val'\''"
2510 done | sort
2511 echo
2512
2513 if test -n "$ac_subst_files"; then
2514 cat <<\_ASBOX
2515 ## ------------------- ##
2516 ## File substitutions. ##
2517 ## ------------------- ##
2518 _ASBOX
2519 echo
2520 for ac_var in $ac_subst_files
2521 do
2522 eval ac_val=\$$ac_var
2523 case $ac_val in
2524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525 esac
2526 $as_echo "$ac_var='\''$ac_val'\''"
2527 done | sort
2528 echo
2529 fi
2530
2531 if test -s confdefs.h; then
2532 cat <<\_ASBOX
2533 ## ----------- ##
2534 ## confdefs.h. ##
2535 ## ----------- ##
2536 _ASBOX
2537 echo
2538 cat confdefs.h
2539 echo
2540 fi
2541 test "$ac_signal" != 0 &&
2542 $as_echo "$as_me: caught signal $ac_signal"
2543 $as_echo "$as_me: exit $exit_status"
2544 } >&5
2545 rm -f core *.core core.conftest.* &&
2546 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2547 exit $exit_status
2548 ' 0
2549 for ac_signal in 1 2 13 15; do
2550 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2551 done
2552 ac_signal=0
2553
2554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2555 rm -f -r conftest* confdefs.h
2556
2557 $as_echo "/* confdefs.h */" > confdefs.h
2558
2559 # Predefined preprocessor variables.
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_NAME "$PACKAGE_NAME"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_STRING "$PACKAGE_STRING"
2575 _ACEOF
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2579 _ACEOF
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_URL "$PACKAGE_URL"
2583 _ACEOF
2584
2585
2586 # Let the site file select an alternate cache file if it wants to.
2587 # Prefer an explicitly selected file to automatically selected ones.
2588 ac_site_file1=NONE
2589 ac_site_file2=NONE
2590 if test -n "$CONFIG_SITE"; then
2591 ac_site_file1=$CONFIG_SITE
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2595 else
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2598 fi
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 do
2601 test "x$ac_site_file" = xNONE && continue
2602 if test -r "$ac_site_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2606 . "$ac_site_file"
2607 fi
2608 done
2609
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special
2612 # files actually), so we avoid doing that.
2613 if test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2616 case $cache_file in
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2619 esac
2620 fi
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2624 >$cache_file
2625 fi
2626
2627 gl_func_list="$gl_func_list flockfile"
2628 gl_func_list="$gl_func_list funlockfile"
2629 gl_header_list="$gl_header_list features.h"
2630 gl_header_list="$gl_header_list linewrap.h"
2631 gl_header_list="$gl_header_list errno.h"
2632 gl_header_list="$gl_header_list float.h"
2633 gl_header_list="$gl_header_list stdint.h"
2634 gl_header_list="$gl_header_list wchar.h"
2635 gl_header_list="$gl_header_list stdio.h"
2636 gl_header_list="$gl_header_list stdlib.h"
2637 gl_header_list="$gl_header_list sys/socket.h"
2638 gl_header_list="$gl_header_list string.h"
2639 gl_header_list="$gl_header_list strings.h"
2640 gl_header_list="$gl_header_list sysexits.h"
2641 gl_header_list="$gl_header_list unistd.h"
2642 gl_func_list="$gl_func_list vasnprintf"
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2652 set,)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,set)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2660 ,);;
2661 *)
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2676 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2678 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2679 fi;;
2680 esac
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2683 case $ac_new_val in
2684 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 *) ac_arg=$ac_var=$ac_new_val ;;
2686 esac
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690 esac
2691 fi
2692 done
2693 if $ac_cache_corrupted; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699 fi
2700 ## -------------------- ##
2701 ## Main body of script. ##
2702 ## -------------------- ##
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711 am__api_version='1.11'
2712
2713 ac_aux_dir=
2714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715 for ac_t in install-sh install.sh shtool; do
2716 if test -f "$ac_dir/$ac_t"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/$ac_t -c"
2719 break 2
2720 fi
2721 done
2722 done
2723 if test -z "$ac_aux_dir"; then
2724 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2725 fi
2726
2727 # These three variables are undocumented and unsupported,
2728 # and are intended to be withdrawn in a future Autoconf release.
2729 # They can cause serious problems if a builder's source tree is in a directory
2730 # whose full name contains unusual characters.
2731 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2732 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2733 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2734
2735
2736 # Find a good install program. We prefer a C program (faster),
2737 # so one script is as good as another. But avoid the broken or
2738 # incompatible versions:
2739 # SysV /etc/install, /usr/sbin/install
2740 # SunOS /usr/etc/install
2741 # IRIX /sbin/install
2742 # AIX /bin/install
2743 # AmigaOS /C/install, which installs bootblocks on floppy discs
2744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2747 # OS/2's system install, which has a completely different semantic
2748 # ./install, which can be erroneously created by make from ./install.sh.
2749 # Reject install programs that cannot install multiple files.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2751 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2752 if test -z "$INSTALL"; then
2753 if test "${ac_cv_path_install+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 # Account for people who put trailing slashes in PATH elements.
2762 case $as_dir/ in #((
2763 ./ | .// | /[cC]/* | \
2764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2765 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2766 /usr/ucb/* ) ;;
2767 *)
2768 # OSF1 and SCO ODT 3.0 have their own names for install.
2769 # Don't use installbsd from OSF since it installs stuff as root
2770 # by default.
2771 for ac_prog in ginstall scoinst install; do
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2774 if test $ac_prog = install &&
2775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # AIX install. It has an incompatible calling convention.
2777 :
2778 elif test $ac_prog = install &&
2779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780 # program-specific install script used by HP pwplus--don't use.
2781 :
2782 else
2783 rm -rf conftest.one conftest.two conftest.dir
2784 echo one > conftest.one
2785 echo two > conftest.two
2786 mkdir conftest.dir
2787 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2788 test -s conftest.one && test -s conftest.two &&
2789 test -s conftest.dir/conftest.one &&
2790 test -s conftest.dir/conftest.two
2791 then
2792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2793 break 3
2794 fi
2795 fi
2796 fi
2797 done
2798 done
2799 ;;
2800 esac
2801
2802 done
2803 IFS=$as_save_IFS
2804
2805 rm -rf conftest.one conftest.two conftest.dir
2806
2807 fi
2808 if test "${ac_cv_path_install+set}" = set; then
2809 INSTALL=$ac_cv_path_install
2810 else
2811 # As a last resort, use the slow shell script. Don't cache a
2812 # value for INSTALL within a source directory, because that will
2813 # break other packages using the cache if that directory is
2814 # removed, or if the value is a relative name.
2815 INSTALL=$ac_install_sh
2816 fi
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2819 $as_echo "$INSTALL" >&6; }
2820
2821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2822 # It thinks the first close brace ends the variable substitution.
2823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824
2825 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826
2827 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2830 $as_echo_n "checking whether build environment is sane... " >&6; }
2831 # Just in case
2832 sleep 1
2833 echo timestamp > conftest.file
2834 # Reject unsafe characters in $srcdir or the absolute working directory
2835 # name. Accept space and tab only in the latter.
2836 am_lf='
2837 '
2838 case `pwd` in
2839 *[\\\"\#\$\&\'\`$am_lf]*)
2840 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2841 esac
2842 case $srcdir in
2843 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2844 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2845 esac
2846
2847 # Do `set' in a subshell so we don't clobber the current shell's
2848 # arguments. Must try -L first in case configure is actually a
2849 # symlink; some systems play weird games with the mod time of symlinks
2850 # (eg FreeBSD returns the mod time of the symlink's containing
2851 # directory).
2852 if (
2853 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2854 if test "$*" = "X"; then
2855 # -L didn't work.
2856 set X `ls -t "$srcdir/configure" conftest.file`
2857 fi
2858 rm -f conftest.file
2859 if test "$*" != "X $srcdir/configure conftest.file" \
2860 && test "$*" != "X conftest.file $srcdir/configure"; then
2861
2862 # If neither matched, then we have a broken ls. This can happen
2863 # if, for instance, CONFIG_SHELL is bash and it inherits a
2864 # broken ls alias from the environment. This has actually
2865 # happened. Such a system could not be considered "sane".
2866 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2867 alias in your environment" "$LINENO" 5
2868 fi
2869
2870 test "$2" = conftest.file
2871 )
2872 then
2873 # Ok.
2874 :
2875 else
2876 as_fn_error "newly created file is older than distributed files!
2877 Check your system clock" "$LINENO" 5
2878 fi
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2880 $as_echo "yes" >&6; }
2881 test "$program_prefix" != NONE &&
2882 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2883 # Use a double $ so make ignores it.
2884 test "$program_suffix" != NONE &&
2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886 # Double any \ or $.
2887 # By default was `s,x,x', remove it if useless.
2888 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890
2891 # expand $ac_aux_dir to an absolute path
2892 am_aux_dir=`cd $ac_aux_dir && pwd`
2893
2894 if test x"${MISSING+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 *)
2899 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2900 esac
2901 fi
2902 # Use eval to expand $SHELL
2903 if eval "$MISSING --run true"; then
2904 am_missing_run="$MISSING --run "
2905 else
2906 am_missing_run=
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2908 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2909 fi
2910
2911 if test x"${install_sh}" != xset; then
2912 case $am_aux_dir in
2913 *\ * | *\ *)
2914 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 *)
2916 install_sh="\${SHELL} $am_aux_dir/install-sh"
2917 esac
2918 fi
2919
2920 # Installed binaries are usually stripped using `strip' when the user
2921 # run `make install-strip'. However `strip' might not be the right
2922 # tool to use in cross-compilation environments, therefore Automake
2923 # will honor the `STRIP' environment variable to overrule this program.
2924 if test "$cross_compiling" != no; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}strip; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_STRIP+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$STRIP"; then
2934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 STRIP=$ac_cv_prog_STRIP
2954 if test -n "$STRIP"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2956 $as_echo "$STRIP" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_STRIP"; then
2965 ac_ct_STRIP=$STRIP
2966 # Extract the first word of "strip", so it can be a program name with args.
2967 set dummy strip; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_STRIP"; then
2974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_STRIP="strip"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994 if test -n "$ac_ct_STRIP"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2996 $as_echo "$ac_ct_STRIP" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002 if test "x$ac_ct_STRIP" = x; then
3003 STRIP=":"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 STRIP=$ac_ct_STRIP
3012 fi
3013 else
3014 STRIP="$ac_cv_prog_STRIP"
3015 fi
3016
3017 fi
3018 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3021 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3022 if test -z "$MKDIR_P"; then
3023 if test "${ac_cv_path_mkdir+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in mkdir gmkdir; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3034 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035 'mkdir (GNU coreutils) '* | \
3036 'mkdir (coreutils) '* | \
3037 'mkdir (fileutils) '4.1*)
3038 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3039 break 3;;
3040 esac
3041 done
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047
3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 test -d ./--version && rmdir ./--version
3056 MKDIR_P="$ac_install_sh -d"
3057 fi
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3060 $as_echo "$MKDIR_P" >&6; }
3061
3062 mkdir_p="$MKDIR_P"
3063 case $mkdir_p in
3064 [\\/$]* | ?:[\\/]*) ;;
3065 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3066 esac
3067
3068 for ac_prog in gawk mawk nawk awk
3069 do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_AWK+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$AWK"; then
3078 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_AWK="$ac_prog"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091 done
3092 done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 AWK=$ac_cv_prog_AWK
3098 if test -n "$AWK"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3100 $as_echo "$AWK" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 test -n "$AWK" && break
3108 done
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3111 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3112 set x ${MAKE-make}
3113 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3114 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 cat >conftest.make <<\_ACEOF
3118 SHELL = /bin/sh
3119 all:
3120 @echo '@@@%%%=$(MAKE)=@@@%%%'
3121 _ACEOF
3122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3124 *@@@%%%=?*=@@@%%%*)
3125 eval ac_cv_prog_make_${ac_make}_set=yes;;
3126 *)
3127 eval ac_cv_prog_make_${ac_make}_set=no;;
3128 esac
3129 rm -f conftest.make
3130 fi
3131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134 SET_MAKE=
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 SET_MAKE="MAKE=${MAKE-make}"
3139 fi
3140
3141 rm -rf .tst 2>/dev/null
3142 mkdir .tst 2>/dev/null
3143 if test -d .tst; then
3144 am__leading_dot=.
3145 else
3146 am__leading_dot=_
3147 fi
3148 rmdir .tst 2>/dev/null
3149
3150 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3152 # is not polluted with repeated "-I."
3153 am__isrc=' -I$(srcdir)'
3154 # test to see if srcdir already configured
3155 if test -f $srcdir/config.status; then
3156 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3157 fi
3158 fi
3159
3160 # test whether we have cygpath
3161 if test -z "$CYGPATH_W"; then
3162 if (cygpath --version) >/dev/null 2>/dev/null; then
3163 CYGPATH_W='cygpath -w'
3164 else
3165 CYGPATH_W=echo
3166 fi
3167 fi
3168
3169
3170 # Define the identity of the package.
3171 PACKAGE='lwtools'
3172 VERSION='2.6-pre'
3173
3174
3175 cat >>confdefs.h <<_ACEOF
3176 #define PACKAGE "$PACKAGE"
3177 _ACEOF
3178
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define VERSION "$VERSION"
3182 _ACEOF
3183
3184 # Some tools Automake needs.
3185
3186 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3187
3188
3189 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3190
3191
3192 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3193
3194
3195 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3196
3197
3198 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3199
3200 # We need awk for the "check" target. The system "awk" is bad on
3201 # some platforms.
3202 # Always define AMTAR for backward compatibility.
3203
3204 AMTAR=${AMTAR-"${am_missing_run}tar"}
3205
3206 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3207
3208
3209
3210
3211
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 if test -n "$ac_tool_prefix"; then
3218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255 fi
3256 if test -z "$ac_cv_prog_CC"; then
3257 ac_ct_CC=$CC
3258 # Extract the first word of "gcc", so it can be a program name with args.
3259 set dummy gcc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC="gcc"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288 $as_echo "$ac_ct_CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294 if test "x$ac_ct_CC" = x; then
3295 CC=""
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301 ac_tool_warned=yes ;;
3302 esac
3303 CC=$ac_ct_CC
3304 fi
3305 else
3306 CC="$ac_cv_prog_CC"
3307 fi
3308
3309 if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}cc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_CC+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_CC="${ac_tool_prefix}cc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 fi
3350 if test -z "$CC"; then
3351 # Extract the first word of "cc", so it can be a program name with args.
3352 set dummy cc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_CC+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 ac_prog_rejected=no
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3370 ac_prog_rejected=yes
3371 continue
3372 fi
3373 ac_cv_prog_CC="cc"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 if test $ac_prog_rejected = yes; then
3382 # We found a bogon in the path, so make sure we never use it.
3383 set dummy $ac_cv_prog_CC
3384 shift
3385 if test $# != 0; then
3386 # We chose a different compiler from the bogus one.
3387 # However, it has the same basename, so the bogon will be chosen
3388 # first if we set CC to just the basename; use the full file name.
3389 shift
3390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3391 fi
3392 fi
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 for ac_prog in cl.exe
3409 do
3410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if test "${ac_cv_prog_CC+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446
3447 test -n "$CC" && break
3448 done
3449 fi
3450 if test -z "$CC"; then
3451 ac_ct_CC=$CC
3452 for ac_prog in cl.exe
3453 do
3454 # Extract the first word of "$ac_prog", so it can be a program name with args.
3455 set dummy $ac_prog; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$ac_ct_CC"; then
3462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_ac_ct_CC="$ac_prog"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482 if test -n "$ac_ct_CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3484 $as_echo "$ac_ct_CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490
3491 test -n "$ac_ct_CC" && break
3492 done
3493
3494 if test "x$ac_ct_CC" = x; then
3495 CC=""
3496 else
3497 case $cross_compiling:$ac_tool_warned in
3498 yes:)
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3501 ac_tool_warned=yes ;;
3502 esac
3503 CC=$ac_ct_CC
3504 fi
3505 fi
3506
3507 fi
3508
3509
3510 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error "no acceptable C compiler found in \$PATH
3513 See \`config.log' for more details." "$LINENO" 5; }
3514
3515 # Provide some information about the compiler.
3516 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3517 set X $ac_compile
3518 ac_compiler=$2
3519 for ac_option in --version -v -V -qversion; do
3520 { { ac_try="$ac_compiler $ac_option >&5"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3528 ac_status=$?
3529 if test -s conftest.err; then
3530 sed '10a\
3531 ... rest of stderr output deleted ...
3532 10q' conftest.err >conftest.er1
3533 cat conftest.er1 >&5
3534 rm -f conftest.er1 conftest.err
3535 fi
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }
3538 done
3539
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 #include <stdio.h>
3543 int
3544 main ()
3545 {
3546 FILE *f = fopen ("conftest.out", "w");
3547 return ferror (f) || fclose (f) != 0;
3548
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 ac_clean_files_save=$ac_clean_files
3554 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3555 # Try to create an executable without -o first, disregard a.out.
3556 # It will help us diagnose broken compilers, and finding out an intuition
3557 # of exeext.
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3559 $as_echo_n "checking for C compiler default output file name... " >&6; }
3560 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3561
3562 # The possible output files:
3563 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3564
3565 ac_rmfiles=
3566 for ac_file in $ac_files
3567 do
3568 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3570 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571 esac
3572 done
3573 rm -f $ac_rmfiles
3574
3575 if { { ac_try="$ac_link_default"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_link_default") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; then :
3586 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3587 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3588 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3589 # so that the user can short-circuit this test for compilers unknown to
3590 # Autoconf.
3591 for ac_file in $ac_files ''
3592 do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3596 ;;
3597 [ab].out )
3598 # We found the default executable, but exeext='' is most
3599 # certainly right.
3600 break;;
3601 *.* )
3602 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3603 then :; else
3604 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 fi
3606 # We set ac_cv_exeext here because the later test for it is not
3607 # safe: cross compilers may not add the suffix if given an `-o'
3608 # argument, so we may need to know it at that point already.
3609 # Even if this section looks crufty: it has the advantage of
3610 # actually working.
3611 break;;
3612 * )
3613 break;;
3614 esac
3615 done
3616 test "$ac_cv_exeext" = no && ac_cv_exeext=
3617
3618 else
3619 ac_file=''
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3622 $as_echo "$ac_file" >&6; }
3623 if test -z "$ac_file"; then :
3624 $as_echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 { as_fn_set_status 77
3630 as_fn_error "C compiler cannot create executables
3631 See \`config.log' for more details." "$LINENO" 5; }; }
3632 fi
3633 ac_exeext=$ac_cv_exeext
3634
3635 # Check that the compiler produces executables we can run. If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 # If not cross compiling, check that we can run a simple program.
3640 if test "$cross_compiling" != yes; then
3641 if { ac_try='./$ac_file'
3642 { { case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_try") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; }; then
3652 cross_compiling=no
3653 else
3654 if test "$cross_compiling" = maybe; then
3655 cross_compiling=yes
3656 else
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error "cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details." "$LINENO" 5; }
3662 fi
3663 fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3666 $as_echo "yes" >&6; }
3667
3668 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 # Check that the compiler produces executables we can run. If not, either
3671 # the compiler is broken, or we cross compile.
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3673 $as_echo_n "checking whether we are cross compiling... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3675 $as_echo "$cross_compiling" >&6; }
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678 $as_echo_n "checking for suffix of executables... " >&6; }
3679 if { { ac_try="$ac_link"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_link") 2>&5
3687 ac_status=$?
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3691 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3692 # work properly (i.e., refer to `conftest.exe'), while it won't with
3693 # `rm'.
3694 for ac_file in conftest.exe conftest conftest.*; do
3695 test -f "$ac_file" || continue
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3699 break;;
3700 * ) break;;
3701 esac
3702 done
3703 else
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error "cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details." "$LINENO" 5; }
3708 fi
3709 rm -f conftest$ac_cv_exeext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711 $as_echo "$ac_cv_exeext" >&6; }
3712
3713 rm -f conftest.$ac_ext
3714 EXEEXT=$ac_cv_exeext
3715 ac_exeext=$EXEEXT
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3717 $as_echo_n "checking for suffix of object files... " >&6; }
3718 if test "${ac_cv_objext+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723
3724 int
3725 main ()
3726 {
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 rm -f conftest.o conftest.obj
3733 if { { ac_try="$ac_compile"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compile") 2>&5
3741 ac_status=$?
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; then :
3744 for ac_file in conftest.o conftest.obj conftest.*; do
3745 test -f "$ac_file" || continue;
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3749 break;;
3750 esac
3751 done
3752 else
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error "cannot compute suffix of object files: cannot compile
3759 See \`config.log' for more details." "$LINENO" 5; }
3760 fi
3761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3764 $as_echo "$ac_cv_objext" >&6; }
3765 OBJEXT=$ac_cv_objext
3766 ac_objext=$OBJEXT
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3768 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3769 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778 #ifndef __GNUC__
3779 choke me
3780 #endif
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_compiler_gnu=yes
3788 else
3789 ac_compiler_gnu=no
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3793
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3796 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3797 if test $ac_compiler_gnu = yes; then
3798 GCC=yes
3799 else
3800 GCC=
3801 fi
3802 ac_test_CFLAGS=${CFLAGS+set}
3803 ac_save_CFLAGS=$CFLAGS
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3805 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3806 if test "${ac_cv_prog_cc_g+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 ac_save_c_werror_flag=$ac_c_werror_flag
3810 ac_c_werror_flag=yes
3811 ac_cv_prog_cc_g=no
3812 CFLAGS="-g"
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_g=yes
3826 else
3827 CFLAGS=""
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840
3841 else
3842 ac_c_werror_flag=$ac_save_c_werror_flag
3843 CFLAGS="-g"
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 int
3848 main ()
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_prog_cc_g=yes
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_c_werror_flag=$ac_save_c_werror_flag
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3866 $as_echo "$ac_cv_prog_cc_g" >&6; }
3867 if test "$ac_test_CFLAGS" = set; then
3868 CFLAGS=$ac_save_CFLAGS
3869 elif test $ac_cv_prog_cc_g = yes; then
3870 if test "$GCC" = yes; then
3871 CFLAGS="-g -O2"
3872 else
3873 CFLAGS="-g"
3874 fi
3875 else
3876 if test "$GCC" = yes; then
3877 CFLAGS="-O2"
3878 else
3879 CFLAGS=
3880 fi
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3883 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3884 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 ac_cv_prog_cc_c89=no
3888 ac_save_CC=$CC
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #include <stdarg.h>
3892 #include <stdio.h>
3893 #include <sys/types.h>
3894 #include <sys/stat.h>
3895 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3896 struct buf { int x; };
3897 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3898 static char *e (p, i)
3899 char **p;
3900 int i;
3901 {
3902 return p[i];
3903 }
3904 static char *f (char * (*g) (char **, int), char **p, ...)
3905 {
3906 char *s;
3907 va_list v;
3908 va_start (v,p);
3909 s = g (p, va_arg (v,int));
3910 va_end (v);
3911 return s;
3912 }
3913
3914 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3915 function prototypes and stuff, but not '\xHH' hex character constants.
3916 These don't provoke an error unfortunately, instead are silently treated
3917 as 'x'. The following induces an error, until -std is added to get
3918 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3919 array size at least. It's necessary to write '\x00'==0 to get something
3920 that's true only with -std. */
3921 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3922
3923 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3924 inside strings and character constants. */
3925 #define FOO(x) 'x'
3926 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3927
3928 int test (int i, double x);
3929 struct s1 {int (*f) (int a);};
3930 struct s2 {int (*f) (double a);};
3931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3932 int argc;
3933 char **argv;
3934 int
3935 main ()
3936 {
3937 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3943 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3944 do
3945 CC="$ac_save_CC $ac_arg"
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_prog_cc_c89=$ac_arg
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext
3950 test "x$ac_cv_prog_cc_c89" != "xno" && break
3951 done
3952 rm -f conftest.$ac_ext
3953 CC=$ac_save_CC
3954
3955 fi
3956 # AC_CACHE_VAL
3957 case "x$ac_cv_prog_cc_c89" in
3958 x)
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3960 $as_echo "none needed" >&6; } ;;
3961 xno)
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3963 $as_echo "unsupported" >&6; } ;;
3964 *)
3965 CC="$CC $ac_cv_prog_cc_c89"
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3967 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3968 esac
3969 if test "x$ac_cv_prog_cc_c89" != xno; then :
3970
3971 fi
3972
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978 DEPDIR="${am__leading_dot}deps"
3979
3980 ac_config_commands="$ac_config_commands depfiles"
3981
3982
3983 am_make=${MAKE-make}
3984 cat > confinc << 'END'
3985 am__doit:
3986 @echo this is the am__doit target
3987 .PHONY: am__doit
3988 END
3989 # If we don't find an include directive, just comment out the code.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3991 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3992 am__include="#"
3993 am__quote=
3994 _am_result=none
3995 # First try GNU make style include.
3996 echo "include confinc" > confmf
3997 # Ignore all kinds of additional output from `make'.
3998 case `$am_make -s -f confmf 2> /dev/null` in #(
3999 *the\ am__doit\ target*)
4000 am__include=include
4001 am__quote=
4002 _am_result=GNU
4003 ;;
4004 esac
4005 # Now try BSD make style include.
4006 if test "$am__include" = "#"; then
4007 echo '.include "confinc"' > confmf
4008 case `$am_make -s -f confmf 2> /dev/null` in #(
4009 *the\ am__doit\ target*)
4010 am__include=.include
4011 am__quote="\""
4012 _am_result=BSD
4013 ;;
4014 esac
4015 fi
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4019 $as_echo "$_am_result" >&6; }
4020 rm -f confinc confmf
4021
4022 # Check whether --enable-dependency-tracking was given.
4023 if test "${enable_dependency_tracking+set}" = set; then :
4024 enableval=$enable_dependency_tracking;
4025 fi
4026
4027 if test "x$enable_dependency_tracking" != xno; then
4028 am_depcomp="$ac_aux_dir/depcomp"
4029 AMDEPBACKSLASH='\'
4030 fi
4031 if test "x$enable_dependency_tracking" != xno; then
4032 AMDEP_TRUE=
4033 AMDEP_FALSE='#'
4034 else
4035 AMDEP_TRUE='#'
4036 AMDEP_FALSE=
4037 fi
4038
4039
4040
4041 depcc="$CC" am_compiler_list=
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044 $as_echo_n "checking dependency style of $depcc... " >&6; }
4045 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4053 # in D'.
4054 mkdir conftest.dir
4055 # Copy depcomp to subdir because otherwise we won't find it if we're
4056 # using a relative directory.
4057 cp "$am_depcomp" conftest.dir
4058 cd conftest.dir
4059 # We will build objects and dependencies in a subdirectory because
4060 # it helps to detect inapplicable dependency modes. For instance
4061 # both Tru64's cc and ICC support -MD to output dependencies as a
4062 # side effect of compilation, but ICC will put the dependencies in
4063 # the current directory while Tru64 will put them in the object
4064 # directory.
4065 mkdir sub
4066
4067 am_cv_CC_dependencies_compiler_type=none
4068 if test "$am_compiler_list" = ""; then
4069 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4070 fi
4071 am__universal=false
4072 case " $depcc " in #(
4073 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4074 esac
4075
4076 for depmode in $am_compiler_list; do
4077 # Setup a source with many dependencies, because some compilers
4078 # like to wrap large dependency lists on column 80 (with \), and
4079 # we should not choose a depcomp mode which is confused by this.
4080 #
4081 # We need to recreate these files for each test, as the compiler may
4082 # overwrite some of them when testing with obscure command lines.
4083 # This happens at least with the AIX C compiler.
4084 : > sub/conftest.c
4085 for i in 1 2 3 4 5 6; do
4086 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4087 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4088 # Solaris 8's {/usr,}/bin/sh.
4089 touch sub/conftst$i.h
4090 done
4091 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4092
4093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4094 # mode. It turns out that the SunPro C++ compiler does not properly
4095 # handle `-M -o', and we need to detect this. Also, some Intel
4096 # versions had trouble with output in subdirs
4097 am__obj=sub/conftest.${OBJEXT-o}
4098 am__minus_obj="-o $am__obj"
4099 case $depmode in
4100 gcc)
4101 # This depmode causes a compiler race in universal mode.
4102 test "$am__universal" = false || continue
4103 ;;
4104 nosideeffect)
4105 # after this tag, mechanisms are not by side-effect, so they'll
4106 # only be used when explicitly requested
4107 if test "x$enable_dependency_tracking" = xyes; then
4108 continue
4109 else
4110 break
4111 fi
4112 ;;
4113 msvisualcpp | msvcmsys)
4114 # This compiler won't grok `-c -o', but also, the minuso test has
4115 # not run yet. These depmodes are late enough in the game, and
4116 # so weak that their functioning should not be impacted.
4117 am__obj=conftest.${OBJEXT-o}
4118 am__minus_obj=
4119 ;;
4120 none) break ;;
4121 esac
4122 if depmode=$depmode \
4123 source=sub/conftest.c object=$am__obj \
4124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4125 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4126 >/dev/null 2>conftest.err &&
4127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4131 # icc doesn't choke on unknown options, it will just issue warnings
4132 # or remarks (even with -Werror). So we grep stderr for any message
4133 # that says an option was ignored or not supported.
4134 # When given -MP, icc 7.0 and 7.1 complain thusly:
4135 # icc: Command line warning: ignoring option '-M'; no argument required
4136 # The diagnosis changed in icc 8.0:
4137 # icc: Command line remark: option '-MP' not supported
4138 if (grep 'ignoring option' conftest.err ||
4139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4140 am_cv_CC_dependencies_compiler_type=$depmode
4141 break
4142 fi
4143 fi
4144 done
4145
4146 cd ..
4147 rm -rf conftest.dir
4148 else
4149 am_cv_CC_dependencies_compiler_type=none
4150 fi
4151
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4154 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4156
4157 if
4158 test "x$enable_dependency_tracking" != xno \
4159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4160 am__fastdepCC_TRUE=
4161 am__fastdepCC_FALSE='#'
4162 else
4163 am__fastdepCC_TRUE='#'
4164 am__fastdepCC_FALSE=
4165 fi
4166
4167
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$RANLIB"; then
4177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 fi
4195 fi
4196 RANLIB=$ac_cv_prog_RANLIB
4197 if test -n "$RANLIB"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4199 $as_echo "$RANLIB" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 fi
4204
4205
4206 fi
4207 if test -z "$ac_cv_prog_RANLIB"; then
4208 ac_ct_RANLIB=$RANLIB
4209 # Extract the first word of "ranlib", so it can be a program name with args.
4210 set dummy ranlib; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$ac_ct_RANLIB"; then
4217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_ac_ct_RANLIB="ranlib"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4237 if test -n "$ac_ct_RANLIB"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4239 $as_echo "$ac_ct_RANLIB" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245 if test "x$ac_ct_RANLIB" = x; then
4246 RANLIB=":"
4247 else
4248 case $cross_compiling:$ac_tool_warned in
4249 yes:)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned=yes ;;
4253 esac
4254 RANLIB=$ac_ct_RANLIB
4255 fi
4256 else
4257 RANLIB="$ac_cv_prog_RANLIB"
4258 fi
4259
4260 # Make sure we can run config.sub.
4261 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4262 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4265 $as_echo_n "checking build system type... " >&6; }
4266 if test "${ac_cv_build+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 ac_build_alias=$build_alias
4270 test "x$ac_build_alias" = x &&
4271 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4272 test "x$ac_build_alias" = x &&
4273 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4274 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4275 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4276
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4279 $as_echo "$ac_cv_build" >&6; }
4280 case $ac_cv_build in
4281 *-*-*) ;;
4282 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4283 esac
4284 build=$ac_cv_build
4285 ac_save_IFS=$IFS; IFS='-'
4286 set x $ac_cv_build
4287 shift
4288 build_cpu=$1
4289 build_vendor=$2
4290 shift; shift
4291 # Remember, the first character of IFS is used to create $*,
4292 # except with old shells:
4293 build_os=$*
4294 IFS=$ac_save_IFS
4295 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4296
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4299 $as_echo_n "checking host system type... " >&6; }
4300 if test "${ac_cv_host+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test "x$host_alias" = x; then
4304 ac_cv_host=$ac_cv_build
4305 else
4306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4307 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4308 fi
4309
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4312 $as_echo "$ac_cv_host" >&6; }
4313 case $ac_cv_host in
4314 *-*-*) ;;
4315 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4316 esac
4317 host=$ac_cv_host
4318 ac_save_IFS=$IFS; IFS='-'
4319 set x $ac_cv_host
4320 shift
4321 host_cpu=$1
4322 host_vendor=$2
4323 shift; shift
4324 # Remember, the first character of IFS is used to create $*,
4325 # except with old shells:
4326 host_os=$*
4327 IFS=$ac_save_IFS
4328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4329
4330
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4339 # On Suns, sometimes $CPP names a directory.
4340 if test -n "$CPP" && test -d "$CPP"; then
4341 CPP=
4342 fi
4343 if test -z "$CPP"; then
4344 if test "${ac_cv_prog_CPP+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 # Double quotes because CPP needs to be expanded
4348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4349 do
4350 ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4352 do
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #ifdef __STDC__
4362 # include <limits.h>
4363 #else
4364 # include <assert.h>
4365 #endif
4366 Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4369
4370 else
4371 # Broken: fails on valid input.
4372 continue
4373 fi
4374 rm -f conftest.err conftest.$ac_ext
4375
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: success on invalid input.
4384 continue
4385 else
4386 # Passes both tests.
4387 ac_preproc_ok=:
4388 break
4389 fi
4390 rm -f conftest.err conftest.$ac_ext
4391
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then :
4396 break
4397 fi
4398
4399 done
4400 ac_cv_prog_CPP=$CPP
4401
4402 fi
4403 CPP=$ac_cv_prog_CPP
4404 else
4405 ac_cv_prog_CPP=$CPP
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4408 $as_echo "$CPP" >&6; }
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4411 do
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4428
4429 else
4430 # Broken: fails on valid input.
4431 continue
4432 fi
4433 rm -f conftest.err conftest.$ac_ext
4434
4435 # OK, works on sane cases. Now check whether nonexistent headers
4436 # can be detected and how.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ac_nonexistent.h>
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442 # Broken: success on invalid input.
4443 continue
4444 else
4445 # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4448 fi
4449 rm -f conftest.err conftest.$ac_ext
4450
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then :
4455
4456 else
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details." "$LINENO" 5; }
4461 fi
4462
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4472 if test "${ac_cv_path_GREP+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -z "$GREP"; then
4476 ac_path_GREP_found=false
4477 # Loop through the user's path and test for each of PROGNAME-LIST
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4480 do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_prog in grep ggrep; do
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4486 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4487 # Check for GNU ac_path_GREP and select it if it is found.
4488 # Check for GNU $ac_path_GREP
4489 case `"$ac_path_GREP" --version 2>&1` in
4490 *GNU*)
4491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4492 *)
4493 ac_count=0
4494 $as_echo_n 0123456789 >"conftest.in"
4495 while :
4496 do
4497 cat "conftest.in" "conftest.in" >"conftest.tmp"
4498 mv "conftest.tmp" "conftest.in"
4499 cp "conftest.in" "conftest.nl"
4500 $as_echo 'GREP' >> "conftest.nl"
4501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4503 as_fn_arith $ac_count + 1 && ac_count=$as_val
4504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4505 # Best one so far, save it but keep looking for a better one
4506 ac_cv_path_GREP="$ac_path_GREP"
4507 ac_path_GREP_max=$ac_count
4508 fi
4509 # 10*(2^10) chars as input seems more than enough
4510 test $ac_count -gt 10 && break
4511 done
4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513 esac
4514
4515 $ac_path_GREP_found && break 3
4516 done
4517 done
4518 done
4519 IFS=$as_save_IFS
4520 if test -z "$ac_cv_path_GREP"; then
4521 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4522 fi
4523 else
4524 ac_cv_path_GREP=$GREP
4525 fi
4526
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4529 $as_echo "$ac_cv_path_GREP" >&6; }
4530 GREP="$ac_cv_path_GREP"
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4534 $as_echo_n "checking for egrep... " >&6; }
4535 if test "${ac_cv_path_EGREP+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4539 then ac_cv_path_EGREP="$GREP -E"
4540 else
4541 if test -z "$EGREP"; then
4542 ac_path_EGREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in egrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4558 *)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP="$ac_path_EGREP"
4573 ac_path_EGREP_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581 $ac_path_EGREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_EGREP"; then
4587 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588 fi
4589 else
4590 ac_cv_path_EGREP=$EGREP
4591 fi
4592
4593 fi
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4596 $as_echo "$ac_cv_path_EGREP" >&6; }
4597 EGREP="$ac_cv_path_EGREP"
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4601 $as_echo_n "checking for ANSI C header files... " >&6; }
4602 if test "${ac_cv_header_stdc+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <stdlib.h>
4608 #include <stdarg.h>
4609 #include <string.h>
4610 #include <float.h>
4611
4612 int
4613 main ()
4614 {
4615
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_header_stdc=yes
4622 else
4623 ac_cv_header_stdc=no
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626
4627 if test $ac_cv_header_stdc = yes; then
4628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <string.h>
4632
4633 _ACEOF
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "memchr" >/dev/null 2>&1; then :
4636
4637 else
4638 ac_cv_header_stdc=no
4639 fi
4640 rm -f conftest*
4641
4642 fi
4643
4644 if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <stdlib.h>
4649
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "free" >/dev/null 2>&1; then :
4653
4654 else
4655 ac_cv_header_stdc=no
4656 fi
4657 rm -f conftest*
4658
4659 fi
4660
4661 if test $ac_cv_header_stdc = yes; then
4662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663 if test "$cross_compiling" = yes; then :
4664 :
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <ctype.h>
4669 #include <stdlib.h>
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 #else
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #endif
4680
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4682 int
4683 main ()
4684 {
4685 int i;
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4689 return 2;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_run "$LINENO"; then :
4694
4695 else
4696 ac_cv_header_stdc=no
4697 fi
4698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4699 conftest.$ac_objext conftest.beam conftest.$ac_ext
4700 fi
4701
4702 fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4705 $as_echo "$ac_cv_header_stdc" >&6; }
4706 if test $ac_cv_header_stdc = yes; then
4707
4708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4709
4710 fi
4711
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714 inttypes.h stdint.h unistd.h
4715 do :
4716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4718 "
4719 eval as_val=\$$as_ac_Header
4720 if test "x$as_val" = x""yes; then :
4721 cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 _ACEOF
4724
4725 fi
4726
4727 done
4728
4729
4730
4731
4732
4733 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4734 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4735 MINIX=yes
4736 else
4737 MINIX=
4738 fi
4739
4740
4741 if test "$MINIX" = yes; then
4742
4743 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4744
4745
4746 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4747
4748
4749 $as_echo "#define _MINIX 1" >>confdefs.h
4750
4751 fi
4752
4753 case "$host_os" in
4754 hpux*)
4755
4756 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4757
4758 ;;
4759 esac
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4763 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4764 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769
4770 # define __EXTENSIONS__ 1
4771 $ac_includes_default
4772 int
4773 main ()
4774 {
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_safe_to_define___extensions__=yes
4782 else
4783 ac_cv_safe_to_define___extensions__=no
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4788 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4789 test $ac_cv_safe_to_define___extensions__ = yes &&
4790 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4791
4792 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4793
4794 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4795
4796 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4797
4798 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 # for gnulib
4812
4813
4814
4815
4816
4817 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4818 # for constant arguments. Useless!
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4820 $as_echo_n "checking for working alloca.h... " >&6; }
4821 if test "${ac_cv_working_alloca_h+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <alloca.h>
4827 int
4828 main ()
4829 {
4830 char *p = (char *) alloca (2 * sizeof (int));
4831 if (p) return 0;
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 if ac_fn_c_try_link "$LINENO"; then :
4837 ac_cv_working_alloca_h=yes
4838 else
4839 ac_cv_working_alloca_h=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext \
4842 conftest$ac_exeext conftest.$ac_ext
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4845 $as_echo "$ac_cv_working_alloca_h" >&6; }
4846 if test $ac_cv_working_alloca_h = yes; then
4847
4848 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4849
4850 fi
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4853 $as_echo_n "checking for alloca... " >&6; }
4854 if test "${ac_cv_func_alloca_works+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #ifdef __GNUC__
4860 # define alloca __builtin_alloca
4861 #else
4862 # ifdef _MSC_VER
4863 # include <malloc.h>
4864 # define alloca _alloca
4865 # else
4866 # ifdef HAVE_ALLOCA_H
4867 # include <alloca.h>
4868 # else
4869 # ifdef _AIX
4870 #pragma alloca
4871 # else
4872 # ifndef alloca /* predefined by HP cc +Olibcalls */
4873 char *alloca ();
4874 # endif
4875 # endif
4876 # endif
4877 # endif
4878 #endif
4879
4880 int
4881 main ()
4882 {
4883 char *p = (char *) alloca (1);
4884 if (p) return 0;
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_link "$LINENO"; then :
4890 ac_cv_func_alloca_works=yes
4891 else
4892 ac_cv_func_alloca_works=no
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext \
4895 conftest$ac_exeext conftest.$ac_ext
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4898 $as_echo "$ac_cv_func_alloca_works" >&6; }
4899
4900 if test $ac_cv_func_alloca_works = yes; then
4901
4902 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4903
4904 else
4905 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4906 # that cause trouble. Some versions do not even contain alloca or
4907 # contain a buggy version. If you still want to use their alloca,
4908 # use ar to extract alloca.o from them instead of compiling alloca.c.
4909
4910
4911
4912
4913
4914 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4915
4916 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4920 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4921 if test "${ac_cv_os_cray+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #if defined CRAY && ! defined CRAY2
4927 webecray
4928 #else
4929 wenotbecray
4930 #endif
4931
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934 $EGREP "webecray" >/dev/null 2>&1; then :
4935 ac_cv_os_cray=yes
4936 else
4937 ac_cv_os_cray=no
4938 fi
4939 rm -f conftest*
4940
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4943 $as_echo "$ac_cv_os_cray" >&6; }
4944 if test $ac_cv_os_cray = yes; then
4945 for ac_func in _getb67 GETB67 getb67; do
4946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4948 eval as_val=\$$as_ac_var
4949 if test "x$as_val" = x""yes; then :
4950
4951 cat >>confdefs.h <<_ACEOF
4952 #define CRAY_STACKSEG_END $ac_func
4953 _ACEOF
4954
4955 break
4956 fi
4957
4958 done
4959 fi
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4962 $as_echo_n "checking stack direction for C alloca... " >&6; }
4963 if test "${ac_cv_c_stack_direction+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test "$cross_compiling" = yes; then :
4967 ac_cv_c_stack_direction=0
4968 else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 $ac_includes_default
4972 int
4973 find_stack_direction ()
4974 {
4975 static char *addr = 0;
4976 auto char dummy;
4977 if (addr == 0)
4978 {
4979 addr = &dummy;
4980 return find_stack_direction ();
4981 }
4982 else
4983 return (&dummy > addr) ? 1 : -1;
4984 }
4985
4986 int
4987 main ()
4988 {
4989 return find_stack_direction () < 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_run "$LINENO"; then :
4993 ac_cv_c_stack_direction=1
4994 else
4995 ac_cv_c_stack_direction=-1
4996 fi
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4998 conftest.$ac_objext conftest.beam conftest.$ac_ext
4999 fi
5000
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5003 $as_echo "$ac_cv_c_stack_direction" >&6; }
5004 cat >>confdefs.h <<_ACEOF
5005 #define STACK_DIRECTION $ac_cv_c_stack_direction
5006 _ACEOF
5007
5008
5009 fi
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5012 $as_echo_n "checking for inline... " >&6; }
5013 if test "${ac_cv_c_inline+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 ac_cv_c_inline=no
5017 for ac_kw in inline __inline__ __inline; do
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #ifndef __cplusplus
5021 typedef int foo_t;
5022 static $ac_kw foo_t static_foo () {return 0; }
5023 $ac_kw foo_t foo () {return 0; }
5024 #endif
5025
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 ac_cv_c_inline=$ac_kw
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 test "$ac_cv_c_inline" != no && break
5032 done
5033
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5036 $as_echo "$ac_cv_c_inline" >&6; }
5037
5038 case $ac_cv_c_inline in
5039 inline | yes) ;;
5040 *)
5041 case $ac_cv_c_inline in
5042 no) ac_val=;;
5043 *) ac_val=$ac_cv_c_inline;;
5044 esac
5045 cat >>confdefs.h <<_ACEOF
5046 #ifndef __cplusplus
5047 #define inline $ac_val
5048 #endif
5049 _ACEOF
5050 ;;
5051 esac
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5054 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5055 if test "${ac_cv_c_restrict+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 ac_cv_c_restrict=no
5059 # The order here caters to the fact that C++ does not require restrict.
5060 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 typedef int * int_ptr;
5064 int foo (int_ptr $ac_kw ip) {
5065 return ip[0];
5066 }
5067 int
5068 main ()
5069 {
5070 int s[1];
5071 int * $ac_kw t = s;
5072 t[0] = 0;
5073 return foo(t)
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_c_restrict=$ac_kw
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 test "$ac_cv_c_restrict" != no && break
5083 done
5084
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5087 $as_echo "$ac_cv_c_restrict" >&6; }
5088
5089 case $ac_cv_c_restrict in
5090 restrict) ;;
5091 no) $as_echo "#define restrict /**/" >>confdefs.h
5092 ;;
5093 *) cat >>confdefs.h <<_ACEOF
5094 #define restrict $ac_cv_c_restrict
5095 _ACEOF
5096 ;;
5097 esac
5098
5099
5100 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
5101 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
5102 ac_have_decl=1
5103 else
5104 ac_have_decl=0
5105 fi
5106
5107 cat >>confdefs.h <<_ACEOF
5108 #define HAVE_DECL_GETENV $ac_have_decl
5109 _ACEOF
5110
5111
5112
5113 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5114 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5115 ac_have_decl=1
5116 else
5117 ac_have_decl=0
5118 fi
5119
5120 cat >>confdefs.h <<_ACEOF
5121 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5122 _ACEOF
5123
5124
5125
5126 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5127 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5128 ac_have_decl=1
5129 else
5130 ac_have_decl=0
5131 fi
5132
5133 cat >>confdefs.h <<_ACEOF
5134 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5135 _ACEOF
5136
5137
5138
5139 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5140 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5141 ac_have_decl=1
5142 else
5143 ac_have_decl=0
5144 fi
5145
5146 cat >>confdefs.h <<_ACEOF
5147 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5148 _ACEOF
5149
5150
5151
5152 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5153 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5154 ac_have_decl=1
5155 else
5156 ac_have_decl=0
5157 fi
5158
5159 cat >>confdefs.h <<_ACEOF
5160 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5161 _ACEOF
5162
5163
5164
5165 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5166 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5167 ac_have_decl=1
5168 else
5169 ac_have_decl=0
5170 fi
5171
5172 cat >>confdefs.h <<_ACEOF
5173 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5174 _ACEOF
5175
5176
5177
5178 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5179 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5180 ac_have_decl=1
5181 else
5182 ac_have_decl=0
5183 fi
5184
5185 cat >>confdefs.h <<_ACEOF
5186 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5187 _ACEOF
5188
5189
5190
5191 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5192 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5193 ac_have_decl=1
5194 else
5195 ac_have_decl=0
5196 fi
5197
5198 cat >>confdefs.h <<_ACEOF
5199 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5200 _ACEOF
5201
5202
5203
5204 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5205 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5206 ac_have_decl=1
5207 else
5208 ac_have_decl=0
5209 fi
5210
5211 cat >>confdefs.h <<_ACEOF
5212 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5213 _ACEOF
5214
5215
5216
5217 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5218 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5219 ac_have_decl=1
5220 else
5221 ac_have_decl=0
5222 fi
5223
5224 cat >>confdefs.h <<_ACEOF
5225 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5226 _ACEOF
5227
5228
5229
5230 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5231 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5232 ac_have_decl=1
5233 else
5234 ac_have_decl=0
5235 fi
5236
5237 cat >>confdefs.h <<_ACEOF
5238 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5239 _ACEOF
5240
5241
5242
5243 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5244 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5245 ac_have_decl=1
5246 else
5247 ac_have_decl=0
5248 fi
5249
5250 cat >>confdefs.h <<_ACEOF
5251 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5252 _ACEOF
5253
5254
5255
5256 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5257 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5258 ac_have_decl=1
5259 else
5260 ac_have_decl=0
5261 fi
5262
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5265 _ACEOF
5266
5267
5268
5269 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5270 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5271 ac_have_decl=1
5272 else
5273 ac_have_decl=0
5274 fi
5275
5276 cat >>confdefs.h <<_ACEOF
5277 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5278 _ACEOF
5279
5280
5281
5282
5283
5284
5285 for ac_func in $gl_func_list
5286 do :
5287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5289 eval as_val=\$$as_ac_var
5290 if test "x$as_val" = x""yes; then :
5291 cat >>confdefs.h <<_ACEOF
5292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5293 _ACEOF
5294
5295 fi
5296 done
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 for ac_header in $gl_header_list
5312 do :
5313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5315 eval as_val=\$$as_ac_Header
5316 if test "x$as_val" = x""yes; then :
5317 cat >>confdefs.h <<_ACEOF
5318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5319 _ACEOF
5320
5321 fi
5322
5323 done
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335 XGETTEXT_EXTRA_OPTIONS=
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
5339 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
5340 if test "${ac_cv_win_or_dos+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346
5347 int
5348 main ()
5349 {
5350 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
5351 neither MSDOS nor Windows
5352 #endif
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 ac_cv_win_or_dos=yes
5359 else
5360 ac_cv_win_or_dos=no
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
5366 $as_echo "$ac_cv_win_or_dos" >&6; }
5367
5368 if test x"$ac_cv_win_or_dos" = xyes; then
5369 ac_fs_accepts_drive_letter_prefix=1
5370 ac_fs_backslash_is_file_name_separator=1
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
5372 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
5373 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379
5380 int
5381 main ()
5382 {
5383 #if defined __CYGWIN__
5384 drive letters are always absolute
5385 #endif
5386 ;
5387 return 0;
5388 }
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 ac_cv_drive_letter_can_be_relative=yes
5392 else
5393 ac_cv_drive_letter_can_be_relative=no
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
5399 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
5400 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
5401 ac_fs_drive_letter_can_be_relative=1
5402 else
5403 ac_fs_drive_letter_can_be_relative=0
5404 fi
5405 else
5406 ac_fs_accepts_drive_letter_prefix=0
5407 ac_fs_backslash_is_file_name_separator=0
5408 ac_fs_drive_letter_can_be_relative=0
5409 fi
5410
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
5414 _ACEOF
5415
5416
5417
5418
5419
5420 cat >>confdefs.h <<_ACEOF
5421 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
5422 _ACEOF
5423
5424
5425
5426 cat >>confdefs.h <<_ACEOF
5427 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
5428 _ACEOF
5429
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
5434 $as_echo_n "checking whether // is distinct from /... " >&6; }
5435 if test "${gl_cv_double_slash_root+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test x"$cross_compiling" = xyes ; then
5439 # When cross-compiling, there is no way to tell whether // is special
5440 # short of a list of hosts. However, the only known hosts to date
5441 # that have a distinct // are Apollo DomainOS (too old to port to),
5442 # Cygwin, and z/OS. If anyone knows of another system for which // has
5443 # special semantics and is distinct from /, please report it to
5444 # <bug-gnulib@gnu.org>.
5445 case $host in
5446 *-cygwin | i370-ibm-openedition)
5447 gl_cv_double_slash_root=yes ;;
5448 *)
5449 # Be optimistic and assume that / and // are the same when we
5450 # don't know.
5451 gl_cv_double_slash_root='unknown, assuming no' ;;
5452 esac
5453 else
5454 set x `ls -di / // 2>/dev/null`
5455 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
5456 gl_cv_double_slash_root=no
5457 else
5458 gl_cv_double_slash_root=yes
5459 fi
5460 fi
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
5463 $as_echo "$gl_cv_double_slash_root" >&6; }
5464 if test "$gl_cv_double_slash_root" = yes; then
5465
5466 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
5467
5468 fi
5469
5470
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5473 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5474 if test "${gl_cv_have_include_next+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 rm -rf conftestd1a conftestd1b conftestd2
5478 mkdir conftestd1a conftestd1b conftestd2
5479 cat <<EOF > conftestd1a/conftest.h
5480 #define DEFINED_IN_CONFTESTD1
5481 #include_next <conftest.h>
5482 #ifdef DEFINED_IN_CONFTESTD2
5483 int foo;
5484 #else
5485 #error "include_next doesn't work"
5486 #endif
5487 EOF
5488 cat <<EOF > conftestd1b/conftest.h
5489 #define DEFINED_IN_CONFTESTD1
5490 #include <stdio.h>
5491 #include_next <conftest.h>
5492 #ifdef DEFINED_IN_CONFTESTD2
5493 int foo;
5494 #else
5495 #error "include_next doesn't work"
5496 #endif
5497 EOF
5498 cat <<EOF > conftestd2/conftest.h
5499 #ifndef DEFINED_IN_CONFTESTD1
5500 #error "include_next test doesn't work"
5501 #endif
5502 #define DEFINED_IN_CONFTESTD2
5503 EOF
5504 gl_save_CPPFLAGS="$CPPFLAGS"
5505 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include <conftest.h>
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 gl_cv_have_include_next=yes
5512 else
5513 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #include <conftest.h>
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 gl_cv_have_include_next=buggy
5520 else
5521 gl_cv_have_include_next=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 CPPFLAGS="$gl_save_CPPFLAGS"
5528 rm -rf conftestd1a conftestd1b conftestd2
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5532 $as_echo "$gl_cv_have_include_next" >&6; }
5533 PRAGMA_SYSTEM_HEADER=
5534 if test $gl_cv_have_include_next = yes; then
5535 INCLUDE_NEXT=include_next
5536 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5537 if test -n "$GCC"; then
5538 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5539 fi
5540 else
5541 if test $gl_cv_have_include_next = buggy; then
5542 INCLUDE_NEXT=include
5543 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5544 else
5545 INCLUDE_NEXT=include
5546 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5547 fi
5548 fi
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5561 $as_echo_n "checking for complete errno.h... " >&6; }
5562 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568
5569 #include <errno.h>
5570 #if !defined ENOMSG
5571 booboo
5572 #endif
5573 #if !defined EIDRM
5574 booboo
5575 #endif
5576 #if !defined ENOLINK
5577 booboo
5578 #endif
5579 #if !defined EPROTO
5580 booboo
5581 #endif
5582 #if !defined EMULTIHOP
5583 booboo
5584 #endif
5585 #if !defined EBADMSG
5586 booboo
5587 #endif
5588 #if !defined EOVERFLOW
5589 booboo
5590 #endif
5591 #if !defined ENOTSUP
5592 booboo
5593 #endif
5594 #if !defined ECANCELED
5595 booboo
5596 #endif
5597
5598 _ACEOF
5599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5600 $EGREP "booboo" >/dev/null 2>&1; then :
5601 gl_cv_header_errno_h_complete=no
5602 else
5603 gl_cv_header_errno_h_complete=yes
5604 fi
5605 rm -f conftest*
5606
5607
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5610 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
5611 if test $gl_cv_header_errno_h_complete = yes; then
5612 ERRNO_H=''
5613 else
5614
5615
5616
5617
5618 :
5619
5620
5621
5622
5623
5624
5625
5626 if test $gl_cv_have_include_next = yes; then
5627 gl_cv_next_errno_h='<'errno.h'>'
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5630 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
5631 if test "${gl_cv_next_errno_h+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634
5635 if test $ac_cv_header_errno_h = yes; then
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <errno.h>
5639
5640 _ACEOF
5641 case "$host_os" in
5642 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5643 *) gl_absname_cpp="$ac_cpp" ;;
5644 esac
5645 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5646 sed -n '\#/errno.h#{
5647 s#.*"\(.*/errno.h\)".*#\1#
5648 s#^/[^/]#//&#
5649 p
5650 q
5651 }'`'"'
5652 else
5653 gl_cv_next_errno_h='<'errno.h'>'
5654 fi
5655
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
5658 $as_echo "$gl_cv_next_errno_h" >&6; }
5659 fi
5660 NEXT_ERRNO_H=$gl_cv_next_errno_h
5661
5662
5663
5664 ERRNO_H='errno.h'
5665 fi
5666
5667
5668 if test -n "$ERRNO_H"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
5670 $as_echo_n "checking for EMULTIHOP value... " >&6; }
5671 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677
5678 #include <errno.h>
5679 #ifdef EMULTIHOP
5680 yes
5681 #endif
5682
5683 _ACEOF
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "yes" >/dev/null 2>&1; then :
5686 gl_cv_header_errno_h_EMULTIHOP=yes
5687 else
5688 gl_cv_header_errno_h_EMULTIHOP=no
5689 fi
5690 rm -f conftest*
5691
5692 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695
5696 #define _XOPEN_SOURCE_EXTENDED 1
5697 #include <errno.h>
5698 #ifdef EMULTIHOP
5699 yes
5700 #endif
5701
5702 _ACEOF
5703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5704 $EGREP "yes" >/dev/null 2>&1; then :
5705 gl_cv_header_errno_h_EMULTIHOP=hidden
5706 fi
5707 rm -f conftest*
5708
5709 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
5710 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
5711 #define _XOPEN_SOURCE_EXTENDED 1
5712 #include <errno.h>
5713 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5714 #include <stdio.h>
5715 #include <stdlib.h>
5716 "; then :
5717
5718 fi
5719
5720 fi
5721 fi
5722
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
5725 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
5726 case $gl_cv_header_errno_h_EMULTIHOP in
5727 yes | no)
5728 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
5729 ;;
5730 *)
5731 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
5732 ;;
5733 esac
5734
5735
5736 fi
5737
5738
5739 if test -n "$ERRNO_H"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
5741 $as_echo_n "checking for ENOLINK value... " >&6; }
5742 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748
5749 #include <errno.h>
5750 #ifdef ENOLINK
5751 yes
5752 #endif
5753
5754 _ACEOF
5755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5756 $EGREP "yes" >/dev/null 2>&1; then :
5757 gl_cv_header_errno_h_ENOLINK=yes
5758 else
5759 gl_cv_header_errno_h_ENOLINK=no
5760 fi
5761 rm -f conftest*
5762
5763 if test $gl_cv_header_errno_h_ENOLINK = no; then
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766
5767 #define _XOPEN_SOURCE_EXTENDED 1
5768 #include <errno.h>
5769 #ifdef ENOLINK
5770 yes
5771 #endif
5772
5773 _ACEOF
5774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5775 $EGREP "yes" >/dev/null 2>&1; then :
5776 gl_cv_header_errno_h_ENOLINK=hidden
5777 fi
5778 rm -f conftest*
5779
5780 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
5781 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
5782 #define _XOPEN_SOURCE_EXTENDED 1
5783 #include <errno.h>
5784 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5785 #include <stdio.h>
5786 #include <stdlib.h>
5787 "; then :
5788
5789 fi
5790
5791 fi
5792 fi
5793
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
5796 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
5797 case $gl_cv_header_errno_h_ENOLINK in
5798 yes | no)
5799 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
5800 ;;
5801 *)
5802 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
5803 ;;
5804 esac
5805
5806
5807 fi
5808
5809
5810 if test -n "$ERRNO_H"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
5812 $as_echo_n "checking for EOVERFLOW value... " >&6; }
5813 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819
5820 #include <errno.h>
5821 #ifdef EOVERFLOW
5822 yes
5823 #endif
5824
5825 _ACEOF
5826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827 $EGREP "yes" >/dev/null 2>&1; then :
5828 gl_cv_header_errno_h_EOVERFLOW=yes
5829 else
5830 gl_cv_header_errno_h_EOVERFLOW=no
5831 fi
5832 rm -f conftest*
5833
5834 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837
5838 #define _XOPEN_SOURCE_EXTENDED 1
5839 #include <errno.h>
5840 #ifdef EOVERFLOW
5841 yes
5842 #endif
5843
5844 _ACEOF
5845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5846 $EGREP "yes" >/dev/null 2>&1; then :
5847 gl_cv_header_errno_h_EOVERFLOW=hidden
5848 fi
5849 rm -f conftest*
5850
5851 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
5852 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
5853 #define _XOPEN_SOURCE_EXTENDED 1
5854 #include <errno.h>
5855 /* The following two lines are a workaround against an autoconf-2.52 bug. */
5856 #include <stdio.h>
5857 #include <stdlib.h>
5858 "; then :
5859
5860 fi
5861
5862 fi
5863 fi
5864
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
5867 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
5868 case $gl_cv_header_errno_h_EOVERFLOW in
5869 yes | no)
5870 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
5871 ;;
5872 *)
5873 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
5874 ;;
5875 esac
5876
5877
5878 fi
5879
5880
5881 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5882 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
5883 ac_have_decl=1
5884 else
5885 ac_have_decl=0
5886 fi
5887
5888 cat >>confdefs.h <<_ACEOF
5889 #define HAVE_DECL_STRERROR_R $ac_have_decl
5890 _ACEOF
5891
5892 for ac_func in strerror_r
5893 do :
5894 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5895 if test "x$ac_cv_func_strerror_r" = x""yes; then :
5896 cat >>confdefs.h <<_ACEOF
5897 #define HAVE_STRERROR_R 1
5898 _ACEOF
5899
5900 fi
5901 done
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5904 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5905 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908
5909 ac_cv_func_strerror_r_char_p=no
5910 if test $ac_cv_have_decl_strerror_r = yes; then
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 $ac_includes_default
5914 int
5915 main ()
5916 {
5917
5918 char buf[100];
5919 char x = *strerror_r (0, buf, sizeof buf);
5920 char *p = strerror_r (0, buf, sizeof buf);
5921 return !p || x;
5922
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 ac_cv_func_strerror_r_char_p=yes
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 else
5932 # strerror_r is not declared. Choose between
5933 # systems that have relatively inaccessible declarations for the
5934 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5935 # former has a strerror_r that returns char*, while the latter
5936 # has a strerror_r that returns `int'.
5937 # This test should segfault on the DEC system.
5938 if test "$cross_compiling" = yes; then :
5939 :
5940 else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 extern char *strerror_r ();
5945 int
5946 main ()
5947 {
5948 char buf[100];
5949 char x = *strerror_r (0, buf, sizeof buf);
5950 return ! isalpha (x);
5951 ;
5952 return 0;
5953 }
5954 _ACEOF
5955 if ac_fn_c_try_run "$LINENO"; then :
5956 ac_cv_func_strerror_r_char_p=yes
5957 fi
5958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5959 conftest.$ac_objext conftest.beam conftest.$ac_ext
5960 fi
5961
5962 fi
5963
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5966 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5967 if test $ac_cv_func_strerror_r_char_p = yes; then
5968
5969 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5970
5971 fi
5972
5973
5974
5975
5976
5977
5978
5979 if test -z "$GETOPT_H"; then
5980 for ac_header in getopt.h
5981 do :
5982 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5983 if test "x$ac_cv_header_getopt_h" = x""yes; then :
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE_GETOPT_H 1
5986 _ACEOF
5987
5988 else
5989 GETOPT_H=getopt.h
5990 fi
5991
5992 done
5993
5994 fi
5995
5996 if test -z "$GETOPT_H"; then
5997 for ac_func in getopt_long_only
5998 do :
5999 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
6000 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
6001 cat >>confdefs.h <<_ACEOF
6002 #define HAVE_GETOPT_LONG_ONLY 1
6003 _ACEOF
6004
6005 else
6006 GETOPT_H=getopt.h
6007 fi
6008 done
6009
6010 fi
6011
6012 if test -z "$GETOPT_H"; then
6013 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
6014 "
6015 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
6016 GETOPT_H=getopt.h
6017 fi
6018
6019 fi
6020
6021 if test -z "$GETOPT_H"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
6023 $as_echo_n "checking for working GNU getopt function... " >&6; }
6024 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test "$cross_compiling" = yes; then :
6028 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
6029 "
6030 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
6031 gl_cv_func_gnu_getopt=no
6032 else
6033 gl_cv_func_gnu_getopt=yes
6034 fi
6035
6036 else
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #include <getopt.h>
6040 int
6041 main ()
6042 {
6043
6044 char *myargv[3];
6045 myargv[0] = "conftest";
6046 myargv[1] = "-+";
6047 myargv[2] = 0;
6048 return getopt (2, myargv, "+a") != '?';
6049
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_run "$LINENO"; then :
6055 gl_cv_func_gnu_getopt=yes
6056 else
6057 gl_cv_func_gnu_getopt=no
6058 fi
6059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6060 conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 fi
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
6065 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
6066 if test "$gl_cv_func_gnu_getopt" = "no"; then
6067 GETOPT_H=getopt.h
6068 fi
6069 fi
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
6073 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
6074 if test "${gl_cv_func_malloc_posix+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080
6081 int
6082 main ()
6083 {
6084 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6085 choke me
6086 #endif
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 gl_cv_func_malloc_posix=yes
6094 else
6095 gl_cv_func_malloc_posix=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
6101 $as_echo "$gl_cv_func_malloc_posix" >&6; }
6102
6103
6104 GNULIB_MALLOC_POSIX=0;
6105 GNULIB_REALLOC_POSIX=0;
6106 GNULIB_CALLOC_POSIX=0;
6107 GNULIB_ATOLL=0;
6108 GNULIB_GETLOADAVG=0;
6109 GNULIB_GETSUBOPT=0;
6110 GNULIB_MKDTEMP=0;
6111 GNULIB_MKSTEMP=0;
6112 GNULIB_PUTENV=0;
6113 GNULIB_RANDOM_R=0;
6114 GNULIB_RPMATCH=0;
6115 GNULIB_SETENV=0;
6116 GNULIB_STRTOD=0;
6117 GNULIB_STRTOLL=0;
6118 GNULIB_STRTOULL=0;
6119 GNULIB_UNSETENV=0;
6120 HAVE_ATOLL=1;
6121 HAVE_CALLOC_POSIX=1;
6122 HAVE_GETSUBOPT=1;
6123 HAVE_MALLOC_POSIX=1;
6124 HAVE_MKDTEMP=1;
6125 HAVE_REALLOC_POSIX=1;
6126 HAVE_RANDOM_R=1;
6127 HAVE_RPMATCH=1;
6128 HAVE_SETENV=1;
6129 HAVE_STRTOD=1;
6130 HAVE_STRTOLL=1;
6131 HAVE_STRTOULL=1;
6132 HAVE_STRUCT_RANDOM_DATA=1;
6133 HAVE_SYS_LOADAVG_H=0;
6134 HAVE_UNSETENV=1;
6135 HAVE_DECL_GETLOADAVG=1;
6136 REPLACE_MKSTEMP=0;
6137 REPLACE_PUTENV=0;
6138 REPLACE_STRTOD=0;
6139 VOID_UNSETENV=0;
6140
6141
6142 GNULIB_MEMMEM=0;
6143 GNULIB_MEMPCPY=0;
6144 GNULIB_MEMRCHR=0;
6145 GNULIB_RAWMEMCHR=0;
6146 GNULIB_STPCPY=0;
6147 GNULIB_STPNCPY=0;
6148 GNULIB_STRCHRNUL=0;
6149 GNULIB_STRDUP=0;
6150 GNULIB_STRNDUP=0;
6151 GNULIB_STRNLEN=0;
6152 GNULIB_STRPBRK=0;
6153 GNULIB_STRSEP=0;
6154 GNULIB_STRSTR=0;
6155 GNULIB_STRCASESTR=0;
6156 GNULIB_STRTOK_R=0;
6157 GNULIB_MBSLEN=0;
6158 GNULIB_MBSNLEN=0;
6159 GNULIB_MBSCHR=0;
6160 GNULIB_MBSRCHR=0;
6161 GNULIB_MBSSTR=0;
6162 GNULIB_MBSCASECMP=0;
6163 GNULIB_MBSNCASECMP=0;
6164 GNULIB_MBSPCASECMP=0;
6165 GNULIB_MBSCASESTR=0;
6166 GNULIB_MBSCSPN=0;
6167 GNULIB_MBSPBRK=0;
6168 GNULIB_MBSSPN=0;
6169 GNULIB_MBSSEP=0;
6170 GNULIB_MBSTOK_R=0;
6171 GNULIB_STRERROR=0;
6172 GNULIB_STRSIGNAL=0;
6173 GNULIB_STRVERSCMP=0;
6174 HAVE_DECL_MEMMEM=1;
6175 HAVE_MEMPCPY=1;
6176 HAVE_DECL_MEMRCHR=1;
6177 HAVE_RAWMEMCHR=1;
6178 HAVE_STPCPY=1;
6179 HAVE_STPNCPY=1;
6180 HAVE_STRCHRNUL=1;
6181 HAVE_DECL_STRDUP=1;
6182 HAVE_STRNDUP=1;
6183 HAVE_DECL_STRNDUP=1;
6184 HAVE_DECL_STRNLEN=1;
6185 HAVE_STRPBRK=1;
6186 HAVE_STRSEP=1;
6187 HAVE_STRCASESTR=1;
6188 HAVE_DECL_STRTOK_R=1;
6189 HAVE_DECL_STRERROR=1;
6190 HAVE_DECL_STRSIGNAL=1;
6191 HAVE_STRVERSCMP=1;
6192 REPLACE_MEMMEM=0;
6193 REPLACE_STRDUP=0;
6194 REPLACE_STRSTR=0;
6195 REPLACE_STRCASESTR=0;
6196 REPLACE_STRERROR=0;
6197 REPLACE_STRSIGNAL=0;
6198
6199
6200 gl_cv_c_multiarch=no
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #ifndef __APPLE_CC__
6204 not a universal capable compiler
6205 #endif
6206 typedef int dummy;
6207
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210
6211 arch=
6212 prev=
6213 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6214 if test -n "$prev"; then
6215 case $word in
6216 i?86 | x86_64 | ppc | ppc64)
6217 if test -z "$arch" || test "$arch" = "$word"; then
6218 arch="$word"
6219 else
6220 gl_cv_c_multiarch=yes
6221 fi
6222 ;;
6223 esac
6224 prev=
6225 else
6226 if test "x$word" = "x-arch"; then
6227 prev=arch
6228 fi
6229 fi
6230 done
6231
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 if test $gl_cv_c_multiarch = yes; then
6235
6236 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6237
6238 APPLE_UNIVERSAL_BUILD=1
6239 else
6240 APPLE_UNIVERSAL_BUILD=0
6241 fi
6242
6243
6244
6245 GNULIB_CHOWN=0;
6246 GNULIB_CLOSE=0;
6247 GNULIB_DUP2=0;
6248 GNULIB_ENVIRON=0;
6249 GNULIB_EUIDACCESS=0;
6250 GNULIB_FCHDIR=0;
6251 GNULIB_FSYNC=0;
6252 GNULIB_FTRUNCATE=0;
6253 GNULIB_GETCWD=0;
6254 GNULIB_GETDOMAINNAME=0;
6255 GNULIB_GETDTABLESIZE=0;
6256 GNULIB_GETHOSTNAME=0;
6257 GNULIB_GETLOGIN_R=0;
6258 GNULIB_GETPAGESIZE=0;
6259 GNULIB_GETUSERSHELL=0;
6260 GNULIB_LCHOWN=0;
6261 GNULIB_LINK=0;
6262 GNULIB_LSEEK=0;
6263 GNULIB_READLINK=0;
6264 GNULIB_SLEEP=0;
6265 GNULIB_UNISTD_H_SIGPIPE=0;
6266 GNULIB_WRITE=0;
6267 HAVE_DUP2=1;
6268 HAVE_EUIDACCESS=1;
6269 HAVE_FSYNC=1;
6270 HAVE_FTRUNCATE=1;
6271 HAVE_GETDOMAINNAME=1;
6272 HAVE_GETDTABLESIZE=1;
6273 HAVE_GETHOSTNAME=1;
6274 HAVE_GETPAGESIZE=1;
6275 HAVE_GETUSERSHELL=1;
6276 HAVE_LINK=1;
6277 HAVE_READLINK=1;
6278 HAVE_SLEEP=1;
6279 HAVE_DECL_ENVIRON=1;
6280 HAVE_DECL_GETLOGIN_R=1;
6281 HAVE_OS_H=0;
6282 HAVE_SYS_PARAM_H=0;
6283 REPLACE_CHOWN=0;
6284 REPLACE_CLOSE=0;
6285 REPLACE_FCHDIR=0;
6286 REPLACE_GETCWD=0;
6287 REPLACE_GETPAGESIZE=0;
6288 REPLACE_LCHOWN=0;
6289 REPLACE_LSEEK=0;
6290 REPLACE_WRITE=0;
6291 UNISTD_H_HAVE_WINSOCK2_H=0;
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6294 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6295 if test "${ac_cv_header_stdbool_h+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300
6301 #include <stdbool.h>
6302 #ifndef bool
6303 "error: bool is not defined"
6304 #endif
6305 #ifndef false
6306 "error: false is not defined"
6307 #endif
6308 #if false
6309 "error: false is not 0"
6310 #endif
6311 #ifndef true
6312 "error: true is not defined"
6313 #endif
6314 #if true != 1
6315 "error: true is not 1"
6316 #endif
6317 #ifndef __bool_true_false_are_defined
6318 "error: __bool_true_false_are_defined is not defined"
6319 #endif
6320
6321 struct s { _Bool s: 1; _Bool t; } s;
6322
6323 char a[true == 1 ? 1 : -1];
6324 char b[false == 0 ? 1 : -1];
6325 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6326 char d[(bool) 0.5 == true ? 1 : -1];
6327 bool e = &s;
6328 char f[(_Bool) 0.0 == false ? 1 : -1];
6329 char g[true];
6330 char h[sizeof (_Bool)];
6331 char i[sizeof s.t];
6332 enum { j = false, k = true, l = false * true, m = true * 256 };
6333 _Bool n[m];
6334 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6335 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6336 #if defined __xlc__ || defined __GNUC__
6337 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6338 reported by James Lemley on 2005-10-05; see
6339 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6340 This test is not quite right, since xlc is allowed to
6341 reject this program, as the initializer for xlcbug is
6342 not one of the forms that C requires support for.
6343 However, doing the test right would require a run-time
6344 test, and that would make cross-compilation harder.
6345 Let us hope that IBM fixes the xlc bug, and also adds
6346 support for this kind of constant expression. In the
6347 meantime, this test will reject xlc, which is OK, since
6348 our stdbool.h substitute should suffice. We also test
6349 this with GCC, where it should work, to detect more
6350 quickly whether someone messes up the test in the
6351 future. */
6352 char digs[] = "0123456789";
6353 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6354 #endif
6355 /* Catch a bug in an HP-UX C compiler. See
6356 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6357 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6358 */
6359 _Bool q = true;
6360 _Bool *pq = &q;
6361
6362 int
6363 main ()
6364 {
6365
6366 *pq |= q;
6367 *pq |= ! q;
6368 /* Refer to every declared value, to avoid compiler optimizations. */
6369 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6370 + !m + !n + !o + !p + !q + !pq);
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 ac_cv_header_stdbool_h=yes
6378 else
6379 ac_cv_header_stdbool_h=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6384 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6385 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6386 if test "x$ac_cv_type__Bool" = x""yes; then :
6387
6388 cat >>confdefs.h <<_ACEOF
6389 #define HAVE__BOOL 1
6390 _ACEOF
6391
6392
6393 fi
6394
6395 if test $ac_cv_header_stdbool_h = yes; then
6396
6397 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6398
6399 fi
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6402 $as_echo_n "checking for long long int... " >&6; }
6403 if test "${ac_cv_type_long_long_int+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408
6409 /* For now, do not test the preprocessor; as of 2007 there are too many
6410 implementations with broken preprocessors. Perhaps this can
6411 be revisited in 2012. In the meantime, code should not expect
6412 #if to work with literals wider than 32 bits. */
6413 /* Test literals. */
6414 long long int ll = 9223372036854775807ll;
6415 long long int nll = -9223372036854775807LL;
6416 unsigned long long int ull = 18446744073709551615ULL;
6417 /* Test constant expressions. */
6418 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6419 ? 1 : -1)];
6420 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6421 ? 1 : -1)];
6422 int i = 63;
6423 int
6424 main ()
6425 {
6426 /* Test availability of runtime routines for shift and division. */
6427 long long int llmax = 9223372036854775807ll;
6428 unsigned long long int ullmax = 18446744073709551615ull;
6429 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6430 | (llmax / ll) | (llmax % ll)
6431 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6432 | (ullmax / ull) | (ullmax % ull));
6433 ;
6434 return 0;
6435 }
6436
6437 _ACEOF
6438 if ac_fn_c_try_link "$LINENO"; then :
6439 if test "$cross_compiling" = yes; then :
6440 ac_cv_type_long_long_int=yes
6441 else
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 #include <limits.h>
6445 #ifndef LLONG_MAX
6446 # define HALF \
6447 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6448 # define LLONG_MAX (HALF - 1 + HALF)
6449 #endif
6450 int
6451 main ()
6452 {
6453 long long int n = 1;
6454 int i;
6455 for (i = 0; ; i++)
6456 {
6457 long long int m = n << i;
6458 if (m >> i != n)
6459 return 1;
6460 if (LLONG_MAX / 2 < m)
6461 break;
6462 }
6463 return 0;
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_run "$LINENO"; then :
6469 ac_cv_type_long_long_int=yes
6470 else
6471 ac_cv_type_long_long_int=no
6472 fi
6473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6474 conftest.$ac_objext conftest.beam conftest.$ac_ext
6475 fi
6476
6477 else
6478 ac_cv_type_long_long_int=no
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext \
6481 conftest$ac_exeext conftest.$ac_ext
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6484 $as_echo "$ac_cv_type_long_long_int" >&6; }
6485 if test $ac_cv_type_long_long_int = yes; then
6486
6487 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6488
6489 fi
6490
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6493 $as_echo_n "checking for unsigned long long int... " >&6; }
6494 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499
6500 /* For now, do not test the preprocessor; as of 2007 there are too many
6501 implementations with broken preprocessors. Perhaps this can
6502 be revisited in 2012. In the meantime, code should not expect
6503 #if to work with literals wider than 32 bits. */
6504 /* Test literals. */
6505 long long int ll = 9223372036854775807ll;
6506 long long int nll = -9223372036854775807LL;
6507 unsigned long long int ull = 18446744073709551615ULL;
6508 /* Test constant expressions. */
6509 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6510 ? 1 : -1)];
6511 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6512 ? 1 : -1)];
6513 int i = 63;
6514 int
6515 main ()
6516 {
6517 /* Test availability of runtime routines for shift and division. */
6518 long long int llmax = 9223372036854775807ll;
6519 unsigned long long int ullmax = 18446744073709551615ull;
6520 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6521 | (llmax / ll) | (llmax % ll)
6522 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6523 | (ullmax / ull) | (ullmax % ull));
6524 ;
6525 return 0;
6526 }
6527
6528 _ACEOF
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 ac_cv_type_unsigned_long_long_int=yes
6531 else
6532 ac_cv_type_unsigned_long_long_int=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6538 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6539 if test $ac_cv_type_unsigned_long_long_int = yes; then
6540
6541 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6542
6543 fi
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 GNULIB_FPRINTF=0;
6557 GNULIB_FPRINTF_POSIX=0;
6558 GNULIB_PRINTF=0;
6559 GNULIB_PRINTF_POSIX=0;
6560 GNULIB_SNPRINTF=0;
6561 GNULIB_SPRINTF_POSIX=0;
6562 GNULIB_VFPRINTF=0;
6563 GNULIB_VFPRINTF_POSIX=0;
6564 GNULIB_VPRINTF=0;
6565 GNULIB_VPRINTF_POSIX=0;
6566 GNULIB_VSNPRINTF=0;
6567 GNULIB_VSPRINTF_POSIX=0;
6568 GNULIB_DPRINTF=0;
6569 GNULIB_VDPRINTF=0;
6570 GNULIB_VASPRINTF=0;
6571 GNULIB_OBSTACK_PRINTF=0;
6572 GNULIB_OBSTACK_PRINTF_POSIX=0;
6573 GNULIB_FOPEN=0;
6574 GNULIB_FREOPEN=0;
6575 GNULIB_FSEEK=0;
6576 GNULIB_FSEEKO=0;
6577 GNULIB_FTELL=0;
6578 GNULIB_FTELLO=0;
6579 GNULIB_FFLUSH=0;
6580 GNULIB_FCLOSE=0;
6581 GNULIB_FPUTC=0;
6582 GNULIB_PUTC=0;
6583 GNULIB_PUTCHAR=0;
6584 GNULIB_FPUTS=0;
6585 GNULIB_PUTS=0;
6586 GNULIB_FWRITE=0;
6587 GNULIB_GETDELIM=0;
6588 GNULIB_GETLINE=0;
6589 GNULIB_PERROR=0;
6590 GNULIB_STDIO_H_SIGPIPE=0;
6591 REPLACE_STDIO_WRITE_FUNCS=0;
6592 REPLACE_FPRINTF=0;
6593 REPLACE_VFPRINTF=0;
6594 REPLACE_PRINTF=0;
6595 REPLACE_VPRINTF=0;
6596 REPLACE_SNPRINTF=0;
6597 HAVE_DECL_SNPRINTF=1;
6598 REPLACE_VSNPRINTF=0;
6599 HAVE_DECL_VSNPRINTF=1;
6600 REPLACE_SPRINTF=0;
6601 REPLACE_VSPRINTF=0;
6602 HAVE_DPRINTF=1;
6603 REPLACE_DPRINTF=0;
6604 HAVE_VDPRINTF=1;
6605 REPLACE_VDPRINTF=0;
6606 HAVE_VASPRINTF=1;
6607 REPLACE_VASPRINTF=0;
6608 HAVE_DECL_OBSTACK_PRINTF=1;
6609 REPLACE_OBSTACK_PRINTF=0;
6610 REPLACE_FOPEN=0;
6611 REPLACE_FREOPEN=0;
6612 HAVE_FSEEKO=1;
6613 REPLACE_FSEEKO=0;
6614 REPLACE_FSEEK=0;
6615 HAVE_FTELLO=1;
6616 REPLACE_FTELLO=0;
6617 REPLACE_FTELL=0;
6618 REPLACE_FFLUSH=0;
6619 REPLACE_FCLOSE=0;
6620 HAVE_DECL_GETDELIM=1;
6621 HAVE_DECL_GETLINE=1;
6622 REPLACE_GETLINE=0;
6623 REPLACE_PERROR=0;
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636 HAVE_STRCASECMP=1;
6637 HAVE_DECL_STRNCASECMP=1;
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 if test -z "$ERRNO_H"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
6649 $as_echo_n "checking for working strerror function... " >&6; }
6650 if test "${gl_cv_func_working_strerror+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 if test "$cross_compiling" = yes; then :
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <string.h>
6657
6658 int
6659 main ()
6660 {
6661 return !*strerror (-2);
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 gl_cv_func_working_strerror=yes
6668 else
6669 gl_cv_func_working_strerror=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672
6673 else
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 #include <string.h>
6677
6678 int
6679 main ()
6680 {
6681 return !*strerror (-2);
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_run "$LINENO"; then :
6687 gl_cv_func_working_strerror=yes
6688 else
6689 gl_cv_func_working_strerror=no
6690 fi
6691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6692 conftest.$ac_objext conftest.beam conftest.$ac_ext
6693 fi
6694
6695
6696 fi
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
6698 $as_echo "$gl_cv_func_working_strerror" >&6; }
6699 if test $gl_cv_func_working_strerror = no; then
6700 REPLACE_STRERROR=1
6701 fi
6702 else
6703 REPLACE_STRERROR=1
6704 fi
6705 if test $REPLACE_STRERROR = 1; then
6706
6707 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6708 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
6709 ac_have_decl=1
6710 else
6711 ac_have_decl=0
6712 fi
6713
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_DECL_STRERROR $ac_have_decl
6716 _ACEOF
6717
6718
6719 :
6720
6721
6722
6723
6724
6725 if test $ac_cv_header_sys_socket_h != yes; then
6726 for ac_header in winsock2.h
6727 do :
6728 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
6729 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_WINSOCK2_H 1
6732 _ACEOF
6733
6734 fi
6735
6736 done
6737
6738 fi
6739
6740 fi
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 :
6755
6756
6757
6758
6759
6760
6761
6762 if test $gl_cv_have_include_next = yes; then
6763 gl_cv_next_string_h='<'string.h'>'
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6766 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6767 if test "${gl_cv_next_string_h+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770
6771 if test $ac_cv_header_string_h = yes; then
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 #include <string.h>
6775
6776 _ACEOF
6777 case "$host_os" in
6778 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6779 *) gl_absname_cpp="$ac_cpp" ;;
6780 esac
6781 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6782 sed -n '\#/string.h#{
6783 s#.*"\(.*/string.h\)".*#\1#
6784 s#^/[^/]#//&#
6785 p
6786 q
6787 }'`'"'
6788 else
6789 gl_cv_next_string_h='<'string.h'>'
6790 fi
6791
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6794 $as_echo "$gl_cv_next_string_h" >&6; }
6795 fi
6796 NEXT_STRING_H=$gl_cv_next_string_h
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 :
6813
6814
6815
6816
6817
6818
6819
6820 if test $gl_cv_have_include_next = yes; then
6821 gl_cv_next_strings_h='<'strings.h'>'
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
6824 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
6825 if test "${gl_cv_next_strings_h+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828
6829 if test $ac_cv_header_strings_h = yes; then
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <strings.h>
6833
6834 _ACEOF
6835 case "$host_os" in
6836 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6837 *) gl_absname_cpp="$ac_cpp" ;;
6838 esac
6839 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6840 sed -n '\#/strings.h#{
6841 s#.*"\(.*/strings.h\)".*#\1#
6842 s#^/[^/]#//&#
6843 p
6844 q
6845 }'`'"'
6846 else
6847 gl_cv_next_strings_h='<'strings.h'>'
6848 fi
6849
6850 fi
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
6852 $as_echo "$gl_cv_next_strings_h" >&6; }
6853 fi
6854 NEXT_STRINGS_H=$gl_cv_next_strings_h
6855
6856
6857
6858
6859
6860 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
6861 if test "x$ac_cv_have_decl_strndup" = x""yes; then :
6862 ac_have_decl=1
6863 else
6864 ac_have_decl=0
6865 fi
6866
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_DECL_STRNDUP $ac_have_decl
6869 _ACEOF
6870
6871
6872
6873 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
6874 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
6875 ac_have_decl=1
6876 else
6877 ac_have_decl=0
6878 fi
6879
6880 cat >>confdefs.h <<_ACEOF
6881 #define HAVE_DECL_STRNLEN $ac_have_decl
6882 _ACEOF
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6902 $as_echo_n "checking for wchar_t... " >&6; }
6903 if test "${gt_cv_c_wchar_t+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908 #include <stddef.h>
6909 wchar_t foo = (wchar_t)'\0';
6910 int
6911 main ()
6912 {
6913
6914 ;
6915 return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919 gt_cv_c_wchar_t=yes
6920 else
6921 gt_cv_c_wchar_t=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6926 $as_echo "$gt_cv_c_wchar_t" >&6; }
6927 if test $gt_cv_c_wchar_t = yes; then
6928
6929 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6930
6931 fi
6932
6933
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6935 $as_echo_n "checking for wint_t... " >&6; }
6936 if test "${gt_cv_c_wint_t+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941
6942 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6943 <wchar.h>.
6944 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6945 before <wchar.h>. */
6946 #include <stddef.h>
6947 #include <stdio.h>
6948 #include <time.h>
6949 #include <wchar.h>
6950 wint_t foo = (wchar_t)'\0';
6951 int
6952 main ()
6953 {
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 gt_cv_c_wint_t=yes
6961 else
6962 gt_cv_c_wint_t=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6967 $as_echo "$gt_cv_c_wint_t" >&6; }
6968 if test $gt_cv_c_wint_t = yes; then
6969
6970 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6971
6972 fi
6973
6974 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6975 if test "x$ac_cv_type_size_t" = x""yes; then :
6976
6977 else
6978
6979 cat >>confdefs.h <<_ACEOF
6980 #define size_t unsigned int
6981 _ACEOF
6982
6983 fi
6984
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6987 $as_echo_n "checking for inttypes.h... " >&6; }
6988 if test "${gl_cv_header_inttypes_h+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <inttypes.h>
6995 int
6996 main ()
6997 {
6998 uintmax_t i = (uintmax_t) -1; return !i;
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 gl_cv_header_inttypes_h=yes
7005 else
7006 gl_cv_header_inttypes_h=no
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7011 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7012 if test $gl_cv_header_inttypes_h = yes; then
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7016 _ACEOF
7017
7018 fi
7019
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7022 $as_echo_n "checking for stdint.h... " >&6; }
7023 if test "${gl_cv_header_stdint_h+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 #include <stdint.h>
7030 int
7031 main ()
7032 {
7033 uintmax_t i = (uintmax_t) -1; return !i;
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 gl_cv_header_stdint_h=yes
7040 else
7041 gl_cv_header_stdint_h=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7046 $as_echo "$gl_cv_header_stdint_h" >&6; }
7047 if test $gl_cv_header_stdint_h = yes; then
7048
7049 cat >>confdefs.h <<_ACEOF
7050 #define HAVE_STDINT_H_WITH_UINTMAX 1
7051 _ACEOF
7052
7053 fi
7054
7055
7056
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
7059 $as_echo_n "checking for intmax_t... " >&6; }
7060 if test "${gt_cv_c_intmax_t+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 #include <stddef.h>
7067 #include <stdlib.h>
7068 #if HAVE_STDINT_H_WITH_UINTMAX
7069 #include <stdint.h>
7070 #endif
7071 #if HAVE_INTTYPES_H_WITH_UINTMAX
7072 #include <inttypes.h>
7073 #endif
7074
7075 int
7076 main ()
7077 {
7078 intmax_t x = -1; return !x;
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_compile "$LINENO"; then :
7084 gt_cv_c_intmax_t=yes
7085 else
7086 gt_cv_c_intmax_t=no
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
7091 $as_echo "$gt_cv_c_intmax_t" >&6; }
7092 if test $gt_cv_c_intmax_t = yes; then
7093
7094 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7095
7096 else
7097
7098 test $ac_cv_type_long_long_int = yes \
7099 && ac_type='long long' \
7100 || ac_type='long'
7101
7102 cat >>confdefs.h <<_ACEOF
7103 #define intmax_t $ac_type
7104 _ACEOF
7105
7106 fi
7107
7108
7109 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7110 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7111 ac_have_decl=1
7112 else
7113 ac_have_decl=0
7114 fi
7115
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7118 _ACEOF
7119
7120
7121
7122 GNULIB_BTOWC=0;
7123 GNULIB_WCTOB=0;
7124 GNULIB_MBSINIT=0;
7125 GNULIB_MBRTOWC=0;
7126 GNULIB_MBRLEN=0;
7127 GNULIB_MBSRTOWCS=0;
7128 GNULIB_MBSNRTOWCS=0;
7129 GNULIB_WCRTOMB=0;
7130 GNULIB_WCSRTOMBS=0;
7131 GNULIB_WCSNRTOMBS=0;
7132 GNULIB_WCWIDTH=0;
7133 HAVE_BTOWC=1;
7134 HAVE_MBSINIT=1;
7135 HAVE_MBRTOWC=1;
7136 HAVE_MBRLEN=1;
7137 HAVE_MBSRTOWCS=1;
7138 HAVE_MBSNRTOWCS=1;
7139 HAVE_WCRTOMB=1;
7140 HAVE_WCSRTOMBS=1;
7141 HAVE_WCSNRTOMBS=1;
7142 HAVE_DECL_WCTOB=1;
7143 HAVE_DECL_WCWIDTH=1;
7144 REPLACE_MBSTATE_T=0;
7145 REPLACE_BTOWC=0;
7146 REPLACE_WCTOB=0;
7147 REPLACE_MBSINIT=0;
7148 REPLACE_MBRTOWC=0;
7149 REPLACE_MBRLEN=0;
7150 REPLACE_MBSRTOWCS=0;
7151 REPLACE_MBSNRTOWCS=0;
7152 REPLACE_WCRTOMB=0;
7153 REPLACE_WCSRTOMBS=0;
7154 REPLACE_WCWIDTH=0;
7155 WCHAR_H='';
7156
7157
7158 if false; then
7159 GL_COND_LIBTOOL_TRUE=
7160 GL_COND_LIBTOOL_FALSE='#'
7161 else
7162 GL_COND_LIBTOOL_TRUE='#'
7163 GL_COND_LIBTOOL_FALSE=
7164 fi
7165
7166 gl_cond_libtool=false
7167 gl_libdeps=
7168 gl_ltlibdeps=
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178 gl_source_base='lib'
7179
7180
7181
7182
7183
7184 if test $ac_cv_func_alloca_works = no; then
7185 :
7186 fi
7187
7188 # Define an additional variable used in the Makefile substitution.
7189 if test $ac_cv_working_alloca_h = yes; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
7191 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
7192 if test "${gl_cv_rpl_alloca+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198
7199 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
7200 Need own alloca
7201 #endif
7202
7203 _ACEOF
7204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 $EGREP "Need own alloca" >/dev/null 2>&1; then :
7206 gl_cv_rpl_alloca=yes
7207 else
7208 gl_cv_rpl_alloca=no
7209 fi
7210 rm -f conftest*
7211
7212
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
7215 $as_echo "$gl_cv_rpl_alloca" >&6; }
7216 if test $gl_cv_rpl_alloca = yes; then
7217
7218 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7219
7220 ALLOCA_H=alloca.h
7221 else
7222 ALLOCA_H=
7223 fi
7224 else
7225 ALLOCA_H=alloca.h
7226 fi
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
7253
7254
7255 GETOPT_H=getopt.h
7256
7257 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
7258
7259
7260
7261
7262
7263 :
7264
7265
7266
7267
7268
7269
7270
7271
7272 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
7273 "
7274 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
7275
7276 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
7277
7278 else
7279
7280 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
7281
7282 fi
7283
7284 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
7285 "
7286 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
7287
7288 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
7289
7290 else
7291
7292 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
7293
7294 fi
7295
7296
7297 # Check if program_invocation_name and program_invocation_short_name
7298 # are defined elsewhere. It is improbable that only one of them will
7299 # be defined and other not, I prefer to stay on the safe side and to
7300 # test each one separately.
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
7302 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 #include <argp.h>
7306 int
7307 main ()
7308 {
7309 program_invocation_name = "test";
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_link "$LINENO"; then :
7315
7316 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
7317
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7319 $as_echo "yes" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
7328 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include <argp.h>
7332 int
7333 main ()
7334 {
7335 program_invocation_short_name = "test";
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_link "$LINENO"; then :
7341
7342 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7345 $as_echo "yes" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext \
7351 conftest$ac_exeext conftest.$ac_ext
7352
7353
7354 :
7355
7356
7357
7358
7359
7360
7361 :
7362
7363
7364
7365
7366
7367
7368 :
7369
7370
7371
7372
7373
7374
7375 :
7376
7377
7378
7379
7380
7381
7382 :
7383
7384
7385
7386
7387
7388
7389 :
7390
7391
7392
7393
7394
7395
7396 :
7397
7398
7399
7400
7401
7402
7403 :
7404
7405
7406
7407
7408
7409
7410 :
7411
7412
7413
7414
7415
7416
7417 :
7418
7419
7420
7421
7422
7423
7424 :
7425
7426
7427
7428
7429
7430
7431 :
7432
7433
7434
7435
7436
7437
7438 :
7439
7440
7441
7442
7443
7444
7445 :
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 :
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
7468
7469
7470
7471 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
7503
7504
7505
7506
7507
7508
7509
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7512 $as_echo_n "checking whether // is distinct from /... " >&6; }
7513 if test "${gl_cv_double_slash_root+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test x"$cross_compiling" = xyes ; then
7517 # When cross-compiling, there is no way to tell whether // is special
7518 # short of a list of hosts. However, the only known hosts to date
7519 # that have a distinct // are Apollo DomainOS (too old to port to),
7520 # Cygwin, and z/OS. If anyone knows of another system for which // has
7521 # special semantics and is distinct from /, please report it to
7522 # <bug-gnulib@gnu.org>.
7523 case $host in
7524 *-cygwin | i370-ibm-openedition)
7525 gl_cv_double_slash_root=yes ;;
7526 *)
7527 # Be optimistic and assume that / and // are the same when we
7528 # don't know.
7529 gl_cv_double_slash_root='unknown, assuming no' ;;
7530 esac
7531 else
7532 set x `ls -di / // 2>/dev/null`
7533 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
7534 gl_cv_double_slash_root=no
7535 else
7536 gl_cv_double_slash_root=yes
7537 fi
7538 fi
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7541 $as_echo "$gl_cv_double_slash_root" >&6; }
7542 if test "$gl_cv_double_slash_root" = yes; then
7543
7544 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7545
7546 fi
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
7563 $as_echo_n "checking for error_at_line... " >&6; }
7564 if test "${ac_cv_lib_error_at_line+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <error.h>
7570 int
7571 main ()
7572 {
7573 error_at_line (0, 0, "", 0, "an error occurred");
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 ac_cv_lib_error_at_line=yes
7580 else
7581 ac_cv_lib_error_at_line=no
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
7587 $as_echo "$ac_cv_lib_error_at_line" >&6; }
7588 if test $ac_cv_lib_error_at_line = no; then
7589
7590
7591
7592
7593
7594
7595
7596
7597 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
7598
7599 fi
7600
7601
7602
7603 :
7604
7605
7606
7607
7608 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
7609
7610
7611
7612 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
7624
7625
7626 :
7627
7628
7629
7630
7631 FLOAT_H=
7632 case "$host_os" in
7633 beos* | openbsd*)
7634 FLOAT_H=float.h
7635
7636
7637
7638
7639 :
7640
7641
7642
7643
7644
7645
7646
7647 if test $gl_cv_have_include_next = yes; then
7648 gl_cv_next_float_h='<'float.h'>'
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
7651 $as_echo_n "checking absolute name of <float.h>... " >&6; }
7652 if test "${gl_cv_next_float_h+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655
7656 if test $ac_cv_header_float_h = yes; then
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 #include <float.h>
7660
7661 _ACEOF
7662 case "$host_os" in
7663 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7664 *) gl_absname_cpp="$ac_cpp" ;;
7665 esac
7666 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7667 sed -n '\#/float.h#{
7668 s#.*"\(.*/float.h\)".*#\1#
7669 s#^/[^/]#//&#
7670 p
7671 q
7672 }'`'"'
7673 else
7674 gl_cv_next_float_h='<'float.h'>'
7675 fi
7676
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
7679 $as_echo "$gl_cv_next_float_h" >&6; }
7680 fi
7681 NEXT_FLOAT_H=$gl_cv_next_float_h
7682
7683
7684
7685 ;;
7686 esac
7687
7688
7689
7690
7691 if test -n "$GETOPT_H"; then :
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
7712
7713
7714 GETOPT_H=getopt.h
7715
7716 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
7717
7718
7719
7720
7721
7722 :
7723
7724
7725
7726
7727
7728
7729
7730 fi
7731
7732
7733
7734
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
7737 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
7738 if test "${gl_cv_c_inline_effective+set}" = set; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 if test $ac_cv_c_inline = no; then
7742 gl_cv_c_inline_effective=no
7743 else
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746
7747 int
7748 main ()
7749 {
7750 #ifdef __NO_INLINE__
7751 #error "inline is not effective"
7752 #endif
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_compile "$LINENO"; then :
7758 gl_cv_c_inline_effective=yes
7759 else
7760 gl_cv_c_inline_effective=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
7767 $as_echo "$gl_cv_c_inline_effective" >&6; }
7768 if test $gl_cv_c_inline_effective = yes; then
7769
7770 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
7771
7772 fi
7773
7774 for ac_header in stdlib.h
7775 do :
7776 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7777 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
7778 cat >>confdefs.h <<_ACEOF
7779 #define HAVE_STDLIB_H 1
7780 _ACEOF
7781
7782 fi
7783
7784 done
7785
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7787 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7788 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test "$cross_compiling" = yes; then :
7792 ac_cv_func_malloc_0_nonnull=no
7793 else
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7797 # include <stdlib.h>
7798 #else
7799 char *malloc ();
7800 #endif
7801
7802 int
7803 main ()
7804 {
7805 return ! malloc (0);
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_run "$LINENO"; then :
7811 ac_cv_func_malloc_0_nonnull=yes
7812 else
7813 ac_cv_func_malloc_0_nonnull=no
7814 fi
7815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7816 conftest.$ac_objext conftest.beam conftest.$ac_ext
7817 fi
7818
7819 fi
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7821 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7822 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7823
7824 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7825
7826 else
7827 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
7838
7839
7840 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7841
7842 fi
7843
7844
7845
7846 $as_echo "#define GNULIB_MALLOC_GNU 1" >>confdefs.h
7847
7848
7849
7850 if test $gl_cv_func_malloc_posix = yes; then
7851 HAVE_MALLOC_POSIX=1
7852
7853 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
7854
7855 else
7856
7857
7858
7859
7860
7861
7862
7863
7864 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
7865
7866 HAVE_MALLOC_POSIX=0
7867 fi
7868
7869
7870
7871
7872 GNULIB_MALLOC_POSIX=1
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888 for ac_func in mempcpy
7889 do :
7890 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
7891 if test "x$ac_cv_func_mempcpy" = x""yes; then :
7892 cat >>confdefs.h <<_ACEOF
7893 #define HAVE_MEMPCPY 1
7894 _ACEOF
7895
7896 else
7897
7898 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
7899
7900 fi
7901 done
7902
7903
7904 if test $ac_cv_func_mempcpy = no; then
7905 HAVE_MEMPCPY=0
7906
7907 :
7908
7909 fi
7910
7911
7912
7913 GNULIB_MEMPCPY=1
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 for ac_func in rawmemchr
7929 do :
7930 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
7931 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define HAVE_RAWMEMCHR 1
7934 _ACEOF
7935
7936 else
7937
7938 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
7939
7940 fi
7941 done
7942
7943
7944 if test $ac_cv_func_rawmemchr = no; then
7945 HAVE_RAWMEMCHR=0
7946 :
7947 fi
7948
7949
7950
7951 GNULIB_RAWMEMCHR=1
7952
7953
7954 for ac_header in stdint.h
7955 do :
7956 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7957 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7958 cat >>confdefs.h <<_ACEOF
7959 #define HAVE_STDINT_H 1
7960 _ACEOF
7961
7962 fi
7963
7964 done
7965
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7967 $as_echo_n "checking for SIZE_MAX... " >&6; }
7968 if test "${gl_cv_size_max+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971
7972 gl_cv_size_max=
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975
7976 #include <limits.h>
7977 #if HAVE_STDINT_H
7978 #include <stdint.h>
7979 #endif
7980 #ifdef SIZE_MAX
7981 Found it
7982 #endif
7983
7984 _ACEOF
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986 $EGREP "Found it" >/dev/null 2>&1; then :
7987 gl_cv_size_max=yes
7988 fi
7989 rm -f conftest*
7990
7991 if test -z "$gl_cv_size_max"; then
7992 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
7993 #include <limits.h>"; then :
7994
7995 else
7996 size_t_bits_minus_1=
7997 fi
7998
7999 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
8000
8001 else
8002 fits_in_uint=
8003 fi
8004
8005 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8006 if test $fits_in_uint = 1; then
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #include <stddef.h>
8010 extern size_t foo;
8011 extern unsigned long foo;
8012
8013 int
8014 main ()
8015 {
8016
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 fits_in_uint=0
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 if test $fits_in_uint = 1; then
8027 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8028 else
8029 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8030 fi
8031 else
8032 gl_cv_size_max='((size_t)~(size_t)0)'
8033 fi
8034 fi
8035
8036 fi
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8039 $as_echo "$gl_cv_size_max" >&6; }
8040 if test "$gl_cv_size_max" != yes; then
8041
8042 cat >>confdefs.h <<_ACEOF
8043 #define SIZE_MAX $gl_cv_size_max
8044 _ACEOF
8045
8046 fi
8047
8048
8049
8050 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
8051 "
8052 if test "x$ac_cv_have_decl_sleep" = x""yes; then :
8053 ac_have_decl=1
8054 else
8055 ac_have_decl=0
8056 fi
8057
8058 cat >>confdefs.h <<_ACEOF
8059 #define HAVE_DECL_SLEEP $ac_have_decl
8060 _ACEOF
8061
8062 if test $ac_cv_have_decl_sleep != yes; then
8063 HAVE_SLEEP=0
8064
8065
8066
8067
8068
8069
8070
8071
8072 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
8073
8074 :
8075 fi
8076
8077
8078
8079 GNULIB_SLEEP=1
8080
8081
8082
8083
8084 # Define two additional variables used in the Makefile substitution.
8085
8086 if test "$ac_cv_header_stdbool_h" = yes; then
8087 STDBOOL_H=''
8088 else
8089 STDBOOL_H='stdbool.h'
8090 fi
8091
8092
8093 if test "$ac_cv_type__Bool" = yes; then
8094 HAVE__BOOL=1
8095 else
8096 HAVE__BOOL=0
8097 fi
8098
8099
8100
8101
8102
8103 if test $ac_cv_type_long_long_int = yes; then
8104 HAVE_LONG_LONG_INT=1
8105 else
8106 HAVE_LONG_LONG_INT=0
8107 fi
8108
8109
8110 if test $ac_cv_type_unsigned_long_long_int = yes; then
8111 HAVE_UNSIGNED_LONG_LONG_INT=1
8112 else
8113 HAVE_UNSIGNED_LONG_LONG_INT=0
8114 fi
8115
8116
8117 if test $ac_cv_header_inttypes_h = yes; then
8118 HAVE_INTTYPES_H=1
8119 else
8120 HAVE_INTTYPES_H=0
8121 fi
8122
8123
8124 if test $ac_cv_header_sys_types_h = yes; then
8125 HAVE_SYS_TYPES_H=1
8126 else
8127 HAVE_SYS_TYPES_H=0
8128 fi
8129
8130
8131
8132
8133
8134
8135 :
8136
8137
8138
8139
8140
8141
8142
8143 if test $gl_cv_have_include_next = yes; then
8144 gl_cv_next_stdint_h='<'stdint.h'>'
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8147 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8148 if test "${gl_cv_next_stdint_h+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151
8152 if test $ac_cv_header_stdint_h = yes; then
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155 #include <stdint.h>
8156
8157 _ACEOF
8158 case "$host_os" in
8159 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8160 *) gl_absname_cpp="$ac_cpp" ;;
8161 esac
8162 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8163 sed -n '\#/stdint.h#{
8164 s#.*"\(.*/stdint.h\)".*#\1#
8165 s#^/[^/]#//&#
8166 p
8167 q
8168 }'`'"'
8169 else
8170 gl_cv_next_stdint_h='<'stdint.h'>'
8171 fi
8172
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8175 $as_echo "$gl_cv_next_stdint_h" >&6; }
8176 fi
8177 NEXT_STDINT_H=$gl_cv_next_stdint_h
8178
8179
8180
8181 if test $ac_cv_header_stdint_h = yes; then
8182 HAVE_STDINT_H=1
8183 else
8184 HAVE_STDINT_H=0
8185 fi
8186
8187
8188 if test $ac_cv_header_stdint_h = yes; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8190 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8191 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 gl_cv_header_working_stdint_h=no
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197
8198
8199 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
8200 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
8201 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8202 #include <stdint.h>
8203 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8204 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8205 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8206 #endif
8207
8208
8209 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8210 included before <wchar.h>. */
8211 #include <stddef.h>
8212 #include <signal.h>
8213 #if HAVE_WCHAR_H
8214 # include <stdio.h>
8215 # include <time.h>
8216 # include <wchar.h>
8217 #endif
8218
8219
8220 #ifdef INT8_MAX
8221 int8_t a1 = INT8_MAX;
8222 int8_t a1min = INT8_MIN;
8223 #endif
8224 #ifdef INT16_MAX
8225 int16_t a2 = INT16_MAX;
8226 int16_t a2min = INT16_MIN;
8227 #endif
8228 #ifdef INT32_MAX
8229 int32_t a3 = INT32_MAX;
8230 int32_t a3min = INT32_MIN;
8231 #endif
8232 #ifdef INT64_MAX
8233 int64_t a4 = INT64_MAX;
8234 int64_t a4min = INT64_MIN;
8235 #endif
8236 #ifdef UINT8_MAX
8237 uint8_t b1 = UINT8_MAX;
8238 #else
8239 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8240 #endif
8241 #ifdef UINT16_MAX
8242 uint16_t b2 = UINT16_MAX;
8243 #endif
8244 #ifdef UINT32_MAX
8245 uint32_t b3 = UINT32_MAX;
8246 #endif
8247 #ifdef UINT64_MAX
8248 uint64_t b4 = UINT64_MAX;
8249 #endif
8250 int_least8_t c1 = INT8_C (0x7f);
8251 int_least8_t c1max = INT_LEAST8_MAX;
8252 int_least8_t c1min = INT_LEAST8_MIN;
8253 int_least16_t c2 = INT16_C (0x7fff);
8254 int_least16_t c2max = INT_LEAST16_MAX;
8255 int_least16_t c2min = INT_LEAST16_MIN;
8256 int_least32_t c3 = INT32_C (0x7fffffff);
8257 int_least32_t c3max = INT_LEAST32_MAX;
8258 int_least32_t c3min = INT_LEAST32_MIN;
8259 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8260 int_least64_t c4max = INT_LEAST64_MAX;
8261 int_least64_t c4min = INT_LEAST64_MIN;
8262 uint_least8_t d1 = UINT8_C (0xff);
8263 uint_least8_t d1max = UINT_LEAST8_MAX;
8264 uint_least16_t d2 = UINT16_C (0xffff);
8265 uint_least16_t d2max = UINT_LEAST16_MAX;
8266 uint_least32_t d3 = UINT32_C (0xffffffff);
8267 uint_least32_t d3max = UINT_LEAST32_MAX;
8268 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8269 uint_least64_t d4max = UINT_LEAST64_MAX;
8270 int_fast8_t e1 = INT_FAST8_MAX;
8271 int_fast8_t e1min = INT_FAST8_MIN;
8272 int_fast16_t e2 = INT_FAST16_MAX;
8273 int_fast16_t e2min = INT_FAST16_MIN;
8274 int_fast32_t e3 = INT_FAST32_MAX;
8275 int_fast32_t e3min = INT_FAST32_MIN;
8276 int_fast64_t e4 = INT_FAST64_MAX;
8277 int_fast64_t e4min = INT_FAST64_MIN;
8278 uint_fast8_t f1 = UINT_FAST8_MAX;
8279 uint_fast16_t f2 = UINT_FAST16_MAX;
8280 uint_fast32_t f3 = UINT_FAST32_MAX;
8281 uint_fast64_t f4 = UINT_FAST64_MAX;
8282 #ifdef INTPTR_MAX
8283 intptr_t g = INTPTR_MAX;
8284 intptr_t gmin = INTPTR_MIN;
8285 #endif
8286 #ifdef UINTPTR_MAX
8287 uintptr_t h = UINTPTR_MAX;
8288 #endif
8289 intmax_t i = INTMAX_MAX;
8290 uintmax_t j = UINTMAX_MAX;
8291
8292 #include <limits.h> /* for CHAR_BIT */
8293 #define TYPE_MINIMUM(t) \
8294 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
8295 #define TYPE_MAXIMUM(t) \
8296 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
8297 struct s {
8298 int check_PTRDIFF:
8299 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8300 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8301 ? 1 : -1;
8302 /* Detect bug in FreeBSD 6.0 / ia64. */
8303 int check_SIG_ATOMIC:
8304 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8305 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8306 ? 1 : -1;
8307 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8308 int check_WCHAR:
8309 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8310 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8311 ? 1 : -1;
8312 /* Detect bug in mingw. */
8313 int check_WINT:
8314 WINT_MIN == TYPE_MINIMUM (wint_t)
8315 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8316 ? 1 : -1;
8317
8318 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8319 int check_UINT8_C:
8320 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8321 int check_UINT16_C:
8322 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8323
8324 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8325 #ifdef UINT8_MAX
8326 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8327 #endif
8328 #ifdef UINT16_MAX
8329 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8330 #endif
8331 #ifdef UINT32_MAX
8332 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8333 #endif
8334 #ifdef UINT64_MAX
8335 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8336 #endif
8337 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8338 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8339 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8340 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8341 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8342 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8343 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8344 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8345 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8346 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8347 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8348 };
8349
8350 int
8351 main ()
8352 {
8353
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 if ac_fn_c_try_compile "$LINENO"; then :
8359 if test "$cross_compiling" = yes; then :
8360 gl_cv_header_working_stdint_h=yes
8361
8362 else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365
8366
8367 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
8368 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
8369 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8370 #include <stdint.h>
8371
8372
8373 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8374 included before <wchar.h>. */
8375 #include <stddef.h>
8376 #include <signal.h>
8377 #if HAVE_WCHAR_H
8378 # include <stdio.h>
8379 # include <time.h>
8380 # include <wchar.h>
8381 #endif
8382
8383
8384 #include <stdio.h>
8385 #include <string.h>
8386 #define MVAL(macro) MVAL1(macro)
8387 #define MVAL1(expression) #expression
8388 static const char *macro_values[] =
8389 {
8390 #ifdef INT8_MAX
8391 MVAL (INT8_MAX),
8392 #endif
8393 #ifdef INT16_MAX
8394 MVAL (INT16_MAX),
8395 #endif
8396 #ifdef INT32_MAX
8397 MVAL (INT32_MAX),
8398 #endif
8399 #ifdef INT64_MAX
8400 MVAL (INT64_MAX),
8401 #endif
8402 #ifdef UINT8_MAX
8403 MVAL (UINT8_MAX),
8404 #endif
8405 #ifdef UINT16_MAX
8406 MVAL (UINT16_MAX),
8407 #endif
8408 #ifdef UINT32_MAX
8409 MVAL (UINT32_MAX),
8410 #endif
8411 #ifdef UINT64_MAX
8412 MVAL (UINT64_MAX),
8413 #endif
8414 NULL
8415 };
8416
8417 int
8418 main ()
8419 {
8420
8421 const char **mv;
8422 for (mv = macro_values; *mv != NULL; mv++)
8423 {
8424 const char *value = *mv;
8425 /* Test whether it looks like a cast expression. */
8426 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8427 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8428 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8429 || strncmp (value, "((int)"/*)*/, 6) == 0
8430 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8431 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8432 return 1;
8433 }
8434 return 0;
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_run "$LINENO"; then :
8441 gl_cv_header_working_stdint_h=yes
8442 fi
8443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8444 conftest.$ac_objext conftest.beam conftest.$ac_ext
8445 fi
8446
8447
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8453 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8454 fi
8455 if test "$gl_cv_header_working_stdint_h" = yes; then
8456 STDINT_H=
8457 else
8458 for ac_header in sys/inttypes.h sys/bitypes.h
8459 do :
8460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8462 eval as_val=\$$as_ac_Header
8463 if test "x$as_val" = x""yes; then :
8464 cat >>confdefs.h <<_ACEOF
8465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8466 _ACEOF
8467
8468 fi
8469
8470 done
8471
8472 if test $ac_cv_header_sys_inttypes_h = yes; then
8473 HAVE_SYS_INTTYPES_H=1
8474 else
8475 HAVE_SYS_INTTYPES_H=0
8476 fi
8477
8478 if test $ac_cv_header_sys_bitypes_h = yes; then
8479 HAVE_SYS_BITYPES_H=1
8480 else
8481 HAVE_SYS_BITYPES_H=0
8482 fi
8483
8484
8485
8486 :
8487
8488
8489
8490
8491
8492
8493
8494
8495 if test $APPLE_UNIVERSAL_BUILD = 0; then
8496
8497
8498 for gltype in ptrdiff_t size_t ; do
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8500 $as_echo_n "checking for bit size of $gltype... " >&6; }
8501 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8506 included before <wchar.h>. */
8507 #include <stddef.h>
8508 #include <signal.h>
8509 #if HAVE_WCHAR_H
8510 # include <stdio.h>
8511 # include <time.h>
8512 # include <wchar.h>
8513 #endif
8514
8515 #include <limits.h>"; then :
8516
8517 else
8518 result=unknown
8519 fi
8520
8521 eval gl_cv_bitsizeof_${gltype}=\$result
8522
8523 fi
8524 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8526 $as_echo "$ac_res" >&6; }
8527 eval result=\$gl_cv_bitsizeof_${gltype}
8528 if test $result = unknown; then
8529 result=0
8530 fi
8531 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8532 cat >>confdefs.h <<_ACEOF
8533 #define BITSIZEOF_${GLTYPE} $result
8534 _ACEOF
8535
8536 eval BITSIZEOF_${GLTYPE}=\$result
8537 done
8538
8539
8540 fi
8541
8542
8543 for gltype in sig_atomic_t wchar_t wint_t ; do
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8545 $as_echo_n "checking for bit size of $gltype... " >&6; }
8546 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8550 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8551 included before <wchar.h>. */
8552 #include <stddef.h>
8553 #include <signal.h>
8554 #if HAVE_WCHAR_H
8555 # include <stdio.h>
8556 # include <time.h>
8557 # include <wchar.h>
8558 #endif
8559
8560 #include <limits.h>"; then :
8561
8562 else
8563 result=unknown
8564 fi
8565
8566 eval gl_cv_bitsizeof_${gltype}=\$result
8567
8568 fi
8569 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8571 $as_echo "$ac_res" >&6; }
8572 eval result=\$gl_cv_bitsizeof_${gltype}
8573 if test $result = unknown; then
8574 result=0
8575 fi
8576 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8577 cat >>confdefs.h <<_ACEOF
8578 #define BITSIZEOF_${GLTYPE} $result
8579 _ACEOF
8580
8581 eval BITSIZEOF_${GLTYPE}=\$result
8582 done
8583
8584
8585
8586
8587 for gltype in sig_atomic_t wchar_t wint_t ; do
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8589 $as_echo_n "checking whether $gltype is signed... " >&6; }
8590 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595
8596 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8597 included before <wchar.h>. */
8598 #include <stddef.h>
8599 #include <signal.h>
8600 #if HAVE_WCHAR_H
8601 # include <stdio.h>
8602 # include <time.h>
8603 # include <wchar.h>
8604 #endif
8605
8606 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8607 int
8608 main ()
8609 {
8610
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_compile "$LINENO"; then :
8616 result=yes
8617 else
8618 result=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 eval gl_cv_type_${gltype}_signed=\$result
8622
8623 fi
8624 eval ac_res=\$gl_cv_type_${gltype}_signed
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8626 $as_echo "$ac_res" >&6; }
8627 eval result=\$gl_cv_type_${gltype}_signed
8628 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8629 if test "$result" = yes; then
8630 cat >>confdefs.h <<_ACEOF
8631 #define HAVE_SIGNED_${GLTYPE} 1
8632 _ACEOF
8633
8634 eval HAVE_SIGNED_${GLTYPE}=1
8635 else
8636 eval HAVE_SIGNED_${GLTYPE}=0
8637 fi
8638 done
8639
8640
8641 gl_cv_type_ptrdiff_t_signed=yes
8642 gl_cv_type_size_t_signed=no
8643 if test $APPLE_UNIVERSAL_BUILD = 0; then
8644
8645
8646 for gltype in ptrdiff_t size_t ; do
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8648 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8649 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 eval gl_cv_type_${gltype}_suffix=no
8653 eval result=\$gl_cv_type_${gltype}_signed
8654 if test "$result" = yes; then
8655 glsufu=
8656 else
8657 glsufu=u
8658 fi
8659 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8660 case $glsuf in
8661 '') gltype1='int';;
8662 l) gltype1='long int';;
8663 ll) gltype1='long long int';;
8664 i64) gltype1='__int64';;
8665 u) gltype1='unsigned int';;
8666 ul) gltype1='unsigned long int';;
8667 ull) gltype1='unsigned long long int';;
8668 ui64)gltype1='unsigned __int64';;
8669 esac
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672
8673 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8674 included before <wchar.h>. */
8675 #include <stddef.h>
8676 #include <signal.h>
8677 #if HAVE_WCHAR_H
8678 # include <stdio.h>
8679 # include <time.h>
8680 # include <wchar.h>
8681 #endif
8682
8683 extern $gltype foo;
8684 extern $gltype1 foo;
8685 int
8686 main ()
8687 {
8688
8689 ;
8690 return 0;
8691 }
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 eval gl_cv_type_${gltype}_suffix=\$glsuf
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 eval result=\$gl_cv_type_${gltype}_suffix
8698 test "$result" != no && break
8699 done
8700 fi
8701 eval ac_res=\$gl_cv_type_${gltype}_suffix
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8703 $as_echo "$ac_res" >&6; }
8704 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8705 eval result=\$gl_cv_type_${gltype}_suffix
8706 test "$result" = no && result=
8707 eval ${GLTYPE}_SUFFIX=\$result
8708 cat >>confdefs.h <<_ACEOF
8709 #define ${GLTYPE}_SUFFIX $result
8710 _ACEOF
8711
8712 done
8713
8714
8715 fi
8716
8717
8718 for gltype in sig_atomic_t wchar_t wint_t ; do
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8720 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8721 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 eval gl_cv_type_${gltype}_suffix=no
8725 eval result=\$gl_cv_type_${gltype}_signed
8726 if test "$result" = yes; then
8727 glsufu=
8728 else
8729 glsufu=u
8730 fi
8731 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8732 case $glsuf in
8733 '') gltype1='int';;
8734 l) gltype1='long int';;
8735 ll) gltype1='long long int';;
8736 i64) gltype1='__int64';;
8737 u) gltype1='unsigned int';;
8738 ul) gltype1='unsigned long int';;
8739 ull) gltype1='unsigned long long int';;
8740 ui64)gltype1='unsigned __int64';;
8741 esac
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744
8745 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8746 included before <wchar.h>. */
8747 #include <stddef.h>
8748 #include <signal.h>
8749 #if HAVE_WCHAR_H
8750 # include <stdio.h>
8751 # include <time.h>
8752 # include <wchar.h>
8753 #endif
8754
8755 extern $gltype foo;
8756 extern $gltype1 foo;
8757 int
8758 main ()
8759 {
8760
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 eval gl_cv_type_${gltype}_suffix=\$glsuf
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 eval result=\$gl_cv_type_${gltype}_suffix
8770 test "$result" != no && break
8771 done
8772 fi
8773 eval ac_res=\$gl_cv_type_${gltype}_suffix
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8775 $as_echo "$ac_res" >&6; }
8776 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8777 eval result=\$gl_cv_type_${gltype}_suffix
8778 test "$result" = no && result=
8779 eval ${GLTYPE}_SUFFIX=\$result
8780 cat >>confdefs.h <<_ACEOF
8781 #define ${GLTYPE}_SUFFIX $result
8782 _ACEOF
8783
8784 done
8785
8786
8787
8788 STDINT_H=stdint.h
8789 fi
8790
8791
8792
8793
8794
8795
8796
8797
8798 :
8799
8800
8801
8802
8803
8804
8805
8806 if test $gl_cv_have_include_next = yes; then
8807 gl_cv_next_stdio_h='<'stdio.h'>'
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
8810 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
8811 if test "${gl_cv_next_stdio_h+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814
8815 if test $ac_cv_header_stdio_h = yes; then
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #include <stdio.h>
8819
8820 _ACEOF
8821 case "$host_os" in
8822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8823 *) gl_absname_cpp="$ac_cpp" ;;
8824 esac
8825 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8826 sed -n '\#/stdio.h#{
8827 s#.*"\(.*/stdio.h\)".*#\1#
8828 s#^/[^/]#//&#
8829 p
8830 q
8831 }'`'"'
8832 else
8833 gl_cv_next_stdio_h='<'stdio.h'>'
8834 fi
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
8838 $as_echo "$gl_cv_next_stdio_h" >&6; }
8839 fi
8840 NEXT_STDIO_H=$gl_cv_next_stdio_h
8841
8842
8843
8844 GNULIB_FPRINTF=1
8845 GNULIB_PRINTF=1
8846 GNULIB_VFPRINTF=1
8847 GNULIB_VPRINTF=1
8848 GNULIB_FPUTC=1
8849 GNULIB_PUTC=1
8850 GNULIB_PUTCHAR=1
8851 GNULIB_FPUTS=1
8852 GNULIB_PUTS=1
8853 GNULIB_FWRITE=1
8854
8855
8856
8857
8858
8859
8860
8861
8862 :
8863
8864
8865
8866
8867
8868
8869
8870 if test $gl_cv_have_include_next = yes; then
8871 gl_cv_next_stdlib_h='<'stdlib.h'>'
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
8874 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
8875 if test "${gl_cv_next_stdlib_h+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878
8879 if test $ac_cv_header_stdlib_h = yes; then
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <stdlib.h>
8883
8884 _ACEOF
8885 case "$host_os" in
8886 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8887 *) gl_absname_cpp="$ac_cpp" ;;
8888 esac
8889 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8890 sed -n '\#/stdlib.h#{
8891 s#.*"\(.*/stdlib.h\)".*#\1#
8892 s#^/[^/]#//&#
8893 p
8894 q
8895 }'`'"'
8896 else
8897 gl_cv_next_stdlib_h='<'stdlib.h'>'
8898 fi
8899
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
8902 $as_echo "$gl_cv_next_stdlib_h" >&6; }
8903 fi
8904 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
8905
8906
8907
8908 for ac_header in random.h
8909 do :
8910 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
8911 "
8912 if test "x$ac_cv_header_random_h" = x""yes; then :
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_RANDOM_H 1
8915 _ACEOF
8916
8917 fi
8918
8919 done
8920
8921 if test $ac_cv_header_random_h = yes; then
8922 HAVE_RANDOM_H=1
8923 else
8924 HAVE_RANDOM_H=0
8925 fi
8926
8927 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
8928 #if HAVE_RANDOM_H
8929 # include <random.h>
8930 #endif
8931
8932 "
8933 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
8934
8935 cat >>confdefs.h <<_ACEOF
8936 #define HAVE_STRUCT_RANDOM_DATA 1
8937 _ACEOF
8938
8939
8940 else
8941 HAVE_STRUCT_RANDOM_DATA=0
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 for ac_func in strcasecmp
8957 do :
8958 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8959 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
8960 cat >>confdefs.h <<_ACEOF
8961 #define HAVE_STRCASECMP 1
8962 _ACEOF
8963
8964 else
8965
8966 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8967
8968 fi
8969 done
8970
8971
8972 if test $ac_cv_func_strcasecmp = no; then
8973 HAVE_STRCASECMP=0
8974
8975 :
8976
8977 fi
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 for ac_func in strncasecmp
8990 do :
8991 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
8992 if test "x$ac_cv_func_strncasecmp" = x""yes; then :
8993 cat >>confdefs.h <<_ACEOF
8994 #define HAVE_STRNCASECMP 1
8995 _ACEOF
8996
8997 else
8998
8999 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
9000
9001 fi
9002 done
9003
9004
9005 if test $ac_cv_func_strncasecmp = no; then
9006
9007 :
9008
9009 fi
9010 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
9011 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
9012 ac_have_decl=1
9013 else
9014 ac_have_decl=0
9015 fi
9016
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_DECL_STRNCASECMP $ac_have_decl
9019 _ACEOF
9020
9021 if test $ac_cv_have_decl_strncasecmp = no; then
9022 HAVE_DECL_STRNCASECMP=0
9023 fi
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038 for ac_func in strchrnul
9039 do :
9040 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
9041 if test "x$ac_cv_func_strchrnul" = x""yes; then :
9042 cat >>confdefs.h <<_ACEOF
9043 #define HAVE_STRCHRNUL 1
9044 _ACEOF
9045
9046 else
9047
9048 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
9049
9050 fi
9051 done
9052
9053
9054 if test $ac_cv_func_strchrnul = no; then
9055 HAVE_STRCHRNUL=0
9056 :
9057 fi
9058
9059
9060
9061 GNULIB_STRCHRNUL=1
9062
9063
9064
9065 if test $REPLACE_STRERROR = 1; then
9066
9067
9068
9069
9070
9071
9072
9073
9074 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
9075
9076
9077 cat >>confdefs.h <<_ACEOF
9078 #define REPLACE_STRERROR $REPLACE_STRERROR
9079 _ACEOF
9080
9081 fi
9082
9083
9084
9085 GNULIB_STRERROR=1
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 :
9099
9100
9101
9102
9103
9104 if test $ac_cv_have_decl_strndup = no; then
9105 HAVE_DECL_STRNDUP=0
9106 fi
9107
9108 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
9110 $as_echo_n "checking for working strndup... " >&6; }
9111 if test "${gl_cv_func_strndup+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test "$cross_compiling" = yes; then :
9115 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
9116 if test "x$ac_cv_func_strndup" = x""yes; then :
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119
9120 #ifdef _AIX
9121 too risky
9122 #endif
9123
9124 _ACEOF
9125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9126 $EGREP "too risky" >/dev/null 2>&1; then :
9127 gl_cv_func_strndup=no
9128 else
9129 gl_cv_func_strndup=yes
9130 fi
9131 rm -f conftest*
9132
9133 else
9134 gl_cv_func_strndup=no
9135 fi
9136
9137 else
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140
9141 #include <string.h>
9142 #include <stdlib.h>
9143 int
9144 main ()
9145 {
9146
9147 #ifndef HAVE_DECL_STRNDUP
9148 extern char *strndup (const char *, size_t);
9149 #endif
9150 char *s;
9151 s = strndup ("some longer string", 15);
9152 free (s);
9153 s = strndup ("shorter string", 13);
9154 return s[13] != '\0';
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_run "$LINENO"; then :
9160 gl_cv_func_strndup=yes
9161 else
9162 gl_cv_func_strndup=no
9163 fi
9164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9165 conftest.$ac_objext conftest.beam conftest.$ac_ext
9166 fi
9167
9168 fi
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup" >&5
9170 $as_echo "$gl_cv_func_strndup" >&6; }
9171 if test $gl_cv_func_strndup = yes; then
9172
9173 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
9174
9175 else
9176 HAVE_STRNDUP=0
9177
9178
9179
9180
9181
9182
9183
9184
9185 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
9186
9187 :
9188 fi
9189
9190
9191
9192 GNULIB_STRNDUP=1
9193
9194
9195
9196
9197
9198
9199 :
9200
9201
9202
9203
9204
9205 if test $ac_cv_have_decl_strnlen = no; then
9206 HAVE_DECL_STRNLEN=0
9207 fi
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
9210 $as_echo_n "checking for working strnlen... " >&6; }
9211 if test "${ac_cv_func_strnlen_working+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 if test "$cross_compiling" = yes; then :
9215 ac_cv_func_strnlen_working=no
9216 else
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 $ac_includes_default
9220 int
9221 main ()
9222 {
9223
9224 #define S "foobar"
9225 #define S_LEN (sizeof S - 1)
9226
9227 /* At least one implementation is buggy: that of AIX 4.3 would
9228 give strnlen (S, 1) == 3. */
9229
9230 int i;
9231 for (i = 0; i < S_LEN + 1; ++i)
9232 {
9233 int expected = i <= S_LEN ? i : S_LEN;
9234 if (strnlen (S, i) != expected)
9235 return 1;
9236 }
9237 return 0;
9238
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_c_try_run "$LINENO"; then :
9244 ac_cv_func_strnlen_working=yes
9245 else
9246 ac_cv_func_strnlen_working=no
9247 fi
9248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9249 conftest.$ac_objext conftest.beam conftest.$ac_ext
9250 fi
9251
9252 fi
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
9254 $as_echo "$ac_cv_func_strnlen_working" >&6; }
9255 test $ac_cv_func_strnlen_working = no &&
9256
9257
9258
9259
9260
9261
9262
9263 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
9264
9265
9266 if test $ac_cv_func_strnlen_working = no; then
9267 # This is necessary because automake-1.6.1 doesn't understand
9268 # that the above use of AC_FUNC_STRNLEN means we may have to use
9269 # lib/strnlen.c.
9270 #AC_LIBOBJ([strnlen])
9271
9272 $as_echo "#define strnlen rpl_strnlen" >>confdefs.h
9273
9274 :
9275 fi
9276
9277
9278
9279 GNULIB_STRNLEN=1
9280
9281
9282
9283 :
9284
9285
9286
9287
9288
9289 if test $ac_cv_header_sysexits_h = yes; then
9290 HAVE_SYSEXITS_H=1
9291
9292
9293
9294
9295 :
9296
9297
9298
9299
9300
9301
9302
9303 if test $gl_cv_have_include_next = yes; then
9304 gl_cv_next_sysexits_h='<'sysexits.h'>'
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
9307 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
9308 if test "${gl_cv_next_sysexits_h+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311
9312 if test $ac_cv_header_sysexits_h = yes; then
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <sysexits.h>
9316
9317 _ACEOF
9318 case "$host_os" in
9319 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9320 *) gl_absname_cpp="$ac_cpp" ;;
9321 esac
9322 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9323 sed -n '\#/sysexits.h#{
9324 s#.*"\(.*/sysexits.h\)".*#\1#
9325 s#^/[^/]#//&#
9326 p
9327 q
9328 }'`'"'
9329 else
9330 gl_cv_next_sysexits_h='<'sysexits.h'>'
9331 fi
9332
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
9335 $as_echo "$gl_cv_next_sysexits_h" >&6; }
9336 fi
9337 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
9338
9339
9340
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 #include <sysexits.h>
9344 int
9345 main ()
9346 {
9347 switch (0)
9348 {
9349 case EX_OK:
9350 case EX_USAGE:
9351 case EX_DATAERR:
9352 case EX_NOINPUT:
9353 case EX_NOUSER:
9354 case EX_NOHOST:
9355 case EX_UNAVAILABLE:
9356 case EX_SOFTWARE:
9357 case EX_OSERR:
9358 case EX_OSFILE:
9359 case EX_CANTCREAT:
9360 case EX_IOERR:
9361 case EX_TEMPFAIL:
9362 case EX_PROTOCOL:
9363 case EX_NOPERM:
9364 case EX_CONFIG:
9365 break;
9366 }
9367
9368 ;
9369 return 0;
9370 }
9371 _ACEOF
9372 if ac_fn_c_try_compile "$LINENO"; then :
9373 SYSEXITS_H=
9374 else
9375 SYSEXITS_H=sysexits.h
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 else
9379 HAVE_SYSEXITS_H=0
9380 SYSEXITS_H=sysexits.h
9381 fi
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392 :
9393
9394
9395
9396
9397
9398
9399
9400 if test $gl_cv_have_include_next = yes; then
9401 gl_cv_next_unistd_h='<'unistd.h'>'
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
9404 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
9405 if test "${gl_cv_next_unistd_h+set}" = set; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408
9409 if test $ac_cv_header_unistd_h = yes; then
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412 #include <unistd.h>
9413
9414 _ACEOF
9415 case "$host_os" in
9416 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9417 *) gl_absname_cpp="$ac_cpp" ;;
9418 esac
9419 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9420 sed -n '\#/unistd.h#{
9421 s#.*"\(.*/unistd.h\)".*#\1#
9422 s#^/[^/]#//&#
9423 p
9424 q
9425 }'`'"'
9426 else
9427 gl_cv_next_unistd_h='<'unistd.h'>'
9428 fi
9429
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
9432 $as_echo "$gl_cv_next_unistd_h" >&6; }
9433 fi
9434 NEXT_UNISTD_H=$gl_cv_next_unistd_h
9435
9436
9437
9438
9439
9440 :
9441
9442
9443
9444
9445
9446 if test $ac_cv_header_unistd_h = yes; then
9447 HAVE_UNISTD_H=1
9448 else
9449 HAVE_UNISTD_H=0
9450 fi
9451
9452
9453
9454
9455 :
9456
9457
9458
9459
9460
9461 if test $ac_cv_func_vasnprintf = no; then
9462
9463
9464 :
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
9509
9510 if test $ac_cv_func_vasnprintf = yes; then
9511
9512 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
9513
9514 fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9526 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
9527
9528 else
9529
9530 $as_echo "#define ptrdiff_t long" >>confdefs.h
9531
9532
9533 fi
9534
9535
9536
9537
9538
9539
9540
9541
9542 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
9543 do :
9544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9546 eval as_val=\$$as_ac_var
9547 if test "x$as_val" = x""yes; then :
9548 cat >>confdefs.h <<_ACEOF
9549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9550 _ACEOF
9551
9552 fi
9553 done
9554
9555 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
9556 "
9557 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
9558 ac_have_decl=1
9559 else
9560 ac_have_decl=0
9561 fi
9562
9563 cat >>confdefs.h <<_ACEOF
9564 #define HAVE_DECL__SNPRINTF $ac_have_decl
9565 _ACEOF
9566
9567
9568
9569
9570
9571 fi
9572
9573
9574
9575 gl_cv_func_vsnprintf_usable=no
9576 for ac_func in vsnprintf
9577 do :
9578 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
9579 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_VSNPRINTF 1
9582 _ACEOF
9583
9584 fi
9585 done
9586
9587 if test $ac_cv_func_vsnprintf = yes; then
9588
9589
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
9591 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
9592 if test "${gl_cv_func_snprintf_size1+set}" = set; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595
9596 if test "$cross_compiling" = yes; then :
9597 gl_cv_func_snprintf_size1="guessing yes"
9598 else
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601
9602 #include <stdio.h>
9603 int main()
9604 {
9605 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
9606 snprintf (buf, 1, "%d", 12345);
9607 return buf[1] != 'E';
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_run "$LINENO"; then :
9611 gl_cv_func_snprintf_size1=yes
9612 else
9613 gl_cv_func_snprintf_size1=no
9614 fi
9615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9616 conftest.$ac_objext conftest.beam conftest.$ac_ext
9617 fi
9618
9619
9620 fi
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
9622 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
9623
9624 case "$gl_cv_func_snprintf_size1" in
9625 *yes)
9626 gl_cv_func_vsnprintf_usable=yes
9627 ;;
9628 esac
9629 fi
9630 if test $gl_cv_func_vsnprintf_usable = no; then
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
9642
9643 if test $ac_cv_func_vsnprintf = yes; then
9644 REPLACE_VSNPRINTF=1
9645 fi
9646 :
9647
9648 fi
9649
9650 :
9651
9652
9653
9654
9655
9656 if test $ac_cv_have_decl_vsnprintf = no; then
9657 HAVE_DECL_VSNPRINTF=0
9658 fi
9659
9660
9661
9662 GNULIB_VSNPRINTF=1
9663
9664
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
9667 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
9668 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 #include <wchar.h>
9674 wchar_t w;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 gl_cv_header_wchar_h_standalone=yes
9678 else
9679 gl_cv_header_wchar_h_standalone=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
9684 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
9685
9686
9687 if test $gt_cv_c_wint_t = yes; then
9688 HAVE_WINT_T=1
9689 else
9690 HAVE_WINT_T=0
9691 fi
9692
9693
9694 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
9695 WCHAR_H=wchar.h
9696 fi
9697
9698
9699 :
9700
9701
9702
9703
9704
9705 if test $ac_cv_header_wchar_h = yes; then
9706 HAVE_WCHAR_H=1
9707 else
9708 HAVE_WCHAR_H=0
9709 fi
9710
9711
9712
9713
9714
9715 :
9716
9717
9718
9719
9720
9721
9722
9723 if test $gl_cv_have_include_next = yes; then
9724 gl_cv_next_wchar_h='<'wchar.h'>'
9725 else
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
9727 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
9728 if test "${gl_cv_next_wchar_h+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731
9732 if test $ac_cv_header_wchar_h = yes; then
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 #include <wchar.h>
9736
9737 _ACEOF
9738 case "$host_os" in
9739 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9740 *) gl_absname_cpp="$ac_cpp" ;;
9741 esac
9742 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9743 sed -n '\#/wchar.h#{
9744 s#.*"\(.*/wchar.h\)".*#\1#
9745 s#^/[^/]#//&#
9746 p
9747 q
9748 }'`'"'
9749 else
9750 gl_cv_next_wchar_h='<'wchar.h'>'
9751 fi
9752
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
9755 $as_echo "$gl_cv_next_wchar_h" >&6; }
9756 fi
9757 NEXT_WCHAR_H=$gl_cv_next_wchar_h
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
9772
9773
9774
9775
9776 :
9777
9778
9779 :
9780
9781
9782
9783
9784
9785 for ac_header in stdint.h
9786 do :
9787 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9788 if test "x$ac_cv_header_stdint_h" = x""yes; then :
9789 cat >>confdefs.h <<_ACEOF
9790 #define HAVE_STDINT_H 1
9791 _ACEOF
9792
9793 fi
9794
9795 done
9796
9797
9798
9799
9800 :
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812 gltests_libdeps=
9813 gltests_ltlibdeps=
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823 gl_source_base='tests'
9824
9825
9826
9827
9828
9829
9830
9831 LIBGNU_LIBDEPS="$gl_libdeps"
9832
9833 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
9834
9835
9836 ac_config_headers="$ac_config_headers lwasm/config.h"
9837
9838 ac_config_files="$ac_config_files Makefile lwasm/Makefile doc/Makefile lwlink/Makefile lwar/Makefile lib/Makefile"
9839
9840 cat >confcache <<\_ACEOF
9841 # This file is a shell script that caches the results of configure
9842 # tests run on this system so they can be shared between configure
9843 # scripts and configure runs, see configure's option --config-cache.
9844 # It is not useful on other systems. If it contains results you don't
9845 # want to keep, you may remove or edit it.
9846 #
9847 # config.status only pays attention to the cache file if you give it
9848 # the --recheck option to rerun configure.
9849 #
9850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9852 # following values.
9853
9854 _ACEOF
9855
9856 # The following way of writing the cache mishandles newlines in values,
9857 # but we know of no workaround that is simple, portable, and efficient.
9858 # So, we kill variables containing newlines.
9859 # Ultrix sh set writes to stderr and can't be redirected directly,
9860 # and sets the high bit in the cache file unless we assign to the vars.
9861 (
9862 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9863 eval ac_val=\$$ac_var
9864 case $ac_val in #(
9865 *${as_nl}*)
9866 case $ac_var in #(
9867 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9869 esac
9870 case $ac_var in #(
9871 _ | IFS | as_nl) ;; #(
9872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9873 *) { eval $ac_var=; unset $ac_var;} ;;
9874 esac ;;
9875 esac
9876 done
9877
9878 (set) 2>&1 |
9879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9880 *${as_nl}ac_space=\ *)
9881 # `set' does not quote correctly, so add quotes: double-quote
9882 # substitution turns \\\\ into \\, and sed turns \\ into \.
9883 sed -n \
9884 "s/'/'\\\\''/g;
9885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9886 ;; #(
9887 *)
9888 # `set' quotes correctly as required by POSIX, so do not add quotes.
9889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9890 ;;
9891 esac |
9892 sort
9893 ) |
9894 sed '
9895 /^ac_cv_env_/b end
9896 t clear
9897 :clear
9898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9899 t end
9900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9901 :end' >>confcache
9902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9903 if test -w "$cache_file"; then
9904 test "x$cache_file" != "x/dev/null" &&
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9906 $as_echo "$as_me: updating cache $cache_file" >&6;}
9907 cat confcache >$cache_file
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9910 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9911 fi
9912 fi
9913 rm -f confcache
9914
9915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9916 # Let make expand exec_prefix.
9917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9918
9919 DEFS=-DHAVE_CONFIG_H
9920
9921 ac_libobjs=
9922 ac_ltlibobjs=
9923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9924 # 1. Remove the extension, and $U if already installed.
9925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9928 # will be set to the directory where LIBOBJS objects are built.
9929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9931 done
9932 LIBOBJS=$ac_libobjs
9933
9934 LTLIBOBJS=$ac_ltlibobjs
9935
9936
9937 if test -n "$EXEEXT"; then
9938 am__EXEEXT_TRUE=
9939 am__EXEEXT_FALSE='#'
9940 else
9941 am__EXEEXT_TRUE='#'
9942 am__EXEEXT_FALSE=
9943 fi
9944
9945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9946 as_fn_error "conditional \"AMDEP\" was never defined.
9947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9948 fi
9949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9950 as_fn_error "conditional \"am__fastdepCC\" was never defined.
9951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9952 fi
9953 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
9954 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
9955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9956 fi
9957
9958 gl_libobjs=
9959 gl_ltlibobjs=
9960 if test -n "$gl_LIBOBJS"; then
9961 # Remove the extension.
9962 sed_drop_objext='s/\.o$//;s/\.obj$//'
9963 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
9964 gl_libobjs="$gl_libobjs $i.$ac_objext"
9965 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
9966 done
9967 fi
9968 gl_LIBOBJS=$gl_libobjs
9969
9970 gl_LTLIBOBJS=$gl_ltlibobjs
9971
9972
9973
9974 gltests_libobjs=
9975 gltests_ltlibobjs=
9976 if test -n "$gltests_LIBOBJS"; then
9977 # Remove the extension.
9978 sed_drop_objext='s/\.o$//;s/\.obj$//'
9979 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
9980 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
9981 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
9982 done
9983 fi
9984 gltests_LIBOBJS=$gltests_libobjs
9985
9986 gltests_LTLIBOBJS=$gltests_ltlibobjs
9987
9988
9989
9990 : ${CONFIG_STATUS=./config.status}
9991 ac_write_fail=0
9992 ac_clean_files_save=$ac_clean_files
9993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9995 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9996 as_write_fail=0
9997 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9998 #! $SHELL
9999 # Generated by $as_me.
10000 # Run this file to recreate the current configuration.
10001 # Compiler output produced by configure, useful for debugging
10002 # configure, is in config.log if it exists.
10003
10004 debug=false
10005 ac_cs_recheck=false
10006 ac_cs_silent=false
10007
10008 SHELL=\${CONFIG_SHELL-$SHELL}
10009 export SHELL
10010 _ASEOF
10011 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10012 ## -------------------- ##
10013 ## M4sh Initialization. ##
10014 ## -------------------- ##
10015
10016 # Be more Bourne compatible
10017 DUALCASE=1; export DUALCASE # for MKS sh
10018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10019 emulate sh
10020 NULLCMD=:
10021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10022 # is contrary to our usage. Disable this feature.
10023 alias -g '${1+"$@"}'='"$@"'
10024 setopt NO_GLOB_SUBST
10025 else
10026 case `(set -o) 2>/dev/null` in #(
10027 *posix*) :
10028 set -o posix ;; #(
10029 *) :
10030 ;;
10031 esac
10032 fi
10033
10034
10035 as_nl='
10036 '
10037 export as_nl
10038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10039 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10042 # Prefer a ksh shell builtin over an external printf program on Solaris,
10043 # but without wasting forks for bash or zsh.
10044 if test -z "$BASH_VERSION$ZSH_VERSION" \
10045 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10046 as_echo='print -r --'
10047 as_echo_n='print -rn --'
10048 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10049 as_echo='printf %s\n'
10050 as_echo_n='printf %s'
10051 else
10052 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10053 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10054 as_echo_n='/usr/ucb/echo -n'
10055 else
10056 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10057 as_echo_n_body='eval
10058 arg=$1;
10059 case $arg in #(
10060 *"$as_nl"*)
10061 expr "X$arg" : "X\\(.*\\)$as_nl";
10062 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10063 esac;
10064 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10065 '
10066 export as_echo_n_body
10067 as_echo_n='sh -c $as_echo_n_body as_echo'
10068 fi
10069 export as_echo_body
10070 as_echo='sh -c $as_echo_body as_echo'
10071 fi
10072
10073 # The user is always right.
10074 if test "${PATH_SEPARATOR+set}" != set; then
10075 PATH_SEPARATOR=:
10076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10078 PATH_SEPARATOR=';'
10079 }
10080 fi
10081
10082
10083 # IFS
10084 # We need space, tab and new line, in precisely that order. Quoting is
10085 # there to prevent editors from complaining about space-tab.
10086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10087 # splitting by setting IFS to empty value.)
10088 IFS=" "" $as_nl"
10089
10090 # Find who we are. Look in the path if we contain no directory separator.
10091 case $0 in #((
10092 *[\\/]* ) as_myself=$0 ;;
10093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10099 done
10100 IFS=$as_save_IFS
10101
10102 ;;
10103 esac
10104 # We did not find ourselves, most probably we were run as `sh COMMAND'
10105 # in which case we are not to be found in the path.
10106 if test "x$as_myself" = x; then
10107 as_myself=$0
10108 fi
10109 if test ! -f "$as_myself"; then
10110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10111 exit 1
10112 fi
10113
10114 # Unset variables that we do not need and which cause bugs (e.g. in
10115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10116 # suppresses any "Segmentation fault" message there. '((' could
10117 # trigger a bug in pdksh 5.2.14.
10118 for as_var in BASH_ENV ENV MAIL MAILPATH
10119 do eval test x\${$as_var+set} = xset \
10120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10121 done
10122 PS1='$ '
10123 PS2='> '
10124 PS4='+ '
10125
10126 # NLS nuisances.
10127 LC_ALL=C
10128 export LC_ALL
10129 LANGUAGE=C
10130 export LANGUAGE
10131
10132 # CDPATH.
10133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10134
10135
10136 # as_fn_error ERROR [LINENO LOG_FD]
10137 # ---------------------------------
10138 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10139 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10140 # script with status $?, using 1 if that was 0.
10141 as_fn_error ()
10142 {
10143 as_status=$?; test $as_status -eq 0 && as_status=1
10144 if test "$3"; then
10145 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10146 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10147 fi
10148 $as_echo "$as_me: error: $1" >&2
10149 as_fn_exit $as_status
10150 } # as_fn_error
10151
10152
10153 # as_fn_set_status STATUS
10154 # -----------------------
10155 # Set $? to STATUS, without forking.
10156 as_fn_set_status ()
10157 {
10158 return $1
10159 } # as_fn_set_status
10160
10161 # as_fn_exit STATUS
10162 # -----------------
10163 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10164 as_fn_exit ()
10165 {
10166 set +e
10167 as_fn_set_status $1
10168 exit $1
10169 } # as_fn_exit
10170
10171 # as_fn_unset VAR
10172 # ---------------
10173 # Portably unset VAR.
10174 as_fn_unset ()
10175 {
10176 { eval $1=; unset $1;}
10177 }
10178 as_unset=as_fn_unset
10179 # as_fn_append VAR VALUE
10180 # ----------------------
10181 # Append the text in VALUE to the end of the definition contained in VAR. Take
10182 # advantage of any shell optimizations that allow amortized linear growth over
10183 # repeated appends, instead of the typical quadratic growth present in naive
10184 # implementations.
10185 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10186 eval 'as_fn_append ()
10187 {
10188 eval $1+=\$2
10189 }'
10190 else
10191 as_fn_append ()
10192 {
10193 eval $1=\$$1\$2
10194 }
10195 fi # as_fn_append
10196
10197 # as_fn_arith ARG...
10198 # ------------------
10199 # Perform arithmetic evaluation on the ARGs, and store the result in the
10200 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10201 # must be portable across $(()) and expr.
10202 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10203 eval 'as_fn_arith ()
10204 {
10205 as_val=$(( $* ))
10206 }'
10207 else
10208 as_fn_arith ()
10209 {
10210 as_val=`expr "$@" || test $? -eq 1`
10211 }
10212 fi # as_fn_arith
10213
10214
10215 if expr a : '\(a\)' >/dev/null 2>&1 &&
10216 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10217 as_expr=expr
10218 else
10219 as_expr=false
10220 fi
10221
10222 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10223 as_basename=basename
10224 else
10225 as_basename=false
10226 fi
10227
10228 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10229 as_dirname=dirname
10230 else
10231 as_dirname=false
10232 fi
10233
10234 as_me=`$as_basename -- "$0" ||
10235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10236 X"$0" : 'X\(//\)$' \| \
10237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10238 $as_echo X/"$0" |
10239 sed '/^.*\/\([^/][^/]*\)\/*$/{
10240 s//\1/
10241 q
10242 }
10243 /^X\/\(\/\/\)$/{
10244 s//\1/
10245 q
10246 }
10247 /^X\/\(\/\).*/{
10248 s//\1/
10249 q
10250 }
10251 s/.*/./; q'`
10252
10253 # Avoid depending upon Character Ranges.
10254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10257 as_cr_digits='0123456789'
10258 as_cr_alnum=$as_cr_Letters$as_cr_digits
10259
10260 ECHO_C= ECHO_N= ECHO_T=
10261 case `echo -n x` in #(((((
10262 -n*)
10263 case `echo 'xy\c'` in
10264 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10265 xy) ECHO_C='\c';;
10266 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10267 ECHO_T=' ';;
10268 esac;;
10269 *)
10270 ECHO_N='-n';;
10271 esac
10272
10273 rm -f conf$$ conf$$.exe conf$$.file
10274 if test -d conf$$.dir; then
10275 rm -f conf$$.dir/conf$$.file
10276 else
10277 rm -f conf$$.dir
10278 mkdir conf$$.dir 2>/dev/null
10279 fi
10280 if (echo >conf$$.file) 2>/dev/null; then
10281 if ln -s conf$$.file conf$$ 2>/dev/null; then
10282 as_ln_s='ln -s'
10283 # ... but there are two gotchas:
10284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10286 # In both cases, we have to default to `cp -p'.
10287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10288 as_ln_s='cp -p'
10289 elif ln conf$$.file conf$$ 2>/dev/null; then
10290 as_ln_s=ln
10291 else
10292 as_ln_s='cp -p'
10293 fi
10294 else
10295 as_ln_s='cp -p'
10296 fi
10297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10298 rmdir conf$$.dir 2>/dev/null
10299
10300
10301 # as_fn_mkdir_p
10302 # -------------
10303 # Create "$as_dir" as a directory, including parents if necessary.
10304 as_fn_mkdir_p ()
10305 {
10306
10307 case $as_dir in #(
10308 -*) as_dir=./$as_dir;;
10309 esac
10310 test -d "$as_dir" || eval $as_mkdir_p || {
10311 as_dirs=
10312 while :; do
10313 case $as_dir in #(
10314 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10315 *) as_qdir=$as_dir;;
10316 esac
10317 as_dirs="'$as_qdir' $as_dirs"
10318 as_dir=`$as_dirname -- "$as_dir" ||
10319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10320 X"$as_dir" : 'X\(//\)[^/]' \| \
10321 X"$as_dir" : 'X\(//\)$' \| \
10322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10323 $as_echo X"$as_dir" |
10324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10325 s//\1/
10326 q
10327 }
10328 /^X\(\/\/\)[^/].*/{
10329 s//\1/
10330 q
10331 }
10332 /^X\(\/\/\)$/{
10333 s//\1/
10334 q
10335 }
10336 /^X\(\/\).*/{
10337 s//\1/
10338 q
10339 }
10340 s/.*/./; q'`
10341 test -d "$as_dir" && break
10342 done
10343 test -z "$as_dirs" || eval "mkdir $as_dirs"
10344 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10345
10346
10347 } # as_fn_mkdir_p
10348 if mkdir -p . 2>/dev/null; then
10349 as_mkdir_p='mkdir -p "$as_dir"'
10350 else
10351 test -d ./-p && rmdir ./-p
10352 as_mkdir_p=false
10353 fi
10354
10355 if test -x / >/dev/null 2>&1; then
10356 as_test_x='test -x'
10357 else
10358 if ls -dL / >/dev/null 2>&1; then
10359 as_ls_L_option=L
10360 else
10361 as_ls_L_option=
10362 fi
10363 as_test_x='
10364 eval sh -c '\''
10365 if test -d "$1"; then
10366 test -d "$1/.";
10367 else
10368 case $1 in #(
10369 -*)set "./$1";;
10370 esac;
10371 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10372 ???[sx]*):;;*)false;;esac;fi
10373 '\'' sh
10374 '
10375 fi
10376 as_executable_p=$as_test_x
10377
10378 # Sed expression to map a string onto a valid CPP name.
10379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10380
10381 # Sed expression to map a string onto a valid variable name.
10382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10383
10384
10385 exec 6>&1
10386 ## ----------------------------------- ##
10387 ## Main body of $CONFIG_STATUS script. ##
10388 ## ----------------------------------- ##
10389 _ASEOF
10390 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10391
10392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10393 # Save the log message, to keep $0 and so on meaningful, and to
10394 # report actual input values of CONFIG_FILES etc. instead of their
10395 # values after options handling.
10396 ac_log="
10397 This file was extended by LWTOOLS $as_me 2.6-pre, which was
10398 generated by GNU Autoconf 2.64. Invocation command line was
10399
10400 CONFIG_FILES = $CONFIG_FILES
10401 CONFIG_HEADERS = $CONFIG_HEADERS
10402 CONFIG_LINKS = $CONFIG_LINKS
10403 CONFIG_COMMANDS = $CONFIG_COMMANDS
10404 $ $0 $@
10405
10406 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10407 "
10408
10409 _ACEOF
10410
10411 case $ac_config_files in *"
10412 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10413 esac
10414
10415 case $ac_config_headers in *"
10416 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10417 esac
10418
10419
10420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10421 # Files that config.status was made for.
10422 config_files="$ac_config_files"
10423 config_headers="$ac_config_headers"
10424 config_commands="$ac_config_commands"
10425
10426 _ACEOF
10427
10428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10429 ac_cs_usage="\
10430 \`$as_me' instantiates files and other configuration actions
10431 from templates according to the current configuration. Unless the files
10432 and actions are specified as TAGs, all are instantiated by default.
10433
10434 Usage: $0 [OPTION]... [TAG]...
10435
10436 -h, --help print this help, then exit
10437 -V, --version print version number and configuration settings, then exit
10438 -q, --quiet, --silent
10439 do not print progress messages
10440 -d, --debug don't remove temporary files
10441 --recheck update $as_me by reconfiguring in the same conditions
10442 --file=FILE[:TEMPLATE]
10443 instantiate the configuration file FILE
10444 --header=FILE[:TEMPLATE]
10445 instantiate the configuration header FILE
10446
10447 Configuration files:
10448 $config_files
10449
10450 Configuration headers:
10451 $config_headers
10452
10453 Configuration commands:
10454 $config_commands
10455
10456 Report bugs to <lost@l-w.ca>."
10457
10458 _ACEOF
10459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10460 ac_cs_version="\\
10461 LWTOOLS config.status 2.6-pre
10462 configured by $0, generated by GNU Autoconf 2.64,
10463 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10464
10465 Copyright (C) 2009 Free Software Foundation, Inc.
10466 This config.status script is free software; the Free Software Foundation
10467 gives unlimited permission to copy, distribute and modify it."
10468
10469 ac_pwd='$ac_pwd'
10470 srcdir='$srcdir'
10471 INSTALL='$INSTALL'
10472 MKDIR_P='$MKDIR_P'
10473 AWK='$AWK'
10474 test -n "\$AWK" || AWK=awk
10475 _ACEOF
10476
10477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10478 # The default lists apply if the user does not specify any file.
10479 ac_need_defaults=:
10480 while test $# != 0
10481 do
10482 case $1 in
10483 --*=*)
10484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10485 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10486 ac_shift=:
10487 ;;
10488 *)
10489 ac_option=$1
10490 ac_optarg=$2
10491 ac_shift=shift
10492 ;;
10493 esac
10494
10495 case $ac_option in
10496 # Handling of the options.
10497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10498 ac_cs_recheck=: ;;
10499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10500 $as_echo "$ac_cs_version"; exit ;;
10501 --debug | --debu | --deb | --de | --d | -d )
10502 debug=: ;;
10503 --file | --fil | --fi | --f )
10504 $ac_shift
10505 case $ac_optarg in
10506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10507 esac
10508 as_fn_append CONFIG_FILES " '$ac_optarg'"
10509 ac_need_defaults=false;;
10510 --header | --heade | --head | --hea )
10511 $ac_shift
10512 case $ac_optarg in
10513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10514 esac
10515 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10516 ac_need_defaults=false;;
10517 --he | --h)
10518 # Conflict between --help and --header
10519 as_fn_error "ambiguous option: \`$1'
10520 Try \`$0 --help' for more information.";;
10521 --help | --hel | -h )
10522 $as_echo "$ac_cs_usage"; exit ;;
10523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10525 ac_cs_silent=: ;;
10526
10527 # This is an error.
10528 -*) as_fn_error "unrecognized option: \`$1'
10529 Try \`$0 --help' for more information." ;;
10530
10531 *) as_fn_append ac_config_targets " $1"
10532 ac_need_defaults=false ;;
10533
10534 esac
10535 shift
10536 done
10537
10538 ac_configure_extra_args=
10539
10540 if $ac_cs_silent; then
10541 exec 6>/dev/null
10542 ac_configure_extra_args="$ac_configure_extra_args --silent"
10543 fi
10544
10545 _ACEOF
10546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10547 if \$ac_cs_recheck; then
10548 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10549 shift
10550 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10551 CONFIG_SHELL='$SHELL'
10552 export CONFIG_SHELL
10553 exec "\$@"
10554 fi
10555
10556 _ACEOF
10557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10558 exec 5>>config.log
10559 {
10560 echo
10561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10562 ## Running $as_me. ##
10563 _ASBOX
10564 $as_echo "$ac_log"
10565 } >&5
10566
10567 _ACEOF
10568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10569 #
10570 # INIT-COMMANDS
10571 #
10572 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10573
10574 _ACEOF
10575
10576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10577
10578 # Handling of arguments.
10579 for ac_config_target in $ac_config_targets
10580 do
10581 case $ac_config_target in
10582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10583 "lwasm/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lwasm/config.h" ;;
10584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10585 "lwasm/Makefile") CONFIG_FILES="$CONFIG_FILES lwasm/Makefile" ;;
10586 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10587 "lwlink/Makefile") CONFIG_FILES="$CONFIG_FILES lwlink/Makefile" ;;
10588 "lwar/Makefile") CONFIG_FILES="$CONFIG_FILES lwar/Makefile" ;;
10589 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10590
10591 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10592 esac
10593 done
10594
10595
10596 # If the user did not use the arguments to specify the items to instantiate,
10597 # then the envvar interface is used. Set only those that are not.
10598 # We use the long form for the default assignment because of an extremely
10599 # bizarre bug on SunOS 4.1.3.
10600 if $ac_need_defaults; then
10601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10604 fi
10605
10606 # Have a temporary directory for convenience. Make it in the build tree
10607 # simply because there is no reason against having it here, and in addition,
10608 # creating and moving files from /tmp can sometimes cause problems.
10609 # Hook for its removal unless debugging.
10610 # Note that there is a small window in which the directory will not be cleaned:
10611 # after its creation but before its name has been assigned to `$tmp'.
10612 $debug ||
10613 {
10614 tmp=
10615 trap 'exit_status=$?
10616 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10617 ' 0
10618 trap 'as_fn_exit 1' 1 2 13 15
10619 }
10620 # Create a (secure) tmp directory for tmp files.
10621
10622 {
10623 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10624 test -n "$tmp" && test -d "$tmp"
10625 } ||
10626 {
10627 tmp=./conf$$-$RANDOM
10628 (umask 077 && mkdir "$tmp")
10629 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10630
10631 # Set up the scripts for CONFIG_FILES section.
10632 # No need to generate them if there are no CONFIG_FILES.
10633 # This happens for instance with `./config.status config.h'.
10634 if test -n "$CONFIG_FILES"; then
10635
10636
10637 ac_cr=`echo X | tr X '\015'`
10638 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10639 # But we know of no other shell where ac_cr would be empty at this
10640 # point, so we can use a bashism as a fallback.
10641 if test "x$ac_cr" = x; then
10642 eval ac_cr=\$\'\\r\'
10643 fi
10644 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10645 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10646 ac_cs_awk_cr='\r'
10647 else
10648 ac_cs_awk_cr=$ac_cr
10649 fi
10650
10651 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10652 _ACEOF
10653
10654
10655 {
10656 echo "cat >conf$$subs.awk <<_ACEOF" &&
10657 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10658 echo "_ACEOF"
10659 } >conf$$subs.sh ||
10660 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10661 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10662 ac_delim='%!_!# '
10663 for ac_last_try in false false false false false :; do
10664 . ./conf$$subs.sh ||
10665 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10666
10667 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10668 if test $ac_delim_n = $ac_delim_num; then
10669 break
10670 elif $ac_last_try; then
10671 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10672 else
10673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10674 fi
10675 done
10676 rm -f conf$$subs.sh
10677
10678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10679 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10680 _ACEOF
10681 sed -n '
10682 h
10683 s/^/S["/; s/!.*/"]=/
10684 p
10685 g
10686 s/^[^!]*!//
10687 :repl
10688 t repl
10689 s/'"$ac_delim"'$//
10690 t delim
10691 :nl
10692 h
10693 s/\(.\{148\}\).*/\1/
10694 t more1
10695 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10696 p
10697 n
10698 b repl
10699 :more1
10700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10701 p
10702 g
10703 s/.\{148\}//
10704 t nl
10705 :delim
10706 h
10707 s/\(.\{148\}\).*/\1/
10708 t more2
10709 s/["\\]/\\&/g; s/^/"/; s/$/"/
10710 p
10711 b
10712 :more2
10713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10714 p
10715 g
10716 s/.\{148\}//
10717 t delim
10718 ' <conf$$subs.awk | sed '
10719 /^[^""]/{
10720 N
10721 s/\n//
10722 }
10723 ' >>$CONFIG_STATUS || ac_write_fail=1
10724 rm -f conf$$subs.awk
10725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10726 _ACAWK
10727 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10728 for (key in S) S_is_set[key] = 1
10729 FS = ""
10730
10731 }
10732 {
10733 line = $ 0
10734 nfields = split(line, field, "@")
10735 substed = 0
10736 len = length(field[1])
10737 for (i = 2; i < nfields; i++) {
10738 key = field[i]
10739 keylen = length(key)
10740 if (S_is_set[key]) {
10741 value = S[key]
10742 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10743 len += length(value) + length(field[++i])
10744 substed = 1
10745 } else
10746 len += 1 + keylen
10747 }
10748
10749 print line
10750 }
10751
10752 _ACAWK
10753 _ACEOF
10754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10755 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10756 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10757 else
10758 cat
10759 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10760 || as_fn_error "could not setup config files machinery" "$LINENO" 5
10761 _ACEOF
10762
10763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10765 # trailing colons and then remove the whole line if VPATH becomes empty
10766 # (actually we leave an empty line to preserve line numbers).
10767 if test "x$srcdir" = x.; then
10768 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10769 s/:*\$(srcdir):*/:/
10770 s/:*\${srcdir}:*/:/
10771 s/:*@srcdir@:*/:/
10772 s/^\([^=]*=[ ]*\):*/\1/
10773 s/:*$//
10774 s/^[^=]*=[ ]*$//
10775 }'
10776 fi
10777
10778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10779 fi # test -n "$CONFIG_FILES"
10780
10781 # Set up the scripts for CONFIG_HEADERS section.
10782 # No need to generate them if there are no CONFIG_HEADERS.
10783 # This happens for instance with `./config.status Makefile'.
10784 if test -n "$CONFIG_HEADERS"; then
10785 cat >"$tmp/defines.awk" <<\_ACAWK ||
10786 BEGIN {
10787 _ACEOF
10788
10789 # Transform confdefs.h into an awk script `defines.awk', embedded as
10790 # here-document in config.status, that substitutes the proper values into
10791 # config.h.in to produce config.h.
10792
10793 # Create a delimiter string that does not exist in confdefs.h, to ease
10794 # handling of long lines.
10795 ac_delim='%!_!# '
10796 for ac_last_try in false false :; do
10797 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10798 if test -z "$ac_t"; then
10799 break
10800 elif $ac_last_try; then
10801 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10802 else
10803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10804 fi
10805 done
10806
10807 # For the awk script, D is an array of macro values keyed by name,
10808 # likewise P contains macro parameters if any. Preserve backslash
10809 # newline sequences.
10810
10811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10812 sed -n '
10813 s/.\{148\}/&'"$ac_delim"'/g
10814 t rset
10815 :rset
10816 s/^[ ]*#[ ]*define[ ][ ]*/ /
10817 t def
10818 d
10819 :def
10820 s/\\$//
10821 t bsnl
10822 s/["\\]/\\&/g
10823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10824 D["\1"]=" \3"/p
10825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10826 d
10827 :bsnl
10828 s/["\\]/\\&/g
10829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10830 D["\1"]=" \3\\\\\\n"\\/p
10831 t cont
10832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10833 t cont
10834 d
10835 :cont
10836 n
10837 s/.\{148\}/&'"$ac_delim"'/g
10838 t clear
10839 :clear
10840 s/\\$//
10841 t bsnlc
10842 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10843 d
10844 :bsnlc
10845 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10846 b cont
10847 ' <confdefs.h | sed '
10848 s/'"$ac_delim"'/"\\\
10849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10850
10851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10852 for (key in D) D_is_set[key] = 1
10853 FS = ""
10854 }
10855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10856 line = \$ 0
10857 split(line, arg, " ")
10858 if (arg[1] == "#") {
10859 defundef = arg[2]
10860 mac1 = arg[3]
10861 } else {
10862 defundef = substr(arg[1], 2)
10863 mac1 = arg[2]
10864 }
10865 split(mac1, mac2, "(") #)
10866 macro = mac2[1]
10867 prefix = substr(line, 1, index(line, defundef) - 1)
10868 if (D_is_set[macro]) {
10869 # Preserve the white space surrounding the "#".
10870 print prefix "define", macro P[macro] D[macro]
10871 next
10872 } else {
10873 # Replace #undef with comments. This is necessary, for example,
10874 # in the case of _POSIX_SOURCE, which is predefined and required
10875 # on some systems where configure will not decide to define it.
10876 if (defundef == "undef") {
10877 print "/*", prefix defundef, macro, "*/"
10878 next
10879 }
10880 }
10881 }
10882 { print }
10883 _ACAWK
10884 _ACEOF
10885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10886 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10887 fi # test -n "$CONFIG_HEADERS"
10888
10889
10890 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10891 shift
10892 for ac_tag
10893 do
10894 case $ac_tag in
10895 :[FHLC]) ac_mode=$ac_tag; continue;;
10896 esac
10897 case $ac_mode$ac_tag in
10898 :[FHL]*:*);;
10899 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10900 :[FH]-) ac_tag=-:-;;
10901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10902 esac
10903 ac_save_IFS=$IFS
10904 IFS=:
10905 set x $ac_tag
10906 IFS=$ac_save_IFS
10907 shift
10908 ac_file=$1
10909 shift
10910
10911 case $ac_mode in
10912 :L) ac_source=$1;;
10913 :[FH])
10914 ac_file_inputs=
10915 for ac_f
10916 do
10917 case $ac_f in
10918 -) ac_f="$tmp/stdin";;
10919 *) # Look for the file first in the build tree, then in the source tree
10920 # (if the path is not absolute). The absolute path cannot be DOS-style,
10921 # because $ac_f cannot contain `:'.
10922 test -f "$ac_f" ||
10923 case $ac_f in
10924 [\\/$]*) false;;
10925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10926 esac ||
10927 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10928 esac
10929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10930 as_fn_append ac_file_inputs " '$ac_f'"
10931 done
10932
10933 # Let's still pretend it is `configure' which instantiates (i.e., don't
10934 # use $as_me), people would be surprised to read:
10935 # /* config.h. Generated by config.status. */
10936 configure_input='Generated from '`
10937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10938 `' by configure.'
10939 if test x"$ac_file" != x-; then
10940 configure_input="$ac_file. $configure_input"
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10942 $as_echo "$as_me: creating $ac_file" >&6;}
10943 fi
10944 # Neutralize special characters interpreted by sed in replacement strings.
10945 case $configure_input in #(
10946 *\&* | *\|* | *\\* )
10947 ac_sed_conf_input=`$as_echo "$configure_input" |
10948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10949 *) ac_sed_conf_input=$configure_input;;
10950 esac
10951
10952 case $ac_tag in
10953 *:-:* | *:-) cat >"$tmp/stdin" \
10954 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10955 esac
10956 ;;
10957 esac
10958
10959 ac_dir=`$as_dirname -- "$ac_file" ||
10960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10961 X"$ac_file" : 'X\(//\)[^/]' \| \
10962 X"$ac_file" : 'X\(//\)$' \| \
10963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10964 $as_echo X"$ac_file" |
10965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10966 s//\1/
10967 q
10968 }
10969 /^X\(\/\/\)[^/].*/{
10970 s//\1/
10971 q
10972 }
10973 /^X\(\/\/\)$/{
10974 s//\1/
10975 q
10976 }
10977 /^X\(\/\).*/{
10978 s//\1/
10979 q
10980 }
10981 s/.*/./; q'`
10982 as_dir="$ac_dir"; as_fn_mkdir_p
10983 ac_builddir=.
10984
10985 case "$ac_dir" in
10986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10987 *)
10988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10989 # A ".." for each directory in $ac_dir_suffix.
10990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10991 case $ac_top_builddir_sub in
10992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10994 esac ;;
10995 esac
10996 ac_abs_top_builddir=$ac_pwd
10997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10998 # for backward compatibility:
10999 ac_top_builddir=$ac_top_build_prefix
11000
11001 case $srcdir in
11002 .) # We are building in place.
11003 ac_srcdir=.
11004 ac_top_srcdir=$ac_top_builddir_sub
11005 ac_abs_top_srcdir=$ac_pwd ;;
11006 [\\/]* | ?:[\\/]* ) # Absolute name.
11007 ac_srcdir=$srcdir$ac_dir_suffix;
11008 ac_top_srcdir=$srcdir
11009 ac_abs_top_srcdir=$srcdir ;;
11010 *) # Relative name.
11011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11012 ac_top_srcdir=$ac_top_build_prefix$srcdir
11013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11014 esac
11015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11016
11017
11018 case $ac_mode in
11019 :F)
11020 #
11021 # CONFIG_FILE
11022 #
11023
11024 case $INSTALL in
11025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11027 esac
11028 ac_MKDIR_P=$MKDIR_P
11029 case $MKDIR_P in
11030 [\\/$]* | ?:[\\/]* ) ;;
11031 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11032 esac
11033 _ACEOF
11034
11035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11036 # If the template does not know about datarootdir, expand it.
11037 # FIXME: This hack should be removed a few years after 2.60.
11038 ac_datarootdir_hack=; ac_datarootdir_seen=
11039 ac_sed_dataroot='
11040 /datarootdir/ {
11041 p
11042 q
11043 }
11044 /@datadir@/p
11045 /@docdir@/p
11046 /@infodir@/p
11047 /@localedir@/p
11048 /@mandir@/p'
11049 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11050 *datarootdir*) ac_datarootdir_seen=yes;;
11051 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11053 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11054 _ACEOF
11055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11056 ac_datarootdir_hack='
11057 s&@datadir@&$datadir&g
11058 s&@docdir@&$docdir&g
11059 s&@infodir@&$infodir&g
11060 s&@localedir@&$localedir&g
11061 s&@mandir@&$mandir&g
11062 s&\\\${datarootdir}&$datarootdir&g' ;;
11063 esac
11064 _ACEOF
11065
11066 # Neutralize VPATH when `$srcdir' = `.'.
11067 # Shell code in configure.ac might set extrasub.
11068 # FIXME: do we really want to maintain this feature?
11069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11070 ac_sed_extra="$ac_vpsub
11071 $extrasub
11072 _ACEOF
11073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11074 :t
11075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11076 s|@configure_input@|$ac_sed_conf_input|;t t
11077 s&@top_builddir@&$ac_top_builddir_sub&;t t
11078 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11079 s&@srcdir@&$ac_srcdir&;t t
11080 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11081 s&@top_srcdir@&$ac_top_srcdir&;t t
11082 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11083 s&@builddir@&$ac_builddir&;t t
11084 s&@abs_builddir@&$ac_abs_builddir&;t t
11085 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11086 s&@INSTALL@&$ac_INSTALL&;t t
11087 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11088 $ac_datarootdir_hack
11089 "
11090 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11091 || as_fn_error "could not create $ac_file" "$LINENO" 5
11092
11093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11094 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11097 which seems to be undefined. Please make sure it is defined." >&5
11098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11099 which seems to be undefined. Please make sure it is defined." >&2;}
11100
11101 rm -f "$tmp/stdin"
11102 case $ac_file in
11103 -) cat "$tmp/out" && rm -f "$tmp/out";;
11104 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11105 esac \
11106 || as_fn_error "could not create $ac_file" "$LINENO" 5
11107 ;;
11108 :H)
11109 #
11110 # CONFIG_HEADER
11111 #
11112 if test x"$ac_file" != x-; then
11113 {
11114 $as_echo "/* $configure_input */" \
11115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11116 } >"$tmp/config.h" \
11117 || as_fn_error "could not create $ac_file" "$LINENO" 5
11118 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11121 else
11122 rm -f "$ac_file"
11123 mv "$tmp/config.h" "$ac_file" \
11124 || as_fn_error "could not create $ac_file" "$LINENO" 5
11125 fi
11126 else
11127 $as_echo "/* $configure_input */" \
11128 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11129 || as_fn_error "could not create -" "$LINENO" 5
11130 fi
11131 # Compute "$ac_file"'s index in $config_headers.
11132 _am_arg="$ac_file"
11133 _am_stamp_count=1
11134 for _am_header in $config_headers :; do
11135 case $_am_header in
11136 $_am_arg | $_am_arg:* )
11137 break ;;
11138 * )
11139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11140 esac
11141 done
11142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11144 X"$_am_arg" : 'X\(//\)[^/]' \| \
11145 X"$_am_arg" : 'X\(//\)$' \| \
11146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11147 $as_echo X"$_am_arg" |
11148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11149 s//\1/
11150 q
11151 }
11152 /^X\(\/\/\)[^/].*/{
11153 s//\1/
11154 q
11155 }
11156 /^X\(\/\/\)$/{
11157 s//\1/
11158 q
11159 }
11160 /^X\(\/\).*/{
11161 s//\1/
11162 q
11163 }
11164 s/.*/./; q'`/stamp-h$_am_stamp_count
11165 ;;
11166
11167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11168 $as_echo "$as_me: executing $ac_file commands" >&6;}
11169 ;;
11170 esac
11171
11172
11173 case $ac_file$ac_mode in
11174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11175 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11176 # are listed without --file. Let's play safe and only enable the eval
11177 # if we detect the quoting.
11178 case $CONFIG_FILES in
11179 *\'*) eval set x "$CONFIG_FILES" ;;
11180 *) set x $CONFIG_FILES ;;
11181 esac
11182 shift
11183 for mf
11184 do
11185 # Strip MF so we end up with the name of the file.
11186 mf=`echo "$mf" | sed -e 's/:.*$//'`
11187 # Check whether this is an Automake generated Makefile or not.
11188 # We used to match only the files named `Makefile.in', but
11189 # some people rename them; so instead we look at the file content.
11190 # Grep'ing the first line is not enough: some people post-process
11191 # each Makefile.in and add a new line on top of each file to say so.
11192 # Grep'ing the whole file is not good either: AIX grep has a line
11193 # limit of 2048, but all sed's we know have understand at least 4000.
11194 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11195 dirpart=`$as_dirname -- "$mf" ||
11196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11197 X"$mf" : 'X\(//\)[^/]' \| \
11198 X"$mf" : 'X\(//\)$' \| \
11199 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11200 $as_echo X"$mf" |
11201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11202 s//\1/
11203 q
11204 }
11205 /^X\(\/\/\)[^/].*/{
11206 s//\1/
11207 q
11208 }
11209 /^X\(\/\/\)$/{
11210 s//\1/
11211 q
11212 }
11213 /^X\(\/\).*/{
11214 s//\1/
11215 q
11216 }
11217 s/.*/./; q'`
11218 else
11219 continue
11220 fi
11221 # Extract the definition of DEPDIR, am__include, and am__quote
11222 # from the Makefile without running `make'.
11223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11224 test -z "$DEPDIR" && continue
11225 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11226 test -z "am__include" && continue
11227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11228 # When using ansi2knr, U may be empty or an underscore; expand it
11229 U=`sed -n 's/^U = //p' < "$mf"`
11230 # Find all dependency output files, they are included files with
11231 # $(DEPDIR) in their names. We invoke sed twice because it is the
11232 # simplest approach to changing $(DEPDIR) to its actual value in the
11233 # expansion.
11234 for file in `sed -n "
11235 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11236 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11237 # Make sure the directory exists.
11238 test -f "$dirpart/$file" && continue
11239 fdir=`$as_dirname -- "$file" ||
11240 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11241 X"$file" : 'X\(//\)[^/]' \| \
11242 X"$file" : 'X\(//\)$' \| \
11243 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11244 $as_echo X"$file" |
11245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11246 s//\1/
11247 q
11248 }
11249 /^X\(\/\/\)[^/].*/{
11250 s//\1/
11251 q
11252 }
11253 /^X\(\/\/\)$/{
11254 s//\1/
11255 q
11256 }
11257 /^X\(\/\).*/{
11258 s//\1/
11259 q
11260 }
11261 s/.*/./; q'`
11262 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11263 # echo "creating $dirpart/$file"
11264 echo '# dummy' > "$dirpart/$file"
11265 done
11266 done
11267 }
11268 ;;
11269
11270 esac
11271 done # for ac_tag
11272
11273
11274 as_fn_exit 0
11275 _ACEOF
11276 ac_clean_files=$ac_clean_files_save
11277
11278 test $ac_write_fail = 0 ||
11279 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11280
11281
11282 # configure is writing to config.log, and then calls config.status.
11283 # config.status does its own redirection, appending to config.log.
11284 # Unfortunately, on DOS this fails, as config.log is still kept open
11285 # by configure, so config.status won't be able to write to it; its
11286 # output is simply discarded. So we exec the FD to /dev/null,
11287 # effectively closing config.log, so it can be properly (re)opened and
11288 # appended to by config.status. When coming back to configure, we
11289 # need to make the FD available again.
11290 if test "$no_create" != yes; then
11291 ac_cs_success=:
11292 ac_config_status_args=
11293 test "$silent" = yes &&
11294 ac_config_status_args="$ac_config_status_args --quiet"
11295 exec 5>/dev/null
11296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11297 exec 5>>config.log
11298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11299 # would make configure fail if this is the last instruction.
11300 $ac_cs_success || as_fn_exit $?
11301 fi
11302 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11304 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11305 fi
11306