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