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