]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/ThirdParty/c99_snprintf/c99-snprintf_1.1/configure
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / ThirdParty / c99_snprintf / c99-snprintf_1.1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for C99-snprintf 1.1.
4 #
5 # Report bugs to <holger@jhweiss.de>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='C99-snprintf'
576 PACKAGE_TARNAME='c99-snprintf'
577 PACKAGE_VERSION='1.1'
578 PACKAGE_STRING='C99-snprintf 1.1'
579 PACKAGE_BUGREPORT='holger@jhweiss.de'
580
581 ac_header_list=
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 am__isrc
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 install_sh
668 STRIP
669 INSTALL_STRIP_PROGRAM
670 mkdir_p
671 AWK
672 SET_MAKE
673 am__leading_dot
674 AMTAR
675 am__tar
676 am__untar
677 CC
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
684 DEPDIR
685 am__include
686 am__quote
687 AMDEP_TRUE
688 AMDEP_FALSE
689 AMDEPBACKSLASH
690 CCDEPMODE
691 am__fastdepCC_TRUE
692 am__fastdepCC_FALSE
693 CPP
694 GREP
695 EGREP
696 LIBOBJS
697 LTLIBOBJS'
698 ac_subst_files=''
699       ac_precious_vars='build_alias
700 host_alias
701 target_alias
702 CC
703 CFLAGS
704 LDFLAGS
705 LIBS
706 CPPFLAGS
707 CPP'
708
709
710 # Initialize some variables set by options.
711 ac_init_help=
712 ac_init_version=false
713 # The variables have the same names as the options, with
714 # dashes changed to underlines.
715 cache_file=/dev/null
716 exec_prefix=NONE
717 no_create=
718 no_recursion=
719 prefix=NONE
720 program_prefix=NONE
721 program_suffix=NONE
722 program_transform_name=s,x,x,
723 silent=
724 site=
725 srcdir=
726 verbose=
727 x_includes=NONE
728 x_libraries=NONE
729
730 # Installation directory options.
731 # These are left unexpanded so users can "make install exec_prefix=/foo"
732 # and all the variables that are supposed to be based on exec_prefix
733 # by default will actually change.
734 # Use braces instead of parens because sh, perl, etc. also accept them.
735 # (The list follows the same order as the GNU Coding Standards.)
736 bindir='${exec_prefix}/bin'
737 sbindir='${exec_prefix}/sbin'
738 libexecdir='${exec_prefix}/libexec'
739 datarootdir='${prefix}/share'
740 datadir='${datarootdir}'
741 sysconfdir='${prefix}/etc'
742 sharedstatedir='${prefix}/com'
743 localstatedir='${prefix}/var'
744 includedir='${prefix}/include'
745 oldincludedir='/usr/include'
746 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
747 infodir='${datarootdir}/info'
748 htmldir='${docdir}'
749 dvidir='${docdir}'
750 pdfdir='${docdir}'
751 psdir='${docdir}'
752 libdir='${exec_prefix}/lib'
753 localedir='${datarootdir}/locale'
754 mandir='${datarootdir}/man'
755
756 ac_prev=
757 ac_dashdash=
758 for ac_option
759 do
760   # If the previous option needs an argument, assign it.
761   if test -n "$ac_prev"; then
762     eval $ac_prev=\$ac_option
763     ac_prev=
764     continue
765   fi
766
767   case $ac_option in
768   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769   *)    ac_optarg=yes ;;
770   esac
771
772   # Accept the important Cygnus configure options, so we can diagnose typos.
773
774   case $ac_dashdash$ac_option in
775   --)
776     ac_dashdash=yes ;;
777
778   -bindir | --bindir | --bindi | --bind | --bin | --bi)
779     ac_prev=bindir ;;
780   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781     bindir=$ac_optarg ;;
782
783   -build | --build | --buil | --bui | --bu)
784     ac_prev=build_alias ;;
785   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786     build_alias=$ac_optarg ;;
787
788   -cache-file | --cache-file | --cache-fil | --cache-fi \
789   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790     ac_prev=cache_file ;;
791   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793     cache_file=$ac_optarg ;;
794
795   --config-cache | -C)
796     cache_file=config.cache ;;
797
798   -datadir | --datadir | --datadi | --datad)
799     ac_prev=datadir ;;
800   -datadir=* | --datadir=* | --datadi=* | --datad=*)
801     datadir=$ac_optarg ;;
802
803   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804   | --dataroo | --dataro | --datar)
805     ac_prev=datarootdir ;;
806   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808     datarootdir=$ac_optarg ;;
809
810   -disable-* | --disable-*)
811     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812     # Reject names that are not valid shell variable names.
813     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
814       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815    { (exit 1); exit 1; }; }
816     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
817     eval enable_$ac_feature=no ;;
818
819   -docdir | --docdir | --docdi | --doc | --do)
820     ac_prev=docdir ;;
821   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
822     docdir=$ac_optarg ;;
823
824   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
825     ac_prev=dvidir ;;
826   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
827     dvidir=$ac_optarg ;;
828
829   -enable-* | --enable-*)
830     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
831     # Reject names that are not valid shell variable names.
832     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
833       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834    { (exit 1); exit 1; }; }
835     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
836     eval enable_$ac_feature=\$ac_optarg ;;
837
838   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840   | --exec | --exe | --ex)
841     ac_prev=exec_prefix ;;
842   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844   | --exec=* | --exe=* | --ex=*)
845     exec_prefix=$ac_optarg ;;
846
847   -gas | --gas | --ga | --g)
848     # Obsolete; use --with-gas.
849     with_gas=yes ;;
850
851   -help | --help | --hel | --he | -h)
852     ac_init_help=long ;;
853   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854     ac_init_help=recursive ;;
855   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856     ac_init_help=short ;;
857
858   -host | --host | --hos | --ho)
859     ac_prev=host_alias ;;
860   -host=* | --host=* | --hos=* | --ho=*)
861     host_alias=$ac_optarg ;;
862
863   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864     ac_prev=htmldir ;;
865   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866   | --ht=*)
867     htmldir=$ac_optarg ;;
868
869   -includedir | --includedir | --includedi | --included | --include \
870   | --includ | --inclu | --incl | --inc)
871     ac_prev=includedir ;;
872   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873   | --includ=* | --inclu=* | --incl=* | --inc=*)
874     includedir=$ac_optarg ;;
875
876   -infodir | --infodir | --infodi | --infod | --info | --inf)
877     ac_prev=infodir ;;
878   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879     infodir=$ac_optarg ;;
880
881   -libdir | --libdir | --libdi | --libd)
882     ac_prev=libdir ;;
883   -libdir=* | --libdir=* | --libdi=* | --libd=*)
884     libdir=$ac_optarg ;;
885
886   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887   | --libexe | --libex | --libe)
888     ac_prev=libexecdir ;;
889   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890   | --libexe=* | --libex=* | --libe=*)
891     libexecdir=$ac_optarg ;;
892
893   -localedir | --localedir | --localedi | --localed | --locale)
894     ac_prev=localedir ;;
895   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896     localedir=$ac_optarg ;;
897
898   -localstatedir | --localstatedir | --localstatedi | --localstated \
899   | --localstate | --localstat | --localsta | --localst | --locals)
900     ac_prev=localstatedir ;;
901   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
902   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
903     localstatedir=$ac_optarg ;;
904
905   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906     ac_prev=mandir ;;
907   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908     mandir=$ac_optarg ;;
909
910   -nfp | --nfp | --nf)
911     # Obsolete; use --without-fp.
912     with_fp=no ;;
913
914   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915   | --no-cr | --no-c | -n)
916     no_create=yes ;;
917
918   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920     no_recursion=yes ;;
921
922   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924   | --oldin | --oldi | --old | --ol | --o)
925     ac_prev=oldincludedir ;;
926   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929     oldincludedir=$ac_optarg ;;
930
931   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932     ac_prev=prefix ;;
933   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934     prefix=$ac_optarg ;;
935
936   -program-prefix | --program-prefix | --program-prefi | --program-pref \
937   | --program-pre | --program-pr | --program-p)
938     ac_prev=program_prefix ;;
939   -program-prefix=* | --program-prefix=* | --program-prefi=* \
940   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941     program_prefix=$ac_optarg ;;
942
943   -program-suffix | --program-suffix | --program-suffi | --program-suff \
944   | --program-suf | --program-su | --program-s)
945     ac_prev=program_suffix ;;
946   -program-suffix=* | --program-suffix=* | --program-suffi=* \
947   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948     program_suffix=$ac_optarg ;;
949
950   -program-transform-name | --program-transform-name \
951   | --program-transform-nam | --program-transform-na \
952   | --program-transform-n | --program-transform- \
953   | --program-transform | --program-transfor \
954   | --program-transfo | --program-transf \
955   | --program-trans | --program-tran \
956   | --progr-tra | --program-tr | --program-t)
957     ac_prev=program_transform_name ;;
958   -program-transform-name=* | --program-transform-name=* \
959   | --program-transform-nam=* | --program-transform-na=* \
960   | --program-transform-n=* | --program-transform-=* \
961   | --program-transform=* | --program-transfor=* \
962   | --program-transfo=* | --program-transf=* \
963   | --program-trans=* | --program-tran=* \
964   | --progr-tra=* | --program-tr=* | --program-t=*)
965     program_transform_name=$ac_optarg ;;
966
967   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968     ac_prev=pdfdir ;;
969   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970     pdfdir=$ac_optarg ;;
971
972   -psdir | --psdir | --psdi | --psd | --ps)
973     ac_prev=psdir ;;
974   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975     psdir=$ac_optarg ;;
976
977   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978   | -silent | --silent | --silen | --sile | --sil)
979     silent=yes ;;
980
981   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982     ac_prev=sbindir ;;
983   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984   | --sbi=* | --sb=*)
985     sbindir=$ac_optarg ;;
986
987   -sharedstatedir | --sharedstatedir | --sharedstatedi \
988   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989   | --sharedst | --shareds | --shared | --share | --shar \
990   | --sha | --sh)
991     ac_prev=sharedstatedir ;;
992   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995   | --sha=* | --sh=*)
996     sharedstatedir=$ac_optarg ;;
997
998   -site | --site | --sit)
999     ac_prev=site ;;
1000   -site=* | --site=* | --sit=*)
1001     site=$ac_optarg ;;
1002
1003   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004     ac_prev=srcdir ;;
1005   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006     srcdir=$ac_optarg ;;
1007
1008   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009   | --syscon | --sysco | --sysc | --sys | --sy)
1010     ac_prev=sysconfdir ;;
1011   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013     sysconfdir=$ac_optarg ;;
1014
1015   -target | --target | --targe | --targ | --tar | --ta | --t)
1016     ac_prev=target_alias ;;
1017   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018     target_alias=$ac_optarg ;;
1019
1020   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021     verbose=yes ;;
1022
1023   -version | --version | --versio | --versi | --vers | -V)
1024     ac_init_version=: ;;
1025
1026   -with-* | --with-*)
1027     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid package name: $ac_package" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033     eval with_$ac_package=\$ac_optarg ;;
1034
1035   -without-* | --without-*)
1036     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037     # Reject names that are not valid shell variable names.
1038     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039       { echo "$as_me: error: invalid package name: $ac_package" >&2
1040    { (exit 1); exit 1; }; }
1041     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042     eval with_$ac_package=no ;;
1043
1044   --x)
1045     # Obsolete; use --with-x.
1046     with_x=yes ;;
1047
1048   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1049   | --x-incl | --x-inc | --x-in | --x-i)
1050     ac_prev=x_includes ;;
1051   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1052   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1053     x_includes=$ac_optarg ;;
1054
1055   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1056   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1057     ac_prev=x_libraries ;;
1058   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1059   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1060     x_libraries=$ac_optarg ;;
1061
1062   -*) { echo "$as_me: error: unrecognized option: $ac_option
1063 Try \`$0 --help' for more information." >&2
1064    { (exit 1); exit 1; }; }
1065     ;;
1066
1067   *=*)
1068     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1072    { (exit 1); exit 1; }; }
1073     eval $ac_envvar=\$ac_optarg
1074     export $ac_envvar ;;
1075
1076   *)
1077     # FIXME: should be removed in autoconf 3.0.
1078     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1079     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1081     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1082     ;;
1083
1084   esac
1085 done
1086
1087 if test -n "$ac_prev"; then
1088   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1089   { echo "$as_me: error: missing argument to $ac_option" >&2
1090    { (exit 1); exit 1; }; }
1091 fi
1092
1093 # Be sure to have absolute directory names.
1094 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1095                 datadir sysconfdir sharedstatedir localstatedir includedir \
1096                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1097                 libdir localedir mandir
1098 do
1099   eval ac_val=\$$ac_var
1100   case $ac_val in
1101     [\\/$]* | ?:[\\/]* )  continue;;
1102     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1103   esac
1104   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1105    { (exit 1); exit 1; }; }
1106 done
1107
1108 # There might be people who depend on the old broken behavior: `$host'
1109 # used to hold the argument of --host etc.
1110 # FIXME: To remove some day.
1111 build=$build_alias
1112 host=$host_alias
1113 target=$target_alias
1114
1115 # FIXME: To remove some day.
1116 if test "x$host_alias" != x; then
1117   if test "x$build_alias" = x; then
1118     cross_compiling=maybe
1119     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120     If a cross compiler is detected then cross compile mode will be used." >&2
1121   elif test "x$build_alias" != "x$host_alias"; then
1122     cross_compiling=yes
1123   fi
1124 fi
1125
1126 ac_tool_prefix=
1127 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1128
1129 test "$silent" = yes && exec 6>/dev/null
1130
1131
1132 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133 ac_ls_di=`ls -di .` &&
1134 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135   { echo "$as_me: error: Working directory cannot be determined" >&2
1136    { (exit 1); exit 1; }; }
1137 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1138   { echo "$as_me: error: pwd does not report name of working directory" >&2
1139    { (exit 1); exit 1; }; }
1140
1141
1142 # Find the source files, if location was not specified.
1143 if test -z "$srcdir"; then
1144   ac_srcdir_defaulted=yes
1145   # Try the directory containing this script, then the parent directory.
1146   ac_confdir=`$as_dirname -- "$0" ||
1147 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148          X"$0" : 'X\(//\)[^/]' \| \
1149          X"$0" : 'X\(//\)$' \| \
1150          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1151 echo X"$0" |
1152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153             s//\1/
1154             q
1155           }
1156           /^X\(\/\/\)[^/].*/{
1157             s//\1/
1158             q
1159           }
1160           /^X\(\/\/\)$/{
1161             s//\1/
1162             q
1163           }
1164           /^X\(\/\).*/{
1165             s//\1/
1166             q
1167           }
1168           s/.*/./; q'`
1169   srcdir=$ac_confdir
1170   if test ! -r "$srcdir/$ac_unique_file"; then
1171     srcdir=..
1172   fi
1173 else
1174   ac_srcdir_defaulted=no
1175 fi
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1179    { (exit 1); exit 1; }; }
1180 fi
1181 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1182 ac_abs_confdir=`(
1183         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1184    { (exit 1); exit 1; }; }
1185         pwd)`
1186 # When building in place, set srcdir=.
1187 if test "$ac_abs_confdir" = "$ac_pwd"; then
1188   srcdir=.
1189 fi
1190 # Remove unnecessary trailing slashes from srcdir.
1191 # Double slashes in file names in object file debugging info
1192 # mess up M-x gdb in Emacs.
1193 case $srcdir in
1194 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1195 esac
1196 for ac_var in $ac_precious_vars; do
1197   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1198   eval ac_env_${ac_var}_value=\$${ac_var}
1199   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1200   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1201 done
1202
1203 #
1204 # Report the --help message.
1205 #
1206 if test "$ac_init_help" = "long"; then
1207   # Omit some internal or obsolete options to make the list less imposing.
1208   # This message is too long to be a string in the A/UX 3.1 sh.
1209   cat <<_ACEOF
1210 \`configure' configures C99-snprintf 1.1 to adapt to many kinds of systems.
1211
1212 Usage: $0 [OPTION]... [VAR=VALUE]...
1213
1214 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1215 VAR=VALUE.  See below for descriptions of some of the useful variables.
1216
1217 Defaults for the options are specified in brackets.
1218
1219 Configuration:
1220   -h, --help              display this help and exit
1221       --help=short        display options specific to this package
1222       --help=recursive    display the short help of all the included packages
1223   -V, --version           display version information and exit
1224   -q, --quiet, --silent   do not print \`checking...' messages
1225       --cache-file=FILE   cache test results in FILE [disabled]
1226   -C, --config-cache      alias for \`--cache-file=config.cache'
1227   -n, --no-create         do not create output files
1228       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1229
1230 Installation directories:
1231   --prefix=PREFIX         install architecture-independent files in PREFIX
1232                           [$ac_default_prefix]
1233   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1234                           [PREFIX]
1235
1236 By default, \`make install' will install all the files in
1237 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1238 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1239 for instance \`--prefix=\$HOME'.
1240
1241 For better control, use the options below.
1242
1243 Fine tuning of the installation directories:
1244   --bindir=DIR           user executables [EPREFIX/bin]
1245   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1246   --libexecdir=DIR       program executables [EPREFIX/libexec]
1247   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1248   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1249   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1250   --libdir=DIR           object code libraries [EPREFIX/lib]
1251   --includedir=DIR       C header files [PREFIX/include]
1252   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1253   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1254   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1255   --infodir=DIR          info documentation [DATAROOTDIR/info]
1256   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1257   --mandir=DIR           man documentation [DATAROOTDIR/man]
1258   --docdir=DIR           documentation root [DATAROOTDIR/doc/c99-snprintf]
1259   --htmldir=DIR          html documentation [DOCDIR]
1260   --dvidir=DIR           dvi documentation [DOCDIR]
1261   --pdfdir=DIR           pdf documentation [DOCDIR]
1262   --psdir=DIR            ps documentation [DOCDIR]
1263 _ACEOF
1264
1265   cat <<\_ACEOF
1266
1267 Program names:
1268   --program-prefix=PREFIX            prepend PREFIX to installed program names
1269   --program-suffix=SUFFIX            append SUFFIX to installed program names
1270   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1271 _ACEOF
1272 fi
1273
1274 if test -n "$ac_init_help"; then
1275   case $ac_init_help in
1276      short | recursive ) echo "Configuration of C99-snprintf 1.1:";;
1277    esac
1278   cat <<\_ACEOF
1279
1280 Optional Features:
1281   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1282   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1283   --disable-dependency-tracking  speeds up one-time build
1284   --enable-dependency-tracking   do not reject slow dependency extractors
1285
1286 Some influential environment variables:
1287   CC          C compiler command
1288   CFLAGS      C compiler flags
1289   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1290               nonstandard directory <lib dir>
1291   LIBS        libraries to pass to the linker, e.g. -l<library>
1292   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293               you have headers in a nonstandard directory <include dir>
1294   CPP         C preprocessor
1295
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1298
1299 Report bugs to <holger@jhweiss.de>.
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305   # If there are subdirs, report their specific --help.
1306   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307     test -d "$ac_dir" || continue
1308     ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314   # A ".." for each directory in $ac_dir_suffix.
1315   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316   case $ac_top_builddir_sub in
1317   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319   esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327   .)  # We are building in place.
1328     ac_srcdir=.
1329     ac_top_srcdir=$ac_top_builddir_sub
1330     ac_abs_top_srcdir=$ac_pwd ;;
1331   [\\/]* | ?:[\\/]* )  # Absolute name.
1332     ac_srcdir=$srcdir$ac_dir_suffix;
1333     ac_top_srcdir=$srcdir
1334     ac_abs_top_srcdir=$srcdir ;;
1335   *) # Relative name.
1336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337     ac_top_srcdir=$ac_top_build_prefix$srcdir
1338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342     cd "$ac_dir" || { ac_status=$?; continue; }
1343     # Check for guested configure.
1344     if test -f "$ac_srcdir/configure.gnu"; then
1345       echo &&
1346       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347     elif test -f "$ac_srcdir/configure"; then
1348       echo &&
1349       $SHELL "$ac_srcdir/configure" --help=recursive
1350     else
1351       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352     fi || ac_status=$?
1353     cd "$ac_pwd" || { ac_status=$?; break; }
1354   done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359   cat <<\_ACEOF
1360 C99-snprintf configure 1.1
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368   exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by C99-snprintf $as_me 1.1, which was
1375 generated by GNU Autoconf 2.61.  Invocation command line was
1376
1377   $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1395
1396 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1397 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1400 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1401 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1402 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409   IFS=$as_save_IFS
1410   test -z "$as_dir" && as_dir=.
1411   echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438   for ac_arg
1439   do
1440     case $ac_arg in
1441     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443     | -silent | --silent | --silen | --sile | --sil)
1444       continue ;;
1445     *\'*)
1446       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447     esac
1448     case $ac_pass in
1449     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450     2)
1451       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452       if test $ac_must_keep_next = true; then
1453         ac_must_keep_next=false # Got value, back to normal.
1454       else
1455         case $ac_arg in
1456           *=* | --config-cache | -C | -disable-* | --disable-* \
1457           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459           | -with-* | --with-* | -without-* | --without-* | --x)
1460             case "$ac_configure_args0 " in
1461               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462             esac
1463             ;;
1464           -* ) ac_must_keep_next=true ;;
1465         esac
1466       fi
1467       ac_configure_args="$ac_configure_args '$ac_arg'"
1468       ;;
1469     esac
1470   done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log.  We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481   # Save into config.log some information that might help in debugging.
1482   {
1483     echo
1484
1485     cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490     echo
1491     # The following way of writing the cache mishandles newlines in values,
1492 (
1493   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494     eval ac_val=\$$ac_var
1495     case $ac_val in #(
1496     *${as_nl}*)
1497       case $ac_var in #(
1498       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500       esac
1501       case $ac_var in #(
1502       _ | IFS | as_nl) ;; #(
1503       *) $as_unset $ac_var ;;
1504       esac ;;
1505     esac
1506   done
1507   (set) 2>&1 |
1508     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509     *${as_nl}ac_space=\ *)
1510       sed -n \
1511         "s/'\''/'\''\\\\'\'''\''/g;
1512           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513       ;; #(
1514     *)
1515       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516       ;;
1517     esac |
1518     sort
1519 )
1520     echo
1521
1522     cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527     echo
1528     for ac_var in $ac_subst_vars
1529     do
1530       eval ac_val=\$$ac_var
1531       case $ac_val in
1532       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533       esac
1534       echo "$ac_var='\''$ac_val'\''"
1535     done | sort
1536     echo
1537
1538     if test -n "$ac_subst_files"; then
1539       cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544       echo
1545       for ac_var in $ac_subst_files
1546       do
1547         eval ac_val=\$$ac_var
1548         case $ac_val in
1549         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550         esac
1551         echo "$ac_var='\''$ac_val'\''"
1552       done | sort
1553       echo
1554     fi
1555
1556     if test -s confdefs.h; then
1557       cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562       echo
1563       cat confdefs.h
1564       echo
1565     fi
1566     test "$ac_signal" != 0 &&
1567       echo "$as_me: caught signal $ac_signal"
1568     echo "$as_me: exit $exit_status"
1569   } >&5
1570   rm -f core *.core core.conftest.* &&
1571     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572     exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612   set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616   set x "$ac_default_prefix/share/config.site" \
1617         "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622   if test -r "$ac_site_file"; then
1623     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625     sed 's/^/| /' "$ac_site_file" >&5
1626     . "$ac_site_file"
1627   fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631   # Some versions of bash will fail to source /dev/null (special
1632   # files actually), so we avoid doing that.
1633   if test -f "$cache_file"; then
1634     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636     case $cache_file in
1637       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638       *)                      . "./$cache_file";;
1639     esac
1640   fi
1641 else
1642   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644   >$cache_file
1645 fi
1646
1647 ac_header_list="$ac_header_list stdarg.h"
1648 ac_header_list="$ac_header_list varargs.h"
1649 # Check that the precious variables saved in the cache have kept the same
1650 # value.
1651 ac_cache_corrupted=false
1652 for ac_var in $ac_precious_vars; do
1653   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1654   eval ac_new_set=\$ac_env_${ac_var}_set
1655   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1656   eval ac_new_val=\$ac_env_${ac_var}_value
1657   case $ac_old_set,$ac_new_set in
1658     set,)
1659       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1660 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1661       ac_cache_corrupted=: ;;
1662     ,set)
1663       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1664 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1665       ac_cache_corrupted=: ;;
1666     ,);;
1667     *)
1668       if test "x$ac_old_val" != "x$ac_new_val"; then
1669         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1670 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1671         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1672 echo "$as_me:   former value:  $ac_old_val" >&2;}
1673         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1674 echo "$as_me:   current value: $ac_new_val" >&2;}
1675         ac_cache_corrupted=:
1676       fi;;
1677   esac
1678   # Pass precious variables to config.status.
1679   if test "$ac_new_set" = set; then
1680     case $ac_new_val in
1681     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1682     *) ac_arg=$ac_var=$ac_new_val ;;
1683     esac
1684     case " $ac_configure_args " in
1685       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1686       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1687     esac
1688   fi
1689 done
1690 if $ac_cache_corrupted; then
1691   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1692 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1693   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1694 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1695    { (exit 1); exit 1; }; }
1696 fi
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722 ac_ext=c
1723 ac_cpp='$CPP $CPPFLAGS'
1724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1727
1728
1729
1730 ac_config_headers="$ac_config_headers config.h"
1731
1732 am__api_version='1.10'
1733
1734 ac_aux_dir=
1735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1736   if test -f "$ac_dir/install-sh"; then
1737     ac_aux_dir=$ac_dir
1738     ac_install_sh="$ac_aux_dir/install-sh -c"
1739     break
1740   elif test -f "$ac_dir/install.sh"; then
1741     ac_aux_dir=$ac_dir
1742     ac_install_sh="$ac_aux_dir/install.sh -c"
1743     break
1744   elif test -f "$ac_dir/shtool"; then
1745     ac_aux_dir=$ac_dir
1746     ac_install_sh="$ac_aux_dir/shtool install -c"
1747     break
1748   fi
1749 done
1750 if test -z "$ac_aux_dir"; then
1751   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1752 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 # These three variables are undocumented and unsupported,
1757 # and are intended to be withdrawn in a future Autoconf release.
1758 # They can cause serious problems if a builder's source tree is in a directory
1759 # whose full name contains unusual characters.
1760 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1761 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1762 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1763
1764
1765 # Find a good install program.  We prefer a C program (faster),
1766 # so one script is as good as another.  But avoid the broken or
1767 # incompatible versions:
1768 # SysV /etc/install, /usr/sbin/install
1769 # SunOS /usr/etc/install
1770 # IRIX /sbin/install
1771 # AIX /bin/install
1772 # AmigaOS /C/install, which installs bootblocks on floppy discs
1773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1776 # OS/2's system install, which has a completely different semantic
1777 # ./install, which can be erroneously created by make from ./install.sh.
1778 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1779 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1780 if test -z "$INSTALL"; then
1781 if test "${ac_cv_path_install+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787   IFS=$as_save_IFS
1788   test -z "$as_dir" && as_dir=.
1789   # Account for people who put trailing slashes in PATH elements.
1790 case $as_dir/ in
1791   ./ | .// | /cC/* | \
1792   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1793   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1794   /usr/ucb/* ) ;;
1795   *)
1796     # OSF1 and SCO ODT 3.0 have their own names for install.
1797     # Don't use installbsd from OSF since it installs stuff as root
1798     # by default.
1799     for ac_prog in ginstall scoinst install; do
1800       for ac_exec_ext in '' $ac_executable_extensions; do
1801         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1802           if test $ac_prog = install &&
1803             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1804             # AIX install.  It has an incompatible calling convention.
1805             :
1806           elif test $ac_prog = install &&
1807             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1808             # program-specific install script used by HP pwplus--don't use.
1809             :
1810           else
1811             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1812             break 3
1813           fi
1814         fi
1815       done
1816     done
1817     ;;
1818 esac
1819 done
1820 IFS=$as_save_IFS
1821
1822
1823 fi
1824   if test "${ac_cv_path_install+set}" = set; then
1825     INSTALL=$ac_cv_path_install
1826   else
1827     # As a last resort, use the slow shell script.  Don't cache a
1828     # value for INSTALL within a source directory, because that will
1829     # break other packages using the cache if that directory is
1830     # removed, or if the value is a relative name.
1831     INSTALL=$ac_install_sh
1832   fi
1833 fi
1834 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1835 echo "${ECHO_T}$INSTALL" >&6; }
1836
1837 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1838 # It thinks the first close brace ends the variable substitution.
1839 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1840
1841 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1842
1843 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1844
1845 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1846 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1847 # Just in case
1848 sleep 1
1849 echo timestamp > conftest.file
1850 # Do `set' in a subshell so we don't clobber the current shell's
1851 # arguments.  Must try -L first in case configure is actually a
1852 # symlink; some systems play weird games with the mod time of symlinks
1853 # (eg FreeBSD returns the mod time of the symlink's containing
1854 # directory).
1855 if (
1856    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1857    if test "$*" = "X"; then
1858       # -L didn't work.
1859       set X `ls -t $srcdir/configure conftest.file`
1860    fi
1861    rm -f conftest.file
1862    if test "$*" != "X $srcdir/configure conftest.file" \
1863       && test "$*" != "X conftest.file $srcdir/configure"; then
1864
1865       # If neither matched, then we have a broken ls.  This can happen
1866       # if, for instance, CONFIG_SHELL is bash and it inherits a
1867       # broken ls alias from the environment.  This has actually
1868       # happened.  Such a system could not be considered "sane".
1869       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1870 alias in your environment" >&5
1871 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1872 alias in your environment" >&2;}
1873    { (exit 1); exit 1; }; }
1874    fi
1875
1876    test "$2" = conftest.file
1877    )
1878 then
1879    # Ok.
1880    :
1881 else
1882    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1883 Check your system clock" >&5
1884 echo "$as_me: error: newly created file is older than distributed files!
1885 Check your system clock" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888 { echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6; }
1890 test "$program_prefix" != NONE &&
1891   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1892 # Use a double $ so make ignores it.
1893 test "$program_suffix" != NONE &&
1894   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1895 # Double any \ or $.  echo might interpret backslashes.
1896 # By default was `s,x,x', remove it if useless.
1897 cat <<\_ACEOF >conftest.sed
1898 s/[\\$]/&&/g;s/;s,x,x,$//
1899 _ACEOF
1900 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1901 rm -f conftest.sed
1902
1903 # expand $ac_aux_dir to an absolute path
1904 am_aux_dir=`cd $ac_aux_dir && pwd`
1905
1906 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1907 # Use eval to expand $SHELL
1908 if eval "$MISSING --run true"; then
1909   am_missing_run="$MISSING --run "
1910 else
1911   am_missing_run=
1912   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1913 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1914 fi
1915
1916 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1917 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1918 if test -z "$MKDIR_P"; then
1919   if test "${ac_cv_path_mkdir+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_prog in mkdir gmkdir; do
1928          for ac_exec_ext in '' $ac_executable_extensions; do
1929            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1930            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1931              'mkdir (GNU coreutils) '* | \
1932              'mkdir (coreutils) '* | \
1933              'mkdir (fileutils) '4.1*)
1934                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1935                break 3;;
1936            esac
1937          done
1938        done
1939 done
1940 IFS=$as_save_IFS
1941
1942 fi
1943
1944   if test "${ac_cv_path_mkdir+set}" = set; then
1945     MKDIR_P="$ac_cv_path_mkdir -p"
1946   else
1947     # As a last resort, use the slow shell script.  Don't cache a
1948     # value for MKDIR_P within a source directory, because that will
1949     # break other packages using the cache if that directory is
1950     # removed, or if the value is a relative name.
1951     test -d ./--version && rmdir ./--version
1952     MKDIR_P="$ac_install_sh -d"
1953   fi
1954 fi
1955 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1956 echo "${ECHO_T}$MKDIR_P" >&6; }
1957
1958 mkdir_p="$MKDIR_P"
1959 case $mkdir_p in
1960   [\\/$]* | ?:[\\/]*) ;;
1961   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1962 esac
1963
1964 for ac_prog in gawk mawk nawk awk
1965 do
1966   # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy $ac_prog; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_AWK+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$AWK"; then
1974   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983     ac_cv_prog_AWK="$ac_prog"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989 IFS=$as_save_IFS
1990
1991 fi
1992 fi
1993 AWK=$ac_cv_prog_AWK
1994 if test -n "$AWK"; then
1995   { echo "$as_me:$LINENO: result: $AWK" >&5
1996 echo "${ECHO_T}$AWK" >&6; }
1997 else
1998   { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2000 fi
2001
2002
2003   test -n "$AWK" && break
2004 done
2005
2006 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2007 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2008 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2009 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.make <<\_ACEOF
2013 SHELL = /bin/sh
2014 all:
2015         @echo '@@@%%%=$(MAKE)=@@@%%%'
2016 _ACEOF
2017 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2018 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2019   *@@@%%%=?*=@@@%%%*)
2020     eval ac_cv_prog_make_${ac_make}_set=yes;;
2021   *)
2022     eval ac_cv_prog_make_${ac_make}_set=no;;
2023 esac
2024 rm -f conftest.make
2025 fi
2026 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2027   { echo "$as_me:$LINENO: result: yes" >&5
2028 echo "${ECHO_T}yes" >&6; }
2029   SET_MAKE=
2030 else
2031   { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2033   SET_MAKE="MAKE=${MAKE-make}"
2034 fi
2035
2036 rm -rf .tst 2>/dev/null
2037 mkdir .tst 2>/dev/null
2038 if test -d .tst; then
2039   am__leading_dot=.
2040 else
2041   am__leading_dot=_
2042 fi
2043 rmdir .tst 2>/dev/null
2044
2045 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2046   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2047   # is not polluted with repeated "-I."
2048   am__isrc=' -I$(srcdir)'
2049   # test to see if srcdir already configured
2050   if test -f $srcdir/config.status; then
2051     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2052 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2053    { (exit 1); exit 1; }; }
2054   fi
2055 fi
2056
2057 # test whether we have cygpath
2058 if test -z "$CYGPATH_W"; then
2059   if (cygpath --version) >/dev/null 2>/dev/null; then
2060     CYGPATH_W='cygpath -w'
2061   else
2062     CYGPATH_W=echo
2063   fi
2064 fi
2065
2066
2067 # Define the identity of the package.
2068  PACKAGE='c99-snprintf'
2069  VERSION='1.1'
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE "$PACKAGE"
2074 _ACEOF
2075
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define VERSION "$VERSION"
2079 _ACEOF
2080
2081 # Some tools Automake needs.
2082
2083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2084
2085
2086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2087
2088
2089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2090
2091
2092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2093
2094
2095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2096
2097 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2098
2099 # Installed binaries are usually stripped using `strip' when the user
2100 # run `make install-strip'.  However `strip' might not be the right
2101 # tool to use in cross-compilation environments, therefore Automake
2102 # will honor the `STRIP' environment variable to overrule this program.
2103 if test "$cross_compiling" != no; then
2104   if test -n "$ac_tool_prefix"; then
2105   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}strip; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_STRIP+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   if test -n "$STRIP"; then
2113   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 STRIP=$ac_cv_prog_STRIP
2133 if test -n "$STRIP"; then
2134   { echo "$as_me:$LINENO: result: $STRIP" >&5
2135 echo "${ECHO_T}$STRIP" >&6; }
2136 else
2137   { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2139 fi
2140
2141
2142 fi
2143 if test -z "$ac_cv_prog_STRIP"; then
2144   ac_ct_STRIP=$STRIP
2145   # Extract the first word of "strip", so it can be a program name with args.
2146 set dummy strip; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$ac_ct_STRIP"; then
2153   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162     ac_cv_prog_ac_ct_STRIP="strip"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2173 if test -n "$ac_ct_STRIP"; then
2174   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2175 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2176 else
2177   { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2179 fi
2180
2181   if test "x$ac_ct_STRIP" = x; then
2182     STRIP=":"
2183   else
2184     case $cross_compiling:$ac_tool_warned in
2185 yes:)
2186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2187 whose name does not start with the host triplet.  If you think this
2188 configuration is useful to you, please write to autoconf@gnu.org." >&5
2189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet.  If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192 ac_tool_warned=yes ;;
2193 esac
2194     STRIP=$ac_ct_STRIP
2195   fi
2196 else
2197   STRIP="$ac_cv_prog_STRIP"
2198 fi
2199
2200 fi
2201 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2202
2203 # We need awk for the "check" target.  The system "awk" is bad on
2204 # some platforms.
2205 # Always define AMTAR for backward compatibility.
2206
2207 AMTAR=${AMTAR-"${am_missing_run}tar"}
2208
2209 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2210
2211
2212
2213
2214
2215 DEPDIR="${am__leading_dot}deps"
2216
2217 ac_config_commands="$ac_config_commands depfiles"
2218
2219
2220 am_make=${MAKE-make}
2221 cat > confinc << 'END'
2222 am__doit:
2223         @echo done
2224 .PHONY: am__doit
2225 END
2226 # If we don't find an include directive, just comment out the code.
2227 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2228 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2229 am__include="#"
2230 am__quote=
2231 _am_result=none
2232 # First try GNU make style include.
2233 echo "include confinc" > confmf
2234 # We grep out `Entering directory' and `Leaving directory'
2235 # messages which can occur if `w' ends up in MAKEFLAGS.
2236 # In particular we don't look at `^make:' because GNU make might
2237 # be invoked under some other name (usually "gmake"), in which
2238 # case it prints its new name instead of `make'.
2239 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2240    am__include=include
2241    am__quote=
2242    _am_result=GNU
2243 fi
2244 # Now try BSD make style include.
2245 if test "$am__include" = "#"; then
2246    echo '.include "confinc"' > confmf
2247    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2248       am__include=.include
2249       am__quote="\""
2250       _am_result=BSD
2251    fi
2252 fi
2253
2254
2255 { echo "$as_me:$LINENO: result: $_am_result" >&5
2256 echo "${ECHO_T}$_am_result" >&6; }
2257 rm -f confinc confmf
2258
2259 # Check whether --enable-dependency-tracking was given.
2260 if test "${enable_dependency_tracking+set}" = set; then
2261   enableval=$enable_dependency_tracking;
2262 fi
2263
2264 if test "x$enable_dependency_tracking" != xno; then
2265   am_depcomp="$ac_aux_dir/depcomp"
2266   AMDEPBACKSLASH='\'
2267 fi
2268  if test "x$enable_dependency_tracking" != xno; then
2269   AMDEP_TRUE=
2270   AMDEP_FALSE='#'
2271 else
2272   AMDEP_TRUE='#'
2273   AMDEP_FALSE=
2274 fi
2275
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 if test -n "$ac_tool_prefix"; then
2283   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309 fi
2310 CC=$ac_cv_prog_CC
2311 if test -n "$CC"; then
2312   { echo "$as_me:$LINENO: result: $CC" >&5
2313 echo "${ECHO_T}$CC" >&6; }
2314 else
2315   { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2318
2319
2320 fi
2321 if test -z "$ac_cv_prog_CC"; then
2322   ac_ct_CC=$CC
2323   # Extract the first word of "gcc", so it can be a program name with args.
2324 set dummy gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$ac_ct_CC"; then
2331   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_ac_ct_CC="gcc"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351 if test -n "$ac_ct_CC"; then
2352   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2353 echo "${ECHO_T}$ac_ct_CC" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359   if test "x$ac_ct_CC" = x; then
2360     CC=""
2361   else
2362     case $cross_compiling:$ac_tool_warned in
2363 yes:)
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet.  If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet.  If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2371 esac
2372     CC=$ac_ct_CC
2373   fi
2374 else
2375   CC="$ac_cv_prog_CC"
2376 fi
2377
2378 if test -z "$CC"; then
2379           if test -n "$ac_tool_prefix"; then
2380     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}cc; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   if test -n "$CC"; then
2388   ac_cv_prog_CC="$CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395   for ac_exec_ext in '' $ac_executable_extensions; do
2396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397     ac_cv_prog_CC="${ac_tool_prefix}cc"
2398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399     break 2
2400   fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 CC=$ac_cv_prog_CC
2408 if test -n "$CC"; then
2409   { echo "$as_me:$LINENO: result: $CC" >&5
2410 echo "${ECHO_T}$CC" >&6; }
2411 else
2412   { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2414 fi
2415
2416
2417   fi
2418 fi
2419 if test -z "$CC"; then
2420   # Extract the first word of "cc", so it can be a program name with args.
2421 set dummy cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   if test -n "$CC"; then
2428   ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430   ac_prog_rejected=no
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436   for ac_exec_ext in '' $ac_executable_extensions; do
2437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2439        ac_prog_rejected=yes
2440        continue
2441      fi
2442     ac_cv_prog_CC="cc"
2443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 if test $ac_prog_rejected = yes; then
2451   # We found a bogon in the path, so make sure we never use it.
2452   set dummy $ac_cv_prog_CC
2453   shift
2454   if test $# != 0; then
2455     # We chose a different compiler from the bogus one.
2456     # However, it has the same basename, so the bogon will be chosen
2457     # first if we set CC to just the basename; use the full file name.
2458     shift
2459     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2460   fi
2461 fi
2462 fi
2463 fi
2464 CC=$ac_cv_prog_CC
2465 if test -n "$CC"; then
2466   { echo "$as_me:$LINENO: result: $CC" >&5
2467 echo "${ECHO_T}$CC" >&6; }
2468 else
2469   { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2471 fi
2472
2473
2474 fi
2475 if test -z "$CC"; then
2476   if test -n "$ac_tool_prefix"; then
2477   for ac_prog in cl.exe
2478   do
2479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_CC+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$CC"; then
2487   ac_cv_prog_CC="$CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508   { echo "$as_me:$LINENO: result: $CC" >&5
2509 echo "${ECHO_T}$CC" >&6; }
2510 else
2511   { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2513 fi
2514
2515
2516     test -n "$CC" && break
2517   done
2518 fi
2519 if test -z "$CC"; then
2520   ac_ct_CC=$CC
2521   for ac_prog in cl.exe
2522 do
2523   # Extract the first word of "$ac_prog", so it can be a program name with args.
2524 set dummy $ac_prog; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$ac_ct_CC"; then
2531   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_ac_ct_CC="$ac_prog"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2551 if test -n "$ac_ct_CC"; then
2552   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2553 echo "${ECHO_T}$ac_ct_CC" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559
2560   test -n "$ac_ct_CC" && break
2561 done
2562
2563   if test "x$ac_ct_CC" = x; then
2564     CC=""
2565   else
2566     case $cross_compiling:$ac_tool_warned in
2567 yes:)
2568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2569 whose name does not start with the host triplet.  If you think this
2570 configuration is useful to you, please write to autoconf@gnu.org." >&5
2571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2572 whose name does not start with the host triplet.  If you think this
2573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2574 ac_tool_warned=yes ;;
2575 esac
2576     CC=$ac_ct_CC
2577   fi
2578 fi
2579
2580 fi
2581
2582
2583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: no acceptable C compiler found in \$PATH
2586 See \`config.log' for more details." >&2;}
2587    { (exit 1); exit 1; }; }
2588
2589 # Provide some information about the compiler.
2590 echo "$as_me:$LINENO: checking for C compiler version" >&5
2591 ac_compiler=`set X $ac_compile; echo $2`
2592 { (ac_try="$ac_compiler --version >&5"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compiler --version >&5") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }
2602 { (ac_try="$ac_compiler -v >&5"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compiler -v >&5") 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }
2612 { (ac_try="$ac_compiler -V >&5"
2613 case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_compiler -V >&5") 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }
2622
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 ac_clean_files_save=$ac_clean_files
2639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2640 # Try to create an executable without -o first, disregard a.out.
2641 # It will help us diagnose broken compilers, and finding out an intuition
2642 # of exeext.
2643 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646 #
2647 # List of possible output files, starting from the most likely.
2648 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2649 # only as a last resort.  b.out is created by i960 compilers.
2650 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2651 #
2652 # The IRIX 6 linker writes into existing files which may not be
2653 # executable, retaining their permissions.  Remove them first so a
2654 # subsequent execution test works.
2655 ac_rmfiles=
2656 for ac_file in $ac_files
2657 do
2658   case $ac_file in
2659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2660     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2661   esac
2662 done
2663 rm -f $ac_rmfiles
2664
2665 if { (ac_try="$ac_link_default"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_link_default") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2678 # so that the user can short-circuit this test for compilers unknown to
2679 # Autoconf.
2680 for ac_file in $ac_files ''
2681 do
2682   test -f "$ac_file" || continue
2683   case $ac_file in
2684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2685         ;;
2686     [ab].out )
2687         # We found the default executable, but exeext='' is most
2688         # certainly right.
2689         break;;
2690     *.* )
2691         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692         then :; else
2693            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694         fi
2695         # We set ac_cv_exeext here because the later test for it is not
2696         # safe: cross compilers may not add the suffix if given an `-o'
2697         # argument, so we may need to know it at that point already.
2698         # Even if this section looks crufty: it has the advantage of
2699         # actually working.
2700         break;;
2701     * )
2702         break;;
2703   esac
2704 done
2705 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
2707 else
2708   ac_file=''
2709 fi
2710
2711 { echo "$as_me:$LINENO: result: $ac_file" >&5
2712 echo "${ECHO_T}$ac_file" >&6; }
2713 if test -z "$ac_file"; then
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: C compiler cannot create executables
2720 See \`config.log' for more details." >&2;}
2721    { (exit 77); exit 77; }; }
2722 fi
2723
2724 ac_exeext=$ac_cv_exeext
2725
2726 # Check that the compiler produces executables we can run.  If not, either
2727 # the compiler is broken, or we cross compile.
2728 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2729 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2730 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2731 # If not cross compiling, check that we can run a simple program.
2732 if test "$cross_compiling" != yes; then
2733   if { ac_try='./$ac_file'
2734   { (case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_try") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743     cross_compiling=no
2744   else
2745     if test "$cross_compiling" = maybe; then
2746         cross_compiling=yes
2747     else
2748         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \`config.log' for more details." >&2;}
2754    { (exit 1); exit 1; }; }
2755     fi
2756   fi
2757 fi
2758 { echo "$as_me:$LINENO: result: yes" >&5
2759 echo "${ECHO_T}yes" >&6; }
2760
2761 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2762 ac_clean_files=$ac_clean_files_save
2763 # Check that the compiler produces executables we can run.  If not, either
2764 # the compiler is broken, or we cross compile.
2765 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2766 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2767 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2768 echo "${ECHO_T}$cross_compiling" >&6; }
2769
2770 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2771 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2772 if { (ac_try="$ac_link"
2773 case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_link") 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; then
2782   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2783 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2784 # work properly (i.e., refer to `conftest.exe'), while it won't with
2785 # `rm'.
2786 for ac_file in conftest.exe conftest conftest.*; do
2787   test -f "$ac_file" || continue
2788   case $ac_file in
2789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791           break;;
2792     * ) break;;
2793   esac
2794 done
2795 else
2796   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2799 See \`config.log' for more details." >&2;}
2800    { (exit 1); exit 1; }; }
2801 fi
2802
2803 rm -f conftest$ac_cv_exeext
2804 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2805 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2806
2807 rm -f conftest.$ac_ext
2808 EXEEXT=$ac_cv_exeext
2809 ac_exeext=$EXEEXT
2810 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2811 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2812 if test "${ac_cv_objext+set}" = set; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821
2822 int
2823 main ()
2824 {
2825
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.o conftest.obj
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_compile") 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; then
2841   for ac_file in conftest.o conftest.obj conftest.*; do
2842   test -f "$ac_file" || continue;
2843   case $ac_file in
2844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2845     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2846        break;;
2847   esac
2848 done
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2856 See \`config.log' for more details." >&2;}
2857    { (exit 1); exit 1; }; }
2858 fi
2859
2860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2861 fi
2862 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2863 echo "${ECHO_T}$ac_cv_objext" >&6; }
2864 OBJEXT=$ac_cv_objext
2865 ac_objext=$OBJEXT
2866 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877
2878 int
2879 main ()
2880 {
2881 #ifndef __GNUC__
2882        choke me
2883 #endif
2884
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compile") 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } && {
2903          test -z "$ac_c_werror_flag" ||
2904          test ! -s conftest.err
2905        } && test -s conftest.$ac_objext; then
2906   ac_compiler_gnu=yes
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911         ac_compiler_gnu=no
2912 fi
2913
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2916
2917 fi
2918 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2920 GCC=`test $ac_compiler_gnu = yes && echo yes`
2921 ac_test_CFLAGS=${CFLAGS+set}
2922 ac_save_CFLAGS=$CFLAGS
2923 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2924 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2925 if test "${ac_cv_prog_cc_g+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   ac_save_c_werror_flag=$ac_c_werror_flag
2929    ac_c_werror_flag=yes
2930    ac_cv_prog_cc_g=no
2931    CFLAGS="-g"
2932    cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } && {
2961          test -z "$ac_c_werror_flag" ||
2962          test ! -s conftest.err
2963        } && test -s conftest.$ac_objext; then
2964   ac_cv_prog_cc_g=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         CFLAGS=""
2970       cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } && {
2999          test -z "$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        } && test -s conftest.$ac_objext; then
3002   :
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007         ac_c_werror_flag=$ac_save_c_werror_flag
3008          CFLAGS="-g"
3009          cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } && {
3038          test -z "$ac_c_werror_flag" ||
3039          test ! -s conftest.err
3040        } && test -s conftest.$ac_objext; then
3041   ac_cv_prog_cc_g=yes
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046
3047 fi
3048
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 fi
3051
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056    ac_c_werror_flag=$ac_save_c_werror_flag
3057 fi
3058 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3060 if test "$ac_test_CFLAGS" = set; then
3061   CFLAGS=$ac_save_CFLAGS
3062 elif test $ac_cv_prog_cc_g = yes; then
3063   if test "$GCC" = yes; then
3064     CFLAGS="-g -O2"
3065   else
3066     CFLAGS="-g"
3067   fi
3068 else
3069   if test "$GCC" = yes; then
3070     CFLAGS="-O2"
3071   else
3072     CFLAGS=
3073   fi
3074 fi
3075 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3076 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_c89+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_cv_prog_cc_c89=no
3081 ac_save_CC=$CC
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #include <stdarg.h>
3089 #include <stdio.h>
3090 #include <sys/types.h>
3091 #include <sys/stat.h>
3092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3093 struct buf { int x; };
3094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3095 static char *e (p, i)
3096      char **p;
3097      int i;
3098 {
3099   return p[i];
3100 }
3101 static char *f (char * (*g) (char **, int), char **p, ...)
3102 {
3103   char *s;
3104   va_list v;
3105   va_start (v,p);
3106   s = g (p, va_arg (v,int));
3107   va_end (v);
3108   return s;
3109 }
3110
3111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3112    function prototypes and stuff, but not '\xHH' hex character constants.
3113    These don't provoke an error unfortunately, instead are silently treated
3114    as 'x'.  The following induces an error, until -std is added to get
3115    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3116    array size at least.  It's necessary to write '\x00'==0 to get something
3117    that's true only with -std.  */
3118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3119
3120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3121    inside strings and character constants.  */
3122 #define FOO(x) 'x'
3123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3124
3125 int test (int i, double x);
3126 struct s1 {int (*f) (int a);};
3127 struct s2 {int (*f) (double a);};
3128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3129 int argc;
3130 char **argv;
3131 int
3132 main ()
3133 {
3134 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3140         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3141 do
3142   CC="$ac_save_CC $ac_arg"
3143   rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } && {
3157          test -z "$ac_c_werror_flag" ||
3158          test ! -s conftest.err
3159        } && test -s conftest.$ac_objext; then
3160   ac_cv_prog_cc_c89=$ac_arg
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext
3169   test "x$ac_cv_prog_cc_c89" != "xno" && break
3170 done
3171 rm -f conftest.$ac_ext
3172 CC=$ac_save_CC
3173
3174 fi
3175 # AC_CACHE_VAL
3176 case "x$ac_cv_prog_cc_c89" in
3177   x)
3178     { echo "$as_me:$LINENO: result: none needed" >&5
3179 echo "${ECHO_T}none needed" >&6; } ;;
3180   xno)
3181     { echo "$as_me:$LINENO: result: unsupported" >&5
3182 echo "${ECHO_T}unsupported" >&6; } ;;
3183   *)
3184     CC="$CC $ac_cv_prog_cc_c89"
3185     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3186 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3187 esac
3188
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196 depcc="$CC"   am_compiler_list=
3197
3198 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3199 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3200 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3204   # We make a subdir and do the tests there.  Otherwise we can end up
3205   # making bogus files that we don't know about and never remove.  For
3206   # instance it was reported that on HP-UX the gcc test will end up
3207   # making a dummy file named `D' -- because `-MD' means `put the output
3208   # in D'.
3209   mkdir conftest.dir
3210   # Copy depcomp to subdir because otherwise we won't find it if we're
3211   # using a relative directory.
3212   cp "$am_depcomp" conftest.dir
3213   cd conftest.dir
3214   # We will build objects and dependencies in a subdirectory because
3215   # it helps to detect inapplicable dependency modes.  For instance
3216   # both Tru64's cc and ICC support -MD to output dependencies as a
3217   # side effect of compilation, but ICC will put the dependencies in
3218   # the current directory while Tru64 will put them in the object
3219   # directory.
3220   mkdir sub
3221
3222   am_cv_CC_dependencies_compiler_type=none
3223   if test "$am_compiler_list" = ""; then
3224      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3225   fi
3226   for depmode in $am_compiler_list; do
3227     # Setup a source with many dependencies, because some compilers
3228     # like to wrap large dependency lists on column 80 (with \), and
3229     # we should not choose a depcomp mode which is confused by this.
3230     #
3231     # We need to recreate these files for each test, as the compiler may
3232     # overwrite some of them when testing with obscure command lines.
3233     # This happens at least with the AIX C compiler.
3234     : > sub/conftest.c
3235     for i in 1 2 3 4 5 6; do
3236       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3237       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3238       # Solaris 8's {/usr,}/bin/sh.
3239       touch sub/conftst$i.h
3240     done
3241     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3242
3243     case $depmode in
3244     nosideeffect)
3245       # after this tag, mechanisms are not by side-effect, so they'll
3246       # only be used when explicitly requested
3247       if test "x$enable_dependency_tracking" = xyes; then
3248         continue
3249       else
3250         break
3251       fi
3252       ;;
3253     none) break ;;
3254     esac
3255     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3256     # mode.  It turns out that the SunPro C++ compiler does not properly
3257     # handle `-M -o', and we need to detect this.
3258     if depmode=$depmode \
3259        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3260        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3261        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3262          >/dev/null 2>conftest.err &&
3263        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3264        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3265        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3266        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3267       # icc doesn't choke on unknown options, it will just issue warnings
3268       # or remarks (even with -Werror).  So we grep stderr for any message
3269       # that says an option was ignored or not supported.
3270       # When given -MP, icc 7.0 and 7.1 complain thusly:
3271       #   icc: Command line warning: ignoring option '-M'; no argument required
3272       # The diagnosis changed in icc 8.0:
3273       #   icc: Command line remark: option '-MP' not supported
3274       if (grep 'ignoring option' conftest.err ||
3275           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3276         am_cv_CC_dependencies_compiler_type=$depmode
3277         break
3278       fi
3279     fi
3280   done
3281
3282   cd ..
3283   rm -rf conftest.dir
3284 else
3285   am_cv_CC_dependencies_compiler_type=none
3286 fi
3287
3288 fi
3289 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3290 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3291 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3292
3293  if
3294   test "x$enable_dependency_tracking" != xno \
3295   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3296   am__fastdepCC_TRUE=
3297   am__fastdepCC_FALSE='#'
3298 else
3299   am__fastdepCC_TRUE='#'
3300   am__fastdepCC_FALSE=
3301 fi
3302
3303
3304    { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3305 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_cc_c99+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   ac_cv_prog_cc_c99=no
3310 ac_save_CC=$CC
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <stdarg.h>
3318 #include <stdbool.h>
3319 #include <stdlib.h>
3320 #include <wchar.h>
3321 #include <stdio.h>
3322
3323 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3324 #define debug(...) fprintf (stderr, __VA_ARGS__)
3325 #define showlist(...) puts (#__VA_ARGS__)
3326 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3327 static void
3328 test_varargs_macros (void)
3329 {
3330   int x = 1234;
3331   int y = 5678;
3332   debug ("Flag");
3333   debug ("X = %d\n", x);
3334   showlist (The first, second, and third items.);
3335   report (x>y, "x is %d but y is %d", x, y);
3336 }
3337
3338 // Check long long types.
3339 #define BIG64 18446744073709551615ull
3340 #define BIG32 4294967295ul
3341 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3342 #if !BIG_OK
3343   your preprocessor is broken;
3344 #endif
3345 #if BIG_OK
3346 #else
3347   your preprocessor is broken;
3348 #endif
3349 static long long int bignum = -9223372036854775807LL;
3350 static unsigned long long int ubignum = BIG64;
3351
3352 struct incomplete_array
3353 {
3354   int datasize;
3355   double data[];
3356 };
3357
3358 struct named_init {
3359   int number;
3360   const wchar_t *name;
3361   double average;
3362 };
3363
3364 typedef const char *ccp;
3365
3366 static inline int
3367 test_restrict (ccp restrict text)
3368 {
3369   // See if C++-style comments work.
3370   // Iterate through items via the restricted pointer.
3371   // Also check for declarations in for loops.
3372   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3373     continue;
3374   return 0;
3375 }
3376
3377 // Check varargs and va_copy.
3378 static void
3379 test_varargs (const char *format, ...)
3380 {
3381   va_list args;
3382   va_start (args, format);
3383   va_list args_copy;
3384   va_copy (args_copy, args);
3385
3386   const char *str;
3387   int number;
3388   float fnumber;
3389
3390   while (*format)
3391     {
3392       switch (*format++)
3393         {
3394         case 's': // string
3395           str = va_arg (args_copy, const char *);
3396           break;
3397         case 'd': // int
3398           number = va_arg (args_copy, int);
3399           break;
3400         case 'f': // float
3401           fnumber = va_arg (args_copy, double);
3402           break;
3403         default:
3404           break;
3405         }
3406     }
3407   va_end (args_copy);
3408   va_end (args);
3409 }
3410
3411 int
3412 main ()
3413 {
3414
3415   // Check bool.
3416   _Bool success = false;
3417
3418   // Check restrict.
3419   if (test_restrict ("String literal") == 0)
3420     success = true;
3421   char *restrict newvar = "Another string";
3422
3423   // Check varargs.
3424   test_varargs ("s, d' f .", "string", 65, 34.234);
3425   test_varargs_macros ();
3426
3427   // Check flexible array members.
3428   struct incomplete_array *ia =
3429     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3430   ia->datasize = 10;
3431   for (int i = 0; i < ia->datasize; ++i)
3432     ia->data[i] = i * 1.234;
3433
3434   // Check named initializers.
3435   struct named_init ni = {
3436     .number = 34,
3437     .name = L"Test wide string",
3438     .average = 543.34343,
3439   };
3440
3441   ni.number = 58;
3442
3443   int dynamic_array[ni.number];
3444   dynamic_array[ni.number - 1] = 543;
3445
3446   // work around unused variable warnings
3447   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3448           || dynamic_array[ni.number - 1] != 543);
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3455 do
3456   CC="$ac_save_CC $ac_arg"
3457   rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464   (eval "$ac_compile") 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } && {
3471          test -z "$ac_c_werror_flag" ||
3472          test ! -s conftest.err
3473        } && test -s conftest.$ac_objext; then
3474   ac_cv_prog_cc_c99=$ac_arg
3475 else
3476   echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479
3480 fi
3481
3482 rm -f core conftest.err conftest.$ac_objext
3483   test "x$ac_cv_prog_cc_c99" != "xno" && break
3484 done
3485 rm -f conftest.$ac_ext
3486 CC=$ac_save_CC
3487
3488 fi
3489 # AC_CACHE_VAL
3490 case "x$ac_cv_prog_cc_c99" in
3491   x)
3492     { echo "$as_me:$LINENO: result: none needed" >&5
3493 echo "${ECHO_T}none needed" >&6; } ;;
3494   xno)
3495     { echo "$as_me:$LINENO: result: unsupported" >&5
3496 echo "${ECHO_T}unsupported" >&6; } ;;
3497   *)
3498     CC="$CC $ac_cv_prog_cc_c99"
3499     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3501 esac
3502
3503
3504
3505
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3513 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3514 # On Suns, sometimes $CPP names a directory.
3515 if test -n "$CPP" && test -d "$CPP"; then
3516   CPP=
3517 fi
3518 if test -z "$CPP"; then
3519   if test "${ac_cv_prog_CPP+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522       # Double quotes because CPP needs to be expanded
3523     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3524     do
3525       ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3527 do
3528   # Use a header file that comes with gcc, so configuring glibc
3529   # with a fresh cross-compiler works.
3530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531   # <limits.h> exists even on freestanding compilers.
3532   # On the NeXT, cc -E runs the code through the compiler's parser,
3533   # not just through cpp. "Syntax error" is here to catch this case.
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545                      Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } >/dev/null && {
3560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3561          test ! -s conftest.err
3562        }; then
3563   :
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568   # Broken: fails on valid input.
3569 continue
3570 fi
3571
3572 rm -f conftest.err conftest.$ac_ext
3573
3574   # OK, works on sane cases.  Now check whether nonexistent headers
3575   # can be detected and how.
3576   cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582 #include <ac_nonexistent.h>
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } >/dev/null && {
3597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598          test ! -s conftest.err
3599        }; then
3600   # Broken: success on invalid input.
3601 continue
3602 else
3603   echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606   # Passes both tests.
3607 ac_preproc_ok=:
3608 break
3609 fi
3610
3611 rm -f conftest.err conftest.$ac_ext
3612
3613 done
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then
3617   break
3618 fi
3619
3620     done
3621     ac_cv_prog_CPP=$CPP
3622
3623 fi
3624   CPP=$ac_cv_prog_CPP
3625 else
3626   ac_cv_prog_CPP=$CPP
3627 fi
3628 { echo "$as_me:$LINENO: result: $CPP" >&5
3629 echo "${ECHO_T}$CPP" >&6; }
3630 ac_preproc_ok=false
3631 for ac_c_preproc_warn_flag in '' yes
3632 do
3633   # Use a header file that comes with gcc, so configuring glibc
3634   # with a fresh cross-compiler works.
3635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636   # <limits.h> exists even on freestanding compilers.
3637   # On the NeXT, cc -E runs the code through the compiler's parser,
3638   # not just through cpp. "Syntax error" is here to catch this case.
3639   cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #ifdef __STDC__
3646 # include <limits.h>
3647 #else
3648 # include <assert.h>
3649 #endif
3650                      Syntax error
3651 _ACEOF
3652 if { (ac_try="$ac_cpp conftest.$ac_ext"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } >/dev/null && {
3665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3666          test ! -s conftest.err
3667        }; then
3668   :
3669 else
3670   echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673   # Broken: fails on valid input.
3674 continue
3675 fi
3676
3677 rm -f conftest.err conftest.$ac_ext
3678
3679   # OK, works on sane cases.  Now check whether nonexistent headers
3680   # can be detected and how.
3681   cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687 #include <ac_nonexistent.h>
3688 _ACEOF
3689 if { (ac_try="$ac_cpp conftest.$ac_ext"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3696   ac_status=$?
3697   grep -v '^ *+' conftest.er1 >conftest.err
3698   rm -f conftest.er1
3699   cat conftest.err >&5
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); } >/dev/null && {
3702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3703          test ! -s conftest.err
3704        }; then
3705   # Broken: success on invalid input.
3706 continue
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711   # Passes both tests.
3712 ac_preproc_ok=:
3713 break
3714 fi
3715
3716 rm -f conftest.err conftest.$ac_ext
3717
3718 done
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then
3722   :
3723 else
3724   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3725 See \`config.log' for more details." >&5
3726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3727 See \`config.log' for more details." >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3730
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737
3738 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_GREP+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   # Extract the first word of "grep ggrep" to use in msg output
3744 if test -z "$GREP"; then
3745 set dummy grep ggrep; ac_prog_name=$2
3746 if test "${ac_cv_path_GREP+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   ac_path_GREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756   for ac_prog in grep ggrep; do
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3760     # Check for GNU ac_path_GREP and select it if it is found.
3761   # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3763 *GNU*)
3764   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765 *)
3766   ac_count=0
3767   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768   while :
3769   do
3770     cat "conftest.in" "conftest.in" >"conftest.tmp"
3771     mv "conftest.tmp" "conftest.in"
3772     cp "conftest.in" "conftest.nl"
3773     echo 'GREP' >> "conftest.nl"
3774     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776     ac_count=`expr $ac_count + 1`
3777     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778       # Best one so far, save it but keep looking for a better one
3779       ac_cv_path_GREP="$ac_path_GREP"
3780       ac_path_GREP_max=$ac_count
3781     fi
3782     # 10*(2^10) chars as input seems more than enough
3783     test $ac_count -gt 10 && break
3784   done
3785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3787
3788
3789     $ac_path_GREP_found && break 3
3790   done
3791 done
3792
3793 done
3794 IFS=$as_save_IFS
3795
3796
3797 fi
3798
3799 GREP="$ac_cv_path_GREP"
3800 if test -z "$GREP"; then
3801   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803    { (exit 1); exit 1; }; }
3804 fi
3805
3806 else
3807   ac_cv_path_GREP=$GREP
3808 fi
3809
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3814  GREP="$ac_cv_path_GREP"
3815
3816
3817 { echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3819 if test "${ac_cv_path_EGREP+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3823    then ac_cv_path_EGREP="$GREP -E"
3824    else
3825      # Extract the first word of "egrep" to use in msg output
3826 if test -z "$EGREP"; then
3827 set dummy egrep; ac_prog_name=$2
3828 if test "${ac_cv_path_EGREP+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for ac_prog in egrep; do
3839   for ac_exec_ext in '' $ac_executable_extensions; do
3840     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3842     # Check for GNU ac_path_EGREP and select it if it is found.
3843   # Check for GNU $ac_path_EGREP
3844 case `"$ac_path_EGREP" --version 2>&1` in
3845 *GNU*)
3846   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847 *)
3848   ac_count=0
3849   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850   while :
3851   do
3852     cat "conftest.in" "conftest.in" >"conftest.tmp"
3853     mv "conftest.tmp" "conftest.in"
3854     cp "conftest.in" "conftest.nl"
3855     echo 'EGREP' >> "conftest.nl"
3856     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858     ac_count=`expr $ac_count + 1`
3859     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860       # Best one so far, save it but keep looking for a better one
3861       ac_cv_path_EGREP="$ac_path_EGREP"
3862       ac_path_EGREP_max=$ac_count
3863     fi
3864     # 10*(2^10) chars as input seems more than enough
3865     test $ac_count -gt 10 && break
3866   done
3867   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870
3871     $ac_path_EGREP_found && break 3
3872   done
3873 done
3874
3875 done
3876 IFS=$as_save_IFS
3877
3878
3879 fi
3880
3881 EGREP="$ac_cv_path_EGREP"
3882 if test -z "$EGREP"; then
3883   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885    { (exit 1); exit 1; }; }
3886 fi
3887
3888 else
3889   ac_cv_path_EGREP=$EGREP
3890 fi
3891
3892
3893    fi
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3897  EGREP="$ac_cv_path_EGREP"
3898
3899
3900 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3902 if test "${ac_cv_header_stdc+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include <stdlib.h>
3912 #include <stdarg.h>
3913 #include <string.h>
3914 #include <float.h>
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_compile") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && {
3938          test -z "$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        } && test -s conftest.$ac_objext; then
3941   ac_cv_header_stdc=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946         ac_cv_header_stdc=no
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950
3951 if test $ac_cv_header_stdc = yes; then
3952   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959 #include <string.h>
3960
3961 _ACEOF
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963   $EGREP "memchr" >/dev/null 2>&1; then
3964   :
3965 else
3966   ac_cv_header_stdc=no
3967 fi
3968 rm -f conftest*
3969
3970 fi
3971
3972 if test $ac_cv_header_stdc = yes; then
3973   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3974   cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980 #include <stdlib.h>
3981
3982 _ACEOF
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984   $EGREP "free" >/dev/null 2>&1; then
3985   :
3986 else
3987   ac_cv_header_stdc=no
3988 fi
3989 rm -f conftest*
3990
3991 fi
3992
3993 if test $ac_cv_header_stdc = yes; then
3994   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3995   if test "$cross_compiling" = yes; then
3996   :
3997 else
3998   cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004 #include <ctype.h>
4005 #include <stdlib.h>
4006 #if ((' ' & 0x0FF) == 0x020)
4007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4009 #else
4010 # define ISLOWER(c) \
4011                    (('a' <= (c) && (c) <= 'i') \
4012                      || ('j' <= (c) && (c) <= 'r') \
4013                      || ('s' <= (c) && (c) <= 'z'))
4014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4015 #endif
4016
4017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4018 int
4019 main ()
4020 {
4021   int i;
4022   for (i = 0; i < 256; i++)
4023     if (XOR (islower (i), ISLOWER (i))
4024         || toupper (i) != TOUPPER (i))
4025       return 2;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest$ac_exeext
4030 if { (ac_try="$ac_link"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_link") 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4040   { (case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_try") 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   :
4050 else
4051   echo "$as_me: program exited with status $ac_status" >&5
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 ( exit $ac_status )
4056 ac_cv_header_stdc=no
4057 fi
4058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4059 fi
4060
4061
4062 fi
4063 fi
4064 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4065 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4066 if test $ac_cv_header_stdc = yes; then
4067
4068 cat >>confdefs.h <<\_ACEOF
4069 #define STDC_HEADERS 1
4070 _ACEOF
4071
4072 fi
4073
4074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4085                   inttypes.h stdint.h unistd.h
4086 do
4087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 $ac_includes_default
4100
4101 #include <$ac_header>
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110   (eval "$ac_compile") 2>conftest.er1
4111   ac_status=$?
4112   grep -v '^ *+' conftest.er1 >conftest.err
4113   rm -f conftest.er1
4114   cat conftest.err >&5
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } && {
4117          test -z "$ac_c_werror_flag" ||
4118          test ! -s conftest.err
4119        } && test -s conftest.$ac_objext; then
4120   eval "$as_ac_Header=yes"
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125         eval "$as_ac_Header=no"
4126 fi
4127
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 ac_res=`eval echo '${'$as_ac_Header'}'`
4131                { echo "$as_me:$LINENO: result: $ac_res" >&5
4132 echo "${ECHO_T}$ac_res" >&6; }
4133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4134   cat >>confdefs.h <<_ACEOF
4135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136 _ACEOF
4137
4138 fi
4139
4140 done
4141
4142
4143
4144
4145
4146
4147 for ac_header in $ac_header_list
4148 do
4149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 fi
4156 ac_res=`eval echo '${'$as_ac_Header'}'`
4157                { echo "$as_me:$LINENO: result: $ac_res" >&5
4158 echo "${ECHO_T}$ac_res" >&6; }
4159 else
4160   # Is the header compilable?
4161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 $ac_includes_default
4170 #include <$ac_header>
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_compile") 2>conftest.er1
4180   ac_status=$?
4181   grep -v '^ *+' conftest.er1 >conftest.err
4182   rm -f conftest.er1
4183   cat conftest.err >&5
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } && {
4186          test -z "$ac_c_werror_flag" ||
4187          test ! -s conftest.err
4188        } && test -s conftest.$ac_objext; then
4189   ac_header_compiler=yes
4190 else
4191   echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194         ac_header_compiler=no
4195 fi
4196
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4199 echo "${ECHO_T}$ac_header_compiler" >&6; }
4200
4201 # Is the header present?
4202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <$ac_header>
4211 _ACEOF
4212 if { (ac_try="$ac_cpp conftest.$ac_ext"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } >/dev/null && {
4225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226          test ! -s conftest.err
4227        }; then
4228   ac_header_preproc=yes
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233   ac_header_preproc=no
4234 fi
4235
4236 rm -f conftest.err conftest.$ac_ext
4237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4238 echo "${ECHO_T}$ac_header_preproc" >&6; }
4239
4240 # So?  What about this header?
4241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4242   yes:no: )
4243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4247     ac_header_preproc=yes
4248     ;;
4249   no:yes:* )
4250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4262     ( cat <<\_ASBOX
4263 ## -------------------------------- ##
4264 ## Report this to holger@jhweiss.de ##
4265 ## -------------------------------- ##
4266 _ASBOX
4267      ) | sed "s/^/$as_me: WARNING:     /" >&2
4268     ;;
4269 esac
4270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   eval "$as_ac_Header=\$ac_header_preproc"
4276 fi
4277 ac_res=`eval echo '${'$as_ac_Header'}'`
4278                { echo "$as_me:$LINENO: result: $ac_res" >&5
4279 echo "${ECHO_T}$ac_res" >&6; }
4280
4281 fi
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283   cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285 _ACEOF
4286
4287 fi
4288
4289 done
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302       { echo "$as_me:$LINENO: checking for vsnprintf" >&5
4303 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
4304 if test "${ac_cv_func_vsnprintf+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
4314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4315 #define vsnprintf innocuous_vsnprintf
4316
4317 /* System header to define __stub macros and hopefully few prototypes,
4318     which can conflict with char vsnprintf (); below.
4319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320     <limits.h> exists even on freestanding compilers.  */
4321
4322 #ifdef __STDC__
4323 # include <limits.h>
4324 #else
4325 # include <assert.h>
4326 #endif
4327
4328 #undef vsnprintf
4329
4330 /* Override any GCC internal prototype to avoid an error.
4331    Use char because int might match the return type of a GCC
4332    builtin and then its argument prototype would still apply.  */
4333 #ifdef __cplusplus
4334 extern "C"
4335 #endif
4336 char vsnprintf ();
4337 /* The GNU C library defines this for functions which it implements
4338     to always fail with ENOSYS.  Some functions are actually named
4339     something starting with __ and the normal name is an alias.  */
4340 #if defined __stub_vsnprintf || defined __stub___vsnprintf
4341 choke me
4342 #endif
4343
4344 int
4345 main ()
4346 {
4347 return vsnprintf ();
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4354 case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_link") 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } && {
4366          test -z "$ac_c_werror_flag" ||
4367          test ! -s conftest.err
4368        } && test -s conftest$ac_exeext &&
4369        $as_test_x conftest$ac_exeext; then
4370   ac_cv_func_vsnprintf=yes
4371 else
4372   echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375         ac_cv_func_vsnprintf=no
4376 fi
4377
4378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4379       conftest$ac_exeext conftest.$ac_ext
4380 fi
4381 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
4382 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
4383 if test $ac_cv_func_vsnprintf = yes; then
4384   hw_cv_func_vsnprintf=yes
4385 else
4386   hw_cv_func_vsnprintf=no
4387 fi
4388
4389   if test "$hw_cv_func_vsnprintf" = yes; then
4390   { echo "$as_me:$LINENO: checking whether vsnprintf is C99 compliant" >&5
4391 echo $ECHO_N "checking whether vsnprintf is C99 compliant... $ECHO_C" >&6; }
4392 if test "${hw_cv_func_vsnprintf_c99+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   if test "$cross_compiling" = yes; then
4396   hw_cv_func_vsnprintf_c99=no
4397 else
4398   cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404 #if HAVE_STDARG_H
4405           #include <stdarg.h>
4406           #endif
4407           #include <stdio.h>
4408           static int testprintf(char *buf, size_t size, const char *format, ...)
4409           {
4410             int result;
4411             va_list ap;
4412             va_start(ap, format);
4413             result = vsnprintf(buf, size, format, ap);
4414             va_end(ap);
4415             return result;
4416           }
4417 int
4418 main ()
4419 {
4420 char buf[43];
4421           if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
4422               testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
4423               buf[0] != 'T' || buf[3] != '\0')
4424             return 1;
4425   ;
4426   return 0;
4427 }
4428 _ACEOF
4429 rm -f conftest$ac_exeext
4430 if { (ac_try="$ac_link"
4431 case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436   (eval "$ac_link") 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4440   { (case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445   (eval "$ac_try") 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   hw_cv_func_vsnprintf_c99=yes
4450 else
4451   echo "$as_me: program exited with status $ac_status" >&5
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 ( exit $ac_status )
4456 hw_cv_func_vsnprintf_c99=no
4457 fi
4458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4459 fi
4460
4461
4462 fi
4463 { echo "$as_me:$LINENO: result: $hw_cv_func_vsnprintf_c99" >&5
4464 echo "${ECHO_T}$hw_cv_func_vsnprintf_c99" >&6; }
4465 else
4466   hw_cv_func_snprintf_c99=no
4467 fi
4468
4469   if test "$hw_cv_func_vsnprintf_c99" = yes; then
4470
4471 cat >>confdefs.h <<\_ACEOF
4472 #define HAVE_VSNPRINTF 1
4473 _ACEOF
4474
4475 else
4476
4477 cat >>confdefs.h <<\_ACEOF
4478 #define vsnprintf rpl_vsnprintf
4479 _ACEOF
4480
4481
4482
4483
4484
4485 for ac_header in inttypes.h locale.h stddef.h stdint.h
4486 do
4487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 fi
4494 ac_res=`eval echo '${'$as_ac_Header'}'`
4495                { echo "$as_me:$LINENO: result: $ac_res" >&5
4496 echo "${ECHO_T}$ac_res" >&6; }
4497 else
4498   # Is the header compilable?
4499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 $ac_includes_default
4508 #include <$ac_header>
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_compile") 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } && {
4524          test -z "$ac_c_werror_flag" ||
4525          test ! -s conftest.err
4526        } && test -s conftest.$ac_objext; then
4527   ac_header_compiler=yes
4528 else
4529   echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532         ac_header_compiler=no
4533 fi
4534
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4537 echo "${ECHO_T}$ac_header_compiler" >&6; }
4538
4539 # Is the header present?
4540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 #include <$ac_header>
4549 _ACEOF
4550 if { (ac_try="$ac_cpp conftest.$ac_ext"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4557   ac_status=$?
4558   grep -v '^ *+' conftest.er1 >conftest.err
4559   rm -f conftest.er1
4560   cat conftest.err >&5
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } >/dev/null && {
4563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4564          test ! -s conftest.err
4565        }; then
4566   ac_header_preproc=yes
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571   ac_header_preproc=no
4572 fi
4573
4574 rm -f conftest.err conftest.$ac_ext
4575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576 echo "${ECHO_T}$ac_header_preproc" >&6; }
4577
4578 # So?  What about this header?
4579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4580   yes:no: )
4581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4585     ac_header_preproc=yes
4586     ;;
4587   no:yes:* )
4588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4600     ( cat <<\_ASBOX
4601 ## -------------------------------- ##
4602 ## Report this to holger@jhweiss.de ##
4603 ## -------------------------------- ##
4604 _ASBOX
4605      ) | sed "s/^/$as_me: WARNING:     /" >&2
4606     ;;
4607 esac
4608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   eval "$as_ac_Header=\$ac_header_preproc"
4614 fi
4615 ac_res=`eval echo '${'$as_ac_Header'}'`
4616                { echo "$as_me:$LINENO: result: $ac_res" >&5
4617 echo "${ECHO_T}$ac_res" >&6; }
4618
4619 fi
4620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4621   cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4623 _ACEOF
4624
4625 fi
4626
4627 done
4628
4629     { echo "$as_me:$LINENO: checking for struct lconv.decimal_point" >&5
4630 echo $ECHO_N "checking for struct lconv.decimal_point... $ECHO_C" >&6; }
4631 if test "${ac_cv_member_struct_lconv_decimal_point+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 #include <locale.h>
4641
4642 int
4643 main ()
4644 {
4645 static struct lconv ac_aggr;
4646 if (ac_aggr.decimal_point)
4647 return 0;
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659   (eval "$ac_compile") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } && {
4666          test -z "$ac_c_werror_flag" ||
4667          test ! -s conftest.err
4668        } && test -s conftest.$ac_objext; then
4669   ac_cv_member_struct_lconv_decimal_point=yes
4670 else
4671   echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674         cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h.  */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h.  */
4680 #include <locale.h>
4681
4682 int
4683 main ()
4684 {
4685 static struct lconv ac_aggr;
4686 if (sizeof ac_aggr.decimal_point)
4687 return 0;
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (ac_try="$ac_compile"
4694 case "(($ac_try" in
4695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696   *) ac_try_echo=$ac_try;;
4697 esac
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699   (eval "$ac_compile") 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } && {
4706          test -z "$ac_c_werror_flag" ||
4707          test ! -s conftest.err
4708        } && test -s conftest.$ac_objext; then
4709   ac_cv_member_struct_lconv_decimal_point=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714         ac_cv_member_struct_lconv_decimal_point=no
4715 fi
4716
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 fi
4719
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 fi
4722 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_lconv_decimal_point" >&5
4723 echo "${ECHO_T}$ac_cv_member_struct_lconv_decimal_point" >&6; }
4724 if test $ac_cv_member_struct_lconv_decimal_point = yes; then
4725
4726 cat >>confdefs.h <<_ACEOF
4727 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
4728 _ACEOF
4729
4730
4731 fi
4732 { echo "$as_me:$LINENO: checking for struct lconv.thousands_sep" >&5
4733 echo $ECHO_N "checking for struct lconv.thousands_sep... $ECHO_C" >&6; }
4734 if test "${ac_cv_member_struct_lconv_thousands_sep+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #include <locale.h>
4744
4745 int
4746 main ()
4747 {
4748 static struct lconv ac_aggr;
4749 if (ac_aggr.thousands_sep)
4750 return 0;
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (ac_try="$ac_compile"
4757 case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_compile") 2>conftest.er1
4763   ac_status=$?
4764   grep -v '^ *+' conftest.er1 >conftest.err
4765   rm -f conftest.er1
4766   cat conftest.err >&5
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } && {
4769          test -z "$ac_c_werror_flag" ||
4770          test ! -s conftest.err
4771        } && test -s conftest.$ac_objext; then
4772   ac_cv_member_struct_lconv_thousands_sep=yes
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777         cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 #include <locale.h>
4784
4785 int
4786 main ()
4787 {
4788 static struct lconv ac_aggr;
4789 if (sizeof ac_aggr.thousands_sep)
4790 return 0;
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802   (eval "$ac_compile") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } && {
4809          test -z "$ac_c_werror_flag" ||
4810          test ! -s conftest.err
4811        } && test -s conftest.$ac_objext; then
4812   ac_cv_member_struct_lconv_thousands_sep=yes
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817         ac_cv_member_struct_lconv_thousands_sep=no
4818 fi
4819
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_lconv_thousands_sep" >&5
4826 echo "${ECHO_T}$ac_cv_member_struct_lconv_thousands_sep" >&6; }
4827 if test $ac_cv_member_struct_lconv_thousands_sep = yes; then
4828
4829 cat >>confdefs.h <<_ACEOF
4830 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
4831 _ACEOF
4832
4833
4834 fi
4835
4836
4837   { echo "$as_me:$LINENO: checking for long double" >&5
4838 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
4839 if test "${ac_cv_type_long_double+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   if test "$GCC" = yes; then
4843        ac_cv_type_long_double=yes
4844      else
4845        cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 /* The Stardent Vistra knows sizeof (long double), but does
4852                  not support it.  */
4853               long double foo = 0.0L;
4854 int
4855 main ()
4856 {
4857 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4858               sizeof (double) <= sizeof (long double))];
4859 test_array [0] = 0
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (ac_try="$ac_compile"
4867 case "(($ac_try" in
4868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869   *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872   (eval "$ac_compile") 2>conftest.er1
4873   ac_status=$?
4874   grep -v '^ *+' conftest.er1 >conftest.err
4875   rm -f conftest.er1
4876   cat conftest.err >&5
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } && {
4879          test -z "$ac_c_werror_flag" ||
4880          test ! -s conftest.err
4881        } && test -s conftest.$ac_objext; then
4882   ac_cv_type_long_double=yes
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887         ac_cv_type_long_double=no
4888 fi
4889
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891      fi
4892 fi
4893 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
4894 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
4895   if test $ac_cv_type_long_double = yes; then
4896
4897 cat >>confdefs.h <<\_ACEOF
4898 #define HAVE_LONG_DOUBLE 1
4899 _ACEOF
4900
4901   fi
4902
4903
4904   { echo "$as_me:$LINENO: checking for long long int" >&5
4905 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
4906 if test "${ac_cv_type_long_long_int+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915 long long int ll = 9223372036854775807ll;
4916             long long int nll = -9223372036854775807LL;
4917             typedef int a[((-9223372036854775807LL < 0
4918                             && 0 < 9223372036854775807ll)
4919                            ? 1 : -1)];
4920             int i = 63;
4921 int
4922 main ()
4923 {
4924 long long int llmax = 9223372036854775807ll;
4925             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4926                     | (llmax / ll) | (llmax % ll));
4927   ;
4928   return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext conftest$ac_exeext
4932 if { (ac_try="$ac_link"
4933 case "(($ac_try" in
4934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935   *) ac_try_echo=$ac_try;;
4936 esac
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938   (eval "$ac_link") 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } && {
4945          test -z "$ac_c_werror_flag" ||
4946          test ! -s conftest.err
4947        } && test -s conftest$ac_exeext &&
4948        $as_test_x conftest$ac_exeext; then
4949                         if test "$cross_compiling" = yes; then
4950   ac_cv_type_long_long_int=yes
4951 else
4952   cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958 #include <limits.h>
4959                #ifndef LLONG_MAX
4960                # define HALF \
4961                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4962                # define LLONG_MAX (HALF - 1 + HALF)
4963                #endif
4964 int
4965 main ()
4966 {
4967 long long int n = 1;
4968                int i;
4969                for (i = 0; ; i++)
4970                  {
4971                    long long int m = n << i;
4972                    if (m >> i != n)
4973                      return 1;
4974                    if (LLONG_MAX / 2 < m)
4975                      break;
4976                  }
4977                return 0;
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest$ac_exeext
4983 if { (ac_try="$ac_link"
4984 case "(($ac_try" in
4985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986   *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989   (eval "$ac_link") 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4993   { (case "(($ac_try" in
4994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995   *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998   (eval "$ac_try") 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; }; then
5002   ac_cv_type_long_long_int=yes
5003 else
5004   echo "$as_me: program exited with status $ac_status" >&5
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ( exit $ac_status )
5009 ac_cv_type_long_long_int=no
5010 fi
5011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5012 fi
5013
5014
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019         ac_cv_type_long_long_int=no
5020 fi
5021
5022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5023       conftest$ac_exeext conftest.$ac_ext
5024 fi
5025 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
5026 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
5027   if test $ac_cv_type_long_long_int = yes; then
5028
5029 cat >>confdefs.h <<\_ACEOF
5030 #define HAVE_LONG_LONG_INT 1
5031 _ACEOF
5032
5033   fi
5034
5035
5036   { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
5037 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
5038 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
5039   echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041   cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h.  */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h.  */
5047 unsigned long long int ull = 18446744073709551615ULL;
5048             typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
5049                            ? 1 : -1)];
5050            int i = 63;
5051 int
5052 main ()
5053 {
5054 unsigned long long int ullmax = 18446744073709551615ull;
5055             return (ull << 63 | ull >> 63 | ull << i | ull >> i
5056                     | ullmax / ull | ullmax % ull);
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext conftest$ac_exeext
5062 if { (ac_try="$ac_link"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068   (eval "$ac_link") 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } && {
5075          test -z "$ac_c_werror_flag" ||
5076          test ! -s conftest.err
5077        } && test -s conftest$ac_exeext &&
5078        $as_test_x conftest$ac_exeext; then
5079   ac_cv_type_unsigned_long_long_int=yes
5080 else
5081   echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084         ac_cv_type_unsigned_long_long_int=no
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5088       conftest$ac_exeext conftest.$ac_ext
5089 fi
5090 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
5091 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
5092   if test $ac_cv_type_unsigned_long_long_int = yes; then
5093
5094 cat >>confdefs.h <<\_ACEOF
5095 #define HAVE_UNSIGNED_LONG_LONG_INT 1
5096 _ACEOF
5097
5098   fi
5099
5100     { echo "$as_me:$LINENO: checking for size_t" >&5
5101 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5102 if test "${ac_cv_type_size_t+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111 $ac_includes_default
5112 typedef size_t ac__type_new_;
5113 int
5114 main ()
5115 {
5116 if ((ac__type_new_ *) 0)
5117   return 0;
5118 if (sizeof (ac__type_new_))
5119   return 0;
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_compile") 2>conftest.er1
5132   ac_status=$?
5133   grep -v '^ *+' conftest.er1 >conftest.err
5134   rm -f conftest.er1
5135   cat conftest.err >&5
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } && {
5138          test -z "$ac_c_werror_flag" ||
5139          test ! -s conftest.err
5140        } && test -s conftest.$ac_objext; then
5141   ac_cv_type_size_t=yes
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146         ac_cv_type_size_t=no
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5152 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5153 if test $ac_cv_type_size_t = yes; then
5154   :
5155 else
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define size_t unsigned int
5159 _ACEOF
5160
5161 fi
5162
5163
5164
5165   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5166 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5167 if test "${ac_cv_type_intmax_t+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176 $ac_includes_default
5177 typedef intmax_t ac__type_new_;
5178 int
5179 main ()
5180 {
5181 if ((ac__type_new_ *) 0)
5182   return 0;
5183 if (sizeof (ac__type_new_))
5184   return 0;
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext
5190 if { (ac_try="$ac_compile"
5191 case "(($ac_try" in
5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193   *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196   (eval "$ac_compile") 2>conftest.er1
5197   ac_status=$?
5198   grep -v '^ *+' conftest.er1 >conftest.err
5199   rm -f conftest.er1
5200   cat conftest.err >&5
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } && {
5203          test -z "$ac_c_werror_flag" ||
5204          test ! -s conftest.err
5205        } && test -s conftest.$ac_objext; then
5206   ac_cv_type_intmax_t=yes
5207 else
5208   echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211         ac_cv_type_intmax_t=no
5212 fi
5213
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
5217 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
5218 if test $ac_cv_type_intmax_t = yes; then
5219
5220 cat >>confdefs.h <<\_ACEOF
5221 #define HAVE_INTMAX_T 1
5222 _ACEOF
5223
5224 else
5225   test $ac_cv_type_long_long_int = yes \
5226        && ac_type='long long int' \
5227        || ac_type='long int'
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define intmax_t $ac_type
5231 _ACEOF
5232
5233 fi
5234
5235
5236
5237
5238   { echo "$as_me:$LINENO: checking for uintmax_t" >&5
5239 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
5240 if test "${ac_cv_type_uintmax_t+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 $ac_includes_default
5250 typedef uintmax_t ac__type_new_;
5251 int
5252 main ()
5253 {
5254 if ((ac__type_new_ *) 0)
5255   return 0;
5256 if (sizeof (ac__type_new_))
5257   return 0;
5258   ;
5259   return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_compile") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } && {
5276          test -z "$ac_c_werror_flag" ||
5277          test ! -s conftest.err
5278        } && test -s conftest.$ac_objext; then
5279   ac_cv_type_uintmax_t=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284         ac_cv_type_uintmax_t=no
5285 fi
5286
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5290 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
5291 if test $ac_cv_type_uintmax_t = yes; then
5292
5293 cat >>confdefs.h <<\_ACEOF
5294 #define HAVE_UINTMAX_T 1
5295 _ACEOF
5296
5297 else
5298   test $ac_cv_type_unsigned_long_long_int = yes \
5299        && ac_type='unsigned long long int' \
5300        || ac_type='unsigned long int'
5301
5302 cat >>confdefs.h <<_ACEOF
5303 #define uintmax_t $ac_type
5304 _ACEOF
5305
5306 fi
5307
5308
5309
5310   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
5311 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
5312 if test "${ac_cv_type_uintptr_t+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 $ac_includes_default
5322 typedef uintptr_t ac__type_new_;
5323 int
5324 main ()
5325 {
5326 if ((ac__type_new_ *) 0)
5327   return 0;
5328 if (sizeof (ac__type_new_))
5329   return 0;
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338   *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341   (eval "$ac_compile") 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } && {
5348          test -z "$ac_c_werror_flag" ||
5349          test ! -s conftest.err
5350        } && test -s conftest.$ac_objext; then
5351   ac_cv_type_uintptr_t=yes
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356         ac_cv_type_uintptr_t=no
5357 fi
5358
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 fi
5361 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5362 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
5363 if test $ac_cv_type_uintptr_t = yes; then
5364
5365 cat >>confdefs.h <<\_ACEOF
5366 #define HAVE_UINTPTR_T 1
5367 _ACEOF
5368
5369 else
5370   for ac_type in 'unsigned int' 'unsigned long int' \
5371         'unsigned long long int'; do
5372        cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 $ac_includes_default
5379 int
5380 main ()
5381 {
5382 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5383 test_array [0] = 0
5384
5385   ;
5386   return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5391 case "(($ac_try" in
5392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393   *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396   (eval "$ac_compile") 2>conftest.er1
5397   ac_status=$?
5398   grep -v '^ *+' conftest.er1 >conftest.err
5399   rm -f conftest.er1
5400   cat conftest.err >&5
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } && {
5403          test -z "$ac_c_werror_flag" ||
5404          test ! -s conftest.err
5405        } && test -s conftest.$ac_objext; then
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define uintptr_t $ac_type
5409 _ACEOF
5410
5411           ac_type=
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416
5417 fi
5418
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420        test -z "$ac_type" && break
5421      done
5422 fi
5423
5424
5425     { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
5426 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
5427 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 typedef ptrdiff_t ac__type_new_;
5438 int
5439 main ()
5440 {
5441 if ((ac__type_new_ *) 0)
5442   return 0;
5443 if (sizeof (ac__type_new_))
5444   return 0;
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5451 case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456   (eval "$ac_compile") 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } && {
5463          test -z "$ac_c_werror_flag" ||
5464          test ! -s conftest.err
5465        } && test -s conftest.$ac_objext; then
5466   ac_cv_type_ptrdiff_t=yes
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471         ac_cv_type_ptrdiff_t=no
5472 fi
5473
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
5477 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
5478 if test $ac_cv_type_ptrdiff_t = yes; then
5479
5480 cat >>confdefs.h <<_ACEOF
5481 #define HAVE_PTRDIFF_T 1
5482 _ACEOF
5483
5484
5485 fi
5486
5487
5488 for ac_func in localeconv
5489 do
5490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5504 #define $ac_func innocuous_$ac_func
5505
5506 /* System header to define __stub macros and hopefully few prototypes,
5507     which can conflict with char $ac_func (); below.
5508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5509     <limits.h> exists even on freestanding compilers.  */
5510
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516
5517 #undef $ac_func
5518
5519 /* Override any GCC internal prototype to avoid an error.
5520    Use char because int might match the return type of a GCC
5521    builtin and then its argument prototype would still apply.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 char $ac_func ();
5526 /* The GNU C library defines this for functions which it implements
5527     to always fail with ENOSYS.  Some functions are actually named
5528     something starting with __ and the normal name is an alias.  */
5529 #if defined __stub_$ac_func || defined __stub___$ac_func
5530 choke me
5531 #endif
5532
5533 int
5534 main ()
5535 {
5536 return $ac_func ();
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (ac_try="$ac_link"
5543 case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_link") 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } && {
5555          test -z "$ac_c_werror_flag" ||
5556          test ! -s conftest.err
5557        } && test -s conftest$ac_exeext &&
5558        $as_test_x conftest$ac_exeext; then
5559   eval "$as_ac_var=yes"
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564         eval "$as_ac_var=no"
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5568       conftest$ac_exeext conftest.$ac_ext
5569 fi
5570 ac_res=`eval echo '${'$as_ac_var'}'`
5571                { echo "$as_me:$LINENO: result: $ac_res" >&5
5572 echo "${ECHO_T}$ac_res" >&6; }
5573 if test `eval echo '${'$as_ac_var'}'` = yes; then
5574   cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5576 _ACEOF
5577
5578 fi
5579 done
5580
5581
5582   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then
5583   { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5584 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5585 if test "${ac_cv_c_const+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594
5595 int
5596 main ()
5597 {
5598 /* FIXME: Include the comments suggested by Paul. */
5599 #ifndef __cplusplus
5600   /* Ultrix mips cc rejects this.  */
5601   typedef int charset[2];
5602   const charset cs;
5603   /* SunOS 4.1.1 cc rejects this.  */
5604   char const *const *pcpcc;
5605   char **ppc;
5606   /* NEC SVR4.0.2 mips cc rejects this.  */
5607   struct point {int x, y;};
5608   static struct point const zero = {0,0};
5609   /* AIX XL C 1.02.0.0 rejects this.
5610      It does not let you subtract one const X* pointer from another in
5611      an arm of an if-expression whose if-part is not a constant
5612      expression */
5613   const char *g = "string";
5614   pcpcc = &g + (g ? g-g : 0);
5615   /* HPUX 7.0 cc rejects these. */
5616   ++pcpcc;
5617   ppc = (char**) pcpcc;
5618   pcpcc = (char const *const *) ppc;
5619   { /* SCO 3.2v4 cc rejects this.  */
5620     char *t;
5621     char const *s = 0 ? (char *) 0 : (char const *) 0;
5622
5623     *t++ = 0;
5624     if (s) return 0;
5625   }
5626   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5627     int x[] = {25, 17};
5628     const int *foo = &x[0];
5629     ++foo;
5630   }
5631   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5632     typedef const int *iptr;
5633     iptr p = 0;
5634     ++p;
5635   }
5636   { /* AIX XL C 1.02.0.0 rejects this saying
5637        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5638     struct s { int j; const int *ap[3]; };
5639     struct s *b; b->j = 5;
5640   }
5641   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5642     const int foo = 10;
5643     if (!foo) return 0;
5644   }
5645   return !cs[0] && !zero.x;
5646 #endif
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5654 case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_compile") 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && {
5666          test -z "$ac_c_werror_flag" ||
5667          test ! -s conftest.err
5668        } && test -s conftest.$ac_objext; then
5669   ac_cv_c_const=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674         ac_cv_c_const=no
5675 fi
5676
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 fi
5679 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5680 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5681 if test $ac_cv_c_const = no; then
5682
5683 cat >>confdefs.h <<\_ACEOF
5684 #define const
5685 _ACEOF
5686
5687 fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697     case " $LIBOBJS " in
5698   *" snprintf.$ac_objext "* ) ;;
5699   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5700  ;;
5701 esac
5702
5703     _hw_cv_func_xprintf_replace_done=yes
5704 fi
5705
5706
5707 fi
5708
5709
5710
5711     { echo "$as_me:$LINENO: checking for snprintf" >&5
5712 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
5713 if test "${ac_cv_func_snprintf+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
5723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5724 #define snprintf innocuous_snprintf
5725
5726 /* System header to define __stub macros and hopefully few prototypes,
5727     which can conflict with char snprintf (); below.
5728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729     <limits.h> exists even on freestanding compilers.  */
5730
5731 #ifdef __STDC__
5732 # include <limits.h>
5733 #else
5734 # include <assert.h>
5735 #endif
5736
5737 #undef snprintf
5738
5739 /* Override any GCC internal prototype to avoid an error.
5740    Use char because int might match the return type of a GCC
5741    builtin and then its argument prototype would still apply.  */
5742 #ifdef __cplusplus
5743 extern "C"
5744 #endif
5745 char snprintf ();
5746 /* The GNU C library defines this for functions which it implements
5747     to always fail with ENOSYS.  Some functions are actually named
5748     something starting with __ and the normal name is an alias.  */
5749 #if defined __stub_snprintf || defined __stub___snprintf
5750 choke me
5751 #endif
5752
5753 int
5754 main ()
5755 {
5756 return snprintf ();
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5763 case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_link") 2>conftest.er1
5769   ac_status=$?
5770   grep -v '^ *+' conftest.er1 >conftest.err
5771   rm -f conftest.er1
5772   cat conftest.err >&5
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } && {
5775          test -z "$ac_c_werror_flag" ||
5776          test ! -s conftest.err
5777        } && test -s conftest$ac_exeext &&
5778        $as_test_x conftest$ac_exeext; then
5779   ac_cv_func_snprintf=yes
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784         ac_cv_func_snprintf=no
5785 fi
5786
5787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788       conftest$ac_exeext conftest.$ac_ext
5789 fi
5790 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
5791 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
5792 if test $ac_cv_func_snprintf = yes; then
5793   hw_cv_func_snprintf=yes
5794 else
5795   hw_cv_func_snprintf=no
5796 fi
5797
5798   if test "$hw_cv_func_snprintf" = yes; then
5799   { echo "$as_me:$LINENO: checking whether snprintf is C99 compliant" >&5
5800 echo $ECHO_N "checking whether snprintf is C99 compliant... $ECHO_C" >&6; }
5801 if test "${hw_cv_func_snprintf_c99+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   if test "$cross_compiling" = yes; then
5805   hw_cv_func_snprintf_c99=no
5806 else
5807   cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 #include <stdio.h>
5814 int
5815 main ()
5816 {
5817 char buf[43];
5818           if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
5819               snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
5820               buf[0] != 'T' || buf[3] != '\0')
5821             return 1;
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest$ac_exeext
5827 if { (ac_try="$ac_link"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_link") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5837   { (case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_try") 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; }; then
5846   hw_cv_func_snprintf_c99=yes
5847 else
5848   echo "$as_me: program exited with status $ac_status" >&5
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ( exit $ac_status )
5853 hw_cv_func_snprintf_c99=no
5854 fi
5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5856 fi
5857
5858
5859 fi
5860 { echo "$as_me:$LINENO: result: $hw_cv_func_snprintf_c99" >&5
5861 echo "${ECHO_T}$hw_cv_func_snprintf_c99" >&6; }
5862 else
5863   hw_cv_func_snprintf_c99=no
5864 fi
5865
5866   if test "$hw_cv_func_snprintf_c99" = yes; then
5867
5868 cat >>confdefs.h <<\_ACEOF
5869 #define HAVE_SNPRINTF 1
5870 _ACEOF
5871
5872 else
5873
5874 cat >>confdefs.h <<\_ACEOF
5875 #define snprintf rpl_snprintf
5876 _ACEOF
5877
5878
5879   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then
5880   { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5881 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5882 if test "${ac_cv_c_const+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895 /* FIXME: Include the comments suggested by Paul. */
5896 #ifndef __cplusplus
5897   /* Ultrix mips cc rejects this.  */
5898   typedef int charset[2];
5899   const charset cs;
5900   /* SunOS 4.1.1 cc rejects this.  */
5901   char const *const *pcpcc;
5902   char **ppc;
5903   /* NEC SVR4.0.2 mips cc rejects this.  */
5904   struct point {int x, y;};
5905   static struct point const zero = {0,0};
5906   /* AIX XL C 1.02.0.0 rejects this.
5907      It does not let you subtract one const X* pointer from another in
5908      an arm of an if-expression whose if-part is not a constant
5909      expression */
5910   const char *g = "string";
5911   pcpcc = &g + (g ? g-g : 0);
5912   /* HPUX 7.0 cc rejects these. */
5913   ++pcpcc;
5914   ppc = (char**) pcpcc;
5915   pcpcc = (char const *const *) ppc;
5916   { /* SCO 3.2v4 cc rejects this.  */
5917     char *t;
5918     char const *s = 0 ? (char *) 0 : (char const *) 0;
5919
5920     *t++ = 0;
5921     if (s) return 0;
5922   }
5923   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5924     int x[] = {25, 17};
5925     const int *foo = &x[0];
5926     ++foo;
5927   }
5928   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5929     typedef const int *iptr;
5930     iptr p = 0;
5931     ++p;
5932   }
5933   { /* AIX XL C 1.02.0.0 rejects this saying
5934        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5935     struct s { int j; const int *ap[3]; };
5936     struct s *b; b->j = 5;
5937   }
5938   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5939     const int foo = 10;
5940     if (!foo) return 0;
5941   }
5942   return !cs[0] && !zero.x;
5943 #endif
5944
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956   (eval "$ac_compile") 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } && {
5963          test -z "$ac_c_werror_flag" ||
5964          test ! -s conftest.err
5965        } && test -s conftest.$ac_objext; then
5966   ac_cv_c_const=yes
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971         ac_cv_c_const=no
5972 fi
5973
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5977 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5978 if test $ac_cv_c_const = no; then
5979
5980 cat >>confdefs.h <<\_ACEOF
5981 #define const
5982 _ACEOF
5983
5984 fi
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994     case " $LIBOBJS " in
5995   *" snprintf.$ac_objext "* ) ;;
5996   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5997  ;;
5998 esac
5999
6000     _hw_cv_func_xprintf_replace_done=yes
6001 fi
6002
6003
6004 fi
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019 for ac_func in vasprintf
6020 do
6021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6035 #define $ac_func innocuous_$ac_func
6036
6037 /* System header to define __stub macros and hopefully few prototypes,
6038     which can conflict with char $ac_func (); below.
6039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040     <limits.h> exists even on freestanding compilers.  */
6041
6042 #ifdef __STDC__
6043 # include <limits.h>
6044 #else
6045 # include <assert.h>
6046 #endif
6047
6048 #undef $ac_func
6049
6050 /* Override any GCC internal prototype to avoid an error.
6051    Use char because int might match the return type of a GCC
6052    builtin and then its argument prototype would still apply.  */
6053 #ifdef __cplusplus
6054 extern "C"
6055 #endif
6056 char $ac_func ();
6057 /* The GNU C library defines this for functions which it implements
6058     to always fail with ENOSYS.  Some functions are actually named
6059     something starting with __ and the normal name is an alias.  */
6060 #if defined __stub_$ac_func || defined __stub___$ac_func
6061 choke me
6062 #endif
6063
6064 int
6065 main ()
6066 {
6067 return $ac_func ();
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (ac_try="$ac_link"
6074 case "(($ac_try" in
6075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076   *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079   (eval "$ac_link") 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } && {
6086          test -z "$ac_c_werror_flag" ||
6087          test ! -s conftest.err
6088        } && test -s conftest$ac_exeext &&
6089        $as_test_x conftest$ac_exeext; then
6090   eval "$as_ac_var=yes"
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095         eval "$as_ac_var=no"
6096 fi
6097
6098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6099       conftest$ac_exeext conftest.$ac_ext
6100 fi
6101 ac_res=`eval echo '${'$as_ac_var'}'`
6102                { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104 if test `eval echo '${'$as_ac_var'}'` = yes; then
6105   cat >>confdefs.h <<_ACEOF
6106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6107 _ACEOF
6108  hw_cv_func_vasprintf=yes
6109 else
6110   hw_cv_func_vasprintf=no
6111 fi
6112 done
6113
6114   if test "$hw_cv_func_vasprintf" = no; then
6115
6116 cat >>confdefs.h <<\_ACEOF
6117 #define vasprintf rpl_vasprintf
6118 _ACEOF
6119
6120
6121 for ac_header in stdlib.h
6122 do
6123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 fi
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131                { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6133 else
6134   # Is the header compilable?
6135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 $ac_includes_default
6144 #include <$ac_header>
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150   *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153   (eval "$ac_compile") 2>conftest.er1
6154   ac_status=$?
6155   grep -v '^ *+' conftest.er1 >conftest.err
6156   rm -f conftest.er1
6157   cat conftest.err >&5
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } && {
6160          test -z "$ac_c_werror_flag" ||
6161          test ! -s conftest.err
6162        } && test -s conftest.$ac_objext; then
6163   ac_header_compiler=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168         ac_header_compiler=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6173 echo "${ECHO_T}$ac_header_compiler" >&6; }
6174
6175 # Is the header present?
6176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 #include <$ac_header>
6185 _ACEOF
6186 if { (ac_try="$ac_cpp conftest.$ac_ext"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } >/dev/null && {
6199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200          test ! -s conftest.err
6201        }; then
6202   ac_header_preproc=yes
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207   ac_header_preproc=no
6208 fi
6209
6210 rm -f conftest.err conftest.$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6212 echo "${ECHO_T}$ac_header_preproc" >&6; }
6213
6214 # So?  What about this header?
6215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6216   yes:no: )
6217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6221     ac_header_preproc=yes
6222     ;;
6223   no:yes:* )
6224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6236     ( cat <<\_ASBOX
6237 ## -------------------------------- ##
6238 ## Report this to holger@jhweiss.de ##
6239 ## -------------------------------- ##
6240 _ASBOX
6241      ) | sed "s/^/$as_me: WARNING:     /" >&2
6242     ;;
6243 esac
6244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   eval "$as_ac_Header=\$ac_header_preproc"
6250 fi
6251 ac_res=`eval echo '${'$as_ac_Header'}'`
6252                { echo "$as_me:$LINENO: result: $ac_res" >&5
6253 echo "${ECHO_T}$ac_res" >&6; }
6254
6255 fi
6256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6257   cat >>confdefs.h <<_ACEOF
6258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 _ACEOF
6260
6261 fi
6262
6263 done
6264
6265
6266       { echo "$as_me:$LINENO: checking for va_copy" >&5
6267 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
6268 if test "${hw_cv_func_va_copy+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   if test "$cross_compiling" = yes; then
6272   hw_cv_func_va_copy=no
6273 else
6274   cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h.  */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h.  */
6280 #if HAVE_STDARG_H
6281         #include <stdarg.h>
6282         #elif HAVE_VARARGS_H
6283         #include <varargs.h>
6284         #endif
6285 int
6286 main ()
6287 {
6288 va_list ap, aq; va_copy(aq, ap);
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest$ac_exeext
6294 if { (ac_try="$ac_link"
6295 case "(($ac_try" in
6296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297   *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300   (eval "$ac_link") 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6304   { (case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_try") 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }; }; then
6313   hw_cv_func_va_copy=yes
6314 else
6315   echo "$as_me: program exited with status $ac_status" >&5
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 ( exit $ac_status )
6320 hw_cv_func_va_copy=no
6321 fi
6322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6323 fi
6324
6325
6326 fi
6327 { echo "$as_me:$LINENO: result: $hw_cv_func_va_copy" >&5
6328 echo "${ECHO_T}$hw_cv_func_va_copy" >&6; }
6329   if test "$hw_cv_func_va_copy" = yes; then
6330
6331 cat >>confdefs.h <<\_ACEOF
6332 #define HAVE_VA_COPY 1
6333 _ACEOF
6334
6335 fi
6336
6337
6338     if test "$hw_cv_func_va_copy" = no; then
6339
6340       { echo "$as_me:$LINENO: checking for __va_copy" >&5
6341 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
6342 if test "${hw_cv_func___va_copy+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   if test "$cross_compiling" = yes; then
6346   hw_cv_func___va_copy=no
6347 else
6348   cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #if HAVE_STDARG_H
6355         #include <stdarg.h>
6356         #elif HAVE_VARARGS_H
6357         #include <varargs.h>
6358         #endif
6359 int
6360 main ()
6361 {
6362 va_list ap, aq; __va_copy(aq, ap);
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest$ac_exeext
6368 if { (ac_try="$ac_link"
6369 case "(($ac_try" in
6370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371   *) ac_try_echo=$ac_try;;
6372 esac
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374   (eval "$ac_link") 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6378   { (case "(($ac_try" in
6379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380   *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383   (eval "$ac_try") 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; }; then
6387   hw_cv_func___va_copy=yes
6388 else
6389   echo "$as_me: program exited with status $ac_status" >&5
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ( exit $ac_status )
6394 hw_cv_func___va_copy=no
6395 fi
6396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6397 fi
6398
6399
6400 fi
6401 { echo "$as_me:$LINENO: result: $hw_cv_func___va_copy" >&5
6402 echo "${ECHO_T}$hw_cv_func___va_copy" >&6; }
6403   if test "$hw_cv_func___va_copy" = yes; then
6404
6405 cat >>confdefs.h <<\_ACEOF
6406 #define HAVE___VA_COPY 1
6407 _ACEOF
6408
6409 fi
6410
6411
6412 fi
6413
6414
6415   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then
6416   { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6417 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6418 if test "${ac_cv_c_const+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427
6428 int
6429 main ()
6430 {
6431 /* FIXME: Include the comments suggested by Paul. */
6432 #ifndef __cplusplus
6433   /* Ultrix mips cc rejects this.  */
6434   typedef int charset[2];
6435   const charset cs;
6436   /* SunOS 4.1.1 cc rejects this.  */
6437   char const *const *pcpcc;
6438   char **ppc;
6439   /* NEC SVR4.0.2 mips cc rejects this.  */
6440   struct point {int x, y;};
6441   static struct point const zero = {0,0};
6442   /* AIX XL C 1.02.0.0 rejects this.
6443      It does not let you subtract one const X* pointer from another in
6444      an arm of an if-expression whose if-part is not a constant
6445      expression */
6446   const char *g = "string";
6447   pcpcc = &g + (g ? g-g : 0);
6448   /* HPUX 7.0 cc rejects these. */
6449   ++pcpcc;
6450   ppc = (char**) pcpcc;
6451   pcpcc = (char const *const *) ppc;
6452   { /* SCO 3.2v4 cc rejects this.  */
6453     char *t;
6454     char const *s = 0 ? (char *) 0 : (char const *) 0;
6455
6456     *t++ = 0;
6457     if (s) return 0;
6458   }
6459   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6460     int x[] = {25, 17};
6461     const int *foo = &x[0];
6462     ++foo;
6463   }
6464   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6465     typedef const int *iptr;
6466     iptr p = 0;
6467     ++p;
6468   }
6469   { /* AIX XL C 1.02.0.0 rejects this saying
6470        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6471     struct s { int j; const int *ap[3]; };
6472     struct s *b; b->j = 5;
6473   }
6474   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6475     const int foo = 10;
6476     if (!foo) return 0;
6477   }
6478   return !cs[0] && !zero.x;
6479 #endif
6480
6481   ;
6482   return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6487 case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492   (eval "$ac_compile") 2>conftest.er1
6493   ac_status=$?
6494   grep -v '^ *+' conftest.er1 >conftest.err
6495   rm -f conftest.er1
6496   cat conftest.err >&5
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); } && {
6499          test -z "$ac_c_werror_flag" ||
6500          test ! -s conftest.err
6501        } && test -s conftest.$ac_objext; then
6502   ac_cv_c_const=yes
6503 else
6504   echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507         ac_cv_c_const=no
6508 fi
6509
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 fi
6512 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6513 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6514 if test $ac_cv_c_const = no; then
6515
6516 cat >>confdefs.h <<\_ACEOF
6517 #define const
6518 _ACEOF
6519
6520 fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530     case " $LIBOBJS " in
6531   *" snprintf.$ac_objext "* ) ;;
6532   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6533  ;;
6534 esac
6535
6536     _hw_cv_func_xprintf_replace_done=yes
6537 fi
6538
6539
6540 fi
6541
6542
6543
6544
6545 for ac_func in asprintf
6546 do
6547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553   cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6561 #define $ac_func innocuous_$ac_func
6562
6563 /* System header to define __stub macros and hopefully few prototypes,
6564     which can conflict with char $ac_func (); below.
6565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566     <limits.h> exists even on freestanding compilers.  */
6567
6568 #ifdef __STDC__
6569 # include <limits.h>
6570 #else
6571 # include <assert.h>
6572 #endif
6573
6574 #undef $ac_func
6575
6576 /* Override any GCC internal prototype to avoid an error.
6577    Use char because int might match the return type of a GCC
6578    builtin and then its argument prototype would still apply.  */
6579 #ifdef __cplusplus
6580 extern "C"
6581 #endif
6582 char $ac_func ();
6583 /* The GNU C library defines this for functions which it implements
6584     to always fail with ENOSYS.  Some functions are actually named
6585     something starting with __ and the normal name is an alias.  */
6586 #if defined __stub_$ac_func || defined __stub___$ac_func
6587 choke me
6588 #endif
6589
6590 int
6591 main ()
6592 {
6593 return $ac_func ();
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (ac_try="$ac_link"
6600 case "(($ac_try" in
6601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602   *) ac_try_echo=$ac_try;;
6603 esac
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605   (eval "$ac_link") 2>conftest.er1
6606   ac_status=$?
6607   grep -v '^ *+' conftest.er1 >conftest.err
6608   rm -f conftest.er1
6609   cat conftest.err >&5
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } && {
6612          test -z "$ac_c_werror_flag" ||
6613          test ! -s conftest.err
6614        } && test -s conftest$ac_exeext &&
6615        $as_test_x conftest$ac_exeext; then
6616   eval "$as_ac_var=yes"
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621         eval "$as_ac_var=no"
6622 fi
6623
6624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6625       conftest$ac_exeext conftest.$ac_ext
6626 fi
6627 ac_res=`eval echo '${'$as_ac_var'}'`
6628                { echo "$as_me:$LINENO: result: $ac_res" >&5
6629 echo "${ECHO_T}$ac_res" >&6; }
6630 if test `eval echo '${'$as_ac_var'}'` = yes; then
6631   cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6633 _ACEOF
6634  hw_cv_func_asprintf=yes
6635 else
6636   hw_cv_func_asprintf=no
6637 fi
6638 done
6639
6640   if test "$hw_cv_func_asprintf" = no; then
6641
6642 cat >>confdefs.h <<\_ACEOF
6643 #define asprintf rpl_asprintf
6644 _ACEOF
6645
6646
6647   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then
6648   { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6649 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6650 if test "${ac_cv_c_const+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659
6660 int
6661 main ()
6662 {
6663 /* FIXME: Include the comments suggested by Paul. */
6664 #ifndef __cplusplus
6665   /* Ultrix mips cc rejects this.  */
6666   typedef int charset[2];
6667   const charset cs;
6668   /* SunOS 4.1.1 cc rejects this.  */
6669   char const *const *pcpcc;
6670   char **ppc;
6671   /* NEC SVR4.0.2 mips cc rejects this.  */
6672   struct point {int x, y;};
6673   static struct point const zero = {0,0};
6674   /* AIX XL C 1.02.0.0 rejects this.
6675      It does not let you subtract one const X* pointer from another in
6676      an arm of an if-expression whose if-part is not a constant
6677      expression */
6678   const char *g = "string";
6679   pcpcc = &g + (g ? g-g : 0);
6680   /* HPUX 7.0 cc rejects these. */
6681   ++pcpcc;
6682   ppc = (char**) pcpcc;
6683   pcpcc = (char const *const *) ppc;
6684   { /* SCO 3.2v4 cc rejects this.  */
6685     char *t;
6686     char const *s = 0 ? (char *) 0 : (char const *) 0;
6687
6688     *t++ = 0;
6689     if (s) return 0;
6690   }
6691   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6692     int x[] = {25, 17};
6693     const int *foo = &x[0];
6694     ++foo;
6695   }
6696   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6697     typedef const int *iptr;
6698     iptr p = 0;
6699     ++p;
6700   }
6701   { /* AIX XL C 1.02.0.0 rejects this saying
6702        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6703     struct s { int j; const int *ap[3]; };
6704     struct s *b; b->j = 5;
6705   }
6706   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6707     const int foo = 10;
6708     if (!foo) return 0;
6709   }
6710   return !cs[0] && !zero.x;
6711 #endif
6712
6713   ;
6714   return 0;
6715 }
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6719 case "(($ac_try" in
6720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721   *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724   (eval "$ac_compile") 2>conftest.er1
6725   ac_status=$?
6726   grep -v '^ *+' conftest.er1 >conftest.err
6727   rm -f conftest.er1
6728   cat conftest.err >&5
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); } && {
6731          test -z "$ac_c_werror_flag" ||
6732          test ! -s conftest.err
6733        } && test -s conftest.$ac_objext; then
6734   ac_cv_c_const=yes
6735 else
6736   echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739         ac_cv_c_const=no
6740 fi
6741
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 fi
6744 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6745 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6746 if test $ac_cv_c_const = no; then
6747
6748 cat >>confdefs.h <<\_ACEOF
6749 #define const
6750 _ACEOF
6751
6752 fi
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762     case " $LIBOBJS " in
6763   *" snprintf.$ac_objext "* ) ;;
6764   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6765  ;;
6766 esac
6767
6768     _hw_cv_func_xprintf_replace_done=yes
6769 fi
6770
6771
6772 fi
6773
6774
6775
6776 ac_config_files="$ac_config_files Makefile"
6777
6778 cat >confcache <<\_ACEOF
6779 # This file is a shell script that caches the results of configure
6780 # tests run on this system so they can be shared between configure
6781 # scripts and configure runs, see configure's option --config-cache.
6782 # It is not useful on other systems.  If it contains results you don't
6783 # want to keep, you may remove or edit it.
6784 #
6785 # config.status only pays attention to the cache file if you give it
6786 # the --recheck option to rerun configure.
6787 #
6788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6790 # following values.
6791
6792 _ACEOF
6793
6794 # The following way of writing the cache mishandles newlines in values,
6795 # but we know of no workaround that is simple, portable, and efficient.
6796 # So, we kill variables containing newlines.
6797 # Ultrix sh set writes to stderr and can't be redirected directly,
6798 # and sets the high bit in the cache file unless we assign to the vars.
6799 (
6800   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6801     eval ac_val=\$$ac_var
6802     case $ac_val in #(
6803     *${as_nl}*)
6804       case $ac_var in #(
6805       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6807       esac
6808       case $ac_var in #(
6809       _ | IFS | as_nl) ;; #(
6810       *) $as_unset $ac_var ;;
6811       esac ;;
6812     esac
6813   done
6814
6815   (set) 2>&1 |
6816     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6817     *${as_nl}ac_space=\ *)
6818       # `set' does not quote correctly, so add quotes (double-quote
6819       # substitution turns \\\\ into \\, and sed turns \\ into \).
6820       sed -n \
6821         "s/'/'\\\\''/g;
6822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6823       ;; #(
6824     *)
6825       # `set' quotes correctly as required by POSIX, so do not add quotes.
6826       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6827       ;;
6828     esac |
6829     sort
6830 ) |
6831   sed '
6832      /^ac_cv_env_/b end
6833      t clear
6834      :clear
6835      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6836      t end
6837      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6838      :end' >>confcache
6839 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6840   if test -w "$cache_file"; then
6841     test "x$cache_file" != "x/dev/null" &&
6842       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6843 echo "$as_me: updating cache $cache_file" >&6;}
6844     cat confcache >$cache_file
6845   else
6846     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6847 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6848   fi
6849 fi
6850 rm -f confcache
6851
6852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6853 # Let make expand exec_prefix.
6854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6855
6856 DEFS=-DHAVE_CONFIG_H
6857
6858 ac_libobjs=
6859 ac_ltlibobjs=
6860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6861   # 1. Remove the extension, and $U if already installed.
6862   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6863   ac_i=`echo "$ac_i" | sed "$ac_script"`
6864   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6865   #    will be set to the directory where LIBOBJS objects are built.
6866   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6867   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6868 done
6869 LIBOBJS=$ac_libobjs
6870
6871 LTLIBOBJS=$ac_ltlibobjs
6872
6873
6874 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6875   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6876 Usually this means the macro was only invoked conditionally." >&5
6877 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6878 Usually this means the macro was only invoked conditionally." >&2;}
6879    { (exit 1); exit 1; }; }
6880 fi
6881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6882   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6883 Usually this means the macro was only invoked conditionally." >&5
6884 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6885 Usually this means the macro was only invoked conditionally." >&2;}
6886    { (exit 1); exit 1; }; }
6887 fi
6888
6889 : ${CONFIG_STATUS=./config.status}
6890 ac_clean_files_save=$ac_clean_files
6891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6894 cat >$CONFIG_STATUS <<_ACEOF
6895 #! $SHELL
6896 # Generated by $as_me.
6897 # Run this file to recreate the current configuration.
6898 # Compiler output produced by configure, useful for debugging
6899 # configure, is in config.log if it exists.
6900
6901 debug=false
6902 ac_cs_recheck=false
6903 ac_cs_silent=false
6904 SHELL=\${CONFIG_SHELL-$SHELL}
6905 _ACEOF
6906
6907 cat >>$CONFIG_STATUS <<\_ACEOF
6908 ## --------------------- ##
6909 ## M4sh Initialization.  ##
6910 ## --------------------- ##
6911
6912 # Be more Bourne compatible
6913 DUALCASE=1; export DUALCASE # for MKS sh
6914 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6915   emulate sh
6916   NULLCMD=:
6917   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6918   # is contrary to our usage.  Disable this feature.
6919   alias -g '${1+"$@"}'='"$@"'
6920   setopt NO_GLOB_SUBST
6921 else
6922   case `(set -o) 2>/dev/null` in
6923   *posix*) set -o posix ;;
6924 esac
6925
6926 fi
6927
6928
6929
6930
6931 # PATH needs CR
6932 # Avoid depending upon Character Ranges.
6933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6936 as_cr_digits='0123456789'
6937 as_cr_alnum=$as_cr_Letters$as_cr_digits
6938
6939 # The user is always right.
6940 if test "${PATH_SEPARATOR+set}" != set; then
6941   echo "#! /bin/sh" >conf$$.sh
6942   echo  "exit 0"   >>conf$$.sh
6943   chmod +x conf$$.sh
6944   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6945     PATH_SEPARATOR=';'
6946   else
6947     PATH_SEPARATOR=:
6948   fi
6949   rm -f conf$$.sh
6950 fi
6951
6952 # Support unset when possible.
6953 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6954   as_unset=unset
6955 else
6956   as_unset=false
6957 fi
6958
6959
6960 # IFS
6961 # We need space, tab and new line, in precisely that order.  Quoting is
6962 # there to prevent editors from complaining about space-tab.
6963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6964 # splitting by setting IFS to empty value.)
6965 as_nl='
6966 '
6967 IFS=" ""        $as_nl"
6968
6969 # Find who we are.  Look in the path if we contain no directory separator.
6970 case $0 in
6971   *[\\/]* ) as_myself=$0 ;;
6972   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6978 done
6979 IFS=$as_save_IFS
6980
6981      ;;
6982 esac
6983 # We did not find ourselves, most probably we were run as `sh COMMAND'
6984 # in which case we are not to be found in the path.
6985 if test "x$as_myself" = x; then
6986   as_myself=$0
6987 fi
6988 if test ! -f "$as_myself"; then
6989   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6990   { (exit 1); exit 1; }
6991 fi
6992
6993 # Work around bugs in pre-3.0 UWIN ksh.
6994 for as_var in ENV MAIL MAILPATH
6995 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6996 done
6997 PS1='$ '
6998 PS2='> '
6999 PS4='+ '
7000
7001 # NLS nuisances.
7002 for as_var in \
7003   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7004   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7005   LC_TELEPHONE LC_TIME
7006 do
7007   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7008     eval $as_var=C; export $as_var
7009   else
7010     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7011   fi
7012 done
7013
7014 # Required to use basename.
7015 if expr a : '\(a\)' >/dev/null 2>&1 &&
7016    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7017   as_expr=expr
7018 else
7019   as_expr=false
7020 fi
7021
7022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7023   as_basename=basename
7024 else
7025   as_basename=false
7026 fi
7027
7028
7029 # Name of the executable.
7030 as_me=`$as_basename -- "$0" ||
7031 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7032          X"$0" : 'X\(//\)$' \| \
7033          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7034 echo X/"$0" |
7035     sed '/^.*\/\([^/][^/]*\)\/*$/{
7036             s//\1/
7037             q
7038           }
7039           /^X\/\(\/\/\)$/{
7040             s//\1/
7041             q
7042           }
7043           /^X\/\(\/\).*/{
7044             s//\1/
7045             q
7046           }
7047           s/.*/./; q'`
7048
7049 # CDPATH.
7050 $as_unset CDPATH
7051
7052
7053
7054   as_lineno_1=$LINENO
7055   as_lineno_2=$LINENO
7056   test "x$as_lineno_1" != "x$as_lineno_2" &&
7057   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7058
7059   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7060   # uniformly replaced by the line number.  The first 'sed' inserts a
7061   # line-number line after each line using $LINENO; the second 'sed'
7062   # does the real work.  The second script uses 'N' to pair each
7063   # line-number line with the line containing $LINENO, and appends
7064   # trailing '-' during substitution so that $LINENO is not a special
7065   # case at line end.
7066   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7067   # scripts with optimization help from Paolo Bonzini.  Blame Lee
7068   # E. McMahon (1931-1989) for sed's syntax.  :-)
7069   sed -n '
7070     p
7071     /[$]LINENO/=
7072   ' <$as_myself |
7073     sed '
7074       s/[$]LINENO.*/&-/
7075       t lineno
7076       b
7077       :lineno
7078       N
7079       :loop
7080       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7081       t loop
7082       s/-\n.*//
7083     ' >$as_me.lineno &&
7084   chmod +x "$as_me.lineno" ||
7085     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7086    { (exit 1); exit 1; }; }
7087
7088   # Don't try to exec as it changes $[0], causing all sort of problems
7089   # (the dirname of $[0] is not the place where we might find the
7090   # original and so on.  Autoconf is especially sensitive to this).
7091   . "./$as_me.lineno"
7092   # Exit status is that of the last command.
7093   exit
7094 }
7095
7096
7097 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7098   as_dirname=dirname
7099 else
7100   as_dirname=false
7101 fi
7102
7103 ECHO_C= ECHO_N= ECHO_T=
7104 case `echo -n x` in
7105 -n*)
7106   case `echo 'x\c'` in
7107   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7108   *)   ECHO_C='\c';;
7109   esac;;
7110 *)
7111   ECHO_N='-n';;
7112 esac
7113
7114 if expr a : '\(a\)' >/dev/null 2>&1 &&
7115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7116   as_expr=expr
7117 else
7118   as_expr=false
7119 fi
7120
7121 rm -f conf$$ conf$$.exe conf$$.file
7122 if test -d conf$$.dir; then
7123   rm -f conf$$.dir/conf$$.file
7124 else
7125   rm -f conf$$.dir
7126   mkdir conf$$.dir
7127 fi
7128 echo >conf$$.file
7129 if ln -s conf$$.file conf$$ 2>/dev/null; then
7130   as_ln_s='ln -s'
7131   # ... but there are two gotchas:
7132   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7133   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7134   # In both cases, we have to default to `cp -p'.
7135   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7136     as_ln_s='cp -p'
7137 elif ln conf$$.file conf$$ 2>/dev/null; then
7138   as_ln_s=ln
7139 else
7140   as_ln_s='cp -p'
7141 fi
7142 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7143 rmdir conf$$.dir 2>/dev/null
7144
7145 if mkdir -p . 2>/dev/null; then
7146   as_mkdir_p=:
7147 else
7148   test -d ./-p && rmdir ./-p
7149   as_mkdir_p=false
7150 fi
7151
7152 if test -x / >/dev/null 2>&1; then
7153   as_test_x='test -x'
7154 else
7155   if ls -dL / >/dev/null 2>&1; then
7156     as_ls_L_option=L
7157   else
7158     as_ls_L_option=
7159   fi
7160   as_test_x='
7161     eval sh -c '\''
7162       if test -d "$1"; then
7163         test -d "$1/.";
7164       else
7165         case $1 in
7166         -*)set "./$1";;
7167         esac;
7168         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7169         ???[sx]*):;;*)false;;esac;fi
7170     '\'' sh
7171   '
7172 fi
7173 as_executable_p=$as_test_x
7174
7175 # Sed expression to map a string onto a valid CPP name.
7176 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7177
7178 # Sed expression to map a string onto a valid variable name.
7179 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7180
7181
7182 exec 6>&1
7183
7184 # Save the log message, to keep $[0] and so on meaningful, and to
7185 # report actual input values of CONFIG_FILES etc. instead of their
7186 # values after options handling.
7187 ac_log="
7188 This file was extended by C99-snprintf $as_me 1.1, which was
7189 generated by GNU Autoconf 2.61.  Invocation command line was
7190
7191   CONFIG_FILES    = $CONFIG_FILES
7192   CONFIG_HEADERS  = $CONFIG_HEADERS
7193   CONFIG_LINKS    = $CONFIG_LINKS
7194   CONFIG_COMMANDS = $CONFIG_COMMANDS
7195   $ $0 $@
7196
7197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7198 "
7199
7200 _ACEOF
7201
7202 cat >>$CONFIG_STATUS <<_ACEOF
7203 # Files that config.status was made for.
7204 config_files="$ac_config_files"
7205 config_headers="$ac_config_headers"
7206 config_commands="$ac_config_commands"
7207
7208 _ACEOF
7209
7210 cat >>$CONFIG_STATUS <<\_ACEOF
7211 ac_cs_usage="\
7212 \`$as_me' instantiates files from templates according to the
7213 current configuration.
7214
7215 Usage: $0 [OPTIONS] [FILE]...
7216
7217   -h, --help       print this help, then exit
7218   -V, --version    print version number and configuration settings, then exit
7219   -q, --quiet      do not print progress messages
7220   -d, --debug      don't remove temporary files
7221       --recheck    update $as_me by reconfiguring in the same conditions
7222   --file=FILE[:TEMPLATE]
7223                    instantiate the configuration file FILE
7224   --header=FILE[:TEMPLATE]
7225                    instantiate the configuration header FILE
7226
7227 Configuration files:
7228 $config_files
7229
7230 Configuration headers:
7231 $config_headers
7232
7233 Configuration commands:
7234 $config_commands
7235
7236 Report bugs to <bug-autoconf@gnu.org>."
7237
7238 _ACEOF
7239 cat >>$CONFIG_STATUS <<_ACEOF
7240 ac_cs_version="\\
7241 C99-snprintf config.status 1.1
7242 configured by $0, generated by GNU Autoconf 2.61,
7243   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7244
7245 Copyright (C) 2006 Free Software Foundation, Inc.
7246 This config.status script is free software; the Free Software Foundation
7247 gives unlimited permission to copy, distribute and modify it."
7248
7249 ac_pwd='$ac_pwd'
7250 srcdir='$srcdir'
7251 INSTALL='$INSTALL'
7252 MKDIR_P='$MKDIR_P'
7253 _ACEOF
7254
7255 cat >>$CONFIG_STATUS <<\_ACEOF
7256 # If no file are specified by the user, then we need to provide default
7257 # value.  By we need to know if files were specified by the user.
7258 ac_need_defaults=:
7259 while test $# != 0
7260 do
7261   case $1 in
7262   --*=*)
7263     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7264     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7265     ac_shift=:
7266     ;;
7267   *)
7268     ac_option=$1
7269     ac_optarg=$2
7270     ac_shift=shift
7271     ;;
7272   esac
7273
7274   case $ac_option in
7275   # Handling of the options.
7276   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7277     ac_cs_recheck=: ;;
7278   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7279     echo "$ac_cs_version"; exit ;;
7280   --debug | --debu | --deb | --de | --d | -d )
7281     debug=: ;;
7282   --file | --fil | --fi | --f )
7283     $ac_shift
7284     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7285     ac_need_defaults=false;;
7286   --header | --heade | --head | --hea )
7287     $ac_shift
7288     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7289     ac_need_defaults=false;;
7290   --he | --h)
7291     # Conflict between --help and --header
7292     { echo "$as_me: error: ambiguous option: $1
7293 Try \`$0 --help' for more information." >&2
7294    { (exit 1); exit 1; }; };;
7295   --help | --hel | -h )
7296     echo "$ac_cs_usage"; exit ;;
7297   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7298   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7299     ac_cs_silent=: ;;
7300
7301   # This is an error.
7302   -*) { echo "$as_me: error: unrecognized option: $1
7303 Try \`$0 --help' for more information." >&2
7304    { (exit 1); exit 1; }; } ;;
7305
7306   *) ac_config_targets="$ac_config_targets $1"
7307      ac_need_defaults=false ;;
7308
7309   esac
7310   shift
7311 done
7312
7313 ac_configure_extra_args=
7314
7315 if $ac_cs_silent; then
7316   exec 6>/dev/null
7317   ac_configure_extra_args="$ac_configure_extra_args --silent"
7318 fi
7319
7320 _ACEOF
7321 cat >>$CONFIG_STATUS <<_ACEOF
7322 if \$ac_cs_recheck; then
7323   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7324   CONFIG_SHELL=$SHELL
7325   export CONFIG_SHELL
7326   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7327 fi
7328
7329 _ACEOF
7330 cat >>$CONFIG_STATUS <<\_ACEOF
7331 exec 5>>config.log
7332 {
7333   echo
7334   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7335 ## Running $as_me. ##
7336 _ASBOX
7337   echo "$ac_log"
7338 } >&5
7339
7340 _ACEOF
7341 cat >>$CONFIG_STATUS <<_ACEOF
7342 #
7343 # INIT-COMMANDS
7344 #
7345 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7346
7347 _ACEOF
7348
7349 cat >>$CONFIG_STATUS <<\_ACEOF
7350
7351 # Handling of arguments.
7352 for ac_config_target in $ac_config_targets
7353 do
7354   case $ac_config_target in
7355     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7356     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7357     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7358
7359   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7360 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7361    { (exit 1); exit 1; }; };;
7362   esac
7363 done
7364
7365
7366 # If the user did not use the arguments to specify the items to instantiate,
7367 # then the envvar interface is used.  Set only those that are not.
7368 # We use the long form for the default assignment because of an extremely
7369 # bizarre bug on SunOS 4.1.3.
7370 if $ac_need_defaults; then
7371   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7372   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7373   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7374 fi
7375
7376 # Have a temporary directory for convenience.  Make it in the build tree
7377 # simply because there is no reason against having it here, and in addition,
7378 # creating and moving files from /tmp can sometimes cause problems.
7379 # Hook for its removal unless debugging.
7380 # Note that there is a small window in which the directory will not be cleaned:
7381 # after its creation but before its name has been assigned to `$tmp'.
7382 $debug ||
7383 {
7384   tmp=
7385   trap 'exit_status=$?
7386   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7387 ' 0
7388   trap '{ (exit 1); exit 1; }' 1 2 13 15
7389 }
7390 # Create a (secure) tmp directory for tmp files.
7391
7392 {
7393   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7394   test -n "$tmp" && test -d "$tmp"
7395 }  ||
7396 {
7397   tmp=./conf$$-$RANDOM
7398   (umask 077 && mkdir "$tmp")
7399 } ||
7400 {
7401    echo "$me: cannot create a temporary directory in ." >&2
7402    { (exit 1); exit 1; }
7403 }
7404
7405 #
7406 # Set up the sed scripts for CONFIG_FILES section.
7407 #
7408
7409 # No need to generate the scripts if there are no CONFIG_FILES.
7410 # This happens for instance when ./config.status config.h
7411 if test -n "$CONFIG_FILES"; then
7412
7413 _ACEOF
7414
7415
7416
7417 ac_delim='%!_!# '
7418 for ac_last_try in false false false false false :; do
7419   cat >conf$$subs.sed <<_ACEOF
7420 SHELL!$SHELL$ac_delim
7421 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7422 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7423 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7424 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7425 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7426 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7427 exec_prefix!$exec_prefix$ac_delim
7428 prefix!$prefix$ac_delim
7429 program_transform_name!$program_transform_name$ac_delim
7430 bindir!$bindir$ac_delim
7431 sbindir!$sbindir$ac_delim
7432 libexecdir!$libexecdir$ac_delim
7433 datarootdir!$datarootdir$ac_delim
7434 datadir!$datadir$ac_delim
7435 sysconfdir!$sysconfdir$ac_delim
7436 sharedstatedir!$sharedstatedir$ac_delim
7437 localstatedir!$localstatedir$ac_delim
7438 includedir!$includedir$ac_delim
7439 oldincludedir!$oldincludedir$ac_delim
7440 docdir!$docdir$ac_delim
7441 infodir!$infodir$ac_delim
7442 htmldir!$htmldir$ac_delim
7443 dvidir!$dvidir$ac_delim
7444 pdfdir!$pdfdir$ac_delim
7445 psdir!$psdir$ac_delim
7446 libdir!$libdir$ac_delim
7447 localedir!$localedir$ac_delim
7448 mandir!$mandir$ac_delim
7449 DEFS!$DEFS$ac_delim
7450 ECHO_C!$ECHO_C$ac_delim
7451 ECHO_N!$ECHO_N$ac_delim
7452 ECHO_T!$ECHO_T$ac_delim
7453 LIBS!$LIBS$ac_delim
7454 build_alias!$build_alias$ac_delim
7455 host_alias!$host_alias$ac_delim
7456 target_alias!$target_alias$ac_delim
7457 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7458 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7459 INSTALL_DATA!$INSTALL_DATA$ac_delim
7460 am__isrc!$am__isrc$ac_delim
7461 CYGPATH_W!$CYGPATH_W$ac_delim
7462 PACKAGE!$PACKAGE$ac_delim
7463 VERSION!$VERSION$ac_delim
7464 ACLOCAL!$ACLOCAL$ac_delim
7465 AUTOCONF!$AUTOCONF$ac_delim
7466 AUTOMAKE!$AUTOMAKE$ac_delim
7467 AUTOHEADER!$AUTOHEADER$ac_delim
7468 MAKEINFO!$MAKEINFO$ac_delim
7469 install_sh!$install_sh$ac_delim
7470 STRIP!$STRIP$ac_delim
7471 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7472 mkdir_p!$mkdir_p$ac_delim
7473 AWK!$AWK$ac_delim
7474 SET_MAKE!$SET_MAKE$ac_delim
7475 am__leading_dot!$am__leading_dot$ac_delim
7476 AMTAR!$AMTAR$ac_delim
7477 am__tar!$am__tar$ac_delim
7478 am__untar!$am__untar$ac_delim
7479 CC!$CC$ac_delim
7480 CFLAGS!$CFLAGS$ac_delim
7481 LDFLAGS!$LDFLAGS$ac_delim
7482 CPPFLAGS!$CPPFLAGS$ac_delim
7483 ac_ct_CC!$ac_ct_CC$ac_delim
7484 EXEEXT!$EXEEXT$ac_delim
7485 OBJEXT!$OBJEXT$ac_delim
7486 DEPDIR!$DEPDIR$ac_delim
7487 am__include!$am__include$ac_delim
7488 am__quote!$am__quote$ac_delim
7489 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7490 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7491 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7492 CCDEPMODE!$CCDEPMODE$ac_delim
7493 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7494 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7495 CPP!$CPP$ac_delim
7496 GREP!$GREP$ac_delim
7497 EGREP!$EGREP$ac_delim
7498 LIBOBJS!$LIBOBJS$ac_delim
7499 LTLIBOBJS!$LTLIBOBJS$ac_delim
7500 _ACEOF
7501
7502   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
7503     break
7504   elif $ac_last_try; then
7505     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7506 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7507    { (exit 1); exit 1; }; }
7508   else
7509     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7510   fi
7511 done
7512
7513 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7514 if test -n "$ac_eof"; then
7515   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7516   ac_eof=`expr $ac_eof + 1`
7517 fi
7518
7519 cat >>$CONFIG_STATUS <<_ACEOF
7520 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7522 _ACEOF
7523 sed '
7524 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7525 s/^/s,@/; s/!/@,|#_!!_#|/
7526 :n
7527 t n
7528 s/'"$ac_delim"'$/,g/; t
7529 s/$/\\/; p
7530 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7531 ' >>$CONFIG_STATUS <conf$$subs.sed
7532 rm -f conf$$subs.sed
7533 cat >>$CONFIG_STATUS <<_ACEOF
7534 :end
7535 s/|#_!!_#|//g
7536 CEOF$ac_eof
7537 _ACEOF
7538
7539
7540 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7541 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7542 # trailing colons and then remove the whole line if VPATH becomes empty
7543 # (actually we leave an empty line to preserve line numbers).
7544 if test "x$srcdir" = x.; then
7545   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7546 s/:*\$(srcdir):*/:/
7547 s/:*\${srcdir}:*/:/
7548 s/:*@srcdir@:*/:/
7549 s/^\([^=]*=[     ]*\):*/\1/
7550 s/:*$//
7551 s/^[^=]*=[       ]*$//
7552 }'
7553 fi
7554
7555 cat >>$CONFIG_STATUS <<\_ACEOF
7556 fi # test -n "$CONFIG_FILES"
7557
7558
7559 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7560 do
7561   case $ac_tag in
7562   :[FHLC]) ac_mode=$ac_tag; continue;;
7563   esac
7564   case $ac_mode$ac_tag in
7565   :[FHL]*:*);;
7566   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7567 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7568    { (exit 1); exit 1; }; };;
7569   :[FH]-) ac_tag=-:-;;
7570   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7571   esac
7572   ac_save_IFS=$IFS
7573   IFS=:
7574   set x $ac_tag
7575   IFS=$ac_save_IFS
7576   shift
7577   ac_file=$1
7578   shift
7579
7580   case $ac_mode in
7581   :L) ac_source=$1;;
7582   :[FH])
7583     ac_file_inputs=
7584     for ac_f
7585     do
7586       case $ac_f in
7587       -) ac_f="$tmp/stdin";;
7588       *) # Look for the file first in the build tree, then in the source tree
7589          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7590          # because $ac_f cannot contain `:'.
7591          test -f "$ac_f" ||
7592            case $ac_f in
7593            [\\/$]*) false;;
7594            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7595            esac ||
7596            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7597 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7598    { (exit 1); exit 1; }; };;
7599       esac
7600       ac_file_inputs="$ac_file_inputs $ac_f"
7601     done
7602
7603     # Let's still pretend it is `configure' which instantiates (i.e., don't
7604     # use $as_me), people would be surprised to read:
7605     #    /* config.h.  Generated by config.status.  */
7606     configure_input="Generated from "`IFS=:
7607           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7608     if test x"$ac_file" != x-; then
7609       configure_input="$ac_file.  $configure_input"
7610       { echo "$as_me:$LINENO: creating $ac_file" >&5
7611 echo "$as_me: creating $ac_file" >&6;}
7612     fi
7613
7614     case $ac_tag in
7615     *:-:* | *:-) cat >"$tmp/stdin";;
7616     esac
7617     ;;
7618   esac
7619
7620   ac_dir=`$as_dirname -- "$ac_file" ||
7621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7622          X"$ac_file" : 'X\(//\)[^/]' \| \
7623          X"$ac_file" : 'X\(//\)$' \| \
7624          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7625 echo X"$ac_file" |
7626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7627             s//\1/
7628             q
7629           }
7630           /^X\(\/\/\)[^/].*/{
7631             s//\1/
7632             q
7633           }
7634           /^X\(\/\/\)$/{
7635             s//\1/
7636             q
7637           }
7638           /^X\(\/\).*/{
7639             s//\1/
7640             q
7641           }
7642           s/.*/./; q'`
7643   { as_dir="$ac_dir"
7644   case $as_dir in #(
7645   -*) as_dir=./$as_dir;;
7646   esac
7647   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7648     as_dirs=
7649     while :; do
7650       case $as_dir in #(
7651       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7652       *) as_qdir=$as_dir;;
7653       esac
7654       as_dirs="'$as_qdir' $as_dirs"
7655       as_dir=`$as_dirname -- "$as_dir" ||
7656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7657          X"$as_dir" : 'X\(//\)[^/]' \| \
7658          X"$as_dir" : 'X\(//\)$' \| \
7659          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7660 echo X"$as_dir" |
7661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7662             s//\1/
7663             q
7664           }
7665           /^X\(\/\/\)[^/].*/{
7666             s//\1/
7667             q
7668           }
7669           /^X\(\/\/\)$/{
7670             s//\1/
7671             q
7672           }
7673           /^X\(\/\).*/{
7674             s//\1/
7675             q
7676           }
7677           s/.*/./; q'`
7678       test -d "$as_dir" && break
7679     done
7680     test -z "$as_dirs" || eval "mkdir $as_dirs"
7681   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7682 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7683    { (exit 1); exit 1; }; }; }
7684   ac_builddir=.
7685
7686 case "$ac_dir" in
7687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7688 *)
7689   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7690   # A ".." for each directory in $ac_dir_suffix.
7691   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7692   case $ac_top_builddir_sub in
7693   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7694   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7695   esac ;;
7696 esac
7697 ac_abs_top_builddir=$ac_pwd
7698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7699 # for backward compatibility:
7700 ac_top_builddir=$ac_top_build_prefix
7701
7702 case $srcdir in
7703   .)  # We are building in place.
7704     ac_srcdir=.
7705     ac_top_srcdir=$ac_top_builddir_sub
7706     ac_abs_top_srcdir=$ac_pwd ;;
7707   [\\/]* | ?:[\\/]* )  # Absolute name.
7708     ac_srcdir=$srcdir$ac_dir_suffix;
7709     ac_top_srcdir=$srcdir
7710     ac_abs_top_srcdir=$srcdir ;;
7711   *) # Relative name.
7712     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7713     ac_top_srcdir=$ac_top_build_prefix$srcdir
7714     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7715 esac
7716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7717
7718
7719   case $ac_mode in
7720   :F)
7721   #
7722   # CONFIG_FILE
7723   #
7724
7725   case $INSTALL in
7726   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7727   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7728   esac
7729   ac_MKDIR_P=$MKDIR_P
7730   case $MKDIR_P in
7731   [\\/$]* | ?:[\\/]* ) ;;
7732   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7733   esac
7734 _ACEOF
7735
7736 cat >>$CONFIG_STATUS <<\_ACEOF
7737 # If the template does not know about datarootdir, expand it.
7738 # FIXME: This hack should be removed a few years after 2.60.
7739 ac_datarootdir_hack=; ac_datarootdir_seen=
7740
7741 case `sed -n '/datarootdir/ {
7742   p
7743   q
7744 }
7745 /@datadir@/p
7746 /@docdir@/p
7747 /@infodir@/p
7748 /@localedir@/p
7749 /@mandir@/p
7750 ' $ac_file_inputs` in
7751 *datarootdir*) ac_datarootdir_seen=yes;;
7752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7753   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7754 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7755 _ACEOF
7756 cat >>$CONFIG_STATUS <<_ACEOF
7757   ac_datarootdir_hack='
7758   s&@datadir@&$datadir&g
7759   s&@docdir@&$docdir&g
7760   s&@infodir@&$infodir&g
7761   s&@localedir@&$localedir&g
7762   s&@mandir@&$mandir&g
7763     s&\\\${datarootdir}&$datarootdir&g' ;;
7764 esac
7765 _ACEOF
7766
7767 # Neutralize VPATH when `$srcdir' = `.'.
7768 # Shell code in configure.ac might set extrasub.
7769 # FIXME: do we really want to maintain this feature?
7770 cat >>$CONFIG_STATUS <<_ACEOF
7771   sed "$ac_vpsub
7772 $extrasub
7773 _ACEOF
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7775 :t
7776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7777 s&@configure_input@&$configure_input&;t t
7778 s&@top_builddir@&$ac_top_builddir_sub&;t t
7779 s&@srcdir@&$ac_srcdir&;t t
7780 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7781 s&@top_srcdir@&$ac_top_srcdir&;t t
7782 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7783 s&@builddir@&$ac_builddir&;t t
7784 s&@abs_builddir@&$ac_abs_builddir&;t t
7785 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7786 s&@INSTALL@&$ac_INSTALL&;t t
7787 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7788 $ac_datarootdir_hack
7789 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7790
7791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7792   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7793   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7794   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7795 which seems to be undefined.  Please make sure it is defined." >&5
7796 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7797 which seems to be undefined.  Please make sure it is defined." >&2;}
7798
7799   rm -f "$tmp/stdin"
7800   case $ac_file in
7801   -) cat "$tmp/out"; rm -f "$tmp/out";;
7802   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7803   esac
7804  ;;
7805   :H)
7806   #
7807   # CONFIG_HEADER
7808   #
7809 _ACEOF
7810
7811 # Transform confdefs.h into a sed script `conftest.defines', that
7812 # substitutes the proper values into config.h.in to produce config.h.
7813 rm -f conftest.defines conftest.tail
7814 # First, append a space to every undef/define line, to ease matching.
7815 echo 's/$/ /' >conftest.defines
7816 # Then, protect against being on the right side of a sed subst, or in
7817 # an unquoted here document, in config.status.  If some macros were
7818 # called several times there might be several #defines for the same
7819 # symbol, which is useless.  But do not sort them, since the last
7820 # AC_DEFINE must be honored.
7821 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7822 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7823 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7824 # PARAMS is the parameter list in the macro definition--in most cases, it's
7825 # just an empty string.
7826 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
7827 ac_dB='\\)[      (].*,\\1define\\2'
7828 ac_dC=' '
7829 ac_dD=' ,'
7830
7831 uniq confdefs.h |
7832   sed -n '
7833         t rset
7834         :rset
7835         s/^[     ]*#[    ]*define[       ][      ]*//
7836         t ok
7837         d
7838         :ok
7839         s/[\\&,]/\\&/g
7840         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7841         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7842   ' >>conftest.defines
7843
7844 # Remove the space that was appended to ease matching.
7845 # Then replace #undef with comments.  This is necessary, for
7846 # example, in the case of _POSIX_SOURCE, which is predefined and required
7847 # on some systems where configure will not decide to define it.
7848 # (The regexp can be short, since the line contains either #define or #undef.)
7849 echo 's/ $//
7850 s,^[     #]*u.*,/* & */,' >>conftest.defines
7851
7852 # Break up conftest.defines:
7853 ac_max_sed_lines=50
7854
7855 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7856 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7857 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7858 # et cetera.
7859 ac_in='$ac_file_inputs'
7860 ac_out='"$tmp/out1"'
7861 ac_nxt='"$tmp/out2"'
7862
7863 while :
7864 do
7865   # Write a here document:
7866     cat >>$CONFIG_STATUS <<_ACEOF
7867     # First, check the format of the line:
7868     cat >"\$tmp/defines.sed" <<\\CEOF
7869 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
7870 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
7871 b
7872 :def
7873 _ACEOF
7874   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7875   echo 'CEOF
7876     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7877   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7878   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7879   grep . conftest.tail >/dev/null || break
7880   rm -f conftest.defines
7881   mv conftest.tail conftest.defines
7882 done
7883 rm -f conftest.defines conftest.tail
7884
7885 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7886 cat >>$CONFIG_STATUS <<\_ACEOF
7887   if test x"$ac_file" != x-; then
7888     echo "/* $configure_input  */" >"$tmp/config.h"
7889     cat "$ac_result" >>"$tmp/config.h"
7890     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7891       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7892 echo "$as_me: $ac_file is unchanged" >&6;}
7893     else
7894       rm -f $ac_file
7895       mv "$tmp/config.h" $ac_file
7896     fi
7897   else
7898     echo "/* $configure_input  */"
7899     cat "$ac_result"
7900   fi
7901   rm -f "$tmp/out12"
7902 # Compute $ac_file's index in $config_headers.
7903 _am_stamp_count=1
7904 for _am_header in $config_headers :; do
7905   case $_am_header in
7906     $ac_file | $ac_file:* )
7907       break ;;
7908     * )
7909       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7910   esac
7911 done
7912 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7913 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7914          X$ac_file : 'X\(//\)[^/]' \| \
7915          X$ac_file : 'X\(//\)$' \| \
7916          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7917 echo X$ac_file |
7918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7919             s//\1/
7920             q
7921           }
7922           /^X\(\/\/\)[^/].*/{
7923             s//\1/
7924             q
7925           }
7926           /^X\(\/\/\)$/{
7927             s//\1/
7928             q
7929           }
7930           /^X\(\/\).*/{
7931             s//\1/
7932             q
7933           }
7934           s/.*/./; q'`/stamp-h$_am_stamp_count
7935  ;;
7936
7937   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7938 echo "$as_me: executing $ac_file commands" >&6;}
7939  ;;
7940   esac
7941
7942
7943   case $ac_file$ac_mode in
7944     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7945   # Strip MF so we end up with the name of the file.
7946   mf=`echo "$mf" | sed -e 's/:.*$//'`
7947   # Check whether this is an Automake generated Makefile or not.
7948   # We used to match only the files named `Makefile.in', but
7949   # some people rename them; so instead we look at the file content.
7950   # Grep'ing the first line is not enough: some people post-process
7951   # each Makefile.in and add a new line on top of each file to say so.
7952   # Grep'ing the whole file is not good either: AIX grep has a line
7953   # limit of 2048, but all sed's we know have understand at least 4000.
7954   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7955     dirpart=`$as_dirname -- "$mf" ||
7956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7957          X"$mf" : 'X\(//\)[^/]' \| \
7958          X"$mf" : 'X\(//\)$' \| \
7959          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7960 echo X"$mf" |
7961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7962             s//\1/
7963             q
7964           }
7965           /^X\(\/\/\)[^/].*/{
7966             s//\1/
7967             q
7968           }
7969           /^X\(\/\/\)$/{
7970             s//\1/
7971             q
7972           }
7973           /^X\(\/\).*/{
7974             s//\1/
7975             q
7976           }
7977           s/.*/./; q'`
7978   else
7979     continue
7980   fi
7981   # Extract the definition of DEPDIR, am__include, and am__quote
7982   # from the Makefile without running `make'.
7983   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7984   test -z "$DEPDIR" && continue
7985   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7986   test -z "am__include" && continue
7987   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7988   # When using ansi2knr, U may be empty or an underscore; expand it
7989   U=`sed -n 's/^U = //p' < "$mf"`
7990   # Find all dependency output files, they are included files with
7991   # $(DEPDIR) in their names.  We invoke sed twice because it is the
7992   # simplest approach to changing $(DEPDIR) to its actual value in the
7993   # expansion.
7994   for file in `sed -n "
7995     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7996        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7997     # Make sure the directory exists.
7998     test -f "$dirpart/$file" && continue
7999     fdir=`$as_dirname -- "$file" ||
8000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8001          X"$file" : 'X\(//\)[^/]' \| \
8002          X"$file" : 'X\(//\)$' \| \
8003          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8004 echo X"$file" |
8005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8006             s//\1/
8007             q
8008           }
8009           /^X\(\/\/\)[^/].*/{
8010             s//\1/
8011             q
8012           }
8013           /^X\(\/\/\)$/{
8014             s//\1/
8015             q
8016           }
8017           /^X\(\/\).*/{
8018             s//\1/
8019             q
8020           }
8021           s/.*/./; q'`
8022     { as_dir=$dirpart/$fdir
8023   case $as_dir in #(
8024   -*) as_dir=./$as_dir;;
8025   esac
8026   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8027     as_dirs=
8028     while :; do
8029       case $as_dir in #(
8030       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8031       *) as_qdir=$as_dir;;
8032       esac
8033       as_dirs="'$as_qdir' $as_dirs"
8034       as_dir=`$as_dirname -- "$as_dir" ||
8035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8036          X"$as_dir" : 'X\(//\)[^/]' \| \
8037          X"$as_dir" : 'X\(//\)$' \| \
8038          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8039 echo X"$as_dir" |
8040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8041             s//\1/
8042             q
8043           }
8044           /^X\(\/\/\)[^/].*/{
8045             s//\1/
8046             q
8047           }
8048           /^X\(\/\/\)$/{
8049             s//\1/
8050             q
8051           }
8052           /^X\(\/\).*/{
8053             s//\1/
8054             q
8055           }
8056           s/.*/./; q'`
8057       test -d "$as_dir" && break
8058     done
8059     test -z "$as_dirs" || eval "mkdir $as_dirs"
8060   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8061 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8062    { (exit 1); exit 1; }; }; }
8063     # echo "creating $dirpart/$file"
8064     echo '# dummy' > "$dirpart/$file"
8065   done
8066 done
8067  ;;
8068
8069   esac
8070 done # for ac_tag
8071
8072
8073 { (exit 0); exit 0; }
8074 _ACEOF
8075 chmod +x $CONFIG_STATUS
8076 ac_clean_files=$ac_clean_files_save
8077
8078
8079 # configure is writing to config.log, and then calls config.status.
8080 # config.status does its own redirection, appending to config.log.
8081 # Unfortunately, on DOS this fails, as config.log is still kept open
8082 # by configure, so config.status won't be able to write to it; its
8083 # output is simply discarded.  So we exec the FD to /dev/null,
8084 # effectively closing config.log, so it can be properly (re)opened and
8085 # appended to by config.status.  When coming back to configure, we
8086 # need to make the FD available again.
8087 if test "$no_create" != yes; then
8088   ac_cs_success=:
8089   ac_config_status_args=
8090   test "$silent" = yes &&
8091     ac_config_status_args="$ac_config_status_args --quiet"
8092   exec 5>/dev/null
8093   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8094   exec 5>>config.log
8095   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8096   # would make configure fail if this is the last instruction.
8097   $ac_cs_success || { (exit 1); exit 1; }
8098 fi
8099
8100