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