]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/ppc/configure
* common/aclocal.m4: Add include of ../../config/zlib.m4.
[thirdparty/binutils-gdb.git] / sim / ppc / 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 sim_fpu
593 sim_fpu_cflags
594 sim_targ_vals
595 sim_callback
596 sim_devzero
597 sim_termio
598 sim_stdio
599 sim_model_issue
600 sim_model
601 sim_monitor
602 sim_reserved
603 sim_trace
604 sim_timebase
605 sim_env
606 sim_hostbitsize
607 sim_igen_smp
608 sim_bswap
609 sim_pk_obj
610 sim_pk_src
611 sim_hw_obj
612 sim_hw_src
613 sim_icache
614 sim_filter
615 sim_jump
616 sim_decode_mechanism
617 sim_dup
618 sim_switch
619 sim_opcode
620 sim_config
621 sim_line_nr
622 sim_warnings
623 sim_cflags
624 RANLIB
625 AR
626 HDEFINES
627 CFLAGS_FOR_BUILD
628 CC_FOR_BUILD
629 LIBOBJS
630 target_os
631 target_vendor
632 target_cpu
633 target
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
642 REPORT_BUGS_TEXI
643 REPORT_BUGS_TO
644 PKGVERSION
645 EGREP
646 GREP
647 CPP
648 CATOBJEXT
649 GENCAT
650 INSTOBJEXT
651 DATADIRNAME
652 CATALOGS
653 POSUB
654 GMSGFMT
655 XGETTEXT
656 INCINTL
657 LIBINTL_DEP
658 LIBINTL
659 USE_NLS
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
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 WERROR_CFLAGS
709 WARN_CFLAGS
710 sim_xor_endian
711 sim_stdcall
712 sim_smp
713 sim_reserved_bits
714 sim_regparm
715 sim_packages
716 sim_inline
717 sim_hw
718 sim_hw_objs
719 sim_hw_cflags
720 sim_default_model
721 sim_scache
722 sim_float
723 sim_hostendian
724 sim_endian
725 sim_bitsize
726 sim_assert
727 sim_alignment
728 sim_environment'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_sim_alignment
733 enable_sim_assert
734 enable_sim_bitsize
735 enable_sim_bswap
736 enable_sim_cflags
737 enable_sim_config
738 enable_sim_decode_mechanism
739 enable_sim_default_model
740 enable_sim_duplicate
741 enable_sim_endian
742 enable_sim_env
743 enable_sim_filter
744 enable_sim_float
745 enable_sim_hardware
746 enable_sim_hostbitsize
747 enable_sim_hostendian
748 enable_sim_icache
749 enable_sim_inline
750 enable_sim_jump
751 enable_sim_line_nr
752 enable_sim_model
753 enable_sim_model_issue
754 enable_sim_monitor
755 enable_sim_opcode
756 enable_sim_packages
757 enable_sim_regparm
758 enable_sim_reserved_bits
759 enable_sim_smp
760 enable_sim_stdcall
761 enable_sim_stdio
762 enable_sim_switch
763 enable_sim_timebase
764 enable_sim_trace
765 enable_sim_warnings
766 enable_sim_xor_endian
767 with_pkgversion
768 with_bugurl
769 with_zlib
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1129
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 ;;
1185
1186 esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures this package to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1399 --enable-sim-assert Specify whether to perform random assertions.
1400 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
1401 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
1402 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
1403 --enable-sim-config=file Override default config file
1404 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1405 --enable-sim-default-model=which Specify default PowerPC to model.
1406 --enable-sim-duplicate Expand (duplicate) semantic functions.
1407 --enable-sim-endian=endian Specify target byte endian orientation.
1408 --enable-sim-env=env Specify target environment (operating, virtual, user).
1409 --enable-sim-filter=rule Specify filter rules.
1410 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1411 --enable-sim-hardware=list Specify the hardware to be included in the build.
1412 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1413 --enable-sim-hostendian=end Specify host byte endian orientation.
1414 --enable-sim-icache=size Specify instruction-decode cache size and type.
1415 --enable-sim-inline=inlines Specify which functions should be inlined.
1416 --enable-sim-jump Jump between semantic code (instead of call/return).
1417 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1418 --enable-sim-model=which Specify PowerPC to model.
1419 --enable-sim-model-issue Specify whether to simulate model specific actions
1420 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1421 --enable-sim-opcode=which Override default opcode lookup.
1422 --enable-sim-packages=list Specify the packages to be included in the build.
1423 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
1424 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1425 --enable-sim-smp=n Specify number of processors to configure for.
1426 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
1427 --enable-sim-stdio Specify whether to use stdio for console input/output.
1428 --enable-sim-switch Use a switch instead of a table for instruction call.
1429 --enable-sim-timebase Specify whether the PPC timebase is supported.
1430 --enable-sim-trace Specify whether tracing is supported.
1431 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1432 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1438 --with-bugurl=URL Direct users to URL to report a bug
1439 --with-zlib include zlib support (auto/yes/no)
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 configure
1518 generated by GNU Autoconf 2.64
1519
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_try_run LINENO
1570 # ----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1572 # that executables *can* be run.
1573 ac_fn_c_try_run ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1587 { { case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_try") 2>&5
1594 ac_status=$?
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; }; }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: program exited with status $ac_status" >&5
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=$ac_status
1604 fi
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
1608
1609 } # ac_fn_c_try_run
1610
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_cpp ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } >/dev/null && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 return $ac_retval
1645
1646 } # ac_fn_c_try_cpp
1647
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676
1677 } # ac_fn_c_check_header_compile
1678
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714 fi
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723 } # ac_fn_c_try_link
1724
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1729 # accordingly.
1730 ac_fn_c_check_header_mongrel ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738 fi
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 else
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753 else
1754 ac_header_compiler=no
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1759
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769 else
1770 ac_header_preproc=no
1771 fi
1772 rm -f conftest.err conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1775
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796 esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 eval "$3=\$ac_header_compiler"
1803 fi
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810 } # ac_fn_c_check_header_mongrel
1811
1812 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1813 # ----------------------------------------------------
1814 # Tries to find if the field MEMBER exists in type AGGR, after including
1815 # INCLUDES, setting cache variable VAR accordingly.
1816 ac_fn_c_check_member ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1820 $as_echo_n "checking for $2.$3... " >&6; }
1821 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 $5
1827 int
1828 main ()
1829 {
1830 static $2 ac_aggr;
1831 if (ac_aggr.$3)
1832 return 0;
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838 eval "$4=yes"
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $5
1843 int
1844 main ()
1845 {
1846 static $2 ac_aggr;
1847 if (sizeof ac_aggr.$3)
1848 return 0;
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$4=yes"
1855 else
1856 eval "$4=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$4
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866
1867 } # ac_fn_c_check_member
1868
1869 # ac_fn_c_check_decl LINENO SYMBOL VAR
1870 # ------------------------------------
1871 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1872 ac_fn_c_check_decl ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1876 $as_echo_n "checking whether $2 is declared... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1879 else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 int
1884 main ()
1885 {
1886 #ifndef $2
1887 (void) $2;
1888 #endif
1889
1890 ;
1891 return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 eval "$3=yes"
1896 else
1897 eval "$3=no"
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906 } # ac_fn_c_check_decl
1907
1908 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909 # -------------------------------------------
1910 # Tests whether TYPE exists after having included INCLUDES, setting cache
1911 # variable VAR accordingly.
1912 ac_fn_c_check_type ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 eval "$3=no"
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $4
1924 int
1925 main ()
1926 {
1927 if (sizeof ($2))
1928 return 0;
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 int
1938 main ()
1939 {
1940 if (sizeof (($2)))
1941 return 0;
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947
1948 else
1949 eval "$3=yes"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960 } # ac_fn_c_check_type
1961
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1977 #define $2 innocuous_$2
1978
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char $2 (); below.
1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982 <limits.h> exists even on freestanding compilers. */
1983
1984 #ifdef __STDC__
1985 # include <limits.h>
1986 #else
1987 # include <assert.h>
1988 #endif
1989
1990 #undef $2
1991
1992 /* Override any GCC internal prototype to avoid an error.
1993 Use char because int might match the return type of a GCC
1994 builtin and then its argument prototype would still apply. */
1995 #ifdef __cplusplus
1996 extern "C"
1997 #endif
1998 char $2 ();
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined __stub_$2 || defined __stub___$2
2003 choke me
2004 #endif
2005
2006 int
2007 main ()
2008 {
2009 return $2 ();
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_link "$LINENO"; then :
2015 eval "$3=yes"
2016 else
2017 eval "$3=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext \
2020 conftest$ac_exeext conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026
2027 } # ac_fn_c_check_func
2028 cat >config.log <<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2031
2032 It was created by $as_me, which was
2033 generated by GNU Autoconf 2.64. Invocation command line was
2034
2035 $ $0 $@
2036
2037 _ACEOF
2038 exec 5>>config.log
2039 {
2040 cat <<_ASUNAME
2041 ## --------- ##
2042 ## Platform. ##
2043 ## --------- ##
2044
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2053
2054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2061
2062 _ASUNAME
2063
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 $as_echo "PATH: $as_dir"
2070 done
2071 IFS=$as_save_IFS
2072
2073 } >&5
2074
2075 cat >&5 <<_ACEOF
2076
2077
2078 ## ----------- ##
2079 ## Core tests. ##
2080 ## ----------- ##
2081
2082 _ACEOF
2083
2084
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_configure_args=
2091 ac_configure_args0=
2092 ac_configure_args1=
2093 ac_must_keep_next=false
2094 for ac_pass in 1 2
2095 do
2096 for ac_arg
2097 do
2098 case $ac_arg in
2099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101 | -silent | --silent | --silen | --sile | --sil)
2102 continue ;;
2103 *\'*)
2104 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 esac
2106 case $ac_pass in
2107 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108 2)
2109 as_fn_append ac_configure_args1 " '$ac_arg'"
2110 if test $ac_must_keep_next = true; then
2111 ac_must_keep_next=false # Got value, back to normal.
2112 else
2113 case $ac_arg in
2114 *=* | --config-cache | -C | -disable-* | --disable-* \
2115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117 | -with-* | --with-* | -without-* | --without-* | --x)
2118 case "$ac_configure_args0 " in
2119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 esac
2121 ;;
2122 -* ) ac_must_keep_next=true ;;
2123 esac
2124 fi
2125 as_fn_append ac_configure_args " '$ac_arg'"
2126 ;;
2127 esac
2128 done
2129 done
2130 { ac_configure_args0=; unset ac_configure_args0;}
2131 { ac_configure_args1=; unset ac_configure_args1;}
2132
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log. We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139 # Save into config.log some information that might help in debugging.
2140 {
2141 echo
2142
2143 cat <<\_ASBOX
2144 ## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##
2147 _ASBOX
2148 echo
2149 # The following way of writing the cache mishandles newlines in values,
2150 (
2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in #(
2154 *${as_nl}*)
2155 case $ac_var in #(
2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 esac
2159 case $ac_var in #(
2160 _ | IFS | as_nl) ;; #(
2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162 *) { eval $ac_var=; unset $ac_var;} ;;
2163 esac ;;
2164 esac
2165 done
2166 (set) 2>&1 |
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2169 sed -n \
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 ;; #(
2173 *)
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175 ;;
2176 esac |
2177 sort
2178 )
2179 echo
2180
2181 cat <<\_ASBOX
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2185 _ASBOX
2186 echo
2187 for ac_var in $ac_subst_vars
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196
2197 if test -n "$ac_subst_files"; then
2198 cat <<\_ASBOX
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2202 _ASBOX
2203 echo
2204 for ac_var in $ac_subst_files
2205 do
2206 eval ac_val=\$$ac_var
2207 case $ac_val in
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 esac
2210 $as_echo "$ac_var='\''$ac_val'\''"
2211 done | sort
2212 echo
2213 fi
2214
2215 if test -s confdefs.h; then
2216 cat <<\_ASBOX
2217 ## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##
2220 _ASBOX
2221 echo
2222 cat confdefs.h
2223 echo
2224 fi
2225 test "$ac_signal" != 0 &&
2226 $as_echo "$as_me: caught signal $ac_signal"
2227 $as_echo "$as_me: exit $exit_status"
2228 } >&5
2229 rm -f core *.core core.conftest.* &&
2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231 exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 $as_echo "/* confdefs.h */" > confdefs.h
2242
2243 # Predefined preprocessor variables.
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_URL "$PACKAGE_URL"
2267 _ACEOF
2268
2269
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2272 ac_site_file1=NONE
2273 ac_site_file2=NONE
2274 if test -n "$CONFIG_SITE"; then
2275 ac_site_file1=$CONFIG_SITE
2276 elif test "x$prefix" != xNONE; then
2277 ac_site_file1=$prefix/share/config.site
2278 ac_site_file2=$prefix/etc/config.site
2279 else
2280 ac_site_file1=$ac_default_prefix/share/config.site
2281 ac_site_file2=$ac_default_prefix/etc/config.site
2282 fi
2283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2284 do
2285 test "x$ac_site_file" = xNONE && continue
2286 if test -r "$ac_site_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289 sed 's/^/| /' "$ac_site_file" >&5
2290 . "$ac_site_file"
2291 fi
2292 done
2293
2294 if test -r "$cache_file"; then
2295 # Some versions of bash will fail to source /dev/null (special
2296 # files actually), so we avoid doing that.
2297 if test -f "$cache_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2299 $as_echo "$as_me: loading cache $cache_file" >&6;}
2300 case $cache_file in
2301 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2302 *) . "./$cache_file";;
2303 esac
2304 fi
2305 else
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2307 $as_echo "$as_me: creating cache $cache_file" >&6;}
2308 >$cache_file
2309 fi
2310
2311 # Check that the precious variables saved in the cache have kept the same
2312 # value.
2313 ac_cache_corrupted=false
2314 for ac_var in $ac_precious_vars; do
2315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2316 eval ac_new_set=\$ac_env_${ac_var}_set
2317 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2318 eval ac_new_val=\$ac_env_${ac_var}_value
2319 case $ac_old_set,$ac_new_set in
2320 set,)
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2324 ,set)
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2327 ac_cache_corrupted=: ;;
2328 ,);;
2329 *)
2330 if test "x$ac_old_val" != "x$ac_new_val"; then
2331 # differences in whitespace do not lead to failure.
2332 ac_old_val_w=`echo x $ac_old_val`
2333 ac_new_val_w=`echo x $ac_new_val`
2334 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2336 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2337 ac_cache_corrupted=:
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2340 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2341 eval $ac_var=\$ac_old_val
2342 fi
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2344 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2346 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2347 fi;;
2348 esac
2349 # Pass precious variables to config.status.
2350 if test "$ac_new_set" = set; then
2351 case $ac_new_val in
2352 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 *) ac_arg=$ac_var=$ac_new_val ;;
2354 esac
2355 case " $ac_configure_args " in
2356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2357 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2358 esac
2359 fi
2360 done
2361 if $ac_cache_corrupted; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2365 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2366 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2367 fi
2368 ## -------------------- ##
2369 ## Main body of script. ##
2370 ## -------------------- ##
2371
2372 ac_ext=c
2373 ac_cpp='$CPP $CPPFLAGS'
2374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377
2378
2379
2380
2381
2382
2383 ac_aux_dir=
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 for ac_t in install-sh install.sh shtool; do
2386 if test -f "$ac_dir/$ac_t"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/$ac_t -c"
2389 break 2
2390 fi
2391 done
2392 done
2393 if test -z "$ac_aux_dir"; then
2394 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395 fi
2396
2397 # These three variables are undocumented and unsupported,
2398 # and are intended to be withdrawn in a future Autoconf release.
2399 # They can cause serious problems if a builder's source tree is in a directory
2400 # whose full name contains unusual characters.
2401 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2402 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2403 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2404
2405
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2412 # AIX /bin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 # Reject install programs that cannot install multiple files.
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2422 if test -z "$INSTALL"; then
2423 if test "${ac_cv_path_install+set}" = set; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 # Account for people who put trailing slashes in PATH elements.
2432 case $as_dir/ in #((
2433 ./ | .// | /[cC]/* | \
2434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436 /usr/ucb/* ) ;;
2437 *)
2438 # OSF1 and SCO ODT 3.0 have their own names for install.
2439 # Don't use installbsd from OSF since it installs stuff as root
2440 # by default.
2441 for ac_prog in ginstall scoinst install; do
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2444 if test $ac_prog = install &&
2445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446 # AIX install. It has an incompatible calling convention.
2447 :
2448 elif test $ac_prog = install &&
2449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450 # program-specific install script used by HP pwplus--don't use.
2451 :
2452 else
2453 rm -rf conftest.one conftest.two conftest.dir
2454 echo one > conftest.one
2455 echo two > conftest.two
2456 mkdir conftest.dir
2457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2458 test -s conftest.one && test -s conftest.two &&
2459 test -s conftest.dir/conftest.one &&
2460 test -s conftest.dir/conftest.two
2461 then
2462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463 break 3
2464 fi
2465 fi
2466 fi
2467 done
2468 done
2469 ;;
2470 esac
2471
2472 done
2473 IFS=$as_save_IFS
2474
2475 rm -rf conftest.one conftest.two conftest.dir
2476
2477 fi
2478 if test "${ac_cv_path_install+set}" = set; then
2479 INSTALL=$ac_cv_path_install
2480 else
2481 # As a last resort, use the slow shell script. Don't cache a
2482 # value for INSTALL within a source directory, because that will
2483 # break other packages using the cache if that directory is
2484 # removed, or if the value is a relative name.
2485 INSTALL=$ac_install_sh
2486 fi
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2489 $as_echo "$INSTALL" >&6; }
2490
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2494
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2496
2497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2498
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 fi
2543 if test -z "$ac_cv_prog_CC"; then
2544 ac_ct_CC=$CC
2545 # Extract the first word of "gcc", so it can be a program name with args.
2546 set dummy gcc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_ac_ct_CC="gcc"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573 if test -n "$ac_ct_CC"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575 $as_echo "$ac_ct_CC" >&6; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581 if test "x$ac_ct_CC" = x; then
2582 CC=""
2583 else
2584 case $cross_compiling:$ac_tool_warned in
2585 yes:)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned=yes ;;
2589 esac
2590 CC=$ac_ct_CC
2591 fi
2592 else
2593 CC="$ac_cv_prog_CC"
2594 fi
2595
2596 if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
2598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2599 set dummy ${ac_tool_prefix}cc; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_CC="${ac_tool_prefix}cc"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2628 $as_echo "$CC" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634
2635 fi
2636 fi
2637 if test -z "$CC"; then
2638 # Extract the first word of "cc", so it can be a program name with args.
2639 set dummy cc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 ac_prog_rejected=no
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2657 ac_prog_rejected=yes
2658 continue
2659 fi
2660 ac_cv_prog_CC="cc"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 if test $ac_prog_rejected = yes; then
2669 # We found a bogon in the path, so make sure we never use it.
2670 set dummy $ac_cv_prog_CC
2671 shift
2672 if test $# != 0; then
2673 # We chose a different compiler from the bogus one.
2674 # However, it has the same basename, so the bogon will be chosen
2675 # first if we set CC to just the basename; use the full file name.
2676 shift
2677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2678 fi
2679 fi
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 fi
2693 if test -z "$CC"; then
2694 if test -n "$ac_tool_prefix"; then
2695 for ac_prog in cl.exe
2696 do
2697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2698 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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 test -n "$CC" && break
2735 done
2736 fi
2737 if test -z "$CC"; then
2738 ac_ct_CC=$CC
2739 for ac_prog in cl.exe
2740 do
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if test -n "$ac_ct_CC"; then
2749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_CC="$ac_prog"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771 $as_echo "$ac_ct_CC" >&6; }
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778 test -n "$ac_ct_CC" && break
2779 done
2780
2781 if test "x$ac_ct_CC" = x; then
2782 CC=""
2783 else
2784 case $cross_compiling:$ac_tool_warned in
2785 yes:)
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned=yes ;;
2789 esac
2790 CC=$ac_ct_CC
2791 fi
2792 fi
2793
2794 fi
2795
2796
2797 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799 as_fn_error "no acceptable C compiler found in \$PATH
2800 See \`config.log' for more details." "$LINENO" 5; }
2801
2802 # Provide some information about the compiler.
2803 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2804 set X $ac_compile
2805 ac_compiler=$2
2806 for ac_option in --version -v -V -qversion; do
2807 { { ac_try="$ac_compiler $ac_option >&5"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2815 ac_status=$?
2816 if test -s conftest.err; then
2817 sed '10a\
2818 ... rest of stderr output deleted ...
2819 10q' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 rm -f conftest.er1 conftest.err
2822 fi
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }
2825 done
2826
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2829
2830 int
2831 main ()
2832 {
2833
2834 ;
2835 return 0;
2836 }
2837 _ACEOF
2838 ac_clean_files_save=$ac_clean_files
2839 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2840 # Try to create an executable without -o first, disregard a.out.
2841 # It will help us diagnose broken compilers, and finding out an intuition
2842 # of exeext.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2844 $as_echo_n "checking for C compiler default output file name... " >&6; }
2845 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2846
2847 # The possible output files:
2848 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2849
2850 ac_rmfiles=
2851 for ac_file in $ac_files
2852 do
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2855 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2856 esac
2857 done
2858 rm -f $ac_rmfiles
2859
2860 if { { ac_try="$ac_link_default"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link_default") 2>&5
2868 ac_status=$?
2869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870 test $ac_status = 0; }; then :
2871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2874 # so that the user can short-circuit this test for compilers unknown to
2875 # Autoconf.
2876 for ac_file in $ac_files ''
2877 do
2878 test -f "$ac_file" || continue
2879 case $ac_file in
2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2881 ;;
2882 [ab].out )
2883 # We found the default executable, but exeext='' is most
2884 # certainly right.
2885 break;;
2886 *.* )
2887 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2888 then :; else
2889 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 fi
2891 # We set ac_cv_exeext here because the later test for it is not
2892 # safe: cross compilers may not add the suffix if given an `-o'
2893 # argument, so we may need to know it at that point already.
2894 # Even if this section looks crufty: it has the advantage of
2895 # actually working.
2896 break;;
2897 * )
2898 break;;
2899 esac
2900 done
2901 test "$ac_cv_exeext" = no && ac_cv_exeext=
2902
2903 else
2904 ac_file=''
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2907 $as_echo "$ac_file" >&6; }
2908 if test -z "$ac_file"; then :
2909 $as_echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 { as_fn_set_status 77
2915 as_fn_error "C compiler cannot create executables
2916 See \`config.log' for more details." "$LINENO" 5; }; }
2917 fi
2918 ac_exeext=$ac_cv_exeext
2919
2920 # Check that the compiler produces executables we can run. If not, either
2921 # the compiler is broken, or we cross compile.
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2923 $as_echo_n "checking whether the C compiler works... " >&6; }
2924 # If not cross compiling, check that we can run a simple program.
2925 if test "$cross_compiling" != yes; then
2926 if { ac_try='./$ac_file'
2927 { { case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_try") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; }; then
2937 cross_compiling=no
2938 else
2939 if test "$cross_compiling" = maybe; then
2940 cross_compiling=yes
2941 else
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error "cannot run C compiled programs.
2945 If you meant to cross compile, use \`--host'.
2946 See \`config.log' for more details." "$LINENO" 5; }
2947 fi
2948 fi
2949 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952
2953 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2954 ac_clean_files=$ac_clean_files_save
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2958 $as_echo_n "checking whether we are cross compiling... " >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2960 $as_echo "$cross_compiling" >&6; }
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2963 $as_echo_n "checking for suffix of executables... " >&6; }
2964 if { { ac_try="$ac_link"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_link") 2>&5
2972 ac_status=$?
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; then :
2975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2977 # work properly (i.e., refer to `conftest.exe'), while it won't with
2978 # `rm'.
2979 for ac_file in conftest.exe conftest conftest.*; do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 break;;
2985 * ) break;;
2986 esac
2987 done
2988 else
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error "cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details." "$LINENO" 5; }
2993 fi
2994 rm -f conftest$ac_cv_exeext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2996 $as_echo "$ac_cv_exeext" >&6; }
2997
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3000 ac_exeext=$EXEEXT
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3002 $as_echo_n "checking for suffix of object files... " >&6; }
3003 if test "${ac_cv_objext+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.o conftest.obj
3018 if { { ac_try="$ac_compile"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compile") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034 break;;
3035 esac
3036 done
3037 else
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
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 compute suffix of object files: cannot compile
3044 See \`config.log' for more details." "$LINENO" 5; }
3045 fi
3046 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3049 $as_echo "$ac_cv_objext" >&6; }
3050 OBJEXT=$ac_cv_objext
3051 ac_objext=$OBJEXT
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3053 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3054 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063 #ifndef __GNUC__
3064 choke me
3065 #endif
3066
3067 ;
3068 return 0;
3069 }
3070 _ACEOF
3071 if ac_fn_c_try_compile "$LINENO"; then :
3072 ac_compiler_gnu=yes
3073 else
3074 ac_compiler_gnu=no
3075 fi
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3081 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3082 if test $ac_compiler_gnu = yes; then
3083 GCC=yes
3084 else
3085 GCC=
3086 fi
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3090 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 if ac_fn_c_try_compile "$LINENO"; then :
3110 ac_cv_prog_cc_g=yes
3111 else
3112 CFLAGS=""
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3115
3116 int
3117 main ()
3118 {
3119
3120 ;
3121 return 0;
3122 }
3123 _ACEOF
3124 if ac_fn_c_try_compile "$LINENO"; then :
3125
3126 else
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 CFLAGS="-g"
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3131
3132 int
3133 main ()
3134 {
3135
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 if ac_fn_c_try_compile "$LINENO"; then :
3141 ac_cv_prog_cc_g=yes
3142 fi
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3151 $as_echo "$ac_cv_prog_cc_g" >&6; }
3152 if test "$ac_test_CFLAGS" = set; then
3153 CFLAGS=$ac_save_CFLAGS
3154 elif test $ac_cv_prog_cc_g = yes; then
3155 if test "$GCC" = yes; then
3156 CFLAGS="-g -O2"
3157 else
3158 CFLAGS="-g"
3159 fi
3160 else
3161 if test "$GCC" = yes; then
3162 CFLAGS="-O2"
3163 else
3164 CFLAGS=
3165 fi
3166 fi
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3168 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3169 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 ac_cv_prog_cc_c89=no
3173 ac_save_CC=$CC
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3176 #include <stdarg.h>
3177 #include <stdio.h>
3178 #include <sys/types.h>
3179 #include <sys/stat.h>
3180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3181 struct buf { int x; };
3182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3183 static char *e (p, i)
3184 char **p;
3185 int i;
3186 {
3187 return p[i];
3188 }
3189 static char *f (char * (*g) (char **, int), char **p, ...)
3190 {
3191 char *s;
3192 va_list v;
3193 va_start (v,p);
3194 s = g (p, va_arg (v,int));
3195 va_end (v);
3196 return s;
3197 }
3198
3199 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3200 function prototypes and stuff, but not '\xHH' hex character constants.
3201 These don't provoke an error unfortunately, instead are silently treated
3202 as 'x'. The following induces an error, until -std is added to get
3203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3204 array size at least. It's necessary to write '\x00'==0 to get something
3205 that's true only with -std. */
3206 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3207
3208 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3209 inside strings and character constants. */
3210 #define FOO(x) 'x'
3211 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3212
3213 int test (int i, double x);
3214 struct s1 {int (*f) (int a);};
3215 struct s2 {int (*f) (double a);};
3216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3217 int argc;
3218 char **argv;
3219 int
3220 main ()
3221 {
3222 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 do
3230 CC="$ac_save_CC $ac_arg"
3231 if ac_fn_c_try_compile "$LINENO"; then :
3232 ac_cv_prog_cc_c89=$ac_arg
3233 fi
3234 rm -f core conftest.err conftest.$ac_objext
3235 test "x$ac_cv_prog_cc_c89" != "xno" && break
3236 done
3237 rm -f conftest.$ac_ext
3238 CC=$ac_save_CC
3239
3240 fi
3241 # AC_CACHE_VAL
3242 case "x$ac_cv_prog_cc_c89" in
3243 x)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3245 $as_echo "none needed" >&6; } ;;
3246 xno)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3248 $as_echo "unsupported" >&6; } ;;
3249 *)
3250 CC="$CC $ac_cv_prog_cc_c89"
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3252 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3253 esac
3254 if test "x$ac_cv_prog_cc_c89" != xno; then :
3255
3256 fi
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265 # Put a plausible default for CC_FOR_BUILD in Makefile.
3266 if test "x$cross_compiling" = "xno"; then
3267 CC_FOR_BUILD='$(CC)'
3268 else
3269 CC_FOR_BUILD=gcc
3270 fi
3271 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3272
3273 ALL_LINGUAS=
3274 # If we haven't got the data from the intl directory,
3275 # assume NLS is disabled.
3276 USE_NLS=no
3277 LIBINTL=
3278 LIBINTL_DEP=
3279 INCINTL=
3280 XGETTEXT=
3281 GMSGFMT=
3282 POSUB=
3283
3284 if test -f ../../intl/config.intl; then
3285 . ../../intl/config.intl
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3288 $as_echo_n "checking whether NLS is requested... " >&6; }
3289 if test x"$USE_NLS" != xyes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295
3296 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3297
3298
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3300 $as_echo_n "checking for catalogs to be installed... " >&6; }
3301 # Look for .po and .gmo files in the source directory.
3302 CATALOGS=
3303 XLINGUAS=
3304 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3305 # If there aren't any .gmo files the shell will give us the
3306 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3307 # weeded out.
3308 case "$cat" in *\**)
3309 continue;;
3310 esac
3311 # The quadruple backslash is collapsed to a double backslash
3312 # by the backticks, then collapsed again by the double quotes,
3313 # leaving us with one backslash in the sed expression (right
3314 # before the dot that mustn't act as a wildcard).
3315 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3316 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3317 # The user is allowed to set LINGUAS to a list of languages to
3318 # install catalogs for. If it's empty that means "all of them."
3319 if test "x$LINGUAS" = x; then
3320 CATALOGS="$CATALOGS $cat"
3321 XLINGUAS="$XLINGUAS $lang"
3322 else
3323 case "$LINGUAS" in *$lang*)
3324 CATALOGS="$CATALOGS $cat"
3325 XLINGUAS="$XLINGUAS $lang"
3326 ;;
3327 esac
3328 fi
3329 done
3330 LINGUAS="$XLINGUAS"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3332 $as_echo "$LINGUAS" >&6; }
3333
3334
3335 DATADIRNAME=share
3336
3337 INSTOBJEXT=.mo
3338
3339 GENCAT=gencat
3340
3341 CATOBJEXT=.gmo
3342
3343 fi
3344
3345
3346 # Check whether --enable-sim-alignment was given.
3347 if test "${enable_sim_alignment+set}" = set; then :
3348 enableval=$enable_sim_alignment; case "${enableval}" in
3349 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3350 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3351 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
3352 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
3353 esac
3354 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3355 echo "Setting alignment flags = $sim_alignment" 6>&1
3356 fi
3357 else
3358 sim_alignment=""
3359 fi
3360
3361
3362 # Check whether --enable-sim-assert was given.
3363 if test "${enable_sim_assert+set}" = set; then :
3364 enableval=$enable_sim_assert; case "${enableval}" in
3365 yes) sim_assert="-DWITH_ASSERT=1";;
3366 no) sim_assert="-DWITH_ASSERT=0";;
3367 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
3368 esac
3369 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
3370 echo "Setting assert flags = $sim_assert" 6>&1
3371 fi
3372 else
3373 sim_assert=""
3374 fi
3375
3376
3377 # Check whether --enable-sim-bitsize was given.
3378 if test "${enable_sim_bitsize+set}" = set; then :
3379 enableval=$enable_sim_bitsize; case "${enableval}" in
3380 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3381 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3382 esac
3383 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3384 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3385 fi
3386 else
3387 sim_bitsize=""
3388 fi
3389
3390
3391 # Check whether --enable-sim-bswap was given.
3392 if test "${enable_sim_bswap+set}" = set; then :
3393 enableval=$enable_sim_bswap; case "${enableval}" in
3394 yes) sim_bswap="-DWITH_BSWAP=1";;
3395 no) sim_bswap="-DWITH_BSWAP=0";;
3396 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
3397 esac
3398 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3399 echo "Setting bswap flags = $sim_bswap" 6>&1
3400 fi
3401 else
3402 sim_bswap=""
3403 fi
3404
3405
3406 # Check whether --enable-sim-cflags was given.
3407 if test "${enable_sim_cflags+set}" = set; then :
3408 enableval=$enable_sim_cflags; case "${enableval}" in
3409 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3410 no) sim_cflags="";;
3411 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3412 esac
3413 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3414 echo "Setting sim cflags = $sim_cflags" 6>&1
3415 fi
3416 else
3417 sim_cflags=""
3418 fi
3419
3420
3421 # Check whether --enable-sim-config was given.
3422 if test "${enable_sim_config+set}" = set; then :
3423 enableval=$enable_sim_config; case "${enableval}" in
3424 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3425 *) if test -f "${srcdir}/${enableval}"; then
3426 sim_config="${enableval}";
3427 elif test -f "${srcdir}/${enableval}-config.h"; then
3428 sim_config="${enableval}-config.h"
3429 else
3430 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
3431 sim_config=std-config.h
3432 fi;;
3433 esac
3434 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3435 echo "Setting config flags = $sim_config" 6>&1
3436 fi
3437 else
3438 sim_config="std-config.h"
3439 if test x"$silent" != x"yes"; then
3440 echo "Setting config flags = $sim_config" 6>&1
3441 fi
3442 fi
3443
3444
3445 # Check whether --enable-sim-decode-mechanism was given.
3446 if test "${enable_sim_decode_mechanism+set}" = set; then :
3447 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3448 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3449 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3450 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3451 sim_decode_mechanism="switch";;
3452 esac
3453 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3454 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3455 fi
3456 else
3457 sim_decode_mechanism=""
3458 if test x"$silent" != x"yes"; then
3459 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3460 fi
3461 fi
3462
3463
3464 # Check whether --enable-sim-default-model was given.
3465 if test "${enable_sim_default_model+set}" = set; then :
3466 enableval=$enable_sim_default_model; case "${enableval}" in
3467 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3468 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3469 esac
3470 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3471 echo "Setting default-model flags = $sim_default_model" 6>&1
3472 fi
3473 else
3474 sim_default_model=""
3475 fi
3476
3477
3478 # Check whether --enable-sim-duplicate was given.
3479 if test "${enable_sim_duplicate+set}" = set; then :
3480 enableval=$enable_sim_duplicate; case "${enableval}" in
3481 yes) sim_dup="-E";;
3482 no) sim_dup="";;
3483 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3484 esac
3485 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3486 echo "Setting duplicate flags = $sim_dup" 6>&1
3487 fi
3488 else
3489 sim_dup="-E"
3490 if test x"$silent" != x"yes"; then
3491 echo "Setting duplicate flags = $sim_dup" 6>&1
3492 fi
3493 fi
3494
3495
3496 # Check whether --enable-sim-endian was given.
3497 if test "${enable_sim_endian+set}" = set; then :
3498 enableval=$enable_sim_endian; case "${enableval}" in
3499 yes) case "$target" in
3500 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3501 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3502 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3503 esac;;
3504 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3505 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3506 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3507 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3508 esac
3509 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3510 echo "Setting endian flags = $sim_endian" 6>&1
3511 fi
3512 else
3513 sim_endian=""
3514 fi
3515
3516
3517 # Check whether --enable-sim-env was given.
3518 if test "${enable_sim_env+set}" = set; then :
3519 enableval=$enable_sim_env; case "${enableval}" in
3520 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3521 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3522 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3523 no) sim_env="-DWITH_ENVIRONMENT=0";;
3524 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
3525 esac
3526 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
3527 echo "Setting env flags = $sim_env" 6>&1
3528 fi
3529 else
3530 sim_env=""
3531 fi
3532
3533
3534 # Check whether --enable-sim-filter was given.
3535 if test "${enable_sim_filter+set}" = set; then :
3536 enableval=$enable_sim_filter; case "${enableval}" in
3537 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3538 no) sim_filter="";;
3539 *) sim_filter="-F $enableval";;
3540 esac
3541 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3542 echo "Setting filter flags = $sim_filter" 6>&1
3543 fi
3544 else
3545 sim_filter="-F 32,f,o"
3546 if test x"$silent" != x"yes"; then
3547 echo "Setting filter flags = $sim_filter" 6>&1
3548 fi
3549 fi
3550
3551
3552 # Check whether --enable-sim-float was given.
3553 if test "${enable_sim_float+set}" = set; then :
3554 enableval=$enable_sim_float; case "${enableval}" in
3555 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3556 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3557 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3558 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3559 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3560 esac
3561 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3562 echo "Setting float flags = $sim_float" 6>&1
3563 fi
3564 else
3565
3566 case "${target}" in
3567 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3568 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3569 *) sim_float=""
3570 esac
3571
3572 fi
3573
3574
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3576 $as_echo_n "checking if union semun defined... " >&6; }
3577 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 #include <sys/types.h>
3584 #include <sys/ipc.h>
3585 #include <sys/sem.h>
3586 int
3587 main ()
3588 {
3589 union semun arg ;
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_has_union_semun="yes"
3596 else
3597 ac_cv_has_union_semun="no"
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3601 $as_echo "$ac_cv_has_union_semun" >&6; }
3602
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3605 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3606
3607
3608 if test "$ac_cv_has_union_semun" = "yes"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3610 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3611 if test "${ac_cv_sysv_sem+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614
3615 if test "$cross_compiling" = yes; then :
3616 :
3617 else
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620
3621 #include <sys/types.h>
3622 #include <sys/ipc.h>
3623 #include <sys/sem.h>
3624 int main () {
3625 union semun arg ;
3626
3627 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3628 if (id == -1)
3629 exit(1);
3630 arg.val = 0; /* avoid implicit type cast to union */
3631 if (semctl(id, 0, IPC_RMID, arg) == -1)
3632 exit(1);
3633 exit(0);
3634 }
3635
3636 _ACEOF
3637 if ac_fn_c_try_run "$LINENO"; then :
3638 ac_cv_sysv_sem="yes"
3639 else
3640 ac_cv_sysv_sem="no"
3641 fi
3642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3643 conftest.$ac_objext conftest.beam conftest.$ac_ext
3644 fi
3645
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3649 $as_echo "$ac_cv_sysv_sem" >&6; }
3650 else # semun is not defined
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3652 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3653 if test "${ac_cv_sysv_sem+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656
3657 if test "$cross_compiling" = yes; then :
3658 :
3659 else
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 #include <sys/types.h>
3664 #include <sys/ipc.h>
3665 #include <sys/sem.h>
3666 union semun {
3667 int val;
3668 struct semid_ds *buf;
3669 ushort *array;
3670 };
3671 int main () {
3672 union semun arg ;
3673
3674 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3675 if (id == -1)
3676 exit(1);
3677 arg.val = 0; /* avoid implicit type cast to union */
3678 if (semctl(id, 0, IPC_RMID, arg) == -1)
3679 exit(1);
3680 exit(0);
3681 }
3682
3683 _ACEOF
3684 if ac_fn_c_try_run "$LINENO"; then :
3685 ac_cv_sysv_sem="yes"
3686 else
3687 ac_cv_sysv_sem="no"
3688 fi
3689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3690 conftest.$ac_objext conftest.beam conftest.$ac_ext
3691 fi
3692
3693
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3696 $as_echo "$ac_cv_sysv_sem" >&6; }
3697 fi
3698
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3700 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3701 if test "${ac_cv_sysv_shm+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704
3705 if test "$cross_compiling" = yes; then :
3706 :
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 #include <sys/types.h>
3712 #include <sys/ipc.h>
3713 #include <sys/shm.h>
3714 int main () {
3715 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3716 if (id == -1)
3717 exit(1);
3718 if (shmctl(id, IPC_RMID, 0) == -1)
3719 exit(1);
3720 exit(0);
3721 }
3722
3723 _ACEOF
3724 if ac_fn_c_try_run "$LINENO"; then :
3725 ac_cv_sysv_shm="yes"
3726 else
3727 ac_cv_sysv_shm="no"
3728 fi
3729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3730 conftest.$ac_objext conftest.beam conftest.$ac_ext
3731 fi
3732
3733
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3736 $as_echo "$ac_cv_sysv_shm" >&6; }
3737
3738 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3739 sim_sysv_ipc_hw=",sem,shm";
3740 else
3741 sim_sysv_ipc_hw="";
3742 fi
3743
3744 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3745
3746 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3747
3748 fi
3749
3750
3751 # Check whether --enable-sim-hardware was given.
3752 if test "${enable_sim_hardware+set}" = set; then :
3753 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3754 case "${enableval}" in
3755 yes) ;;
3756 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3757 ,*) hardware="${hardware}${enableval}";;
3758 *,) hardware="${enableval}${hardware}";;
3759 *) hardware="${enableval}"'';;
3760 esac
3761 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3762 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3763 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3764 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3765 fi
3766 else
3767 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3768 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3769 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3770 if test x"$silent" != x"yes"; then
3771 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3772 fi
3773 fi
3774
3775 # Check whether --enable-sim-hostbitsize was given.
3776 if test "${enable_sim_hostbitsize+set}" = set; then :
3777 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3778 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3779 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3780 esac
3781 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3782 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3783 fi
3784 else
3785 sim_hostbitsize=""
3786 fi
3787
3788
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3798 CPP=
3799 fi
3800 if test -z "$CPP"; then
3801 if test "${ac_cv_prog_CPP+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 # Double quotes because CPP needs to be expanded
3805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3806 do
3807 ac_preproc_ok=false
3808 for ac_c_preproc_warn_flag in '' yes
3809 do
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #ifdef __STDC__
3819 # include <limits.h>
3820 #else
3821 # include <assert.h>
3822 #endif
3823 Syntax error
3824 _ACEOF
3825 if ac_fn_c_try_cpp "$LINENO"; then :
3826
3827 else
3828 # Broken: fails on valid input.
3829 continue
3830 fi
3831 rm -f conftest.err conftest.$ac_ext
3832
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #include <ac_nonexistent.h>
3838 _ACEOF
3839 if ac_fn_c_try_cpp "$LINENO"; then :
3840 # Broken: success on invalid input.
3841 continue
3842 else
3843 # Passes both tests.
3844 ac_preproc_ok=:
3845 break
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then :
3853 break
3854 fi
3855
3856 done
3857 ac_cv_prog_CPP=$CPP
3858
3859 fi
3860 CPP=$ac_cv_prog_CPP
3861 else
3862 ac_cv_prog_CPP=$CPP
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3865 $as_echo "$CPP" >&6; }
3866 ac_preproc_ok=false
3867 for ac_c_preproc_warn_flag in '' yes
3868 do
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877 #ifdef __STDC__
3878 # include <limits.h>
3879 #else
3880 # include <assert.h>
3881 #endif
3882 Syntax error
3883 _ACEOF
3884 if ac_fn_c_try_cpp "$LINENO"; then :
3885
3886 else
3887 # Broken: fails on valid input.
3888 continue
3889 fi
3890 rm -f conftest.err conftest.$ac_ext
3891
3892 # OK, works on sane cases. Now check whether nonexistent headers
3893 # can be detected and how.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3897 _ACEOF
3898 if ac_fn_c_try_cpp "$LINENO"; then :
3899 # Broken: success on invalid input.
3900 continue
3901 else
3902 # Passes both tests.
3903 ac_preproc_ok=:
3904 break
3905 fi
3906 rm -f conftest.err conftest.$ac_ext
3907
3908 done
3909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910 rm -f conftest.err conftest.$ac_ext
3911 if $ac_preproc_ok; then :
3912
3913 else
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3917 See \`config.log' for more details." "$LINENO" 5; }
3918 fi
3919
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925
3926
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3928 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3929 if test "${ac_cv_path_GREP+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -z "$GREP"; then
3933 ac_path_GREP_found=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_prog in grep ggrep; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3943 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3944 # Check for GNU ac_path_GREP and select it if it is found.
3945 # Check for GNU $ac_path_GREP
3946 case `"$ac_path_GREP" --version 2>&1` in
3947 *GNU*)
3948 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3949 *)
3950 ac_count=0
3951 $as_echo_n 0123456789 >"conftest.in"
3952 while :
3953 do
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
3957 $as_echo 'GREP' >> "conftest.nl"
3958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3960 as_fn_arith $ac_count + 1 && ac_count=$as_val
3961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_GREP="$ac_path_GREP"
3964 ac_path_GREP_max=$ac_count
3965 fi
3966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3968 done
3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970 esac
3971
3972 $ac_path_GREP_found && break 3
3973 done
3974 done
3975 done
3976 IFS=$as_save_IFS
3977 if test -z "$ac_cv_path_GREP"; then
3978 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3979 fi
3980 else
3981 ac_cv_path_GREP=$GREP
3982 fi
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3986 $as_echo "$ac_cv_path_GREP" >&6; }
3987 GREP="$ac_cv_path_GREP"
3988
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3991 $as_echo_n "checking for egrep... " >&6; }
3992 if test "${ac_cv_path_EGREP+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3996 then ac_cv_path_EGREP="$GREP -E"
3997 else
3998 if test -z "$EGREP"; then
3999 ac_path_EGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in egrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4013 *GNU*)
4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015 *)
4016 ac_count=0
4017 $as_echo_n 0123456789 >"conftest.in"
4018 while :
4019 do
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 as_fn_arith $ac_count + 1 && ac_count=$as_val
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP="$ac_path_EGREP"
4030 ac_path_EGREP_max=$ac_count
4031 fi
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4037
4038 $ac_path_EGREP_found && break 3
4039 done
4040 done
4041 done
4042 IFS=$as_save_IFS
4043 if test -z "$ac_cv_path_EGREP"; then
4044 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045 fi
4046 else
4047 ac_cv_path_EGREP=$EGREP
4048 fi
4049
4050 fi
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4053 $as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP="$ac_cv_path_EGREP"
4055
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4058 $as_echo_n "checking for ANSI C header files... " >&6; }
4059 if test "${ac_cv_header_stdc+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <stdlib.h>
4065 #include <stdarg.h>
4066 #include <string.h>
4067 #include <float.h>
4068
4069 int
4070 main ()
4071 {
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_header_stdc=yes
4079 else
4080 ac_cv_header_stdc=no
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #include <string.h>
4089
4090 _ACEOF
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "memchr" >/dev/null 2>&1; then :
4093
4094 else
4095 ac_cv_header_stdc=no
4096 fi
4097 rm -f conftest*
4098
4099 fi
4100
4101 if test $ac_cv_header_stdc = yes; then
4102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #include <stdlib.h>
4106
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "free" >/dev/null 2>&1; then :
4110
4111 else
4112 ac_cv_header_stdc=no
4113 fi
4114 rm -f conftest*
4115
4116 fi
4117
4118 if test $ac_cv_header_stdc = yes; then
4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120 if test "$cross_compiling" = yes; then :
4121 :
4122 else
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <ctype.h>
4126 #include <stdlib.h>
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130 #else
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136 #endif
4137
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4139 int
4140 main ()
4141 {
4142 int i;
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4146 return 2;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_run "$LINENO"; then :
4151
4152 else
4153 ac_cv_header_stdc=no
4154 fi
4155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4156 conftest.$ac_objext conftest.beam conftest.$ac_ext
4157 fi
4158
4159 fi
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4162 $as_echo "$ac_cv_header_stdc" >&6; }
4163 if test $ac_cv_header_stdc = yes; then
4164
4165 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4166
4167 fi
4168
4169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4171 inttypes.h stdint.h unistd.h
4172 do :
4173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4175 "
4176 eval as_val=\$$as_ac_Header
4177 if test "x$as_val" = x""yes; then :
4178 cat >>confdefs.h <<_ACEOF
4179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180 _ACEOF
4181
4182 fi
4183
4184 done
4185
4186
4187 # Check whether --enable-sim-hostendian was given.
4188 if test "${enable_sim_hostendian+set}" = set; then :
4189 enableval=$enable_sim_hostendian; case "${enableval}" in
4190 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4191 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4192 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4193 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
4194 esac
4195 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4196 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4197 fi
4198 else
4199
4200 if test "x$cross_compiling" = "xno"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4202 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4203 if test "${ac_cv_c_bigendian+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 ac_cv_c_bigendian=unknown
4207 # See if we're dealing with a universal compiler.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #ifndef __APPLE_CC__
4211 not a universal capable compiler
4212 #endif
4213 typedef int dummy;
4214
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217
4218 # Check for potential -arch flags. It is not universal unless
4219 # there are at least two -arch flags with different values.
4220 ac_arch=
4221 ac_prev=
4222 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4223 if test -n "$ac_prev"; then
4224 case $ac_word in
4225 i?86 | x86_64 | ppc | ppc64)
4226 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4227 ac_arch=$ac_word
4228 else
4229 ac_cv_c_bigendian=universal
4230 break
4231 fi
4232 ;;
4233 esac
4234 ac_prev=
4235 elif test "x$ac_word" = "x-arch"; then
4236 ac_prev=arch
4237 fi
4238 done
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 if test $ac_cv_c_bigendian = unknown; then
4242 # See if sys/param.h defines the BYTE_ORDER macro.
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #include <sys/types.h>
4246 #include <sys/param.h>
4247
4248 int
4249 main ()
4250 {
4251 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4252 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4253 && LITTLE_ENDIAN)
4254 bogus endian macros
4255 #endif
4256
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 # It does; now see whether it defined to BIG_ENDIAN or not.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <sys/types.h>
4266 #include <sys/param.h>
4267
4268 int
4269 main ()
4270 {
4271 #if BYTE_ORDER != BIG_ENDIAN
4272 not big endian
4273 #endif
4274
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 if ac_fn_c_try_compile "$LINENO"; then :
4280 ac_cv_c_bigendian=yes
4281 else
4282 ac_cv_c_bigendian=no
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 fi
4288 if test $ac_cv_c_bigendian = unknown; then
4289 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <limits.h>
4293
4294 int
4295 main ()
4296 {
4297 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4298 bogus endian macros
4299 #endif
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306 # It does; now see whether it defined to _BIG_ENDIAN or not.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <limits.h>
4310
4311 int
4312 main ()
4313 {
4314 #ifndef _BIG_ENDIAN
4315 not big endian
4316 #endif
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 if ac_fn_c_try_compile "$LINENO"; then :
4323 ac_cv_c_bigendian=yes
4324 else
4325 ac_cv_c_bigendian=no
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 if test $ac_cv_c_bigendian = unknown; then
4332 # Compile a test program.
4333 if test "$cross_compiling" = yes; then :
4334 # Try to guess by grepping values from an object file.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 short int ascii_mm[] =
4338 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4339 short int ascii_ii[] =
4340 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4341 int use_ascii (int i) {
4342 return ascii_mm[i] + ascii_ii[i];
4343 }
4344 short int ebcdic_ii[] =
4345 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4346 short int ebcdic_mm[] =
4347 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4348 int use_ebcdic (int i) {
4349 return ebcdic_mm[i] + ebcdic_ii[i];
4350 }
4351 extern int foo;
4352
4353 int
4354 main ()
4355 {
4356 return use_ascii (foo) == use_ebcdic (foo);
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4363 ac_cv_c_bigendian=yes
4364 fi
4365 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4366 if test "$ac_cv_c_bigendian" = unknown; then
4367 ac_cv_c_bigendian=no
4368 else
4369 # finding both strings is unlikely to happen, but who knows?
4370 ac_cv_c_bigendian=unknown
4371 fi
4372 fi
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 else
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379 int
4380 main ()
4381 {
4382
4383 /* Are we little or big endian? From Harbison&Steele. */
4384 union
4385 {
4386 long int l;
4387 char c[sizeof (long int)];
4388 } u;
4389 u.l = 1;
4390 return u.c[sizeof (long int) - 1] == 1;
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_run "$LINENO"; then :
4397 ac_cv_c_bigendian=no
4398 else
4399 ac_cv_c_bigendian=yes
4400 fi
4401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4402 conftest.$ac_objext conftest.beam conftest.$ac_ext
4403 fi
4404
4405 fi
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4408 $as_echo "$ac_cv_c_bigendian" >&6; }
4409 case $ac_cv_c_bigendian in #(
4410 yes)
4411 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4412 ;; #(
4413 no)
4414 ;; #(
4415 universal)
4416
4417 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4418
4419 ;; #(
4420 *)
4421 as_fn_error "unknown endianness
4422 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4423 esac
4424
4425 if test $ac_cv_c_bigendian = yes; then
4426 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4427 else
4428 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4429 fi
4430 else
4431 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4432 fi
4433 fi
4434
4435
4436 # Check whether --enable-sim-icache was given.
4437 if test "${enable_sim_icache+set}" = set; then :
4438 enableval=$enable_sim_icache; icache="-R"
4439 case "${enableval}" in
4440 yes) icache="1024"; sim_icache="-I $icache";;
4441 no) sim_icache="-R";;
4442 *) icache=1024
4443 sim_icache="-"
4444 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4445 case "$x" in
4446 define) sim_icache="${sim_icache}R";;
4447 semantic) sim_icache="${sim_icache}C";;
4448 insn) sim_icache="${sim_icache}S";;
4449 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
4450 *) as_fn_error "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
4451 esac
4452 done
4453 sim_icache="${sim_icache}I $icache";;
4454 esac
4455 if test x"$silent" != x"yes" && test x"$icache" != x""; then
4456 echo "Setting instruction cache size to $icache ($sim_icache)"
4457 fi
4458 else
4459 sim_icache="-CSRI 1024"
4460 if test x"$silent" != x"yes"; then
4461 echo "Setting instruction cache size to 1024 ($sim_icache)"
4462 fi
4463 fi
4464
4465
4466 # Check whether --enable-sim-inline was given.
4467 if test "${enable_sim_inline+set}" = set; then :
4468 enableval=$enable_sim_inline; sim_inline=""
4469 case "$enableval" in
4470 no) sim_inline="-DDEFAULT_INLINE=0";;
4471 0) sim_inline="-DDEFAULT_INLINE=0";;
4472 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
4473 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4474 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4475 new_flag=""
4476 case "$x" in
4477 *_INLINE=*) new_flag="-D$x";;
4478 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4479 *_INLINE) new_flag="-D$x=ALL_INLINE";;
4480 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
4481 esac
4482 if test x"$sim_inline" = x""; then
4483 sim_inline="$new_flag"
4484 else
4485 sim_inline="$sim_inline $new_flag"
4486 fi
4487 done;;
4488 esac
4489 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4490 echo "Setting inline flags = $sim_inline" 6>&1
4491 fi
4492 else
4493 if test x"$GCC" != ""; then
4494 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4495 if test x"$silent" != x"yes"; then
4496 echo "Setting inline flags = $sim_inline" 6>&1
4497 fi
4498 else
4499 sim_inline=""
4500 fi
4501 fi
4502
4503
4504 # Check whether --enable-sim-jump was given.
4505 if test "${enable_sim_jump+set}" = set; then :
4506 enableval=$enable_sim_jump; case "${enableval}" in
4507 yes) sim_jump="-J";;
4508 no) sim_jump="";;
4509 *) as_fn_error "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
4510 esac
4511 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
4512 echo "Setting jump flag = $sim_jump" 6>&1
4513 fi
4514 else
4515 sim_jump=""
4516 if test x"$silent" != x"yes"; then
4517 echo "Setting jump flag = $sim_jump" 6>&1
4518 fi
4519 fi
4520
4521
4522 # Check whether --enable-sim-line-nr was given.
4523 if test "${enable_sim_line_nr+set}" = set; then :
4524 enableval=$enable_sim_line_nr; case "${enableval}" in
4525 yes) sim_line_nr="";;
4526 no) sim_line_nr="-L";;
4527 *) as_fn_error "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
4528 esac
4529 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
4530 echo "Setting warning flags = $sim_line_nr" 6>&1
4531 fi
4532 else
4533 sim_line_nr=""
4534 fi
4535
4536
4537 # Check whether --enable-sim-model was given.
4538 if test "${enable_sim_model+set}" = set; then :
4539 enableval=$enable_sim_model; case "${enableval}" in
4540 yes|no) as_fn_error "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4541 *) sim_model="-DWITH_MODEL=${enableval}";;
4542 esac
4543 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
4544 echo "Setting model flags = $sim_model" 6>&1
4545 fi
4546 else
4547 sim_model=""
4548 fi
4549
4550
4551 # Check whether --enable-sim-model-issue was given.
4552 if test "${enable_sim_model_issue+set}" = set; then :
4553 enableval=$enable_sim_model_issue; case "${enableval}" in
4554 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4555 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4556 *) as_fn_error "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
4557 esac
4558 if test x"$silent" != x"yes"; then
4559 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4560 fi
4561 else
4562 sim_model_issue=""
4563 fi
4564
4565
4566 # Check whether --enable-sim-monitor was given.
4567 if test "${enable_sim_monitor+set}" = set; then :
4568 enableval=$enable_sim_monitor; case "${enableval}" in
4569 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4570 no) sim_monitor="-DWITH_MON=0";;
4571 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4572 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4573 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
4574 esac
4575 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
4576 echo "Setting monitor flags = $sim_monitor" 6>&1
4577 fi
4578 else
4579 sim_monitor=""
4580 fi
4581
4582
4583 # Check whether --enable-sim-opcode was given.
4584 if test "${enable_sim_opcode+set}" = set; then :
4585 enableval=$enable_sim_opcode; case "${enableval}" in
4586 yes|no) as_fn_error "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4587 *) if test -f "${srcdir}/${enableval}"; then
4588 sim_opcode="${enableval}"
4589 elif test -f "${srcdir}/dc-${enableval}"; then
4590 sim_opcode="dc-${enableval}"
4591 else
4592 as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4593 sim_opcode="dc-complex"
4594 fi;;
4595 esac
4596 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
4597 echo "Setting opcode flags = $sim_opcode" 6>&1
4598 fi
4599 else
4600 sim_opcode="dc-complex"
4601 if test x"$silent" != x"yes"; then
4602 echo "Setting opcode flags = $sim_opcode"
4603 fi
4604 fi
4605
4606
4607 # Check whether --enable-sim-packages was given.
4608 if test "${enable_sim_packages+set}" = set; then :
4609 enableval=$enable_sim_packages; packages=disklabel
4610 case "${enableval}" in
4611 yes) ;;
4612 no) as_fn_error "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
4613 ,*) packages="${packages}${enableval}";;
4614 *,) packages="${enableval}${packages}";;
4615 *) packages="${enableval}"'';;
4616 esac
4617 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4618 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4619 if test x"$silent" != x"yes" && test x"$packages" != x""; then
4620 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4621 fi
4622 else
4623 packages=disklabel
4624 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4625 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4626 if test x"$silent" != x"yes"; then
4627 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4628 fi
4629 fi
4630
4631
4632 # Check whether --enable-sim-regparm was given.
4633 if test "${enable_sim_regparm+set}" = set; then :
4634 enableval=$enable_sim_regparm; case "${enableval}" in
4635 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
4636 no) sim_regparm="" ;;
4637 yes) sim_regparm="-DWITH_REGPARM=3";;
4638 *) as_fn_error "\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm="";;
4639 esac
4640 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
4641 echo "Setting regparm flags = $sim_regparm" 6>&1
4642 fi
4643 else
4644 sim_regparm=""
4645 fi
4646
4647
4648 # Check whether --enable-sim-reserved-bits was given.
4649 if test "${enable_sim_reserved_bits+set}" = set; then :
4650 enableval=$enable_sim_reserved_bits; case "${enableval}" in
4651 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
4652 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
4653 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
4654 esac
4655 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
4656 echo "Setting reserved flags = $sim_reserved" 6>&1
4657 fi
4658 else
4659 sim_reserved=""
4660 fi
4661
4662
4663 # Check whether --enable-sim-smp was given.
4664 if test "${enable_sim_smp+set}" = set; then :
4665 enableval=$enable_sim_smp; case "${enableval}" in
4666 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
4667 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
4668 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
4669 esac
4670 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
4671 echo "Setting smp flags = $sim_smp" 6>&1
4672 fi
4673 else
4674 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
4675 if test x"$silent" != x"yes"; then
4676 echo "Setting smp flags = $sim_smp" 6>&1
4677 fi
4678 fi
4679
4680
4681 # Check whether --enable-sim-stdcall was given.
4682 if test "${enable_sim_stdcall+set}" = set; then :
4683 enableval=$enable_sim_stdcall; case "${enableval}" in
4684 no) sim_stdcall="" ;;
4685 std*) sim_stdcall="-DWITH_STDCALL=1";;
4686 yes) sim_stdcall="-DWITH_STDCALL=1";;
4687 *) as_fn_error "\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall="";;
4688 esac
4689 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
4690 echo "Setting function call flags = $sim_stdcall" 6>&1
4691 fi
4692 else
4693 sim_stdcall=""
4694 fi
4695
4696
4697 # Check whether --enable-sim-stdio was given.
4698 if test "${enable_sim_stdio+set}" = set; then :
4699 enableval=$enable_sim_stdio; case "${enableval}" in
4700 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4701 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4702 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
4703 esac
4704 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4705 echo "Setting stdio flags = $sim_stdio" 6>&1
4706 fi
4707 else
4708 sim_stdio=""
4709 fi
4710
4711
4712 # Check whether --enable-sim-switch was given.
4713 if test "${enable_sim_switch+set}" = set; then :
4714 enableval=$enable_sim_switch; case "${enableval}" in
4715 yes) sim_switch="-s";;
4716 no) sim_switch="";;
4717 *) as_fn_error "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
4718 esac
4719 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
4720 echo "Setting switch flags = $sim_switch" 6>&1
4721 fi
4722 else
4723 sim_switch="";
4724 if test x"$silent" != x"yes"; then
4725 echo "Setting switch flags = $sim_switch" 6>&1
4726 fi
4727 fi
4728
4729
4730 # Check whether --enable-sim-timebase was given.
4731 if test "${enable_sim_timebase+set}" = set; then :
4732 enableval=$enable_sim_timebase; case "${enableval}" in
4733 yes) sim_timebase="-DWITH_TIME_BASE=1";;
4734 no) sim_timebase="-DWITH_TIME_BASE=0";;
4735 *) as_fn_error "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
4736 esac
4737 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
4738 echo "Setting timebase flags = $sim_timebase" 6>&1
4739 fi
4740 else
4741 sim_timebase=""
4742 fi
4743
4744
4745 # Check whether --enable-sim-trace was given.
4746 if test "${enable_sim_trace+set}" = set; then :
4747 enableval=$enable_sim_trace; case "${enableval}" in
4748 yes) sim_trace="-DWITH_TRACE=1";;
4749 no) sim_trace="-DWITH_TRACE=0";;
4750 *) as_fn_error "\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace="";;
4751 esac
4752 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4753 echo "Setting trace flags = $sim_trace" 6>&1
4754 fi
4755 else
4756 sim_trace=""
4757 fi
4758
4759
4760 # Check whether --enable-sim-warnings was given.
4761 if test "${enable_sim_warnings+set}" = set; then :
4762 enableval=$enable_sim_warnings; case "${enableval}" in
4763 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4764 no) sim_warnings="-w";;
4765 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4766 esac
4767 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
4768 echo "Setting warning flags = $sim_warnings" 6>&1
4769 fi
4770 else
4771 sim_warnings=""
4772 fi
4773
4774
4775 # Check whether --enable-sim-xor-endian was given.
4776 if test "${enable_sim_xor_endian+set}" = set; then :
4777 enableval=$enable_sim_xor_endian; case "${enableval}" in
4778 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
4779 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
4780 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
4781 esac
4782 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
4783 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4784 fi
4785 else
4786 sim_xor_endian=""
4787 fi
4788
4789
4790
4791
4792 # Check whether --with-pkgversion was given.
4793 if test "${with_pkgversion+set}" = set; then :
4794 withval=$with_pkgversion; case "$withval" in
4795 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4796 no) PKGVERSION= ;;
4797 *) PKGVERSION="($withval) " ;;
4798 esac
4799 else
4800 PKGVERSION="(GDB) "
4801
4802 fi
4803
4804
4805
4806
4807
4808 # Check whether --with-bugurl was given.
4809 if test "${with_bugurl+set}" = set; then :
4810 withval=$with_bugurl; case "$withval" in
4811 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4812 no) BUGURL=
4813 ;;
4814 *) BUGURL="$withval"
4815 ;;
4816 esac
4817 else
4818 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4819
4820 fi
4821
4822 case ${BUGURL} in
4823 "")
4824 REPORT_BUGS_TO=
4825 REPORT_BUGS_TEXI=
4826 ;;
4827 *)
4828 REPORT_BUGS_TO="<$BUGURL>"
4829 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4830 ;;
4831 esac;
4832
4833
4834
4835
4836 cat >>confdefs.h <<_ACEOF
4837 #define PKGVERSION "$PKGVERSION"
4838 _ACEOF
4839
4840
4841 cat >>confdefs.h <<_ACEOF
4842 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4843 _ACEOF
4844
4845
4846 # Make sure we can run config.sub.
4847 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4848 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4851 $as_echo_n "checking build system type... " >&6; }
4852 if test "${ac_cv_build+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 ac_build_alias=$build_alias
4856 test "x$ac_build_alias" = x &&
4857 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4858 test "x$ac_build_alias" = x &&
4859 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4860 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4861 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4862
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4865 $as_echo "$ac_cv_build" >&6; }
4866 case $ac_cv_build in
4867 *-*-*) ;;
4868 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4869 esac
4870 build=$ac_cv_build
4871 ac_save_IFS=$IFS; IFS='-'
4872 set x $ac_cv_build
4873 shift
4874 build_cpu=$1
4875 build_vendor=$2
4876 shift; shift
4877 # Remember, the first character of IFS is used to create $*,
4878 # except with old shells:
4879 build_os=$*
4880 IFS=$ac_save_IFS
4881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4882
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4885 $as_echo_n "checking host system type... " >&6; }
4886 if test "${ac_cv_host+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test "x$host_alias" = x; then
4890 ac_cv_host=$ac_cv_build
4891 else
4892 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4893 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4894 fi
4895
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4898 $as_echo "$ac_cv_host" >&6; }
4899 case $ac_cv_host in
4900 *-*-*) ;;
4901 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4902 esac
4903 host=$ac_cv_host
4904 ac_save_IFS=$IFS; IFS='-'
4905 set x $ac_cv_host
4906 shift
4907 host_cpu=$1
4908 host_vendor=$2
4909 shift; shift
4910 # Remember, the first character of IFS is used to create $*,
4911 # except with old shells:
4912 host_os=$*
4913 IFS=$ac_save_IFS
4914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4918 $as_echo_n "checking target system type... " >&6; }
4919 if test "${ac_cv_target+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test "x$target_alias" = x; then
4923 ac_cv_target=$ac_cv_host
4924 else
4925 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4926 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4927 fi
4928
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4931 $as_echo "$ac_cv_target" >&6; }
4932 case $ac_cv_target in
4933 *-*-*) ;;
4934 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4935 esac
4936 target=$ac_cv_target
4937 ac_save_IFS=$IFS; IFS='-'
4938 set x $ac_cv_target
4939 shift
4940 target_cpu=$1
4941 target_vendor=$2
4942 shift; shift
4943 # Remember, the first character of IFS is used to create $*,
4944 # except with old shells:
4945 target_os=$*
4946 IFS=$ac_save_IFS
4947 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4948
4949
4950 # The aliases save the names the user supplied, while $host etc.
4951 # will get canonicalized.
4952 test -n "$target_alias" &&
4953 test "$program_prefix$program_suffix$program_transform_name" = \
4954 NONENONEs,x,x, &&
4955 program_prefix=${target_alias}-
4956
4957 test "$program_prefix" != NONE &&
4958 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4959 # Use a double $ so make ignores it.
4960 test "$program_suffix" != NONE &&
4961 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4962 # Double any \ or $.
4963 # By default was `s,x,x', remove it if useless.
4964 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4965 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4966
4967
4968 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4969 # using the same condition.
4970
4971 # See if the user specified whether he wants zlib support or not.
4972
4973 # Check whether --with-zlib was given.
4974 if test "${with_zlib+set}" = set; then :
4975 withval=$with_zlib;
4976 else
4977 with_zlib=auto
4978 fi
4979
4980
4981 if test "$with_zlib" != "no"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4983 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4984 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 ac_func_search_save_LIBS=$LIBS
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 /* Override any GCC internal prototype to avoid an error.
4992 Use char because int might match the return type of a GCC
4993 builtin and then its argument prototype would still apply. */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 char zlibVersion ();
4998 int
4999 main ()
5000 {
5001 return zlibVersion ();
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 for ac_lib in '' z; do
5007 if test -z "$ac_lib"; then
5008 ac_res="none required"
5009 else
5010 ac_res=-l$ac_lib
5011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5012 fi
5013 if ac_fn_c_try_link "$LINENO"; then :
5014 ac_cv_search_zlibVersion=$ac_res
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext \
5017 conftest$ac_exeext
5018 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5019 break
5020 fi
5021 done
5022 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5023
5024 else
5025 ac_cv_search_zlibVersion=no
5026 fi
5027 rm conftest.$ac_ext
5028 LIBS=$ac_func_search_save_LIBS
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
5031 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5032 ac_res=$ac_cv_search_zlibVersion
5033 if test "$ac_res" != no; then :
5034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5035 for ac_header in zlib.h
5036 do :
5037 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5038 if test "x$ac_cv_header_zlib_h" = x""yes; then :
5039 cat >>confdefs.h <<_ACEOF
5040 #define HAVE_ZLIB_H 1
5041 _ACEOF
5042
5043 fi
5044
5045 done
5046
5047 fi
5048
5049 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
5050 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
5051 fi
5052 fi
5053
5054
5055 . ${srcdir}/../../bfd/configure.host
5056
5057 case ${host} in
5058 *mingw32*)
5059
5060 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5061
5062 ;;
5063 esac
5064
5065 ac_config_headers="$ac_config_headers config.h:config.in"
5066
5067
5068 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5069 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
5070
5071 cat >>confdefs.h <<_ACEOF
5072 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5073 _ACEOF
5074
5075
5076 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5077
5078 fi
5079
5080
5081 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5082 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5086 _ACEOF
5087
5088
5089 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5090
5091 else
5092 case " $LIBOBJS " in
5093 *" fileblocks.$ac_objext "* ) ;;
5094 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5095 ;;
5096 esac
5097
5098 fi
5099
5100
5101 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5102 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5103
5104 cat >>confdefs.h <<_ACEOF
5105 #define HAVE_STRUCT_STAT_ST_RDEV 1
5106 _ACEOF
5107
5108
5109 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5110
5111 fi
5112
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5115 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5116 if test "${ac_cv_struct_tm+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #include <sys/types.h>
5122 #include <time.h>
5123
5124 int
5125 main ()
5126 {
5127 struct tm tm;
5128 int *p = &tm.tm_sec;
5129 return !p;
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_struct_tm=time.h
5136 else
5137 ac_cv_struct_tm=sys/time.h
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5142 $as_echo "$ac_cv_struct_tm" >&6; }
5143 if test $ac_cv_struct_tm = sys/time.h; then
5144
5145 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5146
5147 fi
5148
5149 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5150 #include <$ac_cv_struct_tm>
5151
5152 "
5153 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_STRUCT_TM_TM_ZONE 1
5157 _ACEOF
5158
5159
5160 fi
5161
5162 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5163
5164 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5165
5166 else
5167 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5168 "
5169 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
5170 ac_have_decl=1
5171 else
5172 ac_have_decl=0
5173 fi
5174
5175 cat >>confdefs.h <<_ACEOF
5176 #define HAVE_DECL_TZNAME $ac_have_decl
5177 _ACEOF
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5180 $as_echo_n "checking for tzname... " >&6; }
5181 if test "${ac_cv_var_tzname+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <time.h>
5187 #if !HAVE_DECL_TZNAME
5188 extern char *tzname[];
5189 #endif
5190
5191 int
5192 main ()
5193 {
5194 return tzname[0][0];
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_link "$LINENO"; then :
5200 ac_cv_var_tzname=yes
5201 else
5202 ac_cv_var_tzname=no
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext \
5205 conftest$ac_exeext conftest.$ac_ext
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5208 $as_echo "$ac_cv_var_tzname" >&6; }
5209 if test $ac_cv_var_tzname = yes; then
5210
5211 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5212
5213 fi
5214 fi
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5218 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5219 if test "${ac_cv_type_uid_t+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <sys/types.h>
5225
5226 _ACEOF
5227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5228 $EGREP "uid_t" >/dev/null 2>&1; then :
5229 ac_cv_type_uid_t=yes
5230 else
5231 ac_cv_type_uid_t=no
5232 fi
5233 rm -f conftest*
5234
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5237 $as_echo "$ac_cv_type_uid_t" >&6; }
5238 if test $ac_cv_type_uid_t = no; then
5239
5240 $as_echo "#define uid_t int" >>confdefs.h
5241
5242
5243 $as_echo "#define gid_t int" >>confdefs.h
5244
5245 fi
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5248 $as_echo_n "checking type of array argument to getgroups... " >&6; }
5249 if test "${ac_cv_type_getgroups+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test "$cross_compiling" = yes; then :
5253 ac_cv_type_getgroups=cross
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 /* Thanks to Mike Rendell for this test. */
5258 $ac_includes_default
5259 #define NGID 256
5260 #undef MAX
5261 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5262
5263 int
5264 main ()
5265 {
5266 gid_t gidset[NGID];
5267 int i, n;
5268 union { gid_t gval; long int lval; } val;
5269
5270 val.lval = -1;
5271 for (i = 0; i < NGID; i++)
5272 gidset[i] = val.gval;
5273 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5274 gidset);
5275 /* Exit non-zero if getgroups seems to require an array of ints. This
5276 happens when gid_t is short int but getgroups modifies an array
5277 of ints. */
5278 return n > 0 && gidset[n] != val.gval;
5279 }
5280 _ACEOF
5281 if ac_fn_c_try_run "$LINENO"; then :
5282 ac_cv_type_getgroups=gid_t
5283 else
5284 ac_cv_type_getgroups=int
5285 fi
5286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5287 conftest.$ac_objext conftest.beam conftest.$ac_ext
5288 fi
5289
5290 if test $ac_cv_type_getgroups = cross; then
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <unistd.h>
5294
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
5298 ac_cv_type_getgroups=gid_t
5299 else
5300 ac_cv_type_getgroups=int
5301 fi
5302 rm -f conftest*
5303
5304 fi
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5307 $as_echo "$ac_cv_type_getgroups" >&6; }
5308
5309 cat >>confdefs.h <<_ACEOF
5310 #define GETGROUPS_T $ac_cv_type_getgroups
5311 _ACEOF
5312
5313
5314 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5315 if test "x$ac_cv_type_mode_t" = x""yes; then :
5316
5317 else
5318
5319 cat >>confdefs.h <<_ACEOF
5320 #define mode_t int
5321 _ACEOF
5322
5323 fi
5324
5325 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5326 if test "x$ac_cv_type_off_t" = x""yes; then :
5327
5328 else
5329
5330 cat >>confdefs.h <<_ACEOF
5331 #define off_t long int
5332 _ACEOF
5333
5334 fi
5335
5336 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5337 if test "x$ac_cv_type_pid_t" = x""yes; then :
5338
5339 else
5340
5341 cat >>confdefs.h <<_ACEOF
5342 #define pid_t int
5343 _ACEOF
5344
5345 fi
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5348 $as_echo_n "checking return type of signal handlers... " >&6; }
5349 if test "${ac_cv_type_signal+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <sys/types.h>
5355 #include <signal.h>
5356
5357 int
5358 main ()
5359 {
5360 return *(signal (0, 0)) (0) == 1;
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_type_signal=int
5367 else
5368 ac_cv_type_signal=void
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5373 $as_echo "$ac_cv_type_signal" >&6; }
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define RETSIGTYPE $ac_cv_type_signal
5377 _ACEOF
5378
5379
5380 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5381 if test "x$ac_cv_type_size_t" = x""yes; then :
5382
5383 else
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define size_t unsigned int
5387 _ACEOF
5388
5389 fi
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5392 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5393 if test "${ac_cv_type_uid_t+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5399
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "uid_t" >/dev/null 2>&1; then :
5403 ac_cv_type_uid_t=yes
5404 else
5405 ac_cv_type_uid_t=no
5406 fi
5407 rm -f conftest*
5408
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5411 $as_echo "$ac_cv_type_uid_t" >&6; }
5412 if test $ac_cv_type_uid_t = no; then
5413
5414 $as_echo "#define uid_t int" >>confdefs.h
5415
5416
5417 $as_echo "#define gid_t int" >>confdefs.h
5418
5419 fi
5420
5421
5422 for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5423 do :
5424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5426 eval as_val=\$$as_ac_var
5427 if test "x$as_val" = x""yes; then :
5428 cat >>confdefs.h <<_ACEOF
5429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5430 _ACEOF
5431
5432 fi
5433 done
5434
5435
5436 for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
5437 do :
5438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5440 eval as_val=\$$as_ac_Header
5441 if test "x$as_val" = x""yes; then :
5442 cat >>confdefs.h <<_ACEOF
5443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5444 _ACEOF
5445
5446 fi
5447
5448 done
5449
5450 ac_header_dirent=no
5451 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5452 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5454 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <sys/types.h>
5461 #include <$ac_hdr>
5462
5463 int
5464 main ()
5465 {
5466 if ((DIR *) 0)
5467 return 0;
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 eval "$as_ac_Header=yes"
5474 else
5475 eval "$as_ac_Header=no"
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479 eval ac_res=\$$as_ac_Header
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5481 $as_echo "$ac_res" >&6; }
5482 eval as_val=\$$as_ac_Header
5483 if test "x$as_val" = x""yes; then :
5484 cat >>confdefs.h <<_ACEOF
5485 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5486 _ACEOF
5487
5488 ac_header_dirent=$ac_hdr; break
5489 fi
5490
5491 done
5492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5493 if test $ac_header_dirent = dirent.h; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5495 $as_echo_n "checking for library containing opendir... " >&6; }
5496 if test "${ac_cv_search_opendir+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 ac_func_search_save_LIBS=$LIBS
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502
5503 /* Override any GCC internal prototype to avoid an error.
5504 Use char because int might match the return type of a GCC
5505 builtin and then its argument prototype would still apply. */
5506 #ifdef __cplusplus
5507 extern "C"
5508 #endif
5509 char opendir ();
5510 int
5511 main ()
5512 {
5513 return opendir ();
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 for ac_lib in '' dir; do
5519 if test -z "$ac_lib"; then
5520 ac_res="none required"
5521 else
5522 ac_res=-l$ac_lib
5523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5524 fi
5525 if ac_fn_c_try_link "$LINENO"; then :
5526 ac_cv_search_opendir=$ac_res
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext
5530 if test "${ac_cv_search_opendir+set}" = set; then :
5531 break
5532 fi
5533 done
5534 if test "${ac_cv_search_opendir+set}" = set; then :
5535
5536 else
5537 ac_cv_search_opendir=no
5538 fi
5539 rm conftest.$ac_ext
5540 LIBS=$ac_func_search_save_LIBS
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5543 $as_echo "$ac_cv_search_opendir" >&6; }
5544 ac_res=$ac_cv_search_opendir
5545 if test "$ac_res" != no; then :
5546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5547
5548 fi
5549
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5552 $as_echo_n "checking for library containing opendir... " >&6; }
5553 if test "${ac_cv_search_opendir+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 ac_func_search_save_LIBS=$LIBS
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559
5560 /* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 char opendir ();
5567 int
5568 main ()
5569 {
5570 return opendir ();
5571 ;
5572 return 0;
5573 }
5574 _ACEOF
5575 for ac_lib in '' x; do
5576 if test -z "$ac_lib"; then
5577 ac_res="none required"
5578 else
5579 ac_res=-l$ac_lib
5580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5581 fi
5582 if ac_fn_c_try_link "$LINENO"; then :
5583 ac_cv_search_opendir=$ac_res
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext
5587 if test "${ac_cv_search_opendir+set}" = set; then :
5588 break
5589 fi
5590 done
5591 if test "${ac_cv_search_opendir+set}" = set; then :
5592
5593 else
5594 ac_cv_search_opendir=no
5595 fi
5596 rm conftest.$ac_ext
5597 LIBS=$ac_func_search_save_LIBS
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5600 $as_echo "$ac_cv_search_opendir" >&6; }
5601 ac_res=$ac_cv_search_opendir
5602 if test "$ac_res" != no; then :
5603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5604
5605 fi
5606
5607 fi
5608
5609
5610 sim_termio=""
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
5612 $as_echo_n "checking for struct termios... " >&6; }
5613 if test "${ac_cv_termios_struct+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 #include <sys/termios.h>
5620 int
5621 main ()
5622 {
5623 static struct termios x;
5624 x.c_iflag = 0;
5625 x.c_oflag = 0;
5626 x.c_cflag = 0;
5627 x.c_lflag = 0;
5628 x.c_cc[NCCS] = 0;
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 ac_cv_termios_struct=yes
5635 else
5636 ac_cv_termios_struct=no
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 fi
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
5642 $as_echo "$ac_cv_termios_struct" >&6; }
5643 if test $ac_cv_termios_struct = yes; then
5644 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5645 fi
5646
5647 if test "$ac_cv_termios_struct" = "yes"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
5649 $as_echo_n "checking for c_line field in struct termios... " >&6; }
5650 if test "${ac_cv_termios_cline+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5656 #include <sys/termios.h>
5657 int
5658 main ()
5659 {
5660 static struct termios x; x.c_line = 0;
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 ac_cv_termios_cline=yes
5667 else
5668 ac_cv_termios_cline=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 fi
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
5675 $as_echo "$ac_cv_termios_cline" >&6; }
5676 if test $ac_cv_termios_cline = yes; then
5677 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5678 fi
5679 else
5680 ac_cv_termios_cline=no
5681 fi
5682
5683 if test "$ac_cv_termios_struct" != "yes"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
5685 $as_echo_n "checking for struct termio... " >&6; }
5686 if test "${ac_cv_termio_struct+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <sys/types.h>
5692 #include <sys/termio.h>
5693 int
5694 main ()
5695 {
5696 static struct termio x;
5697 x.c_iflag = 0;
5698 x.c_oflag = 0;
5699 x.c_cflag = 0;
5700 x.c_lflag = 0;
5701 x.c_cc[NCC] = 0;
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 ac_cv_termio_struct=yes
5708 else
5709 ac_cv_termio_struct=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 fi
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
5715 $as_echo "$ac_cv_termio_struct" >&6; }
5716 if test $ac_cv_termio_struct = yes; then
5717 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5718 fi
5719 else
5720 ac_cv_termio_struct=no
5721 fi
5722
5723 if test "$ac_cv_termio_struct" = "yes"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
5725 $as_echo_n "checking for c_line field in struct termio... " >&6; }
5726 if test "${ac_cv_termio_cline+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 #include <sys/termio.h>
5733 int
5734 main ()
5735 {
5736 static struct termio x; x.c_line = 0;
5737 ;
5738 return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 ac_cv_termio_cline=yes
5743 else
5744 ac_cv_termio_cline=no
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 fi
5748
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
5751 $as_echo "$ac_cv_termio_cline" >&6; }
5752 if test $ac_cv_termio_cline = yes; then
5753 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
5754 fi
5755 else
5756 ac_cv_termio_cline=no
5757 fi
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
5760 $as_echo_n "checking for struct statfs... " >&6; }
5761 if test "${ac_cv_struct_statfs+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5767 #ifdef HAVE_SYS_PARAM_H
5768 #include <sys/param.h>
5769 #endif
5770 #ifdef HAVE_SYS_MOUNT_H
5771 #include <sys/mount.h>
5772 #endif
5773 #ifdef HAVE_SYS_VFS_H
5774 #include <sys/vfs.h>
5775 #endif
5776 #ifdef HAVE_SYS_STATFS_H
5777 #include <sys/statfs.h>
5778 #endif
5779 int
5780 main ()
5781 {
5782 static struct statfs s;
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 ac_cv_struct_statfs=yes
5789 else
5790 ac_cv_struct_statfs=no
5791 fi
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
5796 $as_echo "$ac_cv_struct_statfs" >&6; }
5797 if test $ac_cv_struct_statfs = yes; then
5798
5799 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
5800
5801 fi
5802
5803 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5804 if test "x$ac_cv_type_long_long" = x""yes; then :
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define HAVE_LONG_LONG 1
5808 _ACEOF
5809
5810
5811 fi
5812
5813
5814 sim_devzero=""
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
5816 $as_echo_n "checking for /dev/zero... " >&6; }
5817 if test "${ac_cv_devzero+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test "$cross_compiling" = yes; then :
5821 ac_cv_devzero=no
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 #include <fcntl.h>
5826 main () {
5827 char buf[2048];
5828 int i;
5829 int fd = open ("/dev/zero", O_RDONLY);
5830 if (fd < 0)
5831 return 1;
5832 for (i = 0; i < sizeof (buf); i++)
5833 buf[i] = 1;
5834 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
5835 return 1;
5836 for (i = 0; i < sizeof (buf); i++)
5837 if (buf[i])
5838 return 1;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_c_try_run "$LINENO"; then :
5843 ac_cv_devzero=yes
5844 else
5845 ac_cv_devzero=no
5846 fi
5847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5848 conftest.$ac_objext conftest.beam conftest.$ac_ext
5849 fi
5850
5851 fi
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
5854 $as_echo "$ac_cv_devzero" >&6; }
5855 if test $ac_cv_devzero = yes; then
5856 sim_devzero="-DHAVE_DEVZERO"
5857 else
5858 sim_devzero=""
5859 fi
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
5862 $as_echo_n "checking for common simulator directory... " >&6; }
5863 if test -f "${srcdir}/../common/callback.c"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5865 $as_echo "yes" >&6; }
5866 sim_callback="callback.o targ-map.o"
5867 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 sim_callback=""
5872 sim_targ_vals=""
5873 fi
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
5876 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
5877 if test -f "${srcdir}/../common/sim-fpu.c"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5879 $as_echo "yes" >&6; }
5880 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
5881 sim_fpu="sim-fpu.o"
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 sim_fpu_cflags=
5886 sim_fpu=
5887 fi
5888
5889 # Since we run commands on the build system, we have to create a
5890 # separate config header for the build system if build != host.
5891 if test x$host = x$build; then
5892 ac_config_commands="$ac_config_commands build-config.h"
5893
5894 else
5895 tempdir=build.$$
5896 rm -rf $tempdir
5897 mkdir $tempdir
5898 cd $tempdir
5899 case ${srcdir} in
5900 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
5901 *) realsrcdir=../${srcdir};;
5902 esac
5903 saved_CFLAGS="${CFLAGS}"
5904 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
5905 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
5906 ${realsrcdir}/configure \
5907 --enable-languages=${enable_languages-all} \
5908 --target=$target_alias --host=$build_alias --build=$build_alias
5909 CFLAGS="${saved_CFLAGS}"
5910 mv config.h ../build-config.h
5911 cd ..
5912 rm -rf $tempdir
5913 fi
5914
5915
5916
5917
5918
5919
5920
5921 AR=${AR-ar}
5922
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$RANLIB"; then
5932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 RANLIB=$ac_cv_prog_RANLIB
5952 if test -n "$RANLIB"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5954 $as_echo "$RANLIB" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961 fi
5962 if test -z "$ac_cv_prog_RANLIB"; then
5963 ac_ct_RANLIB=$RANLIB
5964 # Extract the first word of "ranlib", so it can be a program name with args.
5965 set dummy ranlib; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if test -n "$ac_ct_RANLIB"; then
5972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_prog_ac_ct_RANLIB="ranlib"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5992 if test -n "$ac_ct_RANLIB"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5994 $as_echo "$ac_ct_RANLIB" >&6; }
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000 if test "x$ac_ct_RANLIB" = x; then
6001 RANLIB=":"
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 RANLIB=$ac_ct_RANLIB
6010 fi
6011 else
6012 RANLIB="$ac_cv_prog_RANLIB"
6013 fi
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060 ac_config_files="$ac_config_files Makefile"
6061
6062 ac_config_commands="$ac_config_commands default"
6063
6064 cat >confcache <<\_ACEOF
6065 # This file is a shell script that caches the results of configure
6066 # tests run on this system so they can be shared between configure
6067 # scripts and configure runs, see configure's option --config-cache.
6068 # It is not useful on other systems. If it contains results you don't
6069 # want to keep, you may remove or edit it.
6070 #
6071 # config.status only pays attention to the cache file if you give it
6072 # the --recheck option to rerun configure.
6073 #
6074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6076 # following values.
6077
6078 _ACEOF
6079
6080 # The following way of writing the cache mishandles newlines in values,
6081 # but we know of no workaround that is simple, portable, and efficient.
6082 # So, we kill variables containing newlines.
6083 # Ultrix sh set writes to stderr and can't be redirected directly,
6084 # and sets the high bit in the cache file unless we assign to the vars.
6085 (
6086 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6087 eval ac_val=\$$ac_var
6088 case $ac_val in #(
6089 *${as_nl}*)
6090 case $ac_var in #(
6091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6093 esac
6094 case $ac_var in #(
6095 _ | IFS | as_nl) ;; #(
6096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6097 *) { eval $ac_var=; unset $ac_var;} ;;
6098 esac ;;
6099 esac
6100 done
6101
6102 (set) 2>&1 |
6103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6104 *${as_nl}ac_space=\ *)
6105 # `set' does not quote correctly, so add quotes: double-quote
6106 # substitution turns \\\\ into \\, and sed turns \\ into \.
6107 sed -n \
6108 "s/'/'\\\\''/g;
6109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6110 ;; #(
6111 *)
6112 # `set' quotes correctly as required by POSIX, so do not add quotes.
6113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6114 ;;
6115 esac |
6116 sort
6117 ) |
6118 sed '
6119 /^ac_cv_env_/b end
6120 t clear
6121 :clear
6122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6123 t end
6124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6125 :end' >>confcache
6126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6127 if test -w "$cache_file"; then
6128 test "x$cache_file" != "x/dev/null" &&
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6130 $as_echo "$as_me: updating cache $cache_file" >&6;}
6131 cat confcache >$cache_file
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6134 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6135 fi
6136 fi
6137 rm -f confcache
6138
6139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6140 # Let make expand exec_prefix.
6141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6142
6143 DEFS=-DHAVE_CONFIG_H
6144
6145 ac_libobjs=
6146 ac_ltlibobjs=
6147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6148 # 1. Remove the extension, and $U if already installed.
6149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6150 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6152 # will be set to the directory where LIBOBJS objects are built.
6153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6155 done
6156 LIBOBJS=$ac_libobjs
6157
6158 LTLIBOBJS=$ac_ltlibobjs
6159
6160
6161
6162
6163 : ${CONFIG_STATUS=./config.status}
6164 ac_write_fail=0
6165 ac_clean_files_save=$ac_clean_files
6166 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6168 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6169 as_write_fail=0
6170 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6171 #! $SHELL
6172 # Generated by $as_me.
6173 # Run this file to recreate the current configuration.
6174 # Compiler output produced by configure, useful for debugging
6175 # configure, is in config.log if it exists.
6176
6177 debug=false
6178 ac_cs_recheck=false
6179 ac_cs_silent=false
6180
6181 SHELL=\${CONFIG_SHELL-$SHELL}
6182 export SHELL
6183 _ASEOF
6184 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6185 ## -------------------- ##
6186 ## M4sh Initialization. ##
6187 ## -------------------- ##
6188
6189 # Be more Bourne compatible
6190 DUALCASE=1; export DUALCASE # for MKS sh
6191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6192 emulate sh
6193 NULLCMD=:
6194 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6195 # is contrary to our usage. Disable this feature.
6196 alias -g '${1+"$@"}'='"$@"'
6197 setopt NO_GLOB_SUBST
6198 else
6199 case `(set -o) 2>/dev/null` in #(
6200 *posix*) :
6201 set -o posix ;; #(
6202 *) :
6203 ;;
6204 esac
6205 fi
6206
6207
6208 as_nl='
6209 '
6210 export as_nl
6211 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6212 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6215 # Prefer a ksh shell builtin over an external printf program on Solaris,
6216 # but without wasting forks for bash or zsh.
6217 if test -z "$BASH_VERSION$ZSH_VERSION" \
6218 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6219 as_echo='print -r --'
6220 as_echo_n='print -rn --'
6221 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6222 as_echo='printf %s\n'
6223 as_echo_n='printf %s'
6224 else
6225 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6226 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6227 as_echo_n='/usr/ucb/echo -n'
6228 else
6229 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6230 as_echo_n_body='eval
6231 arg=$1;
6232 case $arg in #(
6233 *"$as_nl"*)
6234 expr "X$arg" : "X\\(.*\\)$as_nl";
6235 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6236 esac;
6237 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6238 '
6239 export as_echo_n_body
6240 as_echo_n='sh -c $as_echo_n_body as_echo'
6241 fi
6242 export as_echo_body
6243 as_echo='sh -c $as_echo_body as_echo'
6244 fi
6245
6246 # The user is always right.
6247 if test "${PATH_SEPARATOR+set}" != set; then
6248 PATH_SEPARATOR=:
6249 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6250 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6251 PATH_SEPARATOR=';'
6252 }
6253 fi
6254
6255
6256 # IFS
6257 # We need space, tab and new line, in precisely that order. Quoting is
6258 # there to prevent editors from complaining about space-tab.
6259 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6260 # splitting by setting IFS to empty value.)
6261 IFS=" "" $as_nl"
6262
6263 # Find who we are. Look in the path if we contain no directory separator.
6264 case $0 in #((
6265 *[\\/]* ) as_myself=$0 ;;
6266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6272 done
6273 IFS=$as_save_IFS
6274
6275 ;;
6276 esac
6277 # We did not find ourselves, most probably we were run as `sh COMMAND'
6278 # in which case we are not to be found in the path.
6279 if test "x$as_myself" = x; then
6280 as_myself=$0
6281 fi
6282 if test ! -f "$as_myself"; then
6283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6284 exit 1
6285 fi
6286
6287 # Unset variables that we do not need and which cause bugs (e.g. in
6288 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6289 # suppresses any "Segmentation fault" message there. '((' could
6290 # trigger a bug in pdksh 5.2.14.
6291 for as_var in BASH_ENV ENV MAIL MAILPATH
6292 do eval test x\${$as_var+set} = xset \
6293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6294 done
6295 PS1='$ '
6296 PS2='> '
6297 PS4='+ '
6298
6299 # NLS nuisances.
6300 LC_ALL=C
6301 export LC_ALL
6302 LANGUAGE=C
6303 export LANGUAGE
6304
6305 # CDPATH.
6306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6307
6308
6309 # as_fn_error ERROR [LINENO LOG_FD]
6310 # ---------------------------------
6311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6313 # script with status $?, using 1 if that was 0.
6314 as_fn_error ()
6315 {
6316 as_status=$?; test $as_status -eq 0 && as_status=1
6317 if test "$3"; then
6318 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6320 fi
6321 $as_echo "$as_me: error: $1" >&2
6322 as_fn_exit $as_status
6323 } # as_fn_error
6324
6325
6326 # as_fn_set_status STATUS
6327 # -----------------------
6328 # Set $? to STATUS, without forking.
6329 as_fn_set_status ()
6330 {
6331 return $1
6332 } # as_fn_set_status
6333
6334 # as_fn_exit STATUS
6335 # -----------------
6336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6337 as_fn_exit ()
6338 {
6339 set +e
6340 as_fn_set_status $1
6341 exit $1
6342 } # as_fn_exit
6343
6344 # as_fn_unset VAR
6345 # ---------------
6346 # Portably unset VAR.
6347 as_fn_unset ()
6348 {
6349 { eval $1=; unset $1;}
6350 }
6351 as_unset=as_fn_unset
6352 # as_fn_append VAR VALUE
6353 # ----------------------
6354 # Append the text in VALUE to the end of the definition contained in VAR. Take
6355 # advantage of any shell optimizations that allow amortized linear growth over
6356 # repeated appends, instead of the typical quadratic growth present in naive
6357 # implementations.
6358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6359 eval 'as_fn_append ()
6360 {
6361 eval $1+=\$2
6362 }'
6363 else
6364 as_fn_append ()
6365 {
6366 eval $1=\$$1\$2
6367 }
6368 fi # as_fn_append
6369
6370 # as_fn_arith ARG...
6371 # ------------------
6372 # Perform arithmetic evaluation on the ARGs, and store the result in the
6373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6374 # must be portable across $(()) and expr.
6375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6376 eval 'as_fn_arith ()
6377 {
6378 as_val=$(( $* ))
6379 }'
6380 else
6381 as_fn_arith ()
6382 {
6383 as_val=`expr "$@" || test $? -eq 1`
6384 }
6385 fi # as_fn_arith
6386
6387
6388 if expr a : '\(a\)' >/dev/null 2>&1 &&
6389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6390 as_expr=expr
6391 else
6392 as_expr=false
6393 fi
6394
6395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6396 as_basename=basename
6397 else
6398 as_basename=false
6399 fi
6400
6401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6402 as_dirname=dirname
6403 else
6404 as_dirname=false
6405 fi
6406
6407 as_me=`$as_basename -- "$0" ||
6408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6409 X"$0" : 'X\(//\)$' \| \
6410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6411 $as_echo X/"$0" |
6412 sed '/^.*\/\([^/][^/]*\)\/*$/{
6413 s//\1/
6414 q
6415 }
6416 /^X\/\(\/\/\)$/{
6417 s//\1/
6418 q
6419 }
6420 /^X\/\(\/\).*/{
6421 s//\1/
6422 q
6423 }
6424 s/.*/./; q'`
6425
6426 # Avoid depending upon Character Ranges.
6427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6430 as_cr_digits='0123456789'
6431 as_cr_alnum=$as_cr_Letters$as_cr_digits
6432
6433 ECHO_C= ECHO_N= ECHO_T=
6434 case `echo -n x` in #(((((
6435 -n*)
6436 case `echo 'xy\c'` in
6437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6438 xy) ECHO_C='\c';;
6439 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6440 ECHO_T=' ';;
6441 esac;;
6442 *)
6443 ECHO_N='-n';;
6444 esac
6445
6446 rm -f conf$$ conf$$.exe conf$$.file
6447 if test -d conf$$.dir; then
6448 rm -f conf$$.dir/conf$$.file
6449 else
6450 rm -f conf$$.dir
6451 mkdir conf$$.dir 2>/dev/null
6452 fi
6453 if (echo >conf$$.file) 2>/dev/null; then
6454 if ln -s conf$$.file conf$$ 2>/dev/null; then
6455 as_ln_s='ln -s'
6456 # ... but there are two gotchas:
6457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6459 # In both cases, we have to default to `cp -p'.
6460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6461 as_ln_s='cp -p'
6462 elif ln conf$$.file conf$$ 2>/dev/null; then
6463 as_ln_s=ln
6464 else
6465 as_ln_s='cp -p'
6466 fi
6467 else
6468 as_ln_s='cp -p'
6469 fi
6470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6471 rmdir conf$$.dir 2>/dev/null
6472
6473
6474 # as_fn_mkdir_p
6475 # -------------
6476 # Create "$as_dir" as a directory, including parents if necessary.
6477 as_fn_mkdir_p ()
6478 {
6479
6480 case $as_dir in #(
6481 -*) as_dir=./$as_dir;;
6482 esac
6483 test -d "$as_dir" || eval $as_mkdir_p || {
6484 as_dirs=
6485 while :; do
6486 case $as_dir in #(
6487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6488 *) as_qdir=$as_dir;;
6489 esac
6490 as_dirs="'$as_qdir' $as_dirs"
6491 as_dir=`$as_dirname -- "$as_dir" ||
6492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6493 X"$as_dir" : 'X\(//\)[^/]' \| \
6494 X"$as_dir" : 'X\(//\)$' \| \
6495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6496 $as_echo X"$as_dir" |
6497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6498 s//\1/
6499 q
6500 }
6501 /^X\(\/\/\)[^/].*/{
6502 s//\1/
6503 q
6504 }
6505 /^X\(\/\/\)$/{
6506 s//\1/
6507 q
6508 }
6509 /^X\(\/\).*/{
6510 s//\1/
6511 q
6512 }
6513 s/.*/./; q'`
6514 test -d "$as_dir" && break
6515 done
6516 test -z "$as_dirs" || eval "mkdir $as_dirs"
6517 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6518
6519
6520 } # as_fn_mkdir_p
6521 if mkdir -p . 2>/dev/null; then
6522 as_mkdir_p='mkdir -p "$as_dir"'
6523 else
6524 test -d ./-p && rmdir ./-p
6525 as_mkdir_p=false
6526 fi
6527
6528 if test -x / >/dev/null 2>&1; then
6529 as_test_x='test -x'
6530 else
6531 if ls -dL / >/dev/null 2>&1; then
6532 as_ls_L_option=L
6533 else
6534 as_ls_L_option=
6535 fi
6536 as_test_x='
6537 eval sh -c '\''
6538 if test -d "$1"; then
6539 test -d "$1/.";
6540 else
6541 case $1 in #(
6542 -*)set "./$1";;
6543 esac;
6544 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6545 ???[sx]*):;;*)false;;esac;fi
6546 '\'' sh
6547 '
6548 fi
6549 as_executable_p=$as_test_x
6550
6551 # Sed expression to map a string onto a valid CPP name.
6552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6553
6554 # Sed expression to map a string onto a valid variable name.
6555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6556
6557
6558 exec 6>&1
6559 ## ----------------------------------- ##
6560 ## Main body of $CONFIG_STATUS script. ##
6561 ## ----------------------------------- ##
6562 _ASEOF
6563 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6564
6565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6566 # Save the log message, to keep $0 and so on meaningful, and to
6567 # report actual input values of CONFIG_FILES etc. instead of their
6568 # values after options handling.
6569 ac_log="
6570 This file was extended by $as_me, which was
6571 generated by GNU Autoconf 2.64. Invocation command line was
6572
6573 CONFIG_FILES = $CONFIG_FILES
6574 CONFIG_HEADERS = $CONFIG_HEADERS
6575 CONFIG_LINKS = $CONFIG_LINKS
6576 CONFIG_COMMANDS = $CONFIG_COMMANDS
6577 $ $0 $@
6578
6579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6580 "
6581
6582 _ACEOF
6583
6584 case $ac_config_files in *"
6585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6586 esac
6587
6588 case $ac_config_headers in *"
6589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6590 esac
6591
6592
6593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6594 # Files that config.status was made for.
6595 config_files="$ac_config_files"
6596 config_headers="$ac_config_headers"
6597 config_commands="$ac_config_commands"
6598
6599 _ACEOF
6600
6601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6602 ac_cs_usage="\
6603 \`$as_me' instantiates files and other configuration actions
6604 from templates according to the current configuration. Unless the files
6605 and actions are specified as TAGs, all are instantiated by default.
6606
6607 Usage: $0 [OPTION]... [TAG]...
6608
6609 -h, --help print this help, then exit
6610 -V, --version print version number and configuration settings, then exit
6611 -q, --quiet, --silent
6612 do not print progress messages
6613 -d, --debug don't remove temporary files
6614 --recheck update $as_me by reconfiguring in the same conditions
6615 --file=FILE[:TEMPLATE]
6616 instantiate the configuration file FILE
6617 --header=FILE[:TEMPLATE]
6618 instantiate the configuration header FILE
6619
6620 Configuration files:
6621 $config_files
6622
6623 Configuration headers:
6624 $config_headers
6625
6626 Configuration commands:
6627 $config_commands
6628
6629 Report bugs to the package provider."
6630
6631 _ACEOF
6632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6633 ac_cs_version="\\
6634 config.status
6635 configured by $0, generated by GNU Autoconf 2.64,
6636 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6637
6638 Copyright (C) 2009 Free Software Foundation, Inc.
6639 This config.status script is free software; the Free Software Foundation
6640 gives unlimited permission to copy, distribute and modify it."
6641
6642 ac_pwd='$ac_pwd'
6643 srcdir='$srcdir'
6644 INSTALL='$INSTALL'
6645 test -n "\$AWK" || AWK=awk
6646 _ACEOF
6647
6648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6649 # The default lists apply if the user does not specify any file.
6650 ac_need_defaults=:
6651 while test $# != 0
6652 do
6653 case $1 in
6654 --*=*)
6655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6657 ac_shift=:
6658 ;;
6659 *)
6660 ac_option=$1
6661 ac_optarg=$2
6662 ac_shift=shift
6663 ;;
6664 esac
6665
6666 case $ac_option in
6667 # Handling of the options.
6668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6669 ac_cs_recheck=: ;;
6670 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6671 $as_echo "$ac_cs_version"; exit ;;
6672 --debug | --debu | --deb | --de | --d | -d )
6673 debug=: ;;
6674 --file | --fil | --fi | --f )
6675 $ac_shift
6676 case $ac_optarg in
6677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6678 esac
6679 as_fn_append CONFIG_FILES " '$ac_optarg'"
6680 ac_need_defaults=false;;
6681 --header | --heade | --head | --hea )
6682 $ac_shift
6683 case $ac_optarg in
6684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6685 esac
6686 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6687 ac_need_defaults=false;;
6688 --he | --h)
6689 # Conflict between --help and --header
6690 as_fn_error "ambiguous option: \`$1'
6691 Try \`$0 --help' for more information.";;
6692 --help | --hel | -h )
6693 $as_echo "$ac_cs_usage"; exit ;;
6694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6696 ac_cs_silent=: ;;
6697
6698 # This is an error.
6699 -*) as_fn_error "unrecognized option: \`$1'
6700 Try \`$0 --help' for more information." ;;
6701
6702 *) as_fn_append ac_config_targets " $1"
6703 ac_need_defaults=false ;;
6704
6705 esac
6706 shift
6707 done
6708
6709 ac_configure_extra_args=
6710
6711 if $ac_cs_silent; then
6712 exec 6>/dev/null
6713 ac_configure_extra_args="$ac_configure_extra_args --silent"
6714 fi
6715
6716 _ACEOF
6717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6718 if \$ac_cs_recheck; then
6719 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6720 shift
6721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6722 CONFIG_SHELL='$SHELL'
6723 export CONFIG_SHELL
6724 exec "\$@"
6725 fi
6726
6727 _ACEOF
6728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6729 exec 5>>config.log
6730 {
6731 echo
6732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6733 ## Running $as_me. ##
6734 _ASBOX
6735 $as_echo "$ac_log"
6736 } >&5
6737
6738 _ACEOF
6739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6740 _ACEOF
6741
6742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6743
6744 # Handling of arguments.
6745 for ac_config_target in $ac_config_targets
6746 do
6747 case $ac_config_target in
6748 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6749 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
6750 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6751 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6752
6753 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6754 esac
6755 done
6756
6757
6758 # If the user did not use the arguments to specify the items to instantiate,
6759 # then the envvar interface is used. Set only those that are not.
6760 # We use the long form for the default assignment because of an extremely
6761 # bizarre bug on SunOS 4.1.3.
6762 if $ac_need_defaults; then
6763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6765 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6766 fi
6767
6768 # Have a temporary directory for convenience. Make it in the build tree
6769 # simply because there is no reason against having it here, and in addition,
6770 # creating and moving files from /tmp can sometimes cause problems.
6771 # Hook for its removal unless debugging.
6772 # Note that there is a small window in which the directory will not be cleaned:
6773 # after its creation but before its name has been assigned to `$tmp'.
6774 $debug ||
6775 {
6776 tmp=
6777 trap 'exit_status=$?
6778 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6779 ' 0
6780 trap 'as_fn_exit 1' 1 2 13 15
6781 }
6782 # Create a (secure) tmp directory for tmp files.
6783
6784 {
6785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6786 test -n "$tmp" && test -d "$tmp"
6787 } ||
6788 {
6789 tmp=./conf$$-$RANDOM
6790 (umask 077 && mkdir "$tmp")
6791 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6792
6793 # Set up the scripts for CONFIG_FILES section.
6794 # No need to generate them if there are no CONFIG_FILES.
6795 # This happens for instance with `./config.status config.h'.
6796 if test -n "$CONFIG_FILES"; then
6797
6798
6799 ac_cr=`echo X | tr X '\015'`
6800 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6801 # But we know of no other shell where ac_cr would be empty at this
6802 # point, so we can use a bashism as a fallback.
6803 if test "x$ac_cr" = x; then
6804 eval ac_cr=\$\'\\r\'
6805 fi
6806 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6807 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6808 ac_cs_awk_cr='\r'
6809 else
6810 ac_cs_awk_cr=$ac_cr
6811 fi
6812
6813 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6814 _ACEOF
6815
6816
6817 {
6818 echo "cat >conf$$subs.awk <<_ACEOF" &&
6819 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6820 echo "_ACEOF"
6821 } >conf$$subs.sh ||
6822 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6823 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6824 ac_delim='%!_!# '
6825 for ac_last_try in false false false false false :; do
6826 . ./conf$$subs.sh ||
6827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6828
6829 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6830 if test $ac_delim_n = $ac_delim_num; then
6831 break
6832 elif $ac_last_try; then
6833 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6834 else
6835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6836 fi
6837 done
6838 rm -f conf$$subs.sh
6839
6840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6842 _ACEOF
6843 sed -n '
6844 h
6845 s/^/S["/; s/!.*/"]=/
6846 p
6847 g
6848 s/^[^!]*!//
6849 :repl
6850 t repl
6851 s/'"$ac_delim"'$//
6852 t delim
6853 :nl
6854 h
6855 s/\(.\{148\}\).*/\1/
6856 t more1
6857 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6858 p
6859 n
6860 b repl
6861 :more1
6862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6863 p
6864 g
6865 s/.\{148\}//
6866 t nl
6867 :delim
6868 h
6869 s/\(.\{148\}\).*/\1/
6870 t more2
6871 s/["\\]/\\&/g; s/^/"/; s/$/"/
6872 p
6873 b
6874 :more2
6875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6876 p
6877 g
6878 s/.\{148\}//
6879 t delim
6880 ' <conf$$subs.awk | sed '
6881 /^[^""]/{
6882 N
6883 s/\n//
6884 }
6885 ' >>$CONFIG_STATUS || ac_write_fail=1
6886 rm -f conf$$subs.awk
6887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6888 _ACAWK
6889 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6890 for (key in S) S_is_set[key] = 1
6891 FS = "\a"
6892
6893 }
6894 {
6895 line = $ 0
6896 nfields = split(line, field, "@")
6897 substed = 0
6898 len = length(field[1])
6899 for (i = 2; i < nfields; i++) {
6900 key = field[i]
6901 keylen = length(key)
6902 if (S_is_set[key]) {
6903 value = S[key]
6904 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6905 len += length(value) + length(field[++i])
6906 substed = 1
6907 } else
6908 len += 1 + keylen
6909 }
6910
6911 print line
6912 }
6913
6914 _ACAWK
6915 _ACEOF
6916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6919 else
6920 cat
6921 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6922 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6923 _ACEOF
6924
6925 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6926 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6927 # trailing colons and then remove the whole line if VPATH becomes empty
6928 # (actually we leave an empty line to preserve line numbers).
6929 if test "x$srcdir" = x.; then
6930 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6931 s/:*\$(srcdir):*/:/
6932 s/:*\${srcdir}:*/:/
6933 s/:*@srcdir@:*/:/
6934 s/^\([^=]*=[ ]*\):*/\1/
6935 s/:*$//
6936 s/^[^=]*=[ ]*$//
6937 }'
6938 fi
6939
6940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6941 fi # test -n "$CONFIG_FILES"
6942
6943 # Set up the scripts for CONFIG_HEADERS section.
6944 # No need to generate them if there are no CONFIG_HEADERS.
6945 # This happens for instance with `./config.status Makefile'.
6946 if test -n "$CONFIG_HEADERS"; then
6947 cat >"$tmp/defines.awk" <<\_ACAWK ||
6948 BEGIN {
6949 _ACEOF
6950
6951 # Transform confdefs.h into an awk script `defines.awk', embedded as
6952 # here-document in config.status, that substitutes the proper values into
6953 # config.h.in to produce config.h.
6954
6955 # Create a delimiter string that does not exist in confdefs.h, to ease
6956 # handling of long lines.
6957 ac_delim='%!_!# '
6958 for ac_last_try in false false :; do
6959 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6960 if test -z "$ac_t"; then
6961 break
6962 elif $ac_last_try; then
6963 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6964 else
6965 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6966 fi
6967 done
6968
6969 # For the awk script, D is an array of macro values keyed by name,
6970 # likewise P contains macro parameters if any. Preserve backslash
6971 # newline sequences.
6972
6973 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6974 sed -n '
6975 s/.\{148\}/&'"$ac_delim"'/g
6976 t rset
6977 :rset
6978 s/^[ ]*#[ ]*define[ ][ ]*/ /
6979 t def
6980 d
6981 :def
6982 s/\\$//
6983 t bsnl
6984 s/["\\]/\\&/g
6985 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6986 D["\1"]=" \3"/p
6987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6988 d
6989 :bsnl
6990 s/["\\]/\\&/g
6991 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6992 D["\1"]=" \3\\\\\\n"\\/p
6993 t cont
6994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6995 t cont
6996 d
6997 :cont
6998 n
6999 s/.\{148\}/&'"$ac_delim"'/g
7000 t clear
7001 :clear
7002 s/\\$//
7003 t bsnlc
7004 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7005 d
7006 :bsnlc
7007 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7008 b cont
7009 ' <confdefs.h | sed '
7010 s/'"$ac_delim"'/"\\\
7011 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7012
7013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7014 for (key in D) D_is_set[key] = 1
7015 FS = "\a"
7016 }
7017 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7018 line = \$ 0
7019 split(line, arg, " ")
7020 if (arg[1] == "#") {
7021 defundef = arg[2]
7022 mac1 = arg[3]
7023 } else {
7024 defundef = substr(arg[1], 2)
7025 mac1 = arg[2]
7026 }
7027 split(mac1, mac2, "(") #)
7028 macro = mac2[1]
7029 prefix = substr(line, 1, index(line, defundef) - 1)
7030 if (D_is_set[macro]) {
7031 # Preserve the white space surrounding the "#".
7032 print prefix "define", macro P[macro] D[macro]
7033 next
7034 } else {
7035 # Replace #undef with comments. This is necessary, for example,
7036 # in the case of _POSIX_SOURCE, which is predefined and required
7037 # on some systems where configure will not decide to define it.
7038 if (defundef == "undef") {
7039 print "/*", prefix defundef, macro, "*/"
7040 next
7041 }
7042 }
7043 }
7044 { print }
7045 _ACAWK
7046 _ACEOF
7047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7048 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7049 fi # test -n "$CONFIG_HEADERS"
7050
7051
7052 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7053 shift
7054 for ac_tag
7055 do
7056 case $ac_tag in
7057 :[FHLC]) ac_mode=$ac_tag; continue;;
7058 esac
7059 case $ac_mode$ac_tag in
7060 :[FHL]*:*);;
7061 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7062 :[FH]-) ac_tag=-:-;;
7063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7064 esac
7065 ac_save_IFS=$IFS
7066 IFS=:
7067 set x $ac_tag
7068 IFS=$ac_save_IFS
7069 shift
7070 ac_file=$1
7071 shift
7072
7073 case $ac_mode in
7074 :L) ac_source=$1;;
7075 :[FH])
7076 ac_file_inputs=
7077 for ac_f
7078 do
7079 case $ac_f in
7080 -) ac_f="$tmp/stdin";;
7081 *) # Look for the file first in the build tree, then in the source tree
7082 # (if the path is not absolute). The absolute path cannot be DOS-style,
7083 # because $ac_f cannot contain `:'.
7084 test -f "$ac_f" ||
7085 case $ac_f in
7086 [\\/$]*) false;;
7087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7088 esac ||
7089 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7090 esac
7091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7092 as_fn_append ac_file_inputs " '$ac_f'"
7093 done
7094
7095 # Let's still pretend it is `configure' which instantiates (i.e., don't
7096 # use $as_me), people would be surprised to read:
7097 # /* config.h. Generated by config.status. */
7098 configure_input='Generated from '`
7099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7100 `' by configure.'
7101 if test x"$ac_file" != x-; then
7102 configure_input="$ac_file. $configure_input"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7104 $as_echo "$as_me: creating $ac_file" >&6;}
7105 fi
7106 # Neutralize special characters interpreted by sed in replacement strings.
7107 case $configure_input in #(
7108 *\&* | *\|* | *\\* )
7109 ac_sed_conf_input=`$as_echo "$configure_input" |
7110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7111 *) ac_sed_conf_input=$configure_input;;
7112 esac
7113
7114 case $ac_tag in
7115 *:-:* | *:-) cat >"$tmp/stdin" \
7116 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7117 esac
7118 ;;
7119 esac
7120
7121 ac_dir=`$as_dirname -- "$ac_file" ||
7122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7123 X"$ac_file" : 'X\(//\)[^/]' \| \
7124 X"$ac_file" : 'X\(//\)$' \| \
7125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7126 $as_echo X"$ac_file" |
7127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7128 s//\1/
7129 q
7130 }
7131 /^X\(\/\/\)[^/].*/{
7132 s//\1/
7133 q
7134 }
7135 /^X\(\/\/\)$/{
7136 s//\1/
7137 q
7138 }
7139 /^X\(\/\).*/{
7140 s//\1/
7141 q
7142 }
7143 s/.*/./; q'`
7144 as_dir="$ac_dir"; as_fn_mkdir_p
7145 ac_builddir=.
7146
7147 case "$ac_dir" in
7148 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7149 *)
7150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7151 # A ".." for each directory in $ac_dir_suffix.
7152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7153 case $ac_top_builddir_sub in
7154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7156 esac ;;
7157 esac
7158 ac_abs_top_builddir=$ac_pwd
7159 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7160 # for backward compatibility:
7161 ac_top_builddir=$ac_top_build_prefix
7162
7163 case $srcdir in
7164 .) # We are building in place.
7165 ac_srcdir=.
7166 ac_top_srcdir=$ac_top_builddir_sub
7167 ac_abs_top_srcdir=$ac_pwd ;;
7168 [\\/]* | ?:[\\/]* ) # Absolute name.
7169 ac_srcdir=$srcdir$ac_dir_suffix;
7170 ac_top_srcdir=$srcdir
7171 ac_abs_top_srcdir=$srcdir ;;
7172 *) # Relative name.
7173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7174 ac_top_srcdir=$ac_top_build_prefix$srcdir
7175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7176 esac
7177 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7178
7179
7180 case $ac_mode in
7181 :F)
7182 #
7183 # CONFIG_FILE
7184 #
7185
7186 case $INSTALL in
7187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7189 esac
7190 _ACEOF
7191
7192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7193 # If the template does not know about datarootdir, expand it.
7194 # FIXME: This hack should be removed a few years after 2.60.
7195 ac_datarootdir_hack=; ac_datarootdir_seen=
7196 ac_sed_dataroot='
7197 /datarootdir/ {
7198 p
7199 q
7200 }
7201 /@datadir@/p
7202 /@docdir@/p
7203 /@infodir@/p
7204 /@localedir@/p
7205 /@mandir@/p'
7206 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7207 *datarootdir*) ac_datarootdir_seen=yes;;
7208 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7210 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7211 _ACEOF
7212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7213 ac_datarootdir_hack='
7214 s&@datadir@&$datadir&g
7215 s&@docdir@&$docdir&g
7216 s&@infodir@&$infodir&g
7217 s&@localedir@&$localedir&g
7218 s&@mandir@&$mandir&g
7219 s&\\\${datarootdir}&$datarootdir&g' ;;
7220 esac
7221 _ACEOF
7222
7223 # Neutralize VPATH when `$srcdir' = `.'.
7224 # Shell code in configure.ac might set extrasub.
7225 # FIXME: do we really want to maintain this feature?
7226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7227 ac_sed_extra="$ac_vpsub
7228 $extrasub
7229 _ACEOF
7230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7231 :t
7232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7233 s|@configure_input@|$ac_sed_conf_input|;t t
7234 s&@top_builddir@&$ac_top_builddir_sub&;t t
7235 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7236 s&@srcdir@&$ac_srcdir&;t t
7237 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7238 s&@top_srcdir@&$ac_top_srcdir&;t t
7239 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7240 s&@builddir@&$ac_builddir&;t t
7241 s&@abs_builddir@&$ac_abs_builddir&;t t
7242 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7243 s&@INSTALL@&$ac_INSTALL&;t t
7244 $ac_datarootdir_hack
7245 "
7246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7247 || as_fn_error "could not create $ac_file" "$LINENO" 5
7248
7249 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7253 which seems to be undefined. Please make sure it is defined." >&5
7254 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7255 which seems to be undefined. Please make sure it is defined." >&2;}
7256
7257 rm -f "$tmp/stdin"
7258 case $ac_file in
7259 -) cat "$tmp/out" && rm -f "$tmp/out";;
7260 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7261 esac \
7262 || as_fn_error "could not create $ac_file" "$LINENO" 5
7263 ;;
7264 :H)
7265 #
7266 # CONFIG_HEADER
7267 #
7268 if test x"$ac_file" != x-; then
7269 {
7270 $as_echo "/* $configure_input */" \
7271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7272 } >"$tmp/config.h" \
7273 || as_fn_error "could not create $ac_file" "$LINENO" 5
7274 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7276 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7277 else
7278 rm -f "$ac_file"
7279 mv "$tmp/config.h" "$ac_file" \
7280 || as_fn_error "could not create $ac_file" "$LINENO" 5
7281 fi
7282 else
7283 $as_echo "/* $configure_input */" \
7284 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7285 || as_fn_error "could not create -" "$LINENO" 5
7286 fi
7287 ;;
7288
7289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7290 $as_echo "$as_me: executing $ac_file commands" >&6;}
7291 ;;
7292 esac
7293
7294
7295 case $ac_file$ac_mode in
7296 "build-config.h":C) cp config.h build-config.h ;;
7297 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7298
7299 esac
7300 done # for ac_tag
7301
7302
7303 as_fn_exit 0
7304 _ACEOF
7305 ac_clean_files=$ac_clean_files_save
7306
7307 test $ac_write_fail = 0 ||
7308 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7309
7310
7311 # configure is writing to config.log, and then calls config.status.
7312 # config.status does its own redirection, appending to config.log.
7313 # Unfortunately, on DOS this fails, as config.log is still kept open
7314 # by configure, so config.status won't be able to write to it; its
7315 # output is simply discarded. So we exec the FD to /dev/null,
7316 # effectively closing config.log, so it can be properly (re)opened and
7317 # appended to by config.status. When coming back to configure, we
7318 # need to make the FD available again.
7319 if test "$no_create" != yes; then
7320 ac_cs_success=:
7321 ac_config_status_args=
7322 test "$silent" = yes &&
7323 ac_config_status_args="$ac_config_status_args --quiet"
7324 exec 5>/dev/null
7325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7326 exec 5>>config.log
7327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7328 # would make configure fail if this is the last instruction.
7329 $ac_cs_success || as_fn_exit $?
7330 fi
7331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7334 fi
7335