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