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