OSDN Git Service

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