OSDN Git Service

6884892879d4d8546afca5e981fba19a4c4f5a5e
[uclinux-h8/elf2flt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="elf2flt.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 SYMBOL_PREFIX
641 always_reloc_text
642 emit_ctor_dtor
643 emit_relocs
644 got_check
645 use_ld_elf2flt_binary
646 binutils_ldscript_dir
647 zlib_include_dir
648 binutils_include_dir
649 bfd_include_dir
650 INSTALL_DATA
651 INSTALL_SCRIPT
652 INSTALL_PROGRAM
653 EGREP
654 GREP
655 CPP
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 target_os
664 target_vendor
665 target_cpu
666 target
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 target_alias
676 host_alias
677 build_alias
678 LIBS
679 ECHO_T
680 ECHO_N
681 ECHO_C
682 DEFS
683 mandir
684 localedir
685 libdir
686 psdir
687 pdfdir
688 dvidir
689 htmldir
690 infodir
691 docdir
692 oldincludedir
693 includedir
694 localstatedir
695 sharedstatedir
696 sysconfdir
697 datadir
698 datarootdir
699 libexecdir
700 sbindir
701 bindir
702 program_transform_name
703 prefix
704 exec_prefix
705 PACKAGE_BUGREPORT
706 PACKAGE_STRING
707 PACKAGE_VERSION
708 PACKAGE_TARNAME
709 PACKAGE_NAME
710 PATH_SEPARATOR
711 SHELL'
712 ac_subst_files=''
713 ac_user_opts='
714 enable_option_checking
715 with_zlib_prefix
716 with_libbfd
717 with_libiberty
718 with_bfd_include_dir
719 with_binutils_include_dir
720 with_binutils_ldscript_dir
721 with_binutils_build_dir
722 enable_ld_elf2flt_binary
723 enable_got_check
724 enable_emit_relocs
725 enable_emit_ctor_dtor
726 enable_always_reloc_text
727 '
728       ac_precious_vars='build_alias
729 host_alias
730 target_alias
731 CC
732 CFLAGS
733 LDFLAGS
734 LIBS
735 CPPFLAGS
736 CPP'
737
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 ac_unrecognized_opts=
743 ac_unrecognized_sep=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
786
787 ac_prev=
788 ac_dashdash=
789 for ac_option
790 do
791   # If the previous option needs an argument, assign it.
792   if test -n "$ac_prev"; then
793     eval $ac_prev=\$ac_option
794     ac_prev=
795     continue
796   fi
797
798   case $ac_option in
799   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800   *)    ac_optarg=yes ;;
801   esac
802
803   # Accept the important Cygnus configure options, so we can diagnose typos.
804
805   case $ac_dashdash$ac_option in
806   --)
807     ac_dashdash=yes ;;
808
809   -bindir | --bindir | --bindi | --bind | --bin | --bi)
810     ac_prev=bindir ;;
811   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812     bindir=$ac_optarg ;;
813
814   -build | --build | --buil | --bui | --bu)
815     ac_prev=build_alias ;;
816   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817     build_alias=$ac_optarg ;;
818
819   -cache-file | --cache-file | --cache-fil | --cache-fi \
820   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821     ac_prev=cache_file ;;
822   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824     cache_file=$ac_optarg ;;
825
826   --config-cache | -C)
827     cache_file=config.cache ;;
828
829   -datadir | --datadir | --datadi | --datad)
830     ac_prev=datadir ;;
831   -datadir=* | --datadir=* | --datadi=* | --datad=*)
832     datadir=$ac_optarg ;;
833
834   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835   | --dataroo | --dataro | --datar)
836     ac_prev=datarootdir ;;
837   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839     datarootdir=$ac_optarg ;;
840
841   -disable-* | --disable-*)
842     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843     # Reject names that are not valid shell variable names.
844     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
846    { (exit 1); exit 1; }; }
847     ac_useropt_orig=$ac_useropt
848     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849     case $ac_user_opts in
850       *"
851 "enable_$ac_useropt"
852 "*) ;;
853       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854          ac_unrecognized_sep=', ';;
855     esac
856     eval enable_$ac_useropt=no ;;
857
858   -docdir | --docdir | --docdi | --doc | --do)
859     ac_prev=docdir ;;
860   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861     docdir=$ac_optarg ;;
862
863   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864     ac_prev=dvidir ;;
865   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866     dvidir=$ac_optarg ;;
867
868   -enable-* | --enable-*)
869     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870     # Reject names that are not valid shell variable names.
871     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
873    { (exit 1); exit 1; }; }
874     ac_useropt_orig=$ac_useropt
875     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876     case $ac_user_opts in
877       *"
878 "enable_$ac_useropt"
879 "*) ;;
880       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881          ac_unrecognized_sep=', ';;
882     esac
883     eval enable_$ac_useropt=\$ac_optarg ;;
884
885   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887   | --exec | --exe | --ex)
888     ac_prev=exec_prefix ;;
889   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891   | --exec=* | --exe=* | --ex=*)
892     exec_prefix=$ac_optarg ;;
893
894   -gas | --gas | --ga | --g)
895     # Obsolete; use --with-gas.
896     with_gas=yes ;;
897
898   -help | --help | --hel | --he | -h)
899     ac_init_help=long ;;
900   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901     ac_init_help=recursive ;;
902   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903     ac_init_help=short ;;
904
905   -host | --host | --hos | --ho)
906     ac_prev=host_alias ;;
907   -host=* | --host=* | --hos=* | --ho=*)
908     host_alias=$ac_optarg ;;
909
910   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911     ac_prev=htmldir ;;
912   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913   | --ht=*)
914     htmldir=$ac_optarg ;;
915
916   -includedir | --includedir | --includedi | --included | --include \
917   | --includ | --inclu | --incl | --inc)
918     ac_prev=includedir ;;
919   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920   | --includ=* | --inclu=* | --incl=* | --inc=*)
921     includedir=$ac_optarg ;;
922
923   -infodir | --infodir | --infodi | --infod | --info | --inf)
924     ac_prev=infodir ;;
925   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926     infodir=$ac_optarg ;;
927
928   -libdir | --libdir | --libdi | --libd)
929     ac_prev=libdir ;;
930   -libdir=* | --libdir=* | --libdi=* | --libd=*)
931     libdir=$ac_optarg ;;
932
933   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934   | --libexe | --libex | --libe)
935     ac_prev=libexecdir ;;
936   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937   | --libexe=* | --libex=* | --libe=*)
938     libexecdir=$ac_optarg ;;
939
940   -localedir | --localedir | --localedi | --localed | --locale)
941     ac_prev=localedir ;;
942   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943     localedir=$ac_optarg ;;
944
945   -localstatedir | --localstatedir | --localstatedi | --localstated \
946   | --localstate | --localstat | --localsta | --localst | --locals)
947     ac_prev=localstatedir ;;
948   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950     localstatedir=$ac_optarg ;;
951
952   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953     ac_prev=mandir ;;
954   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955     mandir=$ac_optarg ;;
956
957   -nfp | --nfp | --nf)
958     # Obsolete; use --without-fp.
959     with_fp=no ;;
960
961   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962   | --no-cr | --no-c | -n)
963     no_create=yes ;;
964
965   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967     no_recursion=yes ;;
968
969   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971   | --oldin | --oldi | --old | --ol | --o)
972     ac_prev=oldincludedir ;;
973   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976     oldincludedir=$ac_optarg ;;
977
978   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979     ac_prev=prefix ;;
980   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981     prefix=$ac_optarg ;;
982
983   -program-prefix | --program-prefix | --program-prefi | --program-pref \
984   | --program-pre | --program-pr | --program-p)
985     ac_prev=program_prefix ;;
986   -program-prefix=* | --program-prefix=* | --program-prefi=* \
987   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988     program_prefix=$ac_optarg ;;
989
990   -program-suffix | --program-suffix | --program-suffi | --program-suff \
991   | --program-suf | --program-su | --program-s)
992     ac_prev=program_suffix ;;
993   -program-suffix=* | --program-suffix=* | --program-suffi=* \
994   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995     program_suffix=$ac_optarg ;;
996
997   -program-transform-name | --program-transform-name \
998   | --program-transform-nam | --program-transform-na \
999   | --program-transform-n | --program-transform- \
1000   | --program-transform | --program-transfor \
1001   | --program-transfo | --program-transf \
1002   | --program-trans | --program-tran \
1003   | --progr-tra | --program-tr | --program-t)
1004     ac_prev=program_transform_name ;;
1005   -program-transform-name=* | --program-transform-name=* \
1006   | --program-transform-nam=* | --program-transform-na=* \
1007   | --program-transform-n=* | --program-transform-=* \
1008   | --program-transform=* | --program-transfor=* \
1009   | --program-transfo=* | --program-transf=* \
1010   | --program-trans=* | --program-tran=* \
1011   | --progr-tra=* | --program-tr=* | --program-t=*)
1012     program_transform_name=$ac_optarg ;;
1013
1014   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015     ac_prev=pdfdir ;;
1016   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017     pdfdir=$ac_optarg ;;
1018
1019   -psdir | --psdir | --psdi | --psd | --ps)
1020     ac_prev=psdir ;;
1021   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022     psdir=$ac_optarg ;;
1023
1024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025   | -silent | --silent | --silen | --sile | --sil)
1026     silent=yes ;;
1027
1028   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029     ac_prev=sbindir ;;
1030   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031   | --sbi=* | --sb=*)
1032     sbindir=$ac_optarg ;;
1033
1034   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036   | --sharedst | --shareds | --shared | --share | --shar \
1037   | --sha | --sh)
1038     ac_prev=sharedstatedir ;;
1039   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042   | --sha=* | --sh=*)
1043     sharedstatedir=$ac_optarg ;;
1044
1045   -site | --site | --sit)
1046     ac_prev=site ;;
1047   -site=* | --site=* | --sit=*)
1048     site=$ac_optarg ;;
1049
1050   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051     ac_prev=srcdir ;;
1052   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053     srcdir=$ac_optarg ;;
1054
1055   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056   | --syscon | --sysco | --sysc | --sys | --sy)
1057     ac_prev=sysconfdir ;;
1058   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060     sysconfdir=$ac_optarg ;;
1061
1062   -target | --target | --targe | --targ | --tar | --ta | --t)
1063     ac_prev=target_alias ;;
1064   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065     target_alias=$ac_optarg ;;
1066
1067   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068     verbose=yes ;;
1069
1070   -version | --version | --versio | --versi | --vers | -V)
1071     ac_init_version=: ;;
1072
1073   -with-* | --with-*)
1074     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval with_$ac_useropt=\$ac_optarg ;;
1089
1090   -without-* | --without-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1095    { (exit 1); exit 1; }; }
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=no ;;
1106
1107   --x)
1108     # Obsolete; use --with-x.
1109     with_x=yes ;;
1110
1111   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112   | --x-incl | --x-inc | --x-in | --x-i)
1113     ac_prev=x_includes ;;
1114   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116     x_includes=$ac_optarg ;;
1117
1118   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120     ac_prev=x_libraries ;;
1121   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123     x_libraries=$ac_optarg ;;
1124
1125   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1126 Try \`$0 --help' for more information." >&2
1127    { (exit 1); exit 1; }; }
1128     ;;
1129
1130   *=*)
1131     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1134       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1135    { (exit 1); exit 1; }; }
1136     eval $ac_envvar=\$ac_optarg
1137     export $ac_envvar ;;
1138
1139   *)
1140     # FIXME: should be removed in autoconf 3.0.
1141     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1145     ;;
1146
1147   esac
1148 done
1149
1150 if test -n "$ac_prev"; then
1151   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1153    { (exit 1); exit 1; }; }
1154 fi
1155
1156 if test -n "$ac_unrecognized_opts"; then
1157   case $enable_option_checking in
1158     no) ;;
1159     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1160    { (exit 1); exit 1; }; } ;;
1161     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162   esac
1163 fi
1164
1165 # Check all directory arguments for consistency.
1166 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167                 datadir sysconfdir sharedstatedir localstatedir includedir \
1168                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169                 libdir localedir mandir
1170 do
1171   eval ac_val=\$$ac_var
1172   # Remove trailing slashes.
1173   case $ac_val in
1174     */ )
1175       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176       eval $ac_var=\$ac_val;;
1177   esac
1178   # Be sure to have absolute directory names.
1179   case $ac_val in
1180     [\\/$]* | ?:[\\/]* )  continue;;
1181     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182   esac
1183   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1184    { (exit 1); exit 1; }; }
1185 done
1186
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1190 build=$build_alias
1191 host=$host_alias
1192 target=$target_alias
1193
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196   if test "x$build_alias" = x; then
1197     cross_compiling=maybe
1198     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199     If a cross compiler is detected then cross compile mode will be used." >&2
1200   elif test "x$build_alias" != "x$host_alias"; then
1201     cross_compiling=yes
1202   fi
1203 fi
1204
1205 ac_tool_prefix=
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208 test "$silent" = yes && exec 6>/dev/null
1209
1210
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1215    { (exit 1); exit 1; }; }
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1218    { (exit 1); exit 1; }; }
1219
1220
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223   ac_srcdir_defaulted=yes
1224   # Try the directory containing this script, then the parent directory.
1225   ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227          X"$as_myself" : 'X\(//\)[^/]' \| \
1228          X"$as_myself" : 'X\(//\)$' \| \
1229          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\/\)[^/].*/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)$/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\).*/{
1244             s//\1/
1245             q
1246           }
1247           s/.*/./; q'`
1248   srcdir=$ac_confdir
1249   if test ! -r "$srcdir/$ac_unique_file"; then
1250     srcdir=..
1251   fi
1252 else
1253   ac_srcdir_defaulted=no
1254 fi
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1258    { (exit 1); exit 1; }; }
1259 fi
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1263    { (exit 1); exit 1; }; }
1264         pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267   srcdir=.
1268 fi
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277   eval ac_env_${ac_var}_value=\$${ac_var}
1278   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1281
1282 #
1283 # Report the --help message.
1284 #
1285 if test "$ac_init_help" = "long"; then
1286   # Omit some internal or obsolete options to make the list less imposing.
1287   # This message is too long to be a string in the A/UX 3.1 sh.
1288   cat <<_ACEOF
1289 \`configure' configures this package to adapt to many kinds of systems.
1290
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE.  See below for descriptions of some of the useful variables.
1295
1296 Defaults for the options are specified in brackets.
1297
1298 Configuration:
1299   -h, --help              display this help and exit
1300       --help=short        display options specific to this package
1301       --help=recursive    display the short help of all the included packages
1302   -V, --version           display version information and exit
1303   -q, --quiet, --silent   do not print \`checking...' messages
1304       --cache-file=FILE   cache test results in FILE [disabled]
1305   -C, --config-cache      alias for \`--cache-file=config.cache'
1306   -n, --no-create         do not create output files
1307       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308
1309 Installation directories:
1310   --prefix=PREFIX         install architecture-independent files in PREFIX
1311                           [$ac_default_prefix]
1312   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313                           [PREFIX]
1314
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1319
1320 For better control, use the options below.
1321
1322 Fine tuning of the installation directories:
1323   --bindir=DIR            user executables [EPREFIX/bin]
1324   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325   --libexecdir=DIR        program executables [EPREFIX/libexec]
1326   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329   --libdir=DIR            object code libraries [EPREFIX/lib]
1330   --includedir=DIR        C header files [PREFIX/include]
1331   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334   --infodir=DIR           info documentation [DATAROOTDIR/info]
1335   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336   --mandir=DIR            man documentation [DATAROOTDIR/man]
1337   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1338   --htmldir=DIR           html documentation [DOCDIR]
1339   --dvidir=DIR            dvi documentation [DOCDIR]
1340   --pdfdir=DIR            pdf documentation [DOCDIR]
1341   --psdir=DIR             ps documentation [DOCDIR]
1342 _ACEOF
1343
1344   cat <<\_ACEOF
1345
1346 System types:
1347   --build=BUILD     configure for building on BUILD [guessed]
1348   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349   --target=TARGET   configure for building compilers for TARGET [HOST]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354
1355   cat <<\_ACEOF
1356
1357 Optional Features:
1358   --disable-option-checking  ignore unrecognized --enable/--with options
1359   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1360   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1361   --disable-ld-elf2flt-binary
1362                           use ld-elf2flt shell script
1363  --disable-got-check - disable check for GOT (needed on H8)
1364  --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
1365   --enable-emit-ctor-dtor manually create ctor/dtor list
1366   --enable-always-reloc-text
1367                           always process text relocs ignoring pic/got (needed
1368                           on Blackfin)
1369
1370 Optional Packages:
1371   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1372   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1373  --with-zlib-prefix=<dir>  path to installed zlib
1374  --with-libbfd=<file>  path to libbfd.a library to use
1375  --with-libiberty=<file>  path to libiberty.a library to use
1376  --with-bfd-include-dir=<dir>  include path for correct bfd.h
1377  --with-binutils-include-dir=<dir>  include path for binutils headers
1378  --with-binutils-ldscript-dir=<dir>  path to install elf2flt.ld
1379  --with-binutils-build-dir=<dir>  path to compiled binutils tree
1380
1381 Some influential environment variables:
1382   CC          C compiler command
1383   CFLAGS      C compiler flags
1384   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1385               nonstandard directory <lib dir>
1386   LIBS        libraries to pass to the linker, e.g. -l<library>
1387   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388               you have headers in a nonstandard directory <include dir>
1389   CPP         C preprocessor
1390
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1393
1394 _ACEOF
1395 ac_status=$?
1396 fi
1397
1398 if test "$ac_init_help" = "recursive"; then
1399   # If there are subdirs, report their specific --help.
1400   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401     test -d "$ac_dir" ||
1402       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1403       continue
1404     ac_builddir=.
1405
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *)
1409   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1410   # A ".." for each directory in $ac_dir_suffix.
1411   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1412   case $ac_top_builddir_sub in
1413   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415   esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1421
1422 case $srcdir in
1423   .)  # We are building in place.
1424     ac_srcdir=.
1425     ac_top_srcdir=$ac_top_builddir_sub
1426     ac_abs_top_srcdir=$ac_pwd ;;
1427   [\\/]* | ?:[\\/]* )  # Absolute name.
1428     ac_srcdir=$srcdir$ac_dir_suffix;
1429     ac_top_srcdir=$srcdir
1430     ac_abs_top_srcdir=$srcdir ;;
1431   *) # Relative name.
1432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433     ac_top_srcdir=$ac_top_build_prefix$srcdir
1434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437
1438     cd "$ac_dir" || { ac_status=$?; continue; }
1439     # Check for guested configure.
1440     if test -f "$ac_srcdir/configure.gnu"; then
1441       echo &&
1442       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443     elif test -f "$ac_srcdir/configure"; then
1444       echo &&
1445       $SHELL "$ac_srcdir/configure" --help=recursive
1446     else
1447       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448     fi || ac_status=$?
1449     cd "$ac_pwd" || { ac_status=$?; break; }
1450   done
1451 fi
1452
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455   cat <<\_ACEOF
1456 configure
1457 generated by GNU Autoconf 2.63
1458
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464   exit
1465 fi
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1469
1470 It was created by $as_me, which was
1471 generated by GNU Autoconf 2.63.  Invocation command line was
1472
1473   $ $0 $@
1474
1475 _ACEOF
1476 exec 5>>config.log
1477 {
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
1482
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1491
1492 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1493 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1496 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1497 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1498 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1499
1500 _ASUNAME
1501
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   $as_echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1510
1511 } >&5
1512
1513 cat >&5 <<_ACEOF
1514
1515
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1519
1520 _ACEOF
1521
1522
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_configure_args=
1529 ac_configure_args0=
1530 ac_configure_args1=
1531 ac_must_keep_next=false
1532 for ac_pass in 1 2
1533 do
1534   for ac_arg
1535   do
1536     case $ac_arg in
1537     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539     | -silent | --silent | --silen | --sile | --sil)
1540       continue ;;
1541     *\'*)
1542       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543     esac
1544     case $ac_pass in
1545     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546     2)
1547       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548       if test $ac_must_keep_next = true; then
1549         ac_must_keep_next=false # Got value, back to normal.
1550       else
1551         case $ac_arg in
1552           *=* | --config-cache | -C | -disable-* | --disable-* \
1553           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555           | -with-* | --with-* | -without-* | --without-* | --x)
1556             case "$ac_configure_args0 " in
1557               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558             esac
1559             ;;
1560           -* ) ac_must_keep_next=true ;;
1561         esac
1562       fi
1563       ac_configure_args="$ac_configure_args '$ac_arg'"
1564       ;;
1565     esac
1566   done
1567 done
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log.  We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577   # Save into config.log some information that might help in debugging.
1578   {
1579     echo
1580
1581     cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586     echo
1587     # The following way of writing the cache mishandles newlines in values,
1588 (
1589   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590     eval ac_val=\$$ac_var
1591     case $ac_val in #(
1592     *${as_nl}*)
1593       case $ac_var in #(
1594       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1596       esac
1597       case $ac_var in #(
1598       _ | IFS | as_nl) ;; #(
1599       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1600       *) $as_unset $ac_var ;;
1601       esac ;;
1602     esac
1603   done
1604   (set) 2>&1 |
1605     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1606     *${as_nl}ac_space=\ *)
1607       sed -n \
1608         "s/'\''/'\''\\\\'\'''\''/g;
1609           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1610       ;; #(
1611     *)
1612       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613       ;;
1614     esac |
1615     sort
1616 )
1617     echo
1618
1619     cat <<\_ASBOX
1620 ## ----------------- ##
1621 ## Output variables. ##
1622 ## ----------------- ##
1623 _ASBOX
1624     echo
1625     for ac_var in $ac_subst_vars
1626     do
1627       eval ac_val=\$$ac_var
1628       case $ac_val in
1629       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630       esac
1631       $as_echo "$ac_var='\''$ac_val'\''"
1632     done | sort
1633     echo
1634
1635     if test -n "$ac_subst_files"; then
1636       cat <<\_ASBOX
1637 ## ------------------- ##
1638 ## File substitutions. ##
1639 ## ------------------- ##
1640 _ASBOX
1641       echo
1642       for ac_var in $ac_subst_files
1643       do
1644         eval ac_val=\$$ac_var
1645         case $ac_val in
1646         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647         esac
1648         $as_echo "$ac_var='\''$ac_val'\''"
1649       done | sort
1650       echo
1651     fi
1652
1653     if test -s confdefs.h; then
1654       cat <<\_ASBOX
1655 ## ----------- ##
1656 ## confdefs.h. ##
1657 ## ----------- ##
1658 _ASBOX
1659       echo
1660       cat confdefs.h
1661       echo
1662     fi
1663     test "$ac_signal" != 0 &&
1664       $as_echo "$as_me: caught signal $ac_signal"
1665     $as_echo "$as_me: exit $exit_status"
1666   } >&5
1667   rm -f core *.core core.conftest.* &&
1668     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1669     exit $exit_status
1670 ' 0
1671 for ac_signal in 1 2 13 15; do
1672   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 done
1674 ac_signal=0
1675
1676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1677 rm -f -r conftest* confdefs.h
1678
1679 # Predefined preprocessor variables.
1680
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 _ACEOF
1684
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 _ACEOF
1704
1705
1706 # Let the site file select an alternate cache file if it wants to.
1707 # Prefer an explicitly selected file to automatically selected ones.
1708 ac_site_file1=NONE
1709 ac_site_file2=NONE
1710 if test -n "$CONFIG_SITE"; then
1711   ac_site_file1=$CONFIG_SITE
1712 elif test "x$prefix" != xNONE; then
1713   ac_site_file1=$prefix/share/config.site
1714   ac_site_file2=$prefix/etc/config.site
1715 else
1716   ac_site_file1=$ac_default_prefix/share/config.site
1717   ac_site_file2=$ac_default_prefix/etc/config.site
1718 fi
1719 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1720 do
1721   test "x$ac_site_file" = xNONE && continue
1722   if test -r "$ac_site_file"; then
1723     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1724 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1725     sed 's/^/| /' "$ac_site_file" >&5
1726     . "$ac_site_file"
1727   fi
1728 done
1729
1730 if test -r "$cache_file"; then
1731   # Some versions of bash will fail to source /dev/null (special
1732   # files actually), so we avoid doing that.
1733   if test -f "$cache_file"; then
1734     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1735 $as_echo "$as_me: loading cache $cache_file" >&6;}
1736     case $cache_file in
1737       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1738       *)                      . "./$cache_file";;
1739     esac
1740   fi
1741 else
1742   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1743 $as_echo "$as_me: creating cache $cache_file" >&6;}
1744   >$cache_file
1745 fi
1746
1747 # Check that the precious variables saved in the cache have kept the same
1748 # value.
1749 ac_cache_corrupted=false
1750 for ac_var in $ac_precious_vars; do
1751   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1752   eval ac_new_set=\$ac_env_${ac_var}_set
1753   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1754   eval ac_new_val=\$ac_env_${ac_var}_value
1755   case $ac_old_set,$ac_new_set in
1756     set,)
1757       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1758 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1759       ac_cache_corrupted=: ;;
1760     ,set)
1761       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1762 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1763       ac_cache_corrupted=: ;;
1764     ,);;
1765     *)
1766       if test "x$ac_old_val" != "x$ac_new_val"; then
1767         # differences in whitespace do not lead to failure.
1768         ac_old_val_w=`echo x $ac_old_val`
1769         ac_new_val_w=`echo x $ac_new_val`
1770         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1771           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1772 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1773           ac_cache_corrupted=:
1774         else
1775           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1776 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1777           eval $ac_var=\$ac_old_val
1778         fi
1779         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1780 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1781         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1782 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1783       fi;;
1784   esac
1785   # Pass precious variables to config.status.
1786   if test "$ac_new_set" = set; then
1787     case $ac_new_val in
1788     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1789     *) ac_arg=$ac_var=$ac_new_val ;;
1790     esac
1791     case " $ac_configure_args " in
1792       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1793       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1794     esac
1795   fi
1796 done
1797 if $ac_cache_corrupted; then
1798   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804    { (exit 1); exit 1; }; }
1805 fi
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828
1829
1830
1831
1832 # Check whether --with-zlib-prefix was given.
1833 if test "${with_zlib_prefix+set}" = set; then
1834   withval=$with_zlib_prefix;  ac_zlib_prefix=$withval
1835 else
1836    ac_zlib_prefix=NONE
1837
1838 fi
1839
1840
1841
1842 # Check whether --with-libbfd was given.
1843 if test "${with_libbfd+set}" = set; then
1844   withval=$with_libbfd;  ac_libbfd=$withval
1845 else
1846    ac_libbfd=NONE
1847
1848 fi
1849
1850
1851
1852 # Check whether --with-libiberty was given.
1853 if test "${with_libiberty+set}" = set; then
1854   withval=$with_libiberty;  ac_libiberty=$withval
1855 else
1856    ac_libiberty=NONE
1857
1858 fi
1859
1860
1861
1862 # Check whether --with-bfd-include-dir was given.
1863 if test "${with_bfd_include_dir+set}" = set; then
1864   withval=$with_bfd_include_dir;  ac_bfd_include_dir=$withval
1865 else
1866    ac_bfd_include_dir=NONE
1867
1868 fi
1869
1870
1871
1872 # Check whether --with-binutils-include-dir was given.
1873 if test "${with_binutils_include_dir+set}" = set; then
1874   withval=$with_binutils_include_dir;  ac_binutils_include_dir=$withval
1875 else
1876    ac_binutils_include_dir=NONE
1877
1878 fi
1879
1880
1881
1882 # Check whether --with-binutils-ldscript-dir was given.
1883 if test "${with_binutils_ldscript_dir+set}" = set; then
1884   withval=$with_binutils_ldscript_dir;  ac_binutils_ldscript_dir=$withval
1885 else
1886    ac_binutils_ldscript_dir=NONE
1887
1888 fi
1889
1890
1891
1892 # Check whether --with-binutils-build-dir was given.
1893 if test "${with_binutils_build_dir+set}" = set; then
1894   withval=$with_binutils_build_dir;  ac_binutils_build_dir=$withval
1895 else
1896    ac_binutils_build_dir=NONE
1897
1898 fi
1899
1900
1901 # Check whether --enable-ld-elf2flt-binary was given.
1902 if test "${enable_ld_elf2flt_binary+set}" = set; then
1903   enableval=$enable_ld_elf2flt_binary;  use_ld_elf2flt_binary=$enableval
1904 else
1905    use_ld_elf2flt_binary=yes
1906
1907 fi
1908
1909
1910 var_yn_to_10() {
1911         if eval test \"\$$1\" = yes ; then
1912                 eval $1=1
1913         else
1914                 eval $1=0
1915         fi
1916 }
1917
1918 # Check whether --enable-got-check was given.
1919 if test "${enable_got_check+set}" = set; then
1920   enableval=$enable_got_check;  got_check=$enableval
1921 else
1922    got_check=yes
1923
1924 fi
1925
1926 var_yn_to_10 got_check
1927
1928 # Check whether --enable-emit-relocs was given.
1929 if test "${enable_emit_relocs+set}" = set; then
1930   enableval=$enable_emit_relocs;  emit_relocs=$enableval
1931 else
1932    emit_relocs=yes
1933
1934 fi
1935
1936 var_yn_to_10 emit_relocs
1937
1938 # Check whether --enable-emit-ctor-dtor was given.
1939 if test "${enable_emit_ctor_dtor+set}" = set; then
1940   enableval=$enable_emit_ctor_dtor;  emit_ctor_dtor=$enableval
1941 else
1942    emit_ctor_dtor=no
1943
1944 fi
1945
1946 var_yn_to_10 emit_ctor_dtor
1947
1948 # Check whether --enable-always-reloc-text was given.
1949 if test "${enable_always_reloc_text+set}" = set; then
1950   enableval=$enable_always_reloc_text;  always_reloc_text=$enableval
1951 else
1952
1953         case $target in
1954                 bfin*) always_reloc_text=yes;;
1955                 *)     always_reloc_text=no;;
1956         esac
1957
1958
1959 fi
1960
1961 var_yn_to_10 always_reloc_text
1962
1963 ac_aux_dir=
1964 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1965   if test -f "$ac_dir/install-sh"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/install-sh -c"
1968     break
1969   elif test -f "$ac_dir/install.sh"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/install.sh -c"
1972     break
1973   elif test -f "$ac_dir/shtool"; then
1974     ac_aux_dir=$ac_dir
1975     ac_install_sh="$ac_aux_dir/shtool install -c"
1976     break
1977   fi
1978 done
1979 if test -z "$ac_aux_dir"; then
1980   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1981 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1982    { (exit 1); exit 1; }; }
1983 fi
1984
1985 # These three variables are undocumented and unsupported,
1986 # and are intended to be withdrawn in a future Autoconf release.
1987 # They can cause serious problems if a builder's source tree is in a directory
1988 # whose full name contains unusual characters.
1989 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1990 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1991 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1992
1993
1994 # Make sure we can run config.sub.
1995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1996   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1997 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1998    { (exit 1); exit 1; }; }
1999
2000 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2001 $as_echo_n "checking build system type... " >&6; }
2002 if test "${ac_cv_build+set}" = set; then
2003   $as_echo_n "(cached) " >&6
2004 else
2005   ac_build_alias=$build_alias
2006 test "x$ac_build_alias" = x &&
2007   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2008 test "x$ac_build_alias" = x &&
2009   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2010 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2011    { (exit 1); exit 1; }; }
2012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2013   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2014 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 fi
2018 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2019 $as_echo "$ac_cv_build" >&6; }
2020 case $ac_cv_build in
2021 *-*-*) ;;
2022 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2023 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2024    { (exit 1); exit 1; }; };;
2025 esac
2026 build=$ac_cv_build
2027 ac_save_IFS=$IFS; IFS='-'
2028 set x $ac_cv_build
2029 shift
2030 build_cpu=$1
2031 build_vendor=$2
2032 shift; shift
2033 # Remember, the first character of IFS is used to create $*,
2034 # except with old shells:
2035 build_os=$*
2036 IFS=$ac_save_IFS
2037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038
2039
2040 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2041 $as_echo_n "checking host system type... " >&6; }
2042 if test "${ac_cv_host+set}" = set; then
2043   $as_echo_n "(cached) " >&6
2044 else
2045   if test "x$host_alias" = x; then
2046   ac_cv_host=$ac_cv_build
2047 else
2048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2049     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2050 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 fi
2055 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2056 $as_echo "$ac_cv_host" >&6; }
2057 case $ac_cv_host in
2058 *-*-*) ;;
2059 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2060 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2061    { (exit 1); exit 1; }; };;
2062 esac
2063 host=$ac_cv_host
2064 ac_save_IFS=$IFS; IFS='-'
2065 set x $ac_cv_host
2066 shift
2067 host_cpu=$1
2068 host_vendor=$2
2069 shift; shift
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2072 host_os=$*
2073 IFS=$ac_save_IFS
2074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2075
2076
2077 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2078 $as_echo_n "checking target system type... " >&6; }
2079 if test "${ac_cv_target+set}" = set; then
2080   $as_echo_n "(cached) " >&6
2081 else
2082   if test "x$target_alias" = x; then
2083   ac_cv_target=$ac_cv_host
2084 else
2085   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2086     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2087 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2088    { (exit 1); exit 1; }; }
2089 fi
2090
2091 fi
2092 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2093 $as_echo "$ac_cv_target" >&6; }
2094 case $ac_cv_target in
2095 *-*-*) ;;
2096 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2097 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2098    { (exit 1); exit 1; }; };;
2099 esac
2100 target=$ac_cv_target
2101 ac_save_IFS=$IFS; IFS='-'
2102 set x $ac_cv_target
2103 shift
2104 target_cpu=$1
2105 target_vendor=$2
2106 shift; shift
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2109 target_os=$*
2110 IFS=$ac_save_IFS
2111 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2112
2113
2114 # The aliases save the names the user supplied, while $host etc.
2115 # will get canonicalized.
2116 test -n "$target_alias" &&
2117   test "$program_prefix$program_suffix$program_transform_name" = \
2118     NONENONEs,x,x, &&
2119   program_prefix=${target_alias}-
2120
2121 ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126 if test -n "$ac_tool_prefix"; then
2127   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 $as_echo_n "checking for $ac_word... " >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132   $as_echo_n "(cached) " >&6
2133 else
2134   if test -n "$CC"; then
2135   ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2145     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150 IFS=$as_save_IFS
2151
2152 fi
2153 fi
2154 CC=$ac_cv_prog_CC
2155 if test -n "$CC"; then
2156   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2157 $as_echo "$CC" >&6; }
2158 else
2159   { $as_echo "$as_me:$LINENO: result: no" >&5
2160 $as_echo "no" >&6; }
2161 fi
2162
2163
2164 fi
2165 if test -z "$ac_cv_prog_CC"; then
2166   ac_ct_CC=$CC
2167   # Extract the first word of "gcc", so it can be a program name with args.
2168 set dummy gcc; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172   $as_echo_n "(cached) " >&6
2173 else
2174   if test -n "$ac_ct_CC"; then
2175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     ac_cv_prog_ac_ct_CC="gcc"
2185     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193 fi
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 $as_echo "$ac_ct_CC" >&6; }
2198 else
2199   { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2201 fi
2202
2203   if test "x$ac_ct_CC" = x; then
2204     CC=""
2205   else
2206     case $cross_compiling:$ac_tool_warned in
2207 yes:)
2208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2210 ac_tool_warned=yes ;;
2211 esac
2212     CC=$ac_ct_CC
2213   fi
2214 else
2215   CC="$ac_cv_prog_CC"
2216 fi
2217
2218 if test -z "$CC"; then
2219           if test -n "$ac_tool_prefix"; then
2220     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2221 set dummy ${ac_tool_prefix}cc; ac_word=$2
2222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 $as_echo_n "checking for $ac_word... " >&6; }
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225   $as_echo_n "(cached) " >&6
2226 else
2227   if test -n "$CC"; then
2228   ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237     ac_cv_prog_CC="${ac_tool_prefix}cc"
2238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243 IFS=$as_save_IFS
2244
2245 fi
2246 fi
2247 CC=$ac_cv_prog_CC
2248 if test -n "$CC"; then
2249   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2250 $as_echo "$CC" >&6; }
2251 else
2252   { $as_echo "$as_me:$LINENO: result: no" >&5
2253 $as_echo "no" >&6; }
2254 fi
2255
2256
2257   fi
2258 fi
2259 if test -z "$CC"; then
2260   # Extract the first word of "cc", so it can be a program name with args.
2261 set dummy cc; ac_word=$2
2262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 $as_echo_n "checking for $ac_word... " >&6; }
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265   $as_echo_n "(cached) " >&6
2266 else
2267   if test -n "$CC"; then
2268   ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270   ac_prog_rejected=no
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_exec_ext in '' $ac_executable_extensions; do
2277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2279        ac_prog_rejected=yes
2280        continue
2281      fi
2282     ac_cv_prog_CC="cc"
2283     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284     break 2
2285   fi
2286 done
2287 done
2288 IFS=$as_save_IFS
2289
2290 if test $ac_prog_rejected = yes; then
2291   # We found a bogon in the path, so make sure we never use it.
2292   set dummy $ac_cv_prog_CC
2293   shift
2294   if test $# != 0; then
2295     # We chose a different compiler from the bogus one.
2296     # However, it has the same basename, so the bogon will be chosen
2297     # first if we set CC to just the basename; use the full file name.
2298     shift
2299     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2300   fi
2301 fi
2302 fi
2303 fi
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2307 $as_echo "$CC" >&6; }
2308 else
2309   { $as_echo "$as_me:$LINENO: result: no" >&5
2310 $as_echo "no" >&6; }
2311 fi
2312
2313
2314 fi
2315 if test -z "$CC"; then
2316   if test -n "$ac_tool_prefix"; then
2317   for ac_prog in cl.exe
2318   do
2319     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324   $as_echo_n "(cached) " >&6
2325 else
2326   if test -n "$CC"; then
2327   ac_cv_prog_CC="$CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 CC=$ac_cv_prog_CC
2347 if test -n "$CC"; then
2348   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2349 $as_echo "$CC" >&6; }
2350 else
2351   { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2353 fi
2354
2355
2356     test -n "$CC" && break
2357   done
2358 fi
2359 if test -z "$CC"; then
2360   ac_ct_CC=$CC
2361   for ac_prog in cl.exe
2362 do
2363   # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368   $as_echo_n "(cached) " >&6
2369 else
2370   if test -n "$ac_ct_CC"; then
2371   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_ac_ct_CC="$ac_prog"
2381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 $as_echo "$ac_ct_CC" >&6; }
2394 else
2395   { $as_echo "$as_me:$LINENO: result: no" >&5
2396 $as_echo "no" >&6; }
2397 fi
2398
2399
2400   test -n "$ac_ct_CC" && break
2401 done
2402
2403   if test "x$ac_ct_CC" = x; then
2404     CC=""
2405   else
2406     case $cross_compiling:$ac_tool_warned in
2407 yes:)
2408 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412     CC=$ac_ct_CC
2413   fi
2414 fi
2415
2416 fi
2417
2418
2419 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2422 See \`config.log' for more details." >&5
2423 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2424 See \`config.log' for more details." >&2;}
2425    { (exit 1); exit 1; }; }; }
2426
2427 # Provide some information about the compiler.
2428 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2429 set X $ac_compile
2430 ac_compiler=$2
2431 { (ac_try="$ac_compiler --version >&5"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2437 $as_echo "$ac_try_echo") >&5
2438   (eval "$ac_compiler --version >&5") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (ac_try="$ac_compiler -v >&5"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2448 $as_echo "$ac_try_echo") >&5
2449   (eval "$ac_compiler -v >&5") 2>&5
2450   ac_status=$?
2451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }
2453 { (ac_try="$ac_compiler -V >&5"
2454 case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2459 $as_echo "$ac_try_echo") >&5
2460   (eval "$ac_compiler -V >&5") 2>&5
2461   ac_status=$?
2462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }
2464
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 ac_clean_files_save=$ac_clean_files
2481 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2482 # Try to create an executable without -o first, disregard a.out.
2483 # It will help us diagnose broken compilers, and finding out an intuition
2484 # of exeext.
2485 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2486 $as_echo_n "checking for C compiler default output file name... " >&6; }
2487 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2488
2489 # The possible output files:
2490 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2491
2492 ac_rmfiles=
2493 for ac_file in $ac_files
2494 do
2495   case $ac_file in
2496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2497     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2498   esac
2499 done
2500 rm -f $ac_rmfiles
2501
2502 if { (ac_try="$ac_link_default"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2508 $as_echo "$ac_try_echo") >&5
2509   (eval "$ac_link_default") 2>&5
2510   ac_status=$?
2511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2514 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2515 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2516 # so that the user can short-circuit this test for compilers unknown to
2517 # Autoconf.
2518 for ac_file in $ac_files ''
2519 do
2520   test -f "$ac_file" || continue
2521   case $ac_file in
2522     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2523         ;;
2524     [ab].out )
2525         # We found the default executable, but exeext='' is most
2526         # certainly right.
2527         break;;
2528     *.* )
2529         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2530         then :; else
2531            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532         fi
2533         # We set ac_cv_exeext here because the later test for it is not
2534         # safe: cross compilers may not add the suffix if given an `-o'
2535         # argument, so we may need to know it at that point already.
2536         # Even if this section looks crufty: it has the advantage of
2537         # actually working.
2538         break;;
2539     * )
2540         break;;
2541   esac
2542 done
2543 test "$ac_cv_exeext" = no && ac_cv_exeext=
2544
2545 else
2546   ac_file=''
2547 fi
2548
2549 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2550 $as_echo "$ac_file" >&6; }
2551 if test -z "$ac_file"; then
2552   $as_echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&5
2559 $as_echo "$as_me: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&2;}
2561    { (exit 77); exit 77; }; }; }
2562 fi
2563
2564 ac_exeext=$ac_cv_exeext
2565
2566 # Check that the compiler produces executables we can run.  If not, either
2567 # the compiler is broken, or we cross compile.
2568 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2569 $as_echo_n "checking whether the C compiler works... " >&6; }
2570 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2571 # If not cross compiling, check that we can run a simple program.
2572 if test "$cross_compiling" != yes; then
2573   if { ac_try='./$ac_file'
2574   { (case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2579 $as_echo "$ac_try_echo") >&5
2580   (eval "$ac_try") 2>&5
2581   ac_status=$?
2582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584     cross_compiling=no
2585   else
2586     if test "$cross_compiling" = maybe; then
2587         cross_compiling=yes
2588     else
2589         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&5
2594 $as_echo "$as_me: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&2;}
2597    { (exit 1); exit 1; }; }; }
2598     fi
2599   fi
2600 fi
2601 { $as_echo "$as_me:$LINENO: result: yes" >&5
2602 $as_echo "yes" >&6; }
2603
2604 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2605 ac_clean_files=$ac_clean_files_save
2606 # Check that the compiler produces executables we can run.  If not, either
2607 # the compiler is broken, or we cross compile.
2608 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609 $as_echo_n "checking whether we are cross compiling... " >&6; }
2610 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611 $as_echo "$cross_compiling" >&6; }
2612
2613 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614 $as_echo_n "checking for suffix of executables... " >&6; }
2615 if { (ac_try="$ac_link"
2616 case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2621 $as_echo "$ac_try_echo") >&5
2622   (eval "$ac_link") 2>&5
2623   ac_status=$?
2624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; then
2626   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2627 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2628 # work properly (i.e., refer to `conftest.exe'), while it won't with
2629 # `rm'.
2630 for ac_file in conftest.exe conftest conftest.*; do
2631   test -f "$ac_file" || continue
2632   case $ac_file in
2633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2634     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635           break;;
2636     * ) break;;
2637   esac
2638 done
2639 else
2640   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643 See \`config.log' for more details." >&5
2644 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645 See \`config.log' for more details." >&2;}
2646    { (exit 1); exit 1; }; }; }
2647 fi
2648
2649 rm -f conftest$ac_cv_exeext
2650 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651 $as_echo "$ac_cv_exeext" >&6; }
2652
2653 rm -f conftest.$ac_ext
2654 EXEEXT=$ac_cv_exeext
2655 ac_exeext=$EXEEXT
2656 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657 $as_echo_n "checking for suffix of object files... " >&6; }
2658 if test "${ac_cv_objext+set}" = set; then
2659   $as_echo_n "(cached) " >&6
2660 else
2661   cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h.  */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h.  */
2667
2668 int
2669 main ()
2670 {
2671
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 rm -f conftest.o conftest.obj
2677 if { (ac_try="$ac_compile"
2678 case "(($ac_try" in
2679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680   *) ac_try_echo=$ac_try;;
2681 esac
2682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2683 $as_echo "$ac_try_echo") >&5
2684   (eval "$ac_compile") 2>&5
2685   ac_status=$?
2686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; then
2688   for ac_file in conftest.o conftest.obj conftest.*; do
2689   test -f "$ac_file" || continue;
2690   case $ac_file in
2691     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2692     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2693        break;;
2694   esac
2695 done
2696 else
2697   $as_echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&5
2704 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&2;}
2706    { (exit 1); exit 1; }; }; }
2707 fi
2708
2709 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2710 fi
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2712 $as_echo "$ac_cv_objext" >&6; }
2713 OBJEXT=$ac_cv_objext
2714 ac_objext=$OBJEXT
2715 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2716 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2717 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2718   $as_echo_n "(cached) " >&6
2719 else
2720   cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730 #ifndef __GNUC__
2731        choke me
2732 #endif
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2745 $as_echo "$ac_try_echo") >&5
2746   (eval "$ac_compile") 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } && {
2753          test -z "$ac_c_werror_flag" ||
2754          test ! -s conftest.err
2755        } && test -s conftest.$ac_objext; then
2756   ac_compiler_gnu=yes
2757 else
2758   $as_echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761         ac_compiler_gnu=no
2762 fi
2763
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2766
2767 fi
2768 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2770 if test $ac_compiler_gnu = yes; then
2771   GCC=yes
2772 else
2773   GCC=
2774 fi
2775 ac_test_CFLAGS=${CFLAGS+set}
2776 ac_save_CFLAGS=$CFLAGS
2777 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2778 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2779 if test "${ac_cv_prog_cc_g+set}" = set; then
2780   $as_echo_n "(cached) " >&6
2781 else
2782   ac_save_c_werror_flag=$ac_c_werror_flag
2783    ac_c_werror_flag=yes
2784    ac_cv_prog_cc_g=no
2785    CFLAGS="-g"
2786    cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h.  */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h.  */
2792
2793 int
2794 main ()
2795 {
2796
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 rm -f conftest.$ac_objext
2802 if { (ac_try="$ac_compile"
2803 case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
2809   (eval "$ac_compile") 2>conftest.er1
2810   ac_status=$?
2811   grep -v '^ *+' conftest.er1 >conftest.err
2812   rm -f conftest.er1
2813   cat conftest.err >&5
2814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); } && {
2816          test -z "$ac_c_werror_flag" ||
2817          test ! -s conftest.err
2818        } && test -s conftest.$ac_objext; then
2819   ac_cv_prog_cc_g=yes
2820 else
2821   $as_echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824         CFLAGS=""
2825       cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831
2832 int
2833 main ()
2834 {
2835
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848   (eval "$ac_compile") 2>conftest.er1
2849   ac_status=$?
2850   grep -v '^ *+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } && {
2855          test -z "$ac_c_werror_flag" ||
2856          test ! -s conftest.err
2857        } && test -s conftest.$ac_objext; then
2858   :
2859 else
2860   $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863         ac_c_werror_flag=$ac_save_c_werror_flag
2864          CFLAGS="-g"
2865          cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871
2872 int
2873 main ()
2874 {
2875
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888   (eval "$ac_compile") 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } && {
2895          test -z "$ac_c_werror_flag" ||
2896          test ! -s conftest.err
2897        } && test -s conftest.$ac_objext; then
2898   ac_cv_prog_cc_g=yes
2899 else
2900   $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903
2904 fi
2905
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 fi
2908
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913    ac_c_werror_flag=$ac_save_c_werror_flag
2914 fi
2915 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 $as_echo "$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918   CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920   if test "$GCC" = yes; then
2921     CFLAGS="-g -O2"
2922   else
2923     CFLAGS="-g"
2924   fi
2925 else
2926   if test "$GCC" = yes; then
2927     CFLAGS="-O2"
2928   else
2929     CFLAGS=
2930   fi
2931 fi
2932 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935   $as_echo_n "(cached) " >&6
2936 else
2937   ac_cv_prog_cc_c89=no
2938 ac_save_CC=$CC
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <stdarg.h>
2946 #include <stdio.h>
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2953      char **p;
2954      int i;
2955 {
2956   return p[i];
2957 }
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2959 {
2960   char *s;
2961   va_list v;
2962   va_start (v,p);
2963   s = g (p, va_arg (v,int));
2964   va_end (v);
2965   return s;
2966 }
2967
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2969    function prototypes and stuff, but not '\xHH' hex character constants.
2970    These don't provoke an error unfortunately, instead are silently treated
2971    as 'x'.  The following induces an error, until -std is added to get
2972    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2973    array size at least.  It's necessary to write '\x00'==0 to get something
2974    that's true only with -std.  */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2976
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978    inside strings and character constants.  */
2979 #define FOO(x) 'x'
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2981
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 int argc;
2987 char **argv;
2988 int
2989 main ()
2990 {
2991 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2998 do
2999   CC="$ac_save_CC $ac_arg"
3000   rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } && {
3015          test -z "$ac_c_werror_flag" ||
3016          test ! -s conftest.err
3017        } && test -s conftest.$ac_objext; then
3018   ac_cv_prog_cc_c89=$ac_arg
3019 else
3020   $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023
3024 fi
3025
3026 rm -f core conftest.err conftest.$ac_objext
3027   test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 done
3029 rm -f conftest.$ac_ext
3030 CC=$ac_save_CC
3031
3032 fi
3033 # AC_CACHE_VAL
3034 case "x$ac_cv_prog_cc_c89" in
3035   x)
3036     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3037 $as_echo "none needed" >&6; } ;;
3038   xno)
3039     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3040 $as_echo "unsupported" >&6; } ;;
3041   *)
3042     CC="$CC $ac_cv_prog_cc_c89"
3043     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3045 esac
3046
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053
3054
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3061 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3064   CPP=
3065 fi
3066 if test -z "$CPP"; then
3067   if test "${ac_cv_prog_CPP+set}" = set; then
3068   $as_echo_n "(cached) " >&6
3069 else
3070       # Double quotes because CPP needs to be expanded
3071     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3072     do
3073       ac_preproc_ok=false
3074 for ac_c_preproc_warn_flag in '' yes
3075 do
3076   # Use a header file that comes with gcc, so configuring glibc
3077   # with a fresh cross-compiler works.
3078   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079   # <limits.h> exists even on freestanding compilers.
3080   # On the NeXT, cc -E runs the code through the compiler's parser,
3081   # not just through cpp. "Syntax error" is here to catch this case.
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #ifdef __STDC__
3089 # include <limits.h>
3090 #else
3091 # include <assert.h>
3092 #endif
3093                      Syntax error
3094 _ACEOF
3095 if { (ac_try="$ac_cpp conftest.$ac_ext"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null && {
3109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110          test ! -s conftest.err
3111        }; then
3112   :
3113 else
3114   $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117   # Broken: fails on valid input.
3118 continue
3119 fi
3120
3121 rm -f conftest.err conftest.$ac_ext
3122
3123   # OK, works on sane cases.  Now check whether nonexistent headers
3124   # can be detected and how.
3125   cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h.  */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h.  */
3131 #include <ac_nonexistent.h>
3132 _ACEOF
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3139 $as_echo "$ac_try_echo") >&5
3140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } >/dev/null && {
3147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3148          test ! -s conftest.err
3149        }; then
3150   # Broken: success on invalid input.
3151 continue
3152 else
3153   $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156   # Passes both tests.
3157 ac_preproc_ok=:
3158 break
3159 fi
3160
3161 rm -f conftest.err conftest.$ac_ext
3162
3163 done
3164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165 rm -f conftest.err conftest.$ac_ext
3166 if $ac_preproc_ok; then
3167   break
3168 fi
3169
3170     done
3171     ac_cv_prog_CPP=$CPP
3172
3173 fi
3174   CPP=$ac_cv_prog_CPP
3175 else
3176   ac_cv_prog_CPP=$CPP
3177 fi
3178 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3179 $as_echo "$CPP" >&6; }
3180 ac_preproc_ok=false
3181 for ac_c_preproc_warn_flag in '' yes
3182 do
3183   # Use a header file that comes with gcc, so configuring glibc
3184   # with a fresh cross-compiler works.
3185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186   # <limits.h> exists even on freestanding compilers.
3187   # On the NeXT, cc -E runs the code through the compiler's parser,
3188   # not just through cpp. "Syntax error" is here to catch this case.
3189   cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195 #ifdef __STDC__
3196 # include <limits.h>
3197 #else
3198 # include <assert.h>
3199 #endif
3200                      Syntax error
3201 _ACEOF
3202 if { (ac_try="$ac_cpp conftest.$ac_ext"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3208 $as_echo "$ac_try_echo") >&5
3209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } >/dev/null && {
3216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3217          test ! -s conftest.err
3218        }; then
3219   :
3220 else
3221   $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224   # Broken: fails on valid input.
3225 continue
3226 fi
3227
3228 rm -f conftest.err conftest.$ac_ext
3229
3230   # OK, works on sane cases.  Now check whether nonexistent headers
3231   # can be detected and how.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #include <ac_nonexistent.h>
3239 _ACEOF
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3248   ac_status=$?
3249   grep -v '^ *+' conftest.er1 >conftest.err
3250   rm -f conftest.er1
3251   cat conftest.err >&5
3252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } >/dev/null && {
3254          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3255          test ! -s conftest.err
3256        }; then
3257   # Broken: success on invalid input.
3258 continue
3259 else
3260   $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Passes both tests.
3264 ac_preproc_ok=:
3265 break
3266 fi
3267
3268 rm -f conftest.err conftest.$ac_ext
3269
3270 done
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then
3274   :
3275 else
3276   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3279 See \`config.log' for more details." >&5
3280 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3281 See \`config.log' for more details." >&2;}
3282    { (exit 1); exit 1; }; }; }
3283 fi
3284
3285 ac_ext=c
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3293 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3294 if test "${ac_cv_path_GREP+set}" = set; then
3295   $as_echo_n "(cached) " >&6
3296 else
3297   if test -z "$GREP"; then
3298   ac_path_GREP_found=false
3299   # Loop through the user's path and test for each of PROGNAME-LIST
3300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305   for ac_prog in grep ggrep; do
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3308       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3309 # Check for GNU ac_path_GREP and select it if it is found.
3310   # Check for GNU $ac_path_GREP
3311 case `"$ac_path_GREP" --version 2>&1` in
3312 *GNU*)
3313   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3314 *)
3315   ac_count=0
3316   $as_echo_n 0123456789 >"conftest.in"
3317   while :
3318   do
3319     cat "conftest.in" "conftest.in" >"conftest.tmp"
3320     mv "conftest.tmp" "conftest.in"
3321     cp "conftest.in" "conftest.nl"
3322     $as_echo 'GREP' >> "conftest.nl"
3323     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3324     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3325     ac_count=`expr $ac_count + 1`
3326     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3327       # Best one so far, save it but keep looking for a better one
3328       ac_cv_path_GREP="$ac_path_GREP"
3329       ac_path_GREP_max=$ac_count
3330     fi
3331     # 10*(2^10) chars as input seems more than enough
3332     test $ac_count -gt 10 && break
3333   done
3334   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3335 esac
3336
3337       $ac_path_GREP_found && break 3
3338     done
3339   done
3340 done
3341 IFS=$as_save_IFS
3342   if test -z "$ac_cv_path_GREP"; then
3343     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345    { (exit 1); exit 1; }; }
3346   fi
3347 else
3348   ac_cv_path_GREP=$GREP
3349 fi
3350
3351 fi
3352 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3353 $as_echo "$ac_cv_path_GREP" >&6; }
3354  GREP="$ac_cv_path_GREP"
3355
3356
3357 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3358 $as_echo_n "checking for egrep... " >&6; }
3359 if test "${ac_cv_path_EGREP+set}" = set; then
3360   $as_echo_n "(cached) " >&6
3361 else
3362   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3363    then ac_cv_path_EGREP="$GREP -E"
3364    else
3365      if test -z "$EGREP"; then
3366   ac_path_EGREP_found=false
3367   # Loop through the user's path and test for each of PROGNAME-LIST
3368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370 do
3371   IFS=$as_save_IFS
3372   test -z "$as_dir" && as_dir=.
3373   for ac_prog in egrep; do
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3376       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3377 # Check for GNU ac_path_EGREP and select it if it is found.
3378   # Check for GNU $ac_path_EGREP
3379 case `"$ac_path_EGREP" --version 2>&1` in
3380 *GNU*)
3381   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3382 *)
3383   ac_count=0
3384   $as_echo_n 0123456789 >"conftest.in"
3385   while :
3386   do
3387     cat "conftest.in" "conftest.in" >"conftest.tmp"
3388     mv "conftest.tmp" "conftest.in"
3389     cp "conftest.in" "conftest.nl"
3390     $as_echo 'EGREP' >> "conftest.nl"
3391     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393     ac_count=`expr $ac_count + 1`
3394     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3395       # Best one so far, save it but keep looking for a better one
3396       ac_cv_path_EGREP="$ac_path_EGREP"
3397       ac_path_EGREP_max=$ac_count
3398     fi
3399     # 10*(2^10) chars as input seems more than enough
3400     test $ac_count -gt 10 && break
3401   done
3402   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403 esac
3404
3405       $ac_path_EGREP_found && break 3
3406     done
3407   done
3408 done
3409 IFS=$as_save_IFS
3410   if test -z "$ac_cv_path_EGREP"; then
3411     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3412 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3413    { (exit 1); exit 1; }; }
3414   fi
3415 else
3416   ac_cv_path_EGREP=$EGREP
3417 fi
3418
3419    fi
3420 fi
3421 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3422 $as_echo "$ac_cv_path_EGREP" >&6; }
3423  EGREP="$ac_cv_path_EGREP"
3424
3425
3426 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3427 $as_echo_n "checking for ANSI C header files... " >&6; }
3428 if test "${ac_cv_header_stdc+set}" = set; then
3429   $as_echo_n "(cached) " >&6
3430 else
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <stdlib.h>
3438 #include <stdarg.h>
3439 #include <string.h>
3440 #include <float.h>
3441
3442 int
3443 main ()
3444 {
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457 $as_echo "$ac_try_echo") >&5
3458   (eval "$ac_compile") 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } && {
3465          test -z "$ac_c_werror_flag" ||
3466          test ! -s conftest.err
3467        } && test -s conftest.$ac_objext; then
3468   ac_cv_header_stdc=yes
3469 else
3470   $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473         ac_cv_header_stdc=no
3474 fi
3475
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
3478 if test $ac_cv_header_stdc = yes; then
3479   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486 #include <string.h>
3487
3488 _ACEOF
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490   $EGREP "memchr" >/dev/null 2>&1; then
3491   :
3492 else
3493   ac_cv_header_stdc=no
3494 fi
3495 rm -f conftest*
3496
3497 fi
3498
3499 if test $ac_cv_header_stdc = yes; then
3500   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3501   cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h.  */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h.  */
3507 #include <stdlib.h>
3508
3509 _ACEOF
3510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511   $EGREP "free" >/dev/null 2>&1; then
3512   :
3513 else
3514   ac_cv_header_stdc=no
3515 fi
3516 rm -f conftest*
3517
3518 fi
3519
3520 if test $ac_cv_header_stdc = yes; then
3521   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3522   if test "$cross_compiling" = yes; then
3523   :
3524 else
3525   cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h.  */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h.  */
3531 #include <ctype.h>
3532 #include <stdlib.h>
3533 #if ((' ' & 0x0FF) == 0x020)
3534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3536 #else
3537 # define ISLOWER(c) \
3538                    (('a' <= (c) && (c) <= 'i') \
3539                      || ('j' <= (c) && (c) <= 'r') \
3540                      || ('s' <= (c) && (c) <= 'z'))
3541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3542 #endif
3543
3544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3545 int
3546 main ()
3547 {
3548   int i;
3549   for (i = 0; i < 256; i++)
3550     if (XOR (islower (i), ISLOWER (i))
3551         || toupper (i) != TOUPPER (i))
3552       return 2;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest$ac_exeext
3557 if { (ac_try="$ac_link"
3558 case "(($ac_try" in
3559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560   *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3563 $as_echo "$ac_try_echo") >&5
3564   (eval "$ac_link") 2>&5
3565   ac_status=$?
3566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3568   { (case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   :
3579 else
3580   $as_echo "$as_me: program exited with status $ac_status" >&5
3581 $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 ( exit $ac_status )
3585 ac_cv_header_stdc=no
3586 fi
3587 rm -rf conftest.dSYM
3588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3589 fi
3590
3591
3592 fi
3593 fi
3594 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3595 $as_echo "$ac_cv_header_stdc" >&6; }
3596 if test $ac_cv_header_stdc = yes; then
3597
3598 cat >>confdefs.h <<\_ACEOF
3599 #define STDC_HEADERS 1
3600 _ACEOF
3601
3602 fi
3603
3604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3615                   inttypes.h stdint.h unistd.h
3616 do
3617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3619 $as_echo_n "checking for $ac_header... " >&6; }
3620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3621   $as_echo_n "(cached) " >&6
3622 else
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 $ac_includes_default
3630
3631 #include <$ac_header>
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3640 $as_echo "$ac_try_echo") >&5
3641   (eval "$ac_compile") 2>conftest.er1
3642   ac_status=$?
3643   grep -v '^ *+' conftest.er1 >conftest.err
3644   rm -f conftest.er1
3645   cat conftest.err >&5
3646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); } && {
3648          test -z "$ac_c_werror_flag" ||
3649          test ! -s conftest.err
3650        } && test -s conftest.$ac_objext; then
3651   eval "$as_ac_Header=yes"
3652 else
3653   $as_echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656         eval "$as_ac_Header=no"
3657 fi
3658
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 fi
3661 ac_res=`eval 'as_val=${'$as_ac_Header'}
3662                  $as_echo "$as_val"'`
3663                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3664 $as_echo "$ac_res" >&6; }
3665 as_val=`eval 'as_val=${'$as_ac_Header'}
3666                  $as_echo "$as_val"'`
3667    if test "x$as_val" = x""yes; then
3668   cat >>confdefs.h <<_ACEOF
3669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3670 _ACEOF
3671
3672 fi
3673
3674 done
3675
3676
3677
3678   if test "${ac_cv_header_minix_config_h+set}" = set; then
3679   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3680 $as_echo_n "checking for minix/config.h... " >&6; }
3681 if test "${ac_cv_header_minix_config_h+set}" = set; then
3682   $as_echo_n "(cached) " >&6
3683 fi
3684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3686 else
3687   # Is the header compilable?
3688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3689 $as_echo_n "checking minix/config.h usability... " >&6; }
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 $ac_includes_default
3697 #include <minix/config.h>
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707   (eval "$ac_compile") 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } && {
3714          test -z "$ac_c_werror_flag" ||
3715          test ! -s conftest.err
3716        } && test -s conftest.$ac_objext; then
3717   ac_header_compiler=yes
3718 else
3719   $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722         ac_header_compiler=no
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3727 $as_echo "$ac_header_compiler" >&6; }
3728
3729 # Is the header present?
3730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3731 $as_echo_n "checking minix/config.h presence... " >&6; }
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738 #include <minix/config.h>
3739 _ACEOF
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746 $as_echo "$ac_try_echo") >&5
3747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } >/dev/null && {
3754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755          test ! -s conftest.err
3756        }; then
3757   ac_header_preproc=yes
3758 else
3759   $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762   ac_header_preproc=no
3763 fi
3764
3765 rm -f conftest.err conftest.$ac_ext
3766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3767 $as_echo "$ac_header_preproc" >&6; }
3768
3769 # So?  What about this header?
3770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3771   yes:no: )
3772     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3774     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3776     ac_header_preproc=yes
3777     ;;
3778   no:yes:* )
3779     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3781     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3782 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3783     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3785     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3786 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3787     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3789     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3791
3792     ;;
3793 esac
3794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3795 $as_echo_n "checking for minix/config.h... " >&6; }
3796 if test "${ac_cv_header_minix_config_h+set}" = set; then
3797   $as_echo_n "(cached) " >&6
3798 else
3799   ac_cv_header_minix_config_h=$ac_header_preproc
3800 fi
3801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3803
3804 fi
3805 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3806   MINIX=yes
3807 else
3808   MINIX=
3809 fi
3810
3811
3812   if test "$MINIX" = yes; then
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define _POSIX_SOURCE 1
3816 _ACEOF
3817
3818
3819 cat >>confdefs.h <<\_ACEOF
3820 #define _POSIX_1_SOURCE 2
3821 _ACEOF
3822
3823
3824 cat >>confdefs.h <<\_ACEOF
3825 #define _MINIX 1
3826 _ACEOF
3827
3828   fi
3829
3830
3831
3832   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3835   $as_echo_n "(cached) " >&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
3844 #         define __EXTENSIONS__ 1
3845           $ac_includes_default
3846 int
3847 main ()
3848 {
3849
3850   ;
3851   return 0;
3852 }
3853 _ACEOF
3854 rm -f conftest.$ac_objext
3855 if { (ac_try="$ac_compile"
3856 case "(($ac_try" in
3857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858   *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3861 $as_echo "$ac_try_echo") >&5
3862   (eval "$ac_compile") 2>conftest.er1
3863   ac_status=$?
3864   grep -v '^ *+' conftest.er1 >conftest.err
3865   rm -f conftest.er1
3866   cat conftest.err >&5
3867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } && {
3869          test -z "$ac_c_werror_flag" ||
3870          test ! -s conftest.err
3871        } && test -s conftest.$ac_objext; then
3872   ac_cv_safe_to_define___extensions__=yes
3873 else
3874   $as_echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877         ac_cv_safe_to_define___extensions__=no
3878 fi
3879
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 fi
3882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3884   test $ac_cv_safe_to_define___extensions__ = yes &&
3885     cat >>confdefs.h <<\_ACEOF
3886 #define __EXTENSIONS__ 1
3887 _ACEOF
3888
3889   cat >>confdefs.h <<\_ACEOF
3890 #define _ALL_SOURCE 1
3891 _ACEOF
3892
3893   cat >>confdefs.h <<\_ACEOF
3894 #define _GNU_SOURCE 1
3895 _ACEOF
3896
3897   cat >>confdefs.h <<\_ACEOF
3898 #define _POSIX_PTHREAD_SEMANTICS 1
3899 _ACEOF
3900
3901   cat >>confdefs.h <<\_ACEOF
3902 #define _TANDEM_SOURCE 1
3903 _ACEOF
3904
3905
3906 # Find a good install program.  We prefer a C program (faster),
3907 # so one script is as good as another.  But avoid the broken or
3908 # incompatible versions:
3909 # SysV /etc/install, /usr/sbin/install
3910 # SunOS /usr/etc/install
3911 # IRIX /sbin/install
3912 # AIX /bin/install
3913 # AmigaOS /C/install, which installs bootblocks on floppy discs
3914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3917 # OS/2's system install, which has a completely different semantic
3918 # ./install, which can be erroneously created by make from ./install.sh.
3919 # Reject install programs that cannot install multiple files.
3920 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3921 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3922 if test -z "$INSTALL"; then
3923 if test "${ac_cv_path_install+set}" = set; then
3924   $as_echo_n "(cached) " >&6
3925 else
3926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931   # Account for people who put trailing slashes in PATH elements.
3932 case $as_dir/ in
3933   ./ | .// | /cC/* | \
3934   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3935   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3936   /usr/ucb/* ) ;;
3937   *)
3938     # OSF1 and SCO ODT 3.0 have their own names for install.
3939     # Don't use installbsd from OSF since it installs stuff as root
3940     # by default.
3941     for ac_prog in ginstall scoinst install; do
3942       for ac_exec_ext in '' $ac_executable_extensions; do
3943         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3944           if test $ac_prog = install &&
3945             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3946             # AIX install.  It has an incompatible calling convention.
3947             :
3948           elif test $ac_prog = install &&
3949             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3950             # program-specific install script used by HP pwplus--don't use.
3951             :
3952           else
3953             rm -rf conftest.one conftest.two conftest.dir
3954             echo one > conftest.one
3955             echo two > conftest.two
3956             mkdir conftest.dir
3957             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3958               test -s conftest.one && test -s conftest.two &&
3959               test -s conftest.dir/conftest.one &&
3960               test -s conftest.dir/conftest.two
3961             then
3962               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3963               break 3
3964             fi
3965           fi
3966         fi
3967       done
3968     done
3969     ;;
3970 esac
3971
3972 done
3973 IFS=$as_save_IFS
3974
3975 rm -rf conftest.one conftest.two conftest.dir
3976
3977 fi
3978   if test "${ac_cv_path_install+set}" = set; then
3979     INSTALL=$ac_cv_path_install
3980   else
3981     # As a last resort, use the slow shell script.  Don't cache a
3982     # value for INSTALL within a source directory, because that will
3983     # break other packages using the cache if that directory is
3984     # removed, or if the value is a relative name.
3985     INSTALL=$ac_install_sh
3986   fi
3987 fi
3988 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3989 $as_echo "$INSTALL" >&6; }
3990
3991 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3992 # It thinks the first close brace ends the variable substitution.
3993 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3994
3995 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3996
3997 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3998
3999
4000 if test "$ac_binutils_build_dir" != "NONE"; then
4001   test "$ac_libbfd"               = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
4002   test "$ac_libiberty"            = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
4003   test "$ac_bfd_include_dir"      = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
4004   test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
4005 fi
4006
4007 if test "$ac_libiberty" = "NONE"; then
4008
4009 { $as_echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
4010 $as_echo_n "checking for objalloc_create in -liberty... " >&6; }
4011 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
4012   $as_echo_n "(cached) " >&6
4013 else
4014   ac_check_lib_save_LIBS=$LIBS
4015 LIBS="-liberty  $LIBS"
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022
4023 /* Override any GCC internal prototype to avoid an error.
4024    Use char because int might match the return type of a GCC
4025    builtin and then its argument prototype would still apply.  */
4026 #ifdef __cplusplus
4027 extern "C"
4028 #endif
4029 char objalloc_create ();
4030 int
4031 main ()
4032 {
4033 return objalloc_create ();
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (ac_try="$ac_link"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046   (eval "$ac_link") 2>conftest.er1
4047   ac_status=$?
4048   grep -v '^ *+' conftest.er1 >conftest.err
4049   rm -f conftest.er1
4050   cat conftest.err >&5
4051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } && {
4053          test -z "$ac_c_werror_flag" ||
4054          test ! -s conftest.err
4055        } && test -s conftest$ac_exeext && {
4056          test "$cross_compiling" = yes ||
4057          $as_test_x conftest$ac_exeext
4058        }; then
4059   ac_cv_lib_iberty_objalloc_create=yes
4060 else
4061   $as_echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064         ac_cv_lib_iberty_objalloc_create=no
4065 fi
4066
4067 rm -rf conftest.dSYM
4068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4069       conftest$ac_exeext conftest.$ac_ext
4070 LIBS=$ac_check_lib_save_LIBS
4071 fi
4072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
4073 $as_echo "$ac_cv_lib_iberty_objalloc_create" >&6; }
4074 if test "x$ac_cv_lib_iberty_objalloc_create" = x""yes; then
4075   cat >>confdefs.h <<_ACEOF
4076 #define HAVE_LIBIBERTY 1
4077 _ACEOF
4078
4079   LIBS="-liberty $LIBS"
4080
4081 fi
4082
4083   ac_libiberty=auto
4084 else
4085   LIBS="$ac_libiberty $LIBS"
4086 fi
4087 if test "$ac_libbfd" = "NONE"; then
4088
4089 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
4090 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
4091 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
4092   $as_echo_n "(cached) " >&6
4093 else
4094   ac_check_lib_save_LIBS=$LIBS
4095 LIBS="-lbfd  $LIBS"
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102
4103 /* Override any GCC internal prototype to avoid an error.
4104    Use char because int might match the return type of a GCC
4105    builtin and then its argument prototype would still apply.  */
4106 #ifdef __cplusplus
4107 extern "C"
4108 #endif
4109 char bfd_openr ();
4110 int
4111 main ()
4112 {
4113 return bfd_openr ();
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 rm -f conftest.$ac_objext conftest$ac_exeext
4119 if { (ac_try="$ac_link"
4120 case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125 $as_echo "$ac_try_echo") >&5
4126   (eval "$ac_link") 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } && {
4133          test -z "$ac_c_werror_flag" ||
4134          test ! -s conftest.err
4135        } && test -s conftest$ac_exeext && {
4136          test "$cross_compiling" = yes ||
4137          $as_test_x conftest$ac_exeext
4138        }; then
4139   ac_cv_lib_bfd_bfd_openr=yes
4140 else
4141   $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4143
4144         ac_cv_lib_bfd_bfd_openr=no
4145 fi
4146
4147 rm -rf conftest.dSYM
4148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4149       conftest$ac_exeext conftest.$ac_ext
4150 LIBS=$ac_check_lib_save_LIBS
4151 fi
4152 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
4153 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
4154 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
4155   cat >>confdefs.h <<_ACEOF
4156 #define HAVE_LIBBFD 1
4157 _ACEOF
4158
4159   LIBS="-lbfd $LIBS"
4160
4161 fi
4162
4163   ac_libbfd=auto
4164 else
4165   LIBS="$ac_libbfd $LIBS"
4166 fi
4167 if test "$ac_zlib_prefix" = "NONE"; then
4168
4169 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4170 $as_echo_n "checking for deflate in -lz... " >&6; }
4171 if test "${ac_cv_lib_z_deflate+set}" = set; then
4172   $as_echo_n "(cached) " >&6
4173 else
4174   ac_check_lib_save_LIBS=$LIBS
4175 LIBS="-lz  $LIBS"
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182
4183 /* Override any GCC internal prototype to avoid an error.
4184    Use char because int might match the return type of a GCC
4185    builtin and then its argument prototype would still apply.  */
4186 #ifdef __cplusplus
4187 extern "C"
4188 #endif
4189 char deflate ();
4190 int
4191 main ()
4192 {
4193 return deflate ();
4194   ;
4195   return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (ac_try="$ac_link"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4205 $as_echo "$ac_try_echo") >&5
4206   (eval "$ac_link") 2>conftest.er1
4207   ac_status=$?
4208   grep -v '^ *+' conftest.er1 >conftest.err
4209   rm -f conftest.er1
4210   cat conftest.err >&5
4211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); } && {
4213          test -z "$ac_c_werror_flag" ||
4214          test ! -s conftest.err
4215        } && test -s conftest$ac_exeext && {
4216          test "$cross_compiling" = yes ||
4217          $as_test_x conftest$ac_exeext
4218        }; then
4219   ac_cv_lib_z_deflate=yes
4220 else
4221   $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         ac_cv_lib_z_deflate=no
4225 fi
4226
4227 rm -rf conftest.dSYM
4228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4229       conftest$ac_exeext conftest.$ac_ext
4230 LIBS=$ac_check_lib_save_LIBS
4231 fi
4232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4233 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4234 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4235   cat >>confdefs.h <<_ACEOF
4236 #define HAVE_LIBZ 1
4237 _ACEOF
4238
4239   LIBS="-lz $LIBS"
4240
4241 fi
4242
4243 else
4244   LIBS="-L$ac_zlib_prefix/lib -lz $LIBS"
4245 fi
4246
4247 bfd_include_dir=
4248 if test "$ac_bfd_include_dir" != "NONE"; then
4249   bfd_include_dir="-I$ac_bfd_include_dir"
4250 fi
4251
4252 binutils_include_dir=
4253 if test "$ac_binutils_include_dir" != "NONE"; then
4254   binutils_include_dir="-I$ac_binutils_include_dir"
4255 fi
4256
4257 zlib_include_dir=
4258 if test "$ac_zlib_prefix" != "NONE"; then
4259   zlib_include_dir="-I$ac_zlib_prefix/include"
4260 fi
4261
4262 binutils_ldscript_dir=
4263 if test "$ac_binutils_ldscript_dir" = "NONE"; then
4264   ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
4265 fi
4266 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
4267
4268 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
4269         { { $as_echo "$as_me:$LINENO: error:
4270
4271 You need to specify the location of the libfd.a and libiberty.a
4272 host libraries from the binutils package.
4273
4274 Run configure again specifying these options:
4275
4276   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4277 " >&5
4278 $as_echo "$as_me: error:
4279
4280 You need to specify the location of the libfd.a and libiberty.a
4281 host libraries from the binutils package.
4282
4283 Run configure again specifying these options:
4284
4285   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4286 " >&2;}
4287    { (exit 1); exit 1; }; }
4288 fi
4289
4290 if test "$ac_bfd_include_dir" = "NONE" ; then
4291         { { $as_echo "$as_me:$LINENO: error:
4292
4293 You need to specify the location of the bfd.h header from a
4294 configured/compiled version of the binutils package for your target.
4295 Without this your elf2flt may crash as it will try to use the
4296 systems bfd.h which may be from a different binutils package.
4297
4298 Run configure again specifying these options:
4299
4300   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4301 " >&5
4302 $as_echo "$as_me: error:
4303
4304 You need to specify the location of the bfd.h header from a
4305 configured/compiled version of the binutils package for your target.
4306 Without this your elf2flt may crash as it will try to use the
4307 systems bfd.h which may be from a different binutils package.
4308
4309 Run configure again specifying these options:
4310
4311   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
4312 " >&2;}
4313    { (exit 1); exit 1; }; }
4314 fi
4315
4316 SYMBOL_PREFIX=
4317 case $target in
4318         h8300|bfin*)
4319                 SYMBOL_PREFIX=_
4320                 ;;
4321 esac
4322
4323 { $as_echo "$as_me:$LINENO: checking for malloc in -lc" >&5
4324 $as_echo_n "checking for malloc in -lc... " >&6; }
4325 if test "${ac_cv_lib_c_malloc+set}" = set; then
4326   $as_echo_n "(cached) " >&6
4327 else
4328   ac_check_lib_save_LIBS=$LIBS
4329 LIBS="-lc  $LIBS"
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336
4337 /* Override any GCC internal prototype to avoid an error.
4338    Use char because int might match the return type of a GCC
4339    builtin and then its argument prototype would still apply.  */
4340 #ifdef __cplusplus
4341 extern "C"
4342 #endif
4343 char malloc ();
4344 int
4345 main ()
4346 {
4347 return malloc ();
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4354 case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359 $as_echo "$ac_try_echo") >&5
4360   (eval "$ac_link") 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } && {
4367          test -z "$ac_c_werror_flag" ||
4368          test ! -s conftest.err
4369        } && test -s conftest$ac_exeext && {
4370          test "$cross_compiling" = yes ||
4371          $as_test_x conftest$ac_exeext
4372        }; then
4373   ac_cv_lib_c_malloc=yes
4374 else
4375   $as_echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378         ac_cv_lib_c_malloc=no
4379 fi
4380
4381 rm -rf conftest.dSYM
4382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4383       conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4385 fi
4386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
4387 $as_echo "$ac_cv_lib_c_malloc" >&6; }
4388 if test "x$ac_cv_lib_c_malloc" = x""yes; then
4389   LIBS="-lc $LIBS"
4390 fi
4391
4392
4393 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4394 $as_echo_n "checking for ANSI C header files... " >&6; }
4395 if test "${ac_cv_header_stdc+set}" = set; then
4396   $as_echo_n "(cached) " >&6
4397 else
4398   cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404 #include <stdlib.h>
4405 #include <stdarg.h>
4406 #include <string.h>
4407 #include <float.h>
4408
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425   (eval "$ac_compile") 2>conftest.er1
4426   ac_status=$?
4427   grep -v '^ *+' conftest.er1 >conftest.err
4428   rm -f conftest.er1
4429   cat conftest.err >&5
4430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); } && {
4432          test -z "$ac_c_werror_flag" ||
4433          test ! -s conftest.err
4434        } && test -s conftest.$ac_objext; then
4435   ac_cv_header_stdc=yes
4436 else
4437   $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440         ac_cv_header_stdc=no
4441 fi
4442
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444
4445 if test $ac_cv_header_stdc = yes; then
4446   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4447   cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 #include <string.h>
4454
4455 _ACEOF
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457   $EGREP "memchr" >/dev/null 2>&1; then
4458   :
4459 else
4460   ac_cv_header_stdc=no
4461 fi
4462 rm -f conftest*
4463
4464 fi
4465
4466 if test $ac_cv_header_stdc = yes; then
4467   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468   cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 #include <stdlib.h>
4475
4476 _ACEOF
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478   $EGREP "free" >/dev/null 2>&1; then
4479   :
4480 else
4481   ac_cv_header_stdc=no
4482 fi
4483 rm -f conftest*
4484
4485 fi
4486
4487 if test $ac_cv_header_stdc = yes; then
4488   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4489   if test "$cross_compiling" = yes; then
4490   :
4491 else
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 #include <ctype.h>
4499 #include <stdlib.h>
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4503 #else
4504 # define ISLOWER(c) \
4505                    (('a' <= (c) && (c) <= 'i') \
4506                      || ('j' <= (c) && (c) <= 'r') \
4507                      || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #endif
4510
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4512 int
4513 main ()
4514 {
4515   int i;
4516   for (i = 0; i < 256; i++)
4517     if (XOR (islower (i), ISLOWER (i))
4518         || toupper (i) != TOUPPER (i))
4519       return 2;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531   (eval "$ac_link") 2>&5
4532   ac_status=$?
4533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4535   { (case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540 $as_echo "$ac_try_echo") >&5
4541   (eval "$ac_try") 2>&5
4542   ac_status=$?
4543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); }; }; then
4545   :
4546 else
4547   $as_echo "$as_me: program exited with status $ac_status" >&5
4548 $as_echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 ( exit $ac_status )
4552 ac_cv_header_stdc=no
4553 fi
4554 rm -rf conftest.dSYM
4555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556 fi
4557
4558
4559 fi
4560 fi
4561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4562 $as_echo "$ac_cv_header_stdc" >&6; }
4563 if test $ac_cv_header_stdc = yes; then
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define STDC_HEADERS 1
4567 _ACEOF
4568
4569 fi
4570
4571
4572
4573
4574 for ac_header in fcntl.h unistd.h bfd.h
4575 do
4576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4578   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 $as_echo_n "checking for $ac_header... " >&6; }
4580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581   $as_echo_n "(cached) " >&6
4582 fi
4583 ac_res=`eval 'as_val=${'$as_ac_Header'}
4584                  $as_echo "$as_val"'`
4585                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4586 $as_echo "$ac_res" >&6; }
4587 else
4588   # Is the header compilable?
4589 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4590 $as_echo_n "checking $ac_header usability... " >&6; }
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597 $ac_includes_default
4598 #include <$ac_header>
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (ac_try="$ac_compile"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4607 $as_echo "$ac_try_echo") >&5
4608   (eval "$ac_compile") 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } && {
4615          test -z "$ac_c_werror_flag" ||
4616          test ! -s conftest.err
4617        } && test -s conftest.$ac_objext; then
4618   ac_header_compiler=yes
4619 else
4620   $as_echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623         ac_header_compiler=no
4624 fi
4625
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4628 $as_echo "$ac_header_compiler" >&6; }
4629
4630 # Is the header present?
4631 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4632 $as_echo_n "checking $ac_header presence... " >&6; }
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639 #include <$ac_header>
4640 _ACEOF
4641 if { (ac_try="$ac_cpp conftest.$ac_ext"
4642 case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } >/dev/null && {
4655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4656          test ! -s conftest.err
4657        }; then
4658   ac_header_preproc=yes
4659 else
4660   $as_echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663   ac_header_preproc=no
4664 fi
4665
4666 rm -f conftest.err conftest.$ac_ext
4667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4668 $as_echo "$ac_header_preproc" >&6; }
4669
4670 # So?  What about this header?
4671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4672   yes:no: )
4673     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4674 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4675     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4676 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4677     ac_header_preproc=yes
4678     ;;
4679   no:yes:* )
4680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4681 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4683 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4685 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4687 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4691 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4692
4693     ;;
4694 esac
4695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4696 $as_echo_n "checking for $ac_header... " >&6; }
4697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4698   $as_echo_n "(cached) " >&6
4699 else
4700   eval "$as_ac_Header=\$ac_header_preproc"
4701 fi
4702 ac_res=`eval 'as_val=${'$as_ac_Header'}
4703                  $as_echo "$as_val"'`
4704                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4705 $as_echo "$ac_res" >&6; }
4706
4707 fi
4708 as_val=`eval 'as_val=${'$as_ac_Header'}
4709                  $as_echo "$as_val"'`
4710    if test "x$as_val" = x""yes; then
4711   cat >>confdefs.h <<_ACEOF
4712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 _ACEOF
4714
4715 fi
4716
4717 done
4718
4719
4720 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4721 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4722 if test "${ac_cv_c_const+set}" = set; then
4723   $as_echo_n "(cached) " >&6
4724 else
4725   cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h.  */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h.  */
4731
4732 int
4733 main ()
4734 {
4735 /* FIXME: Include the comments suggested by Paul. */
4736 #ifndef __cplusplus
4737   /* Ultrix mips cc rejects this.  */
4738   typedef int charset[2];
4739   const charset cs;
4740   /* SunOS 4.1.1 cc rejects this.  */
4741   char const *const *pcpcc;
4742   char **ppc;
4743   /* NEC SVR4.0.2 mips cc rejects this.  */
4744   struct point {int x, y;};
4745   static struct point const zero = {0,0};
4746   /* AIX XL C 1.02.0.0 rejects this.
4747      It does not let you subtract one const X* pointer from another in
4748      an arm of an if-expression whose if-part is not a constant
4749      expression */
4750   const char *g = "string";
4751   pcpcc = &g + (g ? g-g : 0);
4752   /* HPUX 7.0 cc rejects these. */
4753   ++pcpcc;
4754   ppc = (char**) pcpcc;
4755   pcpcc = (char const *const *) ppc;
4756   { /* SCO 3.2v4 cc rejects this.  */
4757     char *t;
4758     char const *s = 0 ? (char *) 0 : (char const *) 0;
4759
4760     *t++ = 0;
4761     if (s) return 0;
4762   }
4763   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4764     int x[] = {25, 17};
4765     const int *foo = &x[0];
4766     ++foo;
4767   }
4768   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4769     typedef const int *iptr;
4770     iptr p = 0;
4771     ++p;
4772   }
4773   { /* AIX XL C 1.02.0.0 rejects this saying
4774        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4775     struct s { int j; const int *ap[3]; };
4776     struct s *b; b->j = 5;
4777   }
4778   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4779     const int foo = 10;
4780     if (!foo) return 0;
4781   }
4782   return !cs[0] && !zero.x;
4783 #endif
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797   (eval "$ac_compile") 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } && {
4804          test -z "$ac_c_werror_flag" ||
4805          test ! -s conftest.err
4806        } && test -s conftest.$ac_objext; then
4807   ac_cv_c_const=yes
4808 else
4809   $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812         ac_cv_c_const=no
4813 fi
4814
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 fi
4817 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4818 $as_echo "$ac_cv_c_const" >&6; }
4819 if test $ac_cv_c_const = no; then
4820
4821 cat >>confdefs.h <<\_ACEOF
4822 #define const /**/
4823 _ACEOF
4824
4825 fi
4826
4827
4828
4829 for ac_func in vprintf
4830 do
4831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4833 $as_echo_n "checking for $ac_func... " >&6; }
4834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4835   $as_echo_n "(cached) " >&6
4836 else
4837   cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4845 #define $ac_func innocuous_$ac_func
4846
4847 /* System header to define __stub macros and hopefully few prototypes,
4848     which can conflict with char $ac_func (); below.
4849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4850     <limits.h> exists even on freestanding compilers.  */
4851
4852 #ifdef __STDC__
4853 # include <limits.h>
4854 #else
4855 # include <assert.h>
4856 #endif
4857
4858 #undef $ac_func
4859
4860 /* Override any GCC internal prototype to avoid an error.
4861    Use char because int might match the return type of a GCC
4862    builtin and then its argument prototype would still apply.  */
4863 #ifdef __cplusplus
4864 extern "C"
4865 #endif
4866 char $ac_func ();
4867 /* The GNU C library defines this for functions which it implements
4868     to always fail with ENOSYS.  Some functions are actually named
4869     something starting with __ and the normal name is an alias.  */
4870 #if defined __stub_$ac_func || defined __stub___$ac_func
4871 choke me
4872 #endif
4873
4874 int
4875 main ()
4876 {
4877 return $ac_func ();
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890   (eval "$ac_link") 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } && {
4897          test -z "$ac_c_werror_flag" ||
4898          test ! -s conftest.err
4899        } && test -s conftest$ac_exeext && {
4900          test "$cross_compiling" = yes ||
4901          $as_test_x conftest$ac_exeext
4902        }; then
4903   eval "$as_ac_var=yes"
4904 else
4905   $as_echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908         eval "$as_ac_var=no"
4909 fi
4910
4911 rm -rf conftest.dSYM
4912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4913       conftest$ac_exeext conftest.$ac_ext
4914 fi
4915 ac_res=`eval 'as_val=${'$as_ac_var'}
4916                  $as_echo "$as_val"'`
4917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4918 $as_echo "$ac_res" >&6; }
4919 as_val=`eval 'as_val=${'$as_ac_var'}
4920                  $as_echo "$as_val"'`
4921    if test "x$as_val" = x""yes; then
4922   cat >>confdefs.h <<_ACEOF
4923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4924 _ACEOF
4925
4926 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
4927 $as_echo_n "checking for _doprnt... " >&6; }
4928 if test "${ac_cv_func__doprnt+set}" = set; then
4929   $as_echo_n "(cached) " >&6
4930 else
4931   cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4939 #define _doprnt innocuous__doprnt
4940
4941 /* System header to define __stub macros and hopefully few prototypes,
4942     which can conflict with char _doprnt (); below.
4943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944     <limits.h> exists even on freestanding compilers.  */
4945
4946 #ifdef __STDC__
4947 # include <limits.h>
4948 #else
4949 # include <assert.h>
4950 #endif
4951
4952 #undef _doprnt
4953
4954 /* Override any GCC internal prototype to avoid an error.
4955    Use char because int might match the return type of a GCC
4956    builtin and then its argument prototype would still apply.  */
4957 #ifdef __cplusplus
4958 extern "C"
4959 #endif
4960 char _doprnt ();
4961 /* The GNU C library defines this for functions which it implements
4962     to always fail with ENOSYS.  Some functions are actually named
4963     something starting with __ and the normal name is an alias.  */
4964 #if defined __stub__doprnt || defined __stub____doprnt
4965 choke me
4966 #endif
4967
4968 int
4969 main ()
4970 {
4971 return _doprnt ();
4972   ;
4973   return 0;
4974 }
4975 _ACEOF
4976 rm -f conftest.$ac_objext conftest$ac_exeext
4977 if { (ac_try="$ac_link"
4978 case "(($ac_try" in
4979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980   *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984   (eval "$ac_link") 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } && {
4991          test -z "$ac_c_werror_flag" ||
4992          test ! -s conftest.err
4993        } && test -s conftest$ac_exeext && {
4994          test "$cross_compiling" = yes ||
4995          $as_test_x conftest$ac_exeext
4996        }; then
4997   ac_cv_func__doprnt=yes
4998 else
4999   $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002         ac_cv_func__doprnt=no
5003 fi
5004
5005 rm -rf conftest.dSYM
5006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5007       conftest$ac_exeext conftest.$ac_ext
5008 fi
5009 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5010 $as_echo "$ac_cv_func__doprnt" >&6; }
5011 if test "x$ac_cv_func__doprnt" = x""yes; then
5012
5013 cat >>confdefs.h <<\_ACEOF
5014 #define HAVE_DOPRNT 1
5015 _ACEOF
5016
5017 fi
5018
5019 fi
5020 done
5021
5022
5023
5024
5025
5026
5027
5028 for ac_func in  \
5029         dcgettext \
5030         getline \
5031         libintl_dgettext \
5032         strsignal \
5033
5034 do
5035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5037 $as_echo_n "checking for $ac_func... " >&6; }
5038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5039   $as_echo_n "(cached) " >&6
5040 else
5041   cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h.  */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h.  */
5047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5049 #define $ac_func innocuous_$ac_func
5050
5051 /* System header to define __stub macros and hopefully few prototypes,
5052     which can conflict with char $ac_func (); below.
5053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054     <limits.h> exists even on freestanding compilers.  */
5055
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061
5062 #undef $ac_func
5063
5064 /* Override any GCC internal prototype to avoid an error.
5065    Use char because int might match the return type of a GCC
5066    builtin and then its argument prototype would still apply.  */
5067 #ifdef __cplusplus
5068 extern "C"
5069 #endif
5070 char $ac_func ();
5071 /* The GNU C library defines this for functions which it implements
5072     to always fail with ENOSYS.  Some functions are actually named
5073     something starting with __ and the normal name is an alias.  */
5074 #if defined __stub_$ac_func || defined __stub___$ac_func
5075 choke me
5076 #endif
5077
5078 int
5079 main ()
5080 {
5081 return $ac_func ();
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (ac_try="$ac_link"
5088 case "(($ac_try" in
5089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090   *) ac_try_echo=$ac_try;;
5091 esac
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094   (eval "$ac_link") 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } && {
5101          test -z "$ac_c_werror_flag" ||
5102          test ! -s conftest.err
5103        } && test -s conftest$ac_exeext && {
5104          test "$cross_compiling" = yes ||
5105          $as_test_x conftest$ac_exeext
5106        }; then
5107   eval "$as_ac_var=yes"
5108 else
5109   $as_echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112         eval "$as_ac_var=no"
5113 fi
5114
5115 rm -rf conftest.dSYM
5116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5117       conftest$ac_exeext conftest.$ac_ext
5118 fi
5119 ac_res=`eval 'as_val=${'$as_ac_var'}
5120                  $as_echo "$as_val"'`
5121                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5122 $as_echo "$ac_res" >&6; }
5123 as_val=`eval 'as_val=${'$as_ac_var'}
5124                  $as_echo "$as_val"'`
5125    if test "x$as_val" = x""yes; then
5126   cat >>confdefs.h <<_ACEOF
5127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5128 _ACEOF
5129
5130 fi
5131 done
5132
5133
5134 test "$GCC" = yes && CFLAGS="-Wall $CFLAGS"
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 ac_config_files="$ac_config_files ld-elf2flt.sh:ld-elf2flt.in Makefile elf2flt.ld"
5153
5154 cat >confcache <<\_ACEOF
5155 # This file is a shell script that caches the results of configure
5156 # tests run on this system so they can be shared between configure
5157 # scripts and configure runs, see configure's option --config-cache.
5158 # It is not useful on other systems.  If it contains results you don't
5159 # want to keep, you may remove or edit it.
5160 #
5161 # config.status only pays attention to the cache file if you give it
5162 # the --recheck option to rerun configure.
5163 #
5164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5166 # following values.
5167
5168 _ACEOF
5169
5170 # The following way of writing the cache mishandles newlines in values,
5171 # but we know of no workaround that is simple, portable, and efficient.
5172 # So, we kill variables containing newlines.
5173 # Ultrix sh set writes to stderr and can't be redirected directly,
5174 # and sets the high bit in the cache file unless we assign to the vars.
5175 (
5176   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5177     eval ac_val=\$$ac_var
5178     case $ac_val in #(
5179     *${as_nl}*)
5180       case $ac_var in #(
5181       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5183       esac
5184       case $ac_var in #(
5185       _ | IFS | as_nl) ;; #(
5186       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5187       *) $as_unset $ac_var ;;
5188       esac ;;
5189     esac
5190   done
5191
5192   (set) 2>&1 |
5193     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5194     *${as_nl}ac_space=\ *)
5195       # `set' does not quote correctly, so add quotes (double-quote
5196       # substitution turns \\\\ into \\, and sed turns \\ into \).
5197       sed -n \
5198         "s/'/'\\\\''/g;
5199           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5200       ;; #(
5201     *)
5202       # `set' quotes correctly as required by POSIX, so do not add quotes.
5203       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5204       ;;
5205     esac |
5206     sort
5207 ) |
5208   sed '
5209      /^ac_cv_env_/b end
5210      t clear
5211      :clear
5212      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5213      t end
5214      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5215      :end' >>confcache
5216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5217   if test -w "$cache_file"; then
5218     test "x$cache_file" != "x/dev/null" &&
5219       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5220 $as_echo "$as_me: updating cache $cache_file" >&6;}
5221     cat confcache >$cache_file
5222   else
5223     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5225   fi
5226 fi
5227 rm -f confcache
5228
5229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5230 # Let make expand exec_prefix.
5231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5232
5233 # Transform confdefs.h into DEFS.
5234 # Protect against shell expansion while executing Makefile rules.
5235 # Protect against Makefile macro expansion.
5236 #
5237 # If the first sed substitution is executed (which looks for macros that
5238 # take arguments), then branch to the quote section.  Otherwise,
5239 # look for a macro that doesn't take arguments.
5240 ac_script='
5241 :mline
5242 /\\$/{
5243  N
5244  s,\\\n,,
5245  b mline
5246 }
5247 t clear
5248 :clear
5249 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5250 t quote
5251 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5252 t quote
5253 b any
5254 :quote
5255 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5256 s/\[/\\&/g
5257 s/\]/\\&/g
5258 s/\$/$$/g
5259 H
5260 :any
5261 ${
5262         g
5263         s/^\n//
5264         s/\n/ /g
5265         p
5266 }
5267 '
5268 DEFS=`sed -n "$ac_script" confdefs.h`
5269
5270
5271 ac_libobjs=
5272 ac_ltlibobjs=
5273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5274   # 1. Remove the extension, and $U if already installed.
5275   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5276   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5277   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5278   #    will be set to the directory where LIBOBJS objects are built.
5279   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5280   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5281 done
5282 LIBOBJS=$ac_libobjs
5283
5284 LTLIBOBJS=$ac_ltlibobjs
5285
5286
5287
5288 : ${CONFIG_STATUS=./config.status}
5289 ac_write_fail=0
5290 ac_clean_files_save=$ac_clean_files
5291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5292 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5293 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5294 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5295 #! $SHELL
5296 # Generated by $as_me.
5297 # Run this file to recreate the current configuration.
5298 # Compiler output produced by configure, useful for debugging
5299 # configure, is in config.log if it exists.
5300
5301 debug=false
5302 ac_cs_recheck=false
5303 ac_cs_silent=false
5304 SHELL=\${CONFIG_SHELL-$SHELL}
5305 _ACEOF
5306
5307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5308 ## --------------------- ##
5309 ## M4sh Initialization.  ##
5310 ## --------------------- ##
5311
5312 # Be more Bourne compatible
5313 DUALCASE=1; export DUALCASE # for MKS sh
5314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5315   emulate sh
5316   NULLCMD=:
5317   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5318   # is contrary to our usage.  Disable this feature.
5319   alias -g '${1+"$@"}'='"$@"'
5320   setopt NO_GLOB_SUBST
5321 else
5322   case `(set -o) 2>/dev/null` in
5323   *posix*) set -o posix ;;
5324 esac
5325
5326 fi
5327
5328
5329
5330
5331 # PATH needs CR
5332 # Avoid depending upon Character Ranges.
5333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5336 as_cr_digits='0123456789'
5337 as_cr_alnum=$as_cr_Letters$as_cr_digits
5338
5339 as_nl='
5340 '
5341 export as_nl
5342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5343 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5346 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5347   as_echo='printf %s\n'
5348   as_echo_n='printf %s'
5349 else
5350   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5351     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5352     as_echo_n='/usr/ucb/echo -n'
5353   else
5354     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5355     as_echo_n_body='eval
5356       arg=$1;
5357       case $arg in
5358       *"$as_nl"*)
5359         expr "X$arg" : "X\\(.*\\)$as_nl";
5360         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5361       esac;
5362       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5363     '
5364     export as_echo_n_body
5365     as_echo_n='sh -c $as_echo_n_body as_echo'
5366   fi
5367   export as_echo_body
5368   as_echo='sh -c $as_echo_body as_echo'
5369 fi
5370
5371 # The user is always right.
5372 if test "${PATH_SEPARATOR+set}" != set; then
5373   PATH_SEPARATOR=:
5374   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5375     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5376       PATH_SEPARATOR=';'
5377   }
5378 fi
5379
5380 # Support unset when possible.
5381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5382   as_unset=unset
5383 else
5384   as_unset=false
5385 fi
5386
5387
5388 # IFS
5389 # We need space, tab and new line, in precisely that order.  Quoting is
5390 # there to prevent editors from complaining about space-tab.
5391 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5392 # splitting by setting IFS to empty value.)
5393 IFS=" ""        $as_nl"
5394
5395 # Find who we are.  Look in the path if we contain no directory separator.
5396 case $0 in
5397   *[\\/]* ) as_myself=$0 ;;
5398   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5404 done
5405 IFS=$as_save_IFS
5406
5407      ;;
5408 esac
5409 # We did not find ourselves, most probably we were run as `sh COMMAND'
5410 # in which case we are not to be found in the path.
5411 if test "x$as_myself" = x; then
5412   as_myself=$0
5413 fi
5414 if test ! -f "$as_myself"; then
5415   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5416   { (exit 1); exit 1; }
5417 fi
5418
5419 # Work around bugs in pre-3.0 UWIN ksh.
5420 for as_var in ENV MAIL MAILPATH
5421 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5422 done
5423 PS1='$ '
5424 PS2='> '
5425 PS4='+ '
5426
5427 # NLS nuisances.
5428 LC_ALL=C
5429 export LC_ALL
5430 LANGUAGE=C
5431 export LANGUAGE
5432
5433 # Required to use basename.
5434 if expr a : '\(a\)' >/dev/null 2>&1 &&
5435    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5436   as_expr=expr
5437 else
5438   as_expr=false
5439 fi
5440
5441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5442   as_basename=basename
5443 else
5444   as_basename=false
5445 fi
5446
5447
5448 # Name of the executable.
5449 as_me=`$as_basename -- "$0" ||
5450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5451          X"$0" : 'X\(//\)$' \| \
5452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5453 $as_echo X/"$0" |
5454     sed '/^.*\/\([^/][^/]*\)\/*$/{
5455             s//\1/
5456             q
5457           }
5458           /^X\/\(\/\/\)$/{
5459             s//\1/
5460             q
5461           }
5462           /^X\/\(\/\).*/{
5463             s//\1/
5464             q
5465           }
5466           s/.*/./; q'`
5467
5468 # CDPATH.
5469 $as_unset CDPATH
5470
5471
5472
5473   as_lineno_1=$LINENO
5474   as_lineno_2=$LINENO
5475   test "x$as_lineno_1" != "x$as_lineno_2" &&
5476   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5477
5478   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5479   # uniformly replaced by the line number.  The first 'sed' inserts a
5480   # line-number line after each line using $LINENO; the second 'sed'
5481   # does the real work.  The second script uses 'N' to pair each
5482   # line-number line with the line containing $LINENO, and appends
5483   # trailing '-' during substitution so that $LINENO is not a special
5484   # case at line end.
5485   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5486   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5487   # E. McMahon (1931-1989) for sed's syntax.  :-)
5488   sed -n '
5489     p
5490     /[$]LINENO/=
5491   ' <$as_myself |
5492     sed '
5493       s/[$]LINENO.*/&-/
5494       t lineno
5495       b
5496       :lineno
5497       N
5498       :loop
5499       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5500       t loop
5501       s/-\n.*//
5502     ' >$as_me.lineno &&
5503   chmod +x "$as_me.lineno" ||
5504     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5505    { (exit 1); exit 1; }; }
5506
5507   # Don't try to exec as it changes $[0], causing all sort of problems
5508   # (the dirname of $[0] is not the place where we might find the
5509   # original and so on.  Autoconf is especially sensitive to this).
5510   . "./$as_me.lineno"
5511   # Exit status is that of the last command.
5512   exit
5513 }
5514
5515
5516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5517   as_dirname=dirname
5518 else
5519   as_dirname=false
5520 fi
5521
5522 ECHO_C= ECHO_N= ECHO_T=
5523 case `echo -n x` in
5524 -n*)
5525   case `echo 'x\c'` in
5526   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5527   *)   ECHO_C='\c';;
5528   esac;;
5529 *)
5530   ECHO_N='-n';;
5531 esac
5532 if expr a : '\(a\)' >/dev/null 2>&1 &&
5533    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5534   as_expr=expr
5535 else
5536   as_expr=false
5537 fi
5538
5539 rm -f conf$$ conf$$.exe conf$$.file
5540 if test -d conf$$.dir; then
5541   rm -f conf$$.dir/conf$$.file
5542 else
5543   rm -f conf$$.dir
5544   mkdir conf$$.dir 2>/dev/null
5545 fi
5546 if (echo >conf$$.file) 2>/dev/null; then
5547   if ln -s conf$$.file conf$$ 2>/dev/null; then
5548     as_ln_s='ln -s'
5549     # ... but there are two gotchas:
5550     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5551     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5552     # In both cases, we have to default to `cp -p'.
5553     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5554       as_ln_s='cp -p'
5555   elif ln conf$$.file conf$$ 2>/dev/null; then
5556     as_ln_s=ln
5557   else
5558     as_ln_s='cp -p'
5559   fi
5560 else
5561   as_ln_s='cp -p'
5562 fi
5563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5564 rmdir conf$$.dir 2>/dev/null
5565
5566 if mkdir -p . 2>/dev/null; then
5567   as_mkdir_p=:
5568 else
5569   test -d ./-p && rmdir ./-p
5570   as_mkdir_p=false
5571 fi
5572
5573 if test -x / >/dev/null 2>&1; then
5574   as_test_x='test -x'
5575 else
5576   if ls -dL / >/dev/null 2>&1; then
5577     as_ls_L_option=L
5578   else
5579     as_ls_L_option=
5580   fi
5581   as_test_x='
5582     eval sh -c '\''
5583       if test -d "$1"; then
5584         test -d "$1/.";
5585       else
5586         case $1 in
5587         -*)set "./$1";;
5588         esac;
5589         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5590         ???[sx]*):;;*)false;;esac;fi
5591     '\'' sh
5592   '
5593 fi
5594 as_executable_p=$as_test_x
5595
5596 # Sed expression to map a string onto a valid CPP name.
5597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5598
5599 # Sed expression to map a string onto a valid variable name.
5600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5601
5602
5603 exec 6>&1
5604
5605 # Save the log message, to keep $[0] and so on meaningful, and to
5606 # report actual input values of CONFIG_FILES etc. instead of their
5607 # values after options handling.
5608 ac_log="
5609 This file was extended by $as_me, which was
5610 generated by GNU Autoconf 2.63.  Invocation command line was
5611
5612   CONFIG_FILES    = $CONFIG_FILES
5613   CONFIG_HEADERS  = $CONFIG_HEADERS
5614   CONFIG_LINKS    = $CONFIG_LINKS
5615   CONFIG_COMMANDS = $CONFIG_COMMANDS
5616   $ $0 $@
5617
5618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5619 "
5620
5621 _ACEOF
5622
5623 case $ac_config_files in *"
5624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5625 esac
5626
5627
5628
5629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5630 # Files that config.status was made for.
5631 config_files="$ac_config_files"
5632
5633 _ACEOF
5634
5635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5636 ac_cs_usage="\
5637 \`$as_me' instantiates files from templates according to the
5638 current configuration.
5639
5640 Usage: $0 [OPTION]... [FILE]...
5641
5642   -h, --help       print this help, then exit
5643   -V, --version    print version number and configuration settings, then exit
5644   -q, --quiet, --silent
5645                    do not print progress messages
5646   -d, --debug      don't remove temporary files
5647       --recheck    update $as_me by reconfiguring in the same conditions
5648       --file=FILE[:TEMPLATE]
5649                    instantiate the configuration file FILE
5650
5651 Configuration files:
5652 $config_files
5653
5654 Report bugs to <bug-autoconf@gnu.org>."
5655
5656 _ACEOF
5657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5658 ac_cs_version="\\
5659 config.status
5660 configured by $0, generated by GNU Autoconf 2.63,
5661   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5662
5663 Copyright (C) 2008 Free Software Foundation, Inc.
5664 This config.status script is free software; the Free Software Foundation
5665 gives unlimited permission to copy, distribute and modify it."
5666
5667 ac_pwd='$ac_pwd'
5668 srcdir='$srcdir'
5669 INSTALL='$INSTALL'
5670 test -n "\$AWK" || AWK=awk
5671 _ACEOF
5672
5673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5674 # The default lists apply if the user does not specify any file.
5675 ac_need_defaults=:
5676 while test $# != 0
5677 do
5678   case $1 in
5679   --*=*)
5680     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5681     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5682     ac_shift=:
5683     ;;
5684   *)
5685     ac_option=$1
5686     ac_optarg=$2
5687     ac_shift=shift
5688     ;;
5689   esac
5690
5691   case $ac_option in
5692   # Handling of the options.
5693   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5694     ac_cs_recheck=: ;;
5695   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5696     $as_echo "$ac_cs_version"; exit ;;
5697   --debug | --debu | --deb | --de | --d | -d )
5698     debug=: ;;
5699   --file | --fil | --fi | --f )
5700     $ac_shift
5701     case $ac_optarg in
5702     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5703     esac
5704     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
5705     ac_need_defaults=false;;
5706   --he | --h |  --help | --hel | -h )
5707     $as_echo "$ac_cs_usage"; exit ;;
5708   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5709   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5710     ac_cs_silent=: ;;
5711
5712   # This is an error.
5713   -*) { $as_echo "$as_me: error: unrecognized option: $1
5714 Try \`$0 --help' for more information." >&2
5715    { (exit 1); exit 1; }; } ;;
5716
5717   *) ac_config_targets="$ac_config_targets $1"
5718      ac_need_defaults=false ;;
5719
5720   esac
5721   shift
5722 done
5723
5724 ac_configure_extra_args=
5725
5726 if $ac_cs_silent; then
5727   exec 6>/dev/null
5728   ac_configure_extra_args="$ac_configure_extra_args --silent"
5729 fi
5730
5731 _ACEOF
5732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5733 if \$ac_cs_recheck; then
5734   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5735   shift
5736   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5737   CONFIG_SHELL='$SHELL'
5738   export CONFIG_SHELL
5739   exec "\$@"
5740 fi
5741
5742 _ACEOF
5743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5744 exec 5>>config.log
5745 {
5746   echo
5747   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5748 ## Running $as_me. ##
5749 _ASBOX
5750   $as_echo "$ac_log"
5751 } >&5
5752
5753 _ACEOF
5754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5755 _ACEOF
5756
5757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5758
5759 # Handling of arguments.
5760 for ac_config_target in $ac_config_targets
5761 do
5762   case $ac_config_target in
5763     "ld-elf2flt.sh") CONFIG_FILES="$CONFIG_FILES ld-elf2flt.sh:ld-elf2flt.in" ;;
5764     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5765     "elf2flt.ld") CONFIG_FILES="$CONFIG_FILES elf2flt.ld" ;;
5766
5767   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5768 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5769    { (exit 1); exit 1; }; };;
5770   esac
5771 done
5772
5773
5774 # If the user did not use the arguments to specify the items to instantiate,
5775 # then the envvar interface is used.  Set only those that are not.
5776 # We use the long form for the default assignment because of an extremely
5777 # bizarre bug on SunOS 4.1.3.
5778 if $ac_need_defaults; then
5779   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5780 fi
5781
5782 # Have a temporary directory for convenience.  Make it in the build tree
5783 # simply because there is no reason against having it here, and in addition,
5784 # creating and moving files from /tmp can sometimes cause problems.
5785 # Hook for its removal unless debugging.
5786 # Note that there is a small window in which the directory will not be cleaned:
5787 # after its creation but before its name has been assigned to `$tmp'.
5788 $debug ||
5789 {
5790   tmp=
5791   trap 'exit_status=$?
5792   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5793 ' 0
5794   trap '{ (exit 1); exit 1; }' 1 2 13 15
5795 }
5796 # Create a (secure) tmp directory for tmp files.
5797
5798 {
5799   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5800   test -n "$tmp" && test -d "$tmp"
5801 }  ||
5802 {
5803   tmp=./conf$$-$RANDOM
5804   (umask 077 && mkdir "$tmp")
5805 } ||
5806 {
5807    $as_echo "$as_me: cannot create a temporary directory in ." >&2
5808    { (exit 1); exit 1; }
5809 }
5810
5811 # Set up the scripts for CONFIG_FILES section.
5812 # No need to generate them if there are no CONFIG_FILES.
5813 # This happens for instance with `./config.status config.h'.
5814 if test -n "$CONFIG_FILES"; then
5815
5816
5817 ac_cr='\r'
5818 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5819 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5820   ac_cs_awk_cr='\\r'
5821 else
5822   ac_cs_awk_cr=$ac_cr
5823 fi
5824
5825 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5826 _ACEOF
5827
5828
5829 {
5830   echo "cat >conf$$subs.awk <<_ACEOF" &&
5831   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5832   echo "_ACEOF"
5833 } >conf$$subs.sh ||
5834   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5835 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5836    { (exit 1); exit 1; }; }
5837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5838 ac_delim='%!_!# '
5839 for ac_last_try in false false false false false :; do
5840   . ./conf$$subs.sh ||
5841     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5842 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5843    { (exit 1); exit 1; }; }
5844
5845   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5846   if test $ac_delim_n = $ac_delim_num; then
5847     break
5848   elif $ac_last_try; then
5849     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5850 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5851    { (exit 1); exit 1; }; }
5852   else
5853     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5854   fi
5855 done
5856 rm -f conf$$subs.sh
5857
5858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5859 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5860 _ACEOF
5861 sed -n '
5862 h
5863 s/^/S["/; s/!.*/"]=/
5864 p
5865 g
5866 s/^[^!]*!//
5867 :repl
5868 t repl
5869 s/'"$ac_delim"'$//
5870 t delim
5871 :nl
5872 h
5873 s/\(.\{148\}\).*/\1/
5874 t more1
5875 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5876 p
5877 n
5878 b repl
5879 :more1
5880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5881 p
5882 g
5883 s/.\{148\}//
5884 t nl
5885 :delim
5886 h
5887 s/\(.\{148\}\).*/\1/
5888 t more2
5889 s/["\\]/\\&/g; s/^/"/; s/$/"/
5890 p
5891 b
5892 :more2
5893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5894 p
5895 g
5896 s/.\{148\}//
5897 t delim
5898 ' <conf$$subs.awk | sed '
5899 /^[^""]/{
5900   N
5901   s/\n//
5902 }
5903 ' >>$CONFIG_STATUS || ac_write_fail=1
5904 rm -f conf$$subs.awk
5905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5906 _ACAWK
5907 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5908   for (key in S) S_is_set[key] = 1
5909   FS = "\a"
5910
5911 }
5912 {
5913   line = $ 0
5914   nfields = split(line, field, "@")
5915   substed = 0
5916   len = length(field[1])
5917   for (i = 2; i < nfields; i++) {
5918     key = field[i]
5919     keylen = length(key)
5920     if (S_is_set[key]) {
5921       value = S[key]
5922       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5923       len += length(value) + length(field[++i])
5924       substed = 1
5925     } else
5926       len += 1 + keylen
5927   }
5928
5929   print line
5930 }
5931
5932 _ACAWK
5933 _ACEOF
5934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5935 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5936   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5937 else
5938   cat
5939 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5940   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
5941 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
5942    { (exit 1); exit 1; }; }
5943 _ACEOF
5944
5945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5947 # trailing colons and then remove the whole line if VPATH becomes empty
5948 # (actually we leave an empty line to preserve line numbers).
5949 if test "x$srcdir" = x.; then
5950   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5951 s/:*\$(srcdir):*/:/
5952 s/:*\${srcdir}:*/:/
5953 s/:*@srcdir@:*/:/
5954 s/^\([^=]*=[     ]*\):*/\1/
5955 s/:*$//
5956 s/^[^=]*=[       ]*$//
5957 }'
5958 fi
5959
5960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5961 fi # test -n "$CONFIG_FILES"
5962
5963
5964 eval set X "  :F $CONFIG_FILES      "
5965 shift
5966 for ac_tag
5967 do
5968   case $ac_tag in
5969   :[FHLC]) ac_mode=$ac_tag; continue;;
5970   esac
5971   case $ac_mode$ac_tag in
5972   :[FHL]*:*);;
5973   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5974 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5975    { (exit 1); exit 1; }; };;
5976   :[FH]-) ac_tag=-:-;;
5977   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5978   esac
5979   ac_save_IFS=$IFS
5980   IFS=:
5981   set x $ac_tag
5982   IFS=$ac_save_IFS
5983   shift
5984   ac_file=$1
5985   shift
5986
5987   case $ac_mode in
5988   :L) ac_source=$1;;
5989   :[FH])
5990     ac_file_inputs=
5991     for ac_f
5992     do
5993       case $ac_f in
5994       -) ac_f="$tmp/stdin";;
5995       *) # Look for the file first in the build tree, then in the source tree
5996          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5997          # because $ac_f cannot contain `:'.
5998          test -f "$ac_f" ||
5999            case $ac_f in
6000            [\\/$]*) false;;
6001            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6002            esac ||
6003            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6004 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6005    { (exit 1); exit 1; }; };;
6006       esac
6007       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6008       ac_file_inputs="$ac_file_inputs '$ac_f'"
6009     done
6010
6011     # Let's still pretend it is `configure' which instantiates (i.e., don't
6012     # use $as_me), people would be surprised to read:
6013     #    /* config.h.  Generated by config.status.  */
6014     configure_input='Generated from '`
6015           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6016         `' by configure.'
6017     if test x"$ac_file" != x-; then
6018       configure_input="$ac_file.  $configure_input"
6019       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6020 $as_echo "$as_me: creating $ac_file" >&6;}
6021     fi
6022     # Neutralize special characters interpreted by sed in replacement strings.
6023     case $configure_input in #(
6024     *\&* | *\|* | *\\* )
6025        ac_sed_conf_input=`$as_echo "$configure_input" |
6026        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6027     *) ac_sed_conf_input=$configure_input;;
6028     esac
6029
6030     case $ac_tag in
6031     *:-:* | *:-) cat >"$tmp/stdin" \
6032       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6033 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6034    { (exit 1); exit 1; }; } ;;
6035     esac
6036     ;;
6037   esac
6038
6039   ac_dir=`$as_dirname -- "$ac_file" ||
6040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6041          X"$ac_file" : 'X\(//\)[^/]' \| \
6042          X"$ac_file" : 'X\(//\)$' \| \
6043          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6044 $as_echo X"$ac_file" |
6045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6046             s//\1/
6047             q
6048           }
6049           /^X\(\/\/\)[^/].*/{
6050             s//\1/
6051             q
6052           }
6053           /^X\(\/\/\)$/{
6054             s//\1/
6055             q
6056           }
6057           /^X\(\/\).*/{
6058             s//\1/
6059             q
6060           }
6061           s/.*/./; q'`
6062   { as_dir="$ac_dir"
6063   case $as_dir in #(
6064   -*) as_dir=./$as_dir;;
6065   esac
6066   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6067     as_dirs=
6068     while :; do
6069       case $as_dir in #(
6070       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6071       *) as_qdir=$as_dir;;
6072       esac
6073       as_dirs="'$as_qdir' $as_dirs"
6074       as_dir=`$as_dirname -- "$as_dir" ||
6075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6076          X"$as_dir" : 'X\(//\)[^/]' \| \
6077          X"$as_dir" : 'X\(//\)$' \| \
6078          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6079 $as_echo X"$as_dir" |
6080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6081             s//\1/
6082             q
6083           }
6084           /^X\(\/\/\)[^/].*/{
6085             s//\1/
6086             q
6087           }
6088           /^X\(\/\/\)$/{
6089             s//\1/
6090             q
6091           }
6092           /^X\(\/\).*/{
6093             s//\1/
6094             q
6095           }
6096           s/.*/./; q'`
6097       test -d "$as_dir" && break
6098     done
6099     test -z "$as_dirs" || eval "mkdir $as_dirs"
6100   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6101 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6102    { (exit 1); exit 1; }; }; }
6103   ac_builddir=.
6104
6105 case "$ac_dir" in
6106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6107 *)
6108   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6109   # A ".." for each directory in $ac_dir_suffix.
6110   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6111   case $ac_top_builddir_sub in
6112   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6113   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6114   esac ;;
6115 esac
6116 ac_abs_top_builddir=$ac_pwd
6117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6118 # for backward compatibility:
6119 ac_top_builddir=$ac_top_build_prefix
6120
6121 case $srcdir in
6122   .)  # We are building in place.
6123     ac_srcdir=.
6124     ac_top_srcdir=$ac_top_builddir_sub
6125     ac_abs_top_srcdir=$ac_pwd ;;
6126   [\\/]* | ?:[\\/]* )  # Absolute name.
6127     ac_srcdir=$srcdir$ac_dir_suffix;
6128     ac_top_srcdir=$srcdir
6129     ac_abs_top_srcdir=$srcdir ;;
6130   *) # Relative name.
6131     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6132     ac_top_srcdir=$ac_top_build_prefix$srcdir
6133     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6134 esac
6135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6136
6137
6138   case $ac_mode in
6139   :F)
6140   #
6141   # CONFIG_FILE
6142   #
6143
6144   case $INSTALL in
6145   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6146   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6147   esac
6148 _ACEOF
6149
6150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6151 # If the template does not know about datarootdir, expand it.
6152 # FIXME: This hack should be removed a few years after 2.60.
6153 ac_datarootdir_hack=; ac_datarootdir_seen=
6154
6155 ac_sed_dataroot='
6156 /datarootdir/ {
6157   p
6158   q
6159 }
6160 /@datadir@/p
6161 /@docdir@/p
6162 /@infodir@/p
6163 /@localedir@/p
6164 /@mandir@/p
6165 '
6166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6167 *datarootdir*) ac_datarootdir_seen=yes;;
6168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6169   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6171 _ACEOF
6172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6173   ac_datarootdir_hack='
6174   s&@datadir@&$datadir&g
6175   s&@docdir@&$docdir&g
6176   s&@infodir@&$infodir&g
6177   s&@localedir@&$localedir&g
6178   s&@mandir@&$mandir&g
6179     s&\\\${datarootdir}&$datarootdir&g' ;;
6180 esac
6181 _ACEOF
6182
6183 # Neutralize VPATH when `$srcdir' = `.'.
6184 # Shell code in configure.ac might set extrasub.
6185 # FIXME: do we really want to maintain this feature?
6186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6187 ac_sed_extra="$ac_vpsub
6188 $extrasub
6189 _ACEOF
6190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6191 :t
6192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6193 s|@configure_input@|$ac_sed_conf_input|;t t
6194 s&@top_builddir@&$ac_top_builddir_sub&;t t
6195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6196 s&@srcdir@&$ac_srcdir&;t t
6197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6198 s&@top_srcdir@&$ac_top_srcdir&;t t
6199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6200 s&@builddir@&$ac_builddir&;t t
6201 s&@abs_builddir@&$ac_abs_builddir&;t t
6202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6203 s&@INSTALL@&$ac_INSTALL&;t t
6204 $ac_datarootdir_hack
6205 "
6206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6207   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6208 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6209    { (exit 1); exit 1; }; }
6210
6211 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6212   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6213   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6214   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6215 which seems to be undefined.  Please make sure it is defined." >&5
6216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6217 which seems to be undefined.  Please make sure it is defined." >&2;}
6218
6219   rm -f "$tmp/stdin"
6220   case $ac_file in
6221   -) cat "$tmp/out" && rm -f "$tmp/out";;
6222   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6223   esac \
6224   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6225 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6226    { (exit 1); exit 1; }; }
6227  ;;
6228
6229
6230
6231   esac
6232
6233 done # for ac_tag
6234
6235
6236 { (exit 0); exit 0; }
6237 _ACEOF
6238 chmod +x $CONFIG_STATUS
6239 ac_clean_files=$ac_clean_files_save
6240
6241 test $ac_write_fail = 0 ||
6242   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6243 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6244    { (exit 1); exit 1; }; }
6245
6246
6247 # configure is writing to config.log, and then calls config.status.
6248 # config.status does its own redirection, appending to config.log.
6249 # Unfortunately, on DOS this fails, as config.log is still kept open
6250 # by configure, so config.status won't be able to write to it; its
6251 # output is simply discarded.  So we exec the FD to /dev/null,
6252 # effectively closing config.log, so it can be properly (re)opened and
6253 # appended to by config.status.  When coming back to configure, we
6254 # need to make the FD available again.
6255 if test "$no_create" != yes; then
6256   ac_cs_success=:
6257   ac_config_status_args=
6258   test "$silent" = yes &&
6259     ac_config_status_args="$ac_config_status_args --quiet"
6260   exec 5>/dev/null
6261   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6262   exec 5>>config.log
6263   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6264   # would make configure fail if this is the last instruction.
6265   $ac_cs_success || { (exit 1); exit 1; }
6266 fi
6267 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6268   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6269 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6270 fi
6271
6272