]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/configure
sim: unify toolchain probing logic
[thirdparty/binutils-gdb.git] / sim / mips / 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 if (eval "$as_required") 2>/dev/null; then :
200 as_have_required=yes
201 else
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206 else
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 break 2
224 fi
225 fi
226 done;;
227 esac
228 as_found=false
229 done
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi; }
234 IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265 else
266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267 $0: including any error possibly output before this
268 $0: message. Then install a modern shell, or manually run
269 $0: the script under such a shell if you do have one."
270 fi
271 exit 1
272 fi
273 fi
274 fi
275 SHELL=${CONFIG_SHELL-/bin/sh}
276 export SHELL
277 # Unset more variables known to interfere with behavior of common tools.
278 CLICOLOR_FORCE= GREP_OPTIONS=
279 unset CLICOLOR_FORCE GREP_OPTIONS
280
281 ## --------------------- ##
282 ## M4sh Shell Functions. ##
283 ## --------------------- ##
284 # as_fn_unset VAR
285 # ---------------
286 # Portably unset VAR.
287 as_fn_unset ()
288 {
289 { eval $1=; unset $1;}
290 }
291 as_unset=as_fn_unset
292
293 # as_fn_set_status STATUS
294 # -----------------------
295 # Set $? to STATUS, without forking.
296 as_fn_set_status ()
297 {
298 return $1
299 } # as_fn_set_status
300
301 # as_fn_exit STATUS
302 # -----------------
303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304 as_fn_exit ()
305 {
306 set +e
307 as_fn_set_status $1
308 exit $1
309 } # as_fn_exit
310
311 # as_fn_mkdir_p
312 # -------------
313 # Create "$as_dir" as a directory, including parents if necessary.
314 as_fn_mkdir_p ()
315 {
316
317 case $as_dir in #(
318 -*) as_dir=./$as_dir;;
319 esac
320 test -d "$as_dir" || eval $as_mkdir_p || {
321 as_dirs=
322 while :; do
323 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325 *) as_qdir=$as_dir;;
326 esac
327 as_dirs="'$as_qdir' $as_dirs"
328 as_dir=`$as_dirname -- "$as_dir" ||
329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330 X"$as_dir" : 'X\(//\)[^/]' \| \
331 X"$as_dir" : 'X\(//\)$' \| \
332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333 $as_echo X"$as_dir" |
334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 s//\1/
336 q
337 }
338 /^X\(\/\/\)[^/].*/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\).*/{
347 s//\1/
348 q
349 }
350 s/.*/./; q'`
351 test -d "$as_dir" && break
352 done
353 test -z "$as_dirs" || eval "mkdir $as_dirs"
354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357 } # as_fn_mkdir_p
358
359 # as_fn_executable_p FILE
360 # -----------------------
361 # Test if FILE is an executable regular file.
362 as_fn_executable_p ()
363 {
364 test -f "$1" && test -x "$1"
365 } # as_fn_executable_p
366 # as_fn_append VAR VALUE
367 # ----------------------
368 # Append the text in VALUE to the end of the definition contained in VAR. Take
369 # advantage of any shell optimizations that allow amortized linear growth over
370 # repeated appends, instead of the typical quadratic growth present in naive
371 # implementations.
372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373 eval 'as_fn_append ()
374 {
375 eval $1+=\$2
376 }'
377 else
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 }
382 fi # as_fn_append
383
384 # as_fn_arith ARG...
385 # ------------------
386 # Perform arithmetic evaluation on the ARGs, and store the result in the
387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
388 # must be portable across $(()) and expr.
389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390 eval 'as_fn_arith ()
391 {
392 as_val=$(( $* ))
393 }'
394 else
395 as_fn_arith ()
396 {
397 as_val=`expr "$@" || test $? -eq 1`
398 }
399 fi # as_fn_arith
400
401
402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
403 # ----------------------------------------
404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406 # script with STATUS, using 1 if that was 0.
407 as_fn_error ()
408 {
409 as_status=$1; test $as_status -eq 0 && as_status=1
410 if test "$4"; then
411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413 fi
414 $as_echo "$as_me: error: $2" >&2
415 as_fn_exit $as_status
416 } # as_fn_error
417
418 if expr a : '\(a\)' >/dev/null 2>&1 &&
419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
420 as_expr=expr
421 else
422 as_expr=false
423 fi
424
425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426 as_basename=basename
427 else
428 as_basename=false
429 fi
430
431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432 as_dirname=dirname
433 else
434 as_dirname=false
435 fi
436
437 as_me=`$as_basename -- "$0" ||
438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439 X"$0" : 'X\(//\)$' \| \
440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441 $as_echo X/"$0" |
442 sed '/^.*\/\([^/][^/]*\)\/*$/{
443 s//\1/
444 q
445 }
446 /^X\/\(\/\/\)$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\).*/{
451 s//\1/
452 q
453 }
454 s/.*/./; q'`
455
456 # Avoid depending upon Character Ranges.
457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460 as_cr_digits='0123456789'
461 as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464 as_lineno_1=$LINENO as_lineno_1a=$LINENO
465 as_lineno_2=$LINENO as_lineno_2a=$LINENO
466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
470 p
471 /[$]LINENO/=
472 ' <$as_myself |
473 sed '
474 s/[$]LINENO.*/&-/
475 t lineno
476 b
477 :lineno
478 N
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481 t loop
482 s/-\n.*//
483 ' >$as_me.lineno &&
484 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488 # already done that, so ensure we don't try to do so again and fall
489 # in an infinite loop. This has already happened in practice.
490 _as_can_reexec=no; export _as_can_reexec
491 # Don't try to exec as it changes $[0], causing all sort of problems
492 # (the dirname of $[0] is not the place where we might find the
493 # original and so on. Autoconf is especially sensitive to this).
494 . "./$as_me.lineno"
495 # Exit status is that of the last command.
496 exit
497 }
498
499 ECHO_C= ECHO_N= ECHO_T=
500 case `echo -n x` in #(((((
501 -n*)
502 case `echo 'xy\c'` in
503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 xy) ECHO_C='\c';;
505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506 ECHO_T=' ';;
507 esac;;
508 *)
509 ECHO_N='-n';;
510 esac
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -pR'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -pR'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -pR'
532 fi
533 else
534 as_ln_s='cp -pR'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p='mkdir -p "$as_dir"'
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 as_test_x='test -x'
547 as_executable_p=as_fn_executable_p
548
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556 test -n "$DJDIR" || exec 7<&0 </dev/null
557 exec 6>&1
558
559 # Name of the host.
560 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564 #
565 # Initializations.
566 #
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575
576 # Identity of this package.
577 PACKAGE_NAME=
578 PACKAGE_TARNAME=
579 PACKAGE_VERSION=
580 PACKAGE_STRING=
581 PACKAGE_BUGREPORT=
582 PACKAGE_URL=
583
584 ac_unique_file="Makefile.in"
585 ac_subst_vars='LTLIBOBJS
586 LIBOBJS
587 sim_default_model
588 sim_scache
589 cgen_breaks
590 sim_multi_obj
591 sim_multi_src
592 sim_multi_igen_configs
593 sim_multi_flags
594 sim_gen
595 sim_micromips16_flags
596 sim_micromips_flags
597 sim_m16_flags
598 sim_igen_flags
599 SIM_SUBTARGET
600 MAINT
601 MAINTAINER_MODE_FALSE
602 MAINTAINER_MODE_TRUE
603 CATOBJEXT
604 GENCAT
605 INSTOBJEXT
606 DATADIRNAME
607 CATALOGS
608 POSUB
609 GMSGFMT
610 XGETTEXT
611 INCINTL
612 LIBINTL_DEP
613 LIBINTL
614 USE_NLS
615 CCDEPMODE
616 DEPDIR
617 am__leading_dot
618 INSTALL_DATA
619 INSTALL_SCRIPT
620 INSTALL_PROGRAM
621 OBJEXT
622 EXEEXT
623 ac_ct_CC
624 CPPFLAGS
625 LDFLAGS
626 CFLAGS
627 CC
628 target_alias
629 host_alias
630 build_alias
631 LIBS
632 ECHO_T
633 ECHO_N
634 ECHO_C
635 DEFS
636 mandir
637 localedir
638 libdir
639 psdir
640 pdfdir
641 dvidir
642 htmldir
643 infodir
644 docdir
645 oldincludedir
646 includedir
647 localstatedir
648 sharedstatedir
649 sysconfdir
650 datadir
651 datarootdir
652 libexecdir
653 sbindir
654 bindir
655 program_transform_name
656 prefix
657 exec_prefix
658 PACKAGE_URL
659 PACKAGE_BUGREPORT
660 PACKAGE_STRING
661 PACKAGE_VERSION
662 PACKAGE_TARNAME
663 PACKAGE_NAME
664 PATH_SEPARATOR
665 SHELL
666 sim_reserved_bits
667 sim_inline
668 sim_hw
669 sim_hw_objs
670 sim_hw_cflags
671 sim_float
672 sim_bitsize'
673 ac_subst_files=''
674 ac_user_opts='
675 enable_option_checking
676 enable_maintainer_mode
677 enable_sim_inline
678 enable_sim_reserved_bits
679 enable_sim_bitsize
680 enable_sim_float
681 enable_sim_hardware
682 '
683 ac_precious_vars='build_alias
684 host_alias
685 target_alias
686 CC
687 CFLAGS
688 LDFLAGS
689 LIBS
690 CPPFLAGS'
691
692
693 # Initialize some variables set by options.
694 ac_init_help=
695 ac_init_version=false
696 ac_unrecognized_opts=
697 ac_unrecognized_sep=
698 # The variables have the same names as the options, with
699 # dashes changed to underlines.
700 cache_file=/dev/null
701 exec_prefix=NONE
702 no_create=
703 no_recursion=
704 prefix=NONE
705 program_prefix=NONE
706 program_suffix=NONE
707 program_transform_name=s,x,x,
708 silent=
709 site=
710 srcdir=
711 verbose=
712 x_includes=NONE
713 x_libraries=NONE
714
715 # Installation directory options.
716 # These are left unexpanded so users can "make install exec_prefix=/foo"
717 # and all the variables that are supposed to be based on exec_prefix
718 # by default will actually change.
719 # Use braces instead of parens because sh, perl, etc. also accept them.
720 # (The list follows the same order as the GNU Coding Standards.)
721 bindir='${exec_prefix}/bin'
722 sbindir='${exec_prefix}/sbin'
723 libexecdir='${exec_prefix}/libexec'
724 datarootdir='${prefix}/share'
725 datadir='${datarootdir}'
726 sysconfdir='${prefix}/etc'
727 sharedstatedir='${prefix}/com'
728 localstatedir='${prefix}/var'
729 includedir='${prefix}/include'
730 oldincludedir='/usr/include'
731 docdir='${datarootdir}/doc/${PACKAGE}'
732 infodir='${datarootdir}/info'
733 htmldir='${docdir}'
734 dvidir='${docdir}'
735 pdfdir='${docdir}'
736 psdir='${docdir}'
737 libdir='${exec_prefix}/lib'
738 localedir='${datarootdir}/locale'
739 mandir='${datarootdir}/man'
740
741 ac_prev=
742 ac_dashdash=
743 for ac_option
744 do
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
747 eval $ac_prev=\$ac_option
748 ac_prev=
749 continue
750 fi
751
752 case $ac_option in
753 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *=) ac_optarg= ;;
755 *) ac_optarg=yes ;;
756 esac
757
758 # Accept the important Cygnus configure options, so we can diagnose typos.
759
760 case $ac_dashdash$ac_option in
761 --)
762 ac_dashdash=yes ;;
763
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
765 ac_prev=bindir ;;
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767 bindir=$ac_optarg ;;
768
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
773
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
780
781 --config-cache | -C)
782 cache_file=config.cache ;;
783
784 -datadir | --datadir | --datadi | --datad)
785 ac_prev=datadir ;;
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
788
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
795
796 -disable-* | --disable-*)
797 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
800 as_fn_error $? "invalid feature name: $ac_useropt"
801 ac_useropt_orig=$ac_useropt
802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
803 case $ac_user_opts in
804 *"
805 "enable_$ac_useropt"
806 "*) ;;
807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
808 ac_unrecognized_sep=', ';;
809 esac
810 eval enable_$ac_useropt=no ;;
811
812 -docdir | --docdir | --docdi | --doc | --do)
813 ac_prev=docdir ;;
814 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 docdir=$ac_optarg ;;
816
817 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
818 ac_prev=dvidir ;;
819 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 dvidir=$ac_optarg ;;
821
822 -enable-* | --enable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=\$ac_optarg ;;
837
838 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840 | --exec | --exe | --ex)
841 ac_prev=exec_prefix ;;
842 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844 | --exec=* | --exe=* | --ex=*)
845 exec_prefix=$ac_optarg ;;
846
847 -gas | --gas | --ga | --g)
848 # Obsolete; use --with-gas.
849 with_gas=yes ;;
850
851 -help | --help | --hel | --he | -h)
852 ac_init_help=long ;;
853 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854 ac_init_help=recursive ;;
855 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856 ac_init_help=short ;;
857
858 -host | --host | --hos | --ho)
859 ac_prev=host_alias ;;
860 -host=* | --host=* | --hos=* | --ho=*)
861 host_alias=$ac_optarg ;;
862
863 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864 ac_prev=htmldir ;;
865 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866 | --ht=*)
867 htmldir=$ac_optarg ;;
868
869 -includedir | --includedir | --includedi | --included | --include \
870 | --includ | --inclu | --incl | --inc)
871 ac_prev=includedir ;;
872 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873 | --includ=* | --inclu=* | --incl=* | --inc=*)
874 includedir=$ac_optarg ;;
875
876 -infodir | --infodir | --infodi | --infod | --info | --inf)
877 ac_prev=infodir ;;
878 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879 infodir=$ac_optarg ;;
880
881 -libdir | --libdir | --libdi | --libd)
882 ac_prev=libdir ;;
883 -libdir=* | --libdir=* | --libdi=* | --libd=*)
884 libdir=$ac_optarg ;;
885
886 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887 | --libexe | --libex | --libe)
888 ac_prev=libexecdir ;;
889 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890 | --libexe=* | --libex=* | --libe=*)
891 libexecdir=$ac_optarg ;;
892
893 -localedir | --localedir | --localedi | --localed | --locale)
894 ac_prev=localedir ;;
895 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896 localedir=$ac_optarg ;;
897
898 -localstatedir | --localstatedir | --localstatedi | --localstated \
899 | --localstate | --localstat | --localsta | --localst | --locals)
900 ac_prev=localstatedir ;;
901 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
902 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
903 localstatedir=$ac_optarg ;;
904
905 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906 ac_prev=mandir ;;
907 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908 mandir=$ac_optarg ;;
909
910 -nfp | --nfp | --nf)
911 # Obsolete; use --without-fp.
912 with_fp=no ;;
913
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915 | --no-cr | --no-c | -n)
916 no_create=yes ;;
917
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 no_recursion=yes ;;
921
922 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924 | --oldin | --oldi | --old | --ol | --o)
925 ac_prev=oldincludedir ;;
926 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929 oldincludedir=$ac_optarg ;;
930
931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932 ac_prev=prefix ;;
933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934 prefix=$ac_optarg ;;
935
936 -program-prefix | --program-prefix | --program-prefi | --program-pref \
937 | --program-pre | --program-pr | --program-p)
938 ac_prev=program_prefix ;;
939 -program-prefix=* | --program-prefix=* | --program-prefi=* \
940 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941 program_prefix=$ac_optarg ;;
942
943 -program-suffix | --program-suffix | --program-suffi | --program-suff \
944 | --program-suf | --program-su | --program-s)
945 ac_prev=program_suffix ;;
946 -program-suffix=* | --program-suffix=* | --program-suffi=* \
947 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948 program_suffix=$ac_optarg ;;
949
950 -program-transform-name | --program-transform-name \
951 | --program-transform-nam | --program-transform-na \
952 | --program-transform-n | --program-transform- \
953 | --program-transform | --program-transfor \
954 | --program-transfo | --program-transf \
955 | --program-trans | --program-tran \
956 | --progr-tra | --program-tr | --program-t)
957 ac_prev=program_transform_name ;;
958 -program-transform-name=* | --program-transform-name=* \
959 | --program-transform-nam=* | --program-transform-na=* \
960 | --program-transform-n=* | --program-transform-=* \
961 | --program-transform=* | --program-transfor=* \
962 | --program-transfo=* | --program-transf=* \
963 | --program-trans=* | --program-tran=* \
964 | --progr-tra=* | --program-tr=* | --program-t=*)
965 program_transform_name=$ac_optarg ;;
966
967 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968 ac_prev=pdfdir ;;
969 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 pdfdir=$ac_optarg ;;
971
972 -psdir | --psdir | --psdi | --psd | --ps)
973 ac_prev=psdir ;;
974 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 psdir=$ac_optarg ;;
976
977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978 | -silent | --silent | --silen | --sile | --sil)
979 silent=yes ;;
980
981 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982 ac_prev=sbindir ;;
983 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984 | --sbi=* | --sb=*)
985 sbindir=$ac_optarg ;;
986
987 -sharedstatedir | --sharedstatedir | --sharedstatedi \
988 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989 | --sharedst | --shareds | --shared | --share | --shar \
990 | --sha | --sh)
991 ac_prev=sharedstatedir ;;
992 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995 | --sha=* | --sh=*)
996 sharedstatedir=$ac_optarg ;;
997
998 -site | --site | --sit)
999 ac_prev=site ;;
1000 -site=* | --site=* | --sit=*)
1001 site=$ac_optarg ;;
1002
1003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004 ac_prev=srcdir ;;
1005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006 srcdir=$ac_optarg ;;
1007
1008 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009 | --syscon | --sysco | --sysc | --sys | --sy)
1010 ac_prev=sysconfdir ;;
1011 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013 sysconfdir=$ac_optarg ;;
1014
1015 -target | --target | --targe | --targ | --tar | --ta | --t)
1016 ac_prev=target_alias ;;
1017 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018 target_alias=$ac_optarg ;;
1019
1020 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 verbose=yes ;;
1022
1023 -version | --version | --versio | --versi | --vers | -V)
1024 ac_init_version=: ;;
1025
1026 -with-* | --with-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid package name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "with_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval with_$ac_useropt=\$ac_optarg ;;
1041
1042 -without-* | --without-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid package name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "with_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval with_$ac_useropt=no ;;
1057
1058 --x)
1059 # Obsolete; use --with-x.
1060 with_x=yes ;;
1061
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes=$ac_optarg ;;
1068
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries=$ac_optarg ;;
1075
1076 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1077 Try \`$0 --help' for more information"
1078 ;;
1079
1080 *=*)
1081 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1082 # Reject names that are not valid shell variable names.
1083 case $ac_envvar in #(
1084 '' | [0-9]* | *[!_$as_cr_alnum]* )
1085 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1086 esac
1087 eval $ac_envvar=\$ac_optarg
1088 export $ac_envvar ;;
1089
1090 *)
1091 # FIXME: should be removed in autoconf 3.0.
1092 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1096 ;;
1097
1098 esac
1099 done
1100
1101 if test -n "$ac_prev"; then
1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103 as_fn_error $? "missing argument to $ac_option"
1104 fi
1105
1106 if test -n "$ac_unrecognized_opts"; then
1107 case $enable_option_checking in
1108 no) ;;
1109 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1110 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1111 esac
1112 fi
1113
1114 # Check all directory arguments for consistency.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1119 do
1120 eval ac_val=\$$ac_var
1121 # Remove trailing slashes.
1122 case $ac_val in
1123 */ )
1124 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1125 eval $ac_var=\$ac_val;;
1126 esac
1127 # Be sure to have absolute directory names.
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1133 done
1134
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1141
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149 fi
1150
1151 ac_tool_prefix=
1152 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154 test "$silent" = yes && exec 6>/dev/null
1155
1156
1157 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158 ac_ls_di=`ls -di .` &&
1159 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 as_fn_error $? "working directory cannot be determined"
1161 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1162 as_fn_error $? "pwd does not report name of working directory"
1163
1164
1165 # Find the source files, if location was not specified.
1166 if test -z "$srcdir"; then
1167 ac_srcdir_defaulted=yes
1168 # Try the directory containing this script, then the parent directory.
1169 ac_confdir=`$as_dirname -- "$as_myself" ||
1170 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171 X"$as_myself" : 'X\(//\)[^/]' \| \
1172 X"$as_myself" : 'X\(//\)$' \| \
1173 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1174 $as_echo X"$as_myself" |
1175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\/\)[^/].*/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\).*/{
1188 s//\1/
1189 q
1190 }
1191 s/.*/./; q'`
1192 srcdir=$ac_confdir
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194 srcdir=..
1195 fi
1196 else
1197 ac_srcdir_defaulted=no
1198 fi
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1201 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1202 fi
1203 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 ac_abs_confdir=`(
1205 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1206 pwd)`
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 srcdir=.
1210 fi
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1214 case $srcdir in
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 esac
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1222 done
1223
1224 #
1225 # Report the --help message.
1226 #
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1230 cat <<_ACEOF
1231 \`configure' configures this package to adapt to many kinds of systems.
1232
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1234
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1237
1238 Defaults for the options are specified in brackets.
1239
1240 Configuration:
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking ...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1255 [PREFIX]
1256
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1261
1262 For better control, use the options below.
1263
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1284 _ACEOF
1285
1286 cat <<\_ACEOF
1287 _ACEOF
1288 fi
1289
1290 if test -n "$ac_init_help"; then
1291
1292 cat <<\_ACEOF
1293
1294 Optional Features:
1295 --disable-option-checking ignore unrecognized --enable/--with options
1296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1298 --enable-maintainer-mode
1299 enable make rules and dependencies not useful (and
1300 sometimes confusing) to the casual installer
1301 --enable-sim-inline=inlines
1302 Specify which functions should be inlined
1303 --enable-sim-reserved-bits
1304 Specify whether to check reserved bits in
1305 instruction
1306 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1307 --enable-sim-float Specify that the target processor has floating point
1308 hardware
1309 --enable-sim-hardware=LIST
1310 Specify the hardware to be included in the build.
1311
1312 Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
1317 LIBS libraries to pass to the linker, e.g. -l<library>
1318 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1319 you have headers in a nonstandard directory <include dir>
1320
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1323
1324 Report bugs to the package provider.
1325 _ACEOF
1326 ac_status=$?
1327 fi
1328
1329 if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332 test -d "$ac_dir" ||
1333 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1334 continue
1335 ac_builddir=.
1336
1337 case "$ac_dir" in
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339 *)
1340 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 esac ;;
1347 esac
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1352
1353 case $srcdir in
1354 .) # We are building in place.
1355 ac_srcdir=.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1362 *) # Relative name.
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366 esac
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1368
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1372 echo &&
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1377 else
1378 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379 fi || ac_status=$?
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1381 done
1382 fi
1383
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1386 cat <<\_ACEOF
1387 configure
1388 generated by GNU Autoconf 2.69
1389
1390 Copyright (C) 2012 Free Software Foundation, Inc.
1391 This configure script is free software; the Free Software Foundation
1392 gives unlimited permission to copy, distribute and modify it.
1393 _ACEOF
1394 exit
1395 fi
1396
1397 ## ------------------------ ##
1398 ## Autoconf initialization. ##
1399 ## ------------------------ ##
1400
1401 # ac_fn_c_try_compile LINENO
1402 # --------------------------
1403 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1404 ac_fn_c_try_compile ()
1405 {
1406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407 rm -f conftest.$ac_objext
1408 if { { ac_try="$ac_compile"
1409 case "(($ac_try" in
1410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411 *) ac_try_echo=$ac_try;;
1412 esac
1413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414 $as_echo "$ac_try_echo"; } >&5
1415 (eval "$ac_compile") 2>conftest.err
1416 ac_status=$?
1417 if test -s conftest.err; then
1418 grep -v '^ *+' conftest.err >conftest.er1
1419 cat conftest.er1 >&5
1420 mv -f conftest.er1 conftest.err
1421 fi
1422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423 test $ac_status = 0; } && {
1424 test -z "$ac_c_werror_flag" ||
1425 test ! -s conftest.err
1426 } && test -s conftest.$ac_objext; then :
1427 ac_retval=0
1428 else
1429 $as_echo "$as_me: failed program was:" >&5
1430 sed 's/^/| /' conftest.$ac_ext >&5
1431
1432 ac_retval=1
1433 fi
1434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1435 as_fn_set_status $ac_retval
1436
1437 } # ac_fn_c_try_compile
1438 cat >config.log <<_ACEOF
1439 This file contains any messages produced by compilers while
1440 running configure, to aid debugging if configure makes a mistake.
1441
1442 It was created by $as_me, which was
1443 generated by GNU Autoconf 2.69. Invocation command line was
1444
1445 $ $0 $@
1446
1447 _ACEOF
1448 exec 5>>config.log
1449 {
1450 cat <<_ASUNAME
1451 ## --------- ##
1452 ## Platform. ##
1453 ## --------- ##
1454
1455 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1456 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1457 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1458 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1459 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460
1461 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1462 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463
1464 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1465 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1466 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1467 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1468 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1469 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1470 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471
1472 _ASUNAME
1473
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 $as_echo "PATH: $as_dir"
1480 done
1481 IFS=$as_save_IFS
1482
1483 } >&5
1484
1485 cat >&5 <<_ACEOF
1486
1487
1488 ## ----------- ##
1489 ## Core tests. ##
1490 ## ----------- ##
1491
1492 _ACEOF
1493
1494
1495 # Keep a trace of the command line.
1496 # Strip out --no-create and --no-recursion so they do not pile up.
1497 # Strip out --silent because we don't want to record it for future runs.
1498 # Also quote any args containing shell meta-characters.
1499 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_configure_args=
1501 ac_configure_args0=
1502 ac_configure_args1=
1503 ac_must_keep_next=false
1504 for ac_pass in 1 2
1505 do
1506 for ac_arg
1507 do
1508 case $ac_arg in
1509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 continue ;;
1513 *\'*)
1514 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 esac
1516 case $ac_pass in
1517 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1518 2)
1519 as_fn_append ac_configure_args1 " '$ac_arg'"
1520 if test $ac_must_keep_next = true; then
1521 ac_must_keep_next=false # Got value, back to normal.
1522 else
1523 case $ac_arg in
1524 *=* | --config-cache | -C | -disable-* | --disable-* \
1525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1527 | -with-* | --with-* | -without-* | --without-* | --x)
1528 case "$ac_configure_args0 " in
1529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 esac
1531 ;;
1532 -* ) ac_must_keep_next=true ;;
1533 esac
1534 fi
1535 as_fn_append ac_configure_args " '$ac_arg'"
1536 ;;
1537 esac
1538 done
1539 done
1540 { ac_configure_args0=; unset ac_configure_args0;}
1541 { ac_configure_args1=; unset ac_configure_args1;}
1542
1543 # When interrupted or exit'd, cleanup temporary files, and complete
1544 # config.log. We remove comments because anyway the quotes in there
1545 # would cause problems or look ugly.
1546 # WARNING: Use '\'' to represent an apostrophe within the trap.
1547 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1548 trap 'exit_status=$?
1549 # Save into config.log some information that might help in debugging.
1550 {
1551 echo
1552
1553 $as_echo "## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##"
1556 echo
1557 # The following way of writing the cache mishandles newlines in values,
1558 (
1559 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1560 eval ac_val=\$$ac_var
1561 case $ac_val in #(
1562 *${as_nl}*)
1563 case $ac_var in #(
1564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1565 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1566 esac
1567 case $ac_var in #(
1568 _ | IFS | as_nl) ;; #(
1569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1570 *) { eval $ac_var=; unset $ac_var;} ;;
1571 esac ;;
1572 esac
1573 done
1574 (set) 2>&1 |
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1577 sed -n \
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
1581 *)
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1583 ;;
1584 esac |
1585 sort
1586 )
1587 echo
1588
1589 $as_echo "## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##"
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 $as_echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
1604 $as_echo "## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##"
1607 echo
1608 for ac_var in $ac_subst_files
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 $as_echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617 fi
1618
1619 if test -s confdefs.h; then
1620 $as_echo "## ----------- ##
1621 ## confdefs.h. ##
1622 ## ----------- ##"
1623 echo
1624 cat confdefs.h
1625 echo
1626 fi
1627 test "$ac_signal" != 0 &&
1628 $as_echo "$as_me: caught signal $ac_signal"
1629 $as_echo "$as_me: exit $exit_status"
1630 } >&5
1631 rm -f core *.core core.conftest.* &&
1632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1633 exit $exit_status
1634 ' 0
1635 for ac_signal in 1 2 13 15; do
1636 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1637 done
1638 ac_signal=0
1639
1640 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1641 rm -f -r conftest* confdefs.h
1642
1643 $as_echo "/* confdefs.h */" > confdefs.h
1644
1645 # Predefined preprocessor variables.
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_NAME "$PACKAGE_NAME"
1649 _ACEOF
1650
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1653 _ACEOF
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1657 _ACEOF
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_STRING "$PACKAGE_STRING"
1661 _ACEOF
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1665 _ACEOF
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_URL "$PACKAGE_URL"
1669 _ACEOF
1670
1671
1672 # Let the site file select an alternate cache file if it wants to.
1673 # Prefer an explicitly selected file to automatically selected ones.
1674 ac_site_file1=NONE
1675 ac_site_file2=NONE
1676 if test -n "$CONFIG_SITE"; then
1677 # We do not want a PATH search for config.site.
1678 case $CONFIG_SITE in #((
1679 -*) ac_site_file1=./$CONFIG_SITE;;
1680 */*) ac_site_file1=$CONFIG_SITE;;
1681 *) ac_site_file1=./$CONFIG_SITE;;
1682 esac
1683 elif test "x$prefix" != xNONE; then
1684 ac_site_file1=$prefix/share/config.site
1685 ac_site_file2=$prefix/etc/config.site
1686 else
1687 ac_site_file1=$ac_default_prefix/share/config.site
1688 ac_site_file2=$ac_default_prefix/etc/config.site
1689 fi
1690 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1691 do
1692 test "x$ac_site_file" = xNONE && continue
1693 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1695 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1697 . "$ac_site_file" \
1698 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1700 as_fn_error $? "failed to load site script $ac_site_file
1701 See \`config.log' for more details" "$LINENO" 5; }
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special files
1707 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1708 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1710 $as_echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1718 $as_echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 # Check that the precious variables saved in the cache have kept the same
1723 # value.
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1731 set,)
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,set)
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1737 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,);;
1740 *)
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 # differences in whitespace do not lead to failure.
1743 ac_old_val_w=`echo x $ac_old_val`
1744 ac_new_val_w=`echo x $ac_new_val`
1745 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1747 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1748 ac_cache_corrupted=:
1749 else
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1751 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1752 eval $ac_var=\$ac_old_val
1753 fi
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1755 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1757 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
1763 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1769 esac
1770 fi
1771 done
1772 if $ac_cache_corrupted; then
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1776 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1778 fi
1779 ## -------------------- ##
1780 ## Main body of script. ##
1781 ## -------------------- ##
1782
1783 ac_ext=c
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788
1789
1790
1791
1792
1793
1794
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1804 $as_echo_n "checking for $ac_word... " >&6; }
1805 if ${ac_cv_prog_CC+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822 done
1823 done
1824 IFS=$as_save_IFS
1825
1826 fi
1827 fi
1828 CC=$ac_cv_prog_CC
1829 if test -n "$CC"; then
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1831 $as_echo "$CC" >&6; }
1832 else
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1834 $as_echo "no" >&6; }
1835 fi
1836
1837
1838 fi
1839 if test -z "$ac_cv_prog_CC"; then
1840 ac_ct_CC=$CC
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1844 $as_echo_n "checking for $ac_word... " >&6; }
1845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1861 fi
1862 done
1863 done
1864 IFS=$as_save_IFS
1865
1866 fi
1867 fi
1868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869 if test -n "$ac_ct_CC"; then
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1871 $as_echo "$ac_ct_CC" >&6; }
1872 else
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1874 $as_echo "no" >&6; }
1875 fi
1876
1877 if test "x$ac_ct_CC" = x; then
1878 CC=""
1879 else
1880 case $cross_compiling:$ac_tool_warned in
1881 yes:)
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1884 ac_tool_warned=yes ;;
1885 esac
1886 CC=$ac_ct_CC
1887 fi
1888 else
1889 CC="$ac_cv_prog_CC"
1890 fi
1891
1892 if test -z "$CC"; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}cc; ac_word=$2
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1897 $as_echo_n "checking for $ac_word... " >&6; }
1898 if ${ac_cv_prog_CC+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 else
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_CC="${ac_tool_prefix}cc"
1912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915 done
1916 done
1917 IFS=$as_save_IFS
1918
1919 fi
1920 fi
1921 CC=$ac_cv_prog_CC
1922 if test -n "$CC"; then
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1924 $as_echo "$CC" >&6; }
1925 else
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1927 $as_echo "no" >&6; }
1928 fi
1929
1930
1931 fi
1932 fi
1933 if test -z "$CC"; then
1934 # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1937 $as_echo_n "checking for $ac_word... " >&6; }
1938 if ${ac_cv_prog_CC+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 ac_prog_rejected=no
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1953 ac_prog_rejected=yes
1954 continue
1955 fi
1956 ac_cv_prog_CC="cc"
1957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1959 fi
1960 done
1961 done
1962 IFS=$as_save_IFS
1963
1964 if test $ac_prog_rejected = yes; then
1965 # We found a bogon in the path, so make sure we never use it.
1966 set dummy $ac_cv_prog_CC
1967 shift
1968 if test $# != 0; then
1969 # We chose a different compiler from the bogus one.
1970 # However, it has the same basename, so the bogon will be chosen
1971 # first if we set CC to just the basename; use the full file name.
1972 shift
1973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1974 fi
1975 fi
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1981 $as_echo "$CC" >&6; }
1982 else
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1984 $as_echo "no" >&6; }
1985 fi
1986
1987
1988 fi
1989 if test -z "$CC"; then
1990 if test -n "$ac_tool_prefix"; then
1991 for ac_prog in cl.exe
1992 do
1993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1996 $as_echo_n "checking for $ac_word... " >&6; }
1997 if ${ac_cv_prog_CC+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2013 fi
2014 done
2015 done
2016 IFS=$as_save_IFS
2017
2018 fi
2019 fi
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2023 $as_echo "$CC" >&6; }
2024 else
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2026 $as_echo "no" >&6; }
2027 fi
2028
2029
2030 test -n "$CC" && break
2031 done
2032 fi
2033 if test -z "$CC"; then
2034 ac_ct_CC=$CC
2035 for ac_prog in cl.exe
2036 do
2037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2038 set dummy $ac_prog; ac_word=$2
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2040 $as_echo_n "checking for $ac_word... " >&6; }
2041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 if test -n "$ac_ct_CC"; then
2045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_ac_ct_CC="$ac_prog"
2055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058 done
2059 done
2060 IFS=$as_save_IFS
2061
2062 fi
2063 fi
2064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065 if test -n "$ac_ct_CC"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2067 $as_echo "$ac_ct_CC" >&6; }
2068 else
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2070 $as_echo "no" >&6; }
2071 fi
2072
2073
2074 test -n "$ac_ct_CC" && break
2075 done
2076
2077 if test "x$ac_ct_CC" = x; then
2078 CC=""
2079 else
2080 case $cross_compiling:$ac_tool_warned in
2081 yes:)
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2084 ac_tool_warned=yes ;;
2085 esac
2086 CC=$ac_ct_CC
2087 fi
2088 fi
2089
2090 fi
2091
2092
2093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 as_fn_error $? "no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details" "$LINENO" 5; }
2097
2098 # Provide some information about the compiler.
2099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2100 set X $ac_compile
2101 ac_compiler=$2
2102 for ac_option in --version -v -V -qversion; do
2103 { { ac_try="$ac_compiler $ac_option >&5"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 sed '10a\
2114 ... rest of stderr output deleted ...
2115 10q' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 fi
2118 rm -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; }
2121 done
2122
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125
2126 int
2127 main ()
2128 {
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2138 # of exeext.
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2140 $as_echo_n "checking whether the C compiler works... " >&6; }
2141 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142
2143 # The possible output files:
2144 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2145
2146 ac_rmfiles=
2147 for ac_file in $ac_files
2148 do
2149 case $ac_file in
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152 esac
2153 done
2154 rm -f $ac_rmfiles
2155
2156 if { { ac_try="$ac_link_default"
2157 case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_link_default") 2>&5
2164 ac_status=$?
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; }; then :
2167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2169 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2170 # so that the user can short-circuit this test for compilers unknown to
2171 # Autoconf.
2172 for ac_file in $ac_files ''
2173 do
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2177 ;;
2178 [ab].out )
2179 # We found the default executable, but exeext='' is most
2180 # certainly right.
2181 break;;
2182 *.* )
2183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2184 then :; else
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 fi
2187 # We set ac_cv_exeext here because the later test for it is not
2188 # safe: cross compilers may not add the suffix if given an `-o'
2189 # argument, so we may need to know it at that point already.
2190 # Even if this section looks crufty: it has the advantage of
2191 # actually working.
2192 break;;
2193 * )
2194 break;;
2195 esac
2196 done
2197 test "$ac_cv_exeext" = no && ac_cv_exeext=
2198
2199 else
2200 ac_file=''
2201 fi
2202 if test -z "$ac_file"; then :
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2204 $as_echo "no" >&6; }
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error 77 "C compiler cannot create executables
2211 See \`config.log' for more details" "$LINENO" 5; }
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2214 $as_echo "yes" >&6; }
2215 fi
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2217 $as_echo_n "checking for C compiler default output file name... " >&6; }
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2219 $as_echo "$ac_file" >&6; }
2220 ac_exeext=$ac_cv_exeext
2221
2222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2223 ac_clean_files=$ac_clean_files_save
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2225 $as_echo_n "checking for suffix of executables... " >&6; }
2226 if { { ac_try="$ac_link"
2227 case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_link") 2>&5
2234 ac_status=$?
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; }; then :
2237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2239 # work properly (i.e., refer to `conftest.exe'), while it won't with
2240 # `rm'.
2241 for ac_file in conftest.exe conftest conftest.*; do
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246 break;;
2247 * ) break;;
2248 esac
2249 done
2250 else
2251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2254 See \`config.log' for more details" "$LINENO" 5; }
2255 fi
2256 rm -f conftest conftest$ac_cv_exeext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2258 $as_echo "$ac_cv_exeext" >&6; }
2259
2260 rm -f conftest.$ac_ext
2261 EXEEXT=$ac_cv_exeext
2262 ac_exeext=$EXEEXT
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 #include <stdio.h>
2266 int
2267 main ()
2268 {
2269 FILE *f = fopen ("conftest.out", "w");
2270 return ferror (f) || fclose (f) != 0;
2271
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 ac_clean_files="$ac_clean_files conftest.out"
2277 # Check that the compiler produces executables we can run. If not, either
2278 # the compiler is broken, or we cross compile.
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2280 $as_echo_n "checking whether we are cross compiling... " >&6; }
2281 if test "$cross_compiling" != yes; then
2282 { { ac_try="$ac_link"
2283 case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289 (eval "$ac_link") 2>&5
2290 ac_status=$?
2291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292 test $ac_status = 0; }
2293 if { ac_try='./conftest$ac_cv_exeext'
2294 { { case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297 esac
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_try") 2>&5
2301 ac_status=$?
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; }; }; then
2304 cross_compiling=no
2305 else
2306 if test "$cross_compiling" = maybe; then
2307 cross_compiling=yes
2308 else
2309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 as_fn_error $? "cannot run C compiled programs.
2312 If you meant to cross compile, use \`--host'.
2313 See \`config.log' for more details" "$LINENO" 5; }
2314 fi
2315 fi
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2318 $as_echo "$cross_compiling" >&6; }
2319
2320 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2321 ac_clean_files=$ac_clean_files_save
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2323 $as_echo_n "checking for suffix of object files... " >&6; }
2324 if ${ac_cv_objext+:} false; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329
2330 int
2331 main ()
2332 {
2333
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 rm -f conftest.o conftest.obj
2339 if { { ac_try="$ac_compile"
2340 case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343 esac
2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345 $as_echo "$ac_try_echo"; } >&5
2346 (eval "$ac_compile") 2>&5
2347 ac_status=$?
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; }; then :
2350 for ac_file in conftest.o conftest.obj conftest.*; do
2351 test -f "$ac_file" || continue;
2352 case $ac_file in
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355 break;;
2356 esac
2357 done
2358 else
2359 $as_echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 as_fn_error $? "cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details" "$LINENO" 5; }
2366 fi
2367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2370 $as_echo "$ac_cv_objext" >&6; }
2371 OBJEXT=$ac_cv_objext
2372 ac_objext=$OBJEXT
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2374 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2375 if ${ac_cv_c_compiler_gnu+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2380
2381 int
2382 main ()
2383 {
2384 #ifndef __GNUC__
2385 choke me
2386 #endif
2387
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_compiler_gnu=yes
2394 else
2395 ac_compiler_gnu=no
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399
2400 fi
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2402 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2403 if test $ac_compiler_gnu = yes; then
2404 GCC=yes
2405 else
2406 GCC=
2407 fi
2408 ac_test_CFLAGS=${CFLAGS+set}
2409 ac_save_CFLAGS=$CFLAGS
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2411 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2412 if ${ac_cv_prog_cc_g+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 ac_save_c_werror_flag=$ac_c_werror_flag
2416 ac_c_werror_flag=yes
2417 ac_cv_prog_cc_g=no
2418 CFLAGS="-g"
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421
2422 int
2423 main ()
2424 {
2425
2426 ;
2427 return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 ac_cv_prog_cc_g=yes
2432 else
2433 CFLAGS=""
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436
2437 int
2438 main ()
2439 {
2440
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446
2447 else
2448 ac_c_werror_flag=$ac_save_c_werror_flag
2449 CFLAGS="-g"
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2452
2453 int
2454 main ()
2455 {
2456
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_cv_prog_cc_g=yes
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 ac_c_werror_flag=$ac_save_c_werror_flag
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2472 $as_echo "$ac_cv_prog_cc_g" >&6; }
2473 if test "$ac_test_CFLAGS" = set; then
2474 CFLAGS=$ac_save_CFLAGS
2475 elif test $ac_cv_prog_cc_g = yes; then
2476 if test "$GCC" = yes; then
2477 CFLAGS="-g -O2"
2478 else
2479 CFLAGS="-g"
2480 fi
2481 else
2482 if test "$GCC" = yes; then
2483 CFLAGS="-O2"
2484 else
2485 CFLAGS=
2486 fi
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2489 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2490 if ${ac_cv_prog_cc_c89+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 ac_cv_prog_cc_c89=no
2494 ac_save_CC=$CC
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2497 #include <stdarg.h>
2498 #include <stdio.h>
2499 struct stat;
2500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2501 struct buf { int x; };
2502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503 static char *e (p, i)
2504 char **p;
2505 int i;
2506 {
2507 return p[i];
2508 }
2509 static char *f (char * (*g) (char **, int), char **p, ...)
2510 {
2511 char *s;
2512 va_list v;
2513 va_start (v,p);
2514 s = g (p, va_arg (v,int));
2515 va_end (v);
2516 return s;
2517 }
2518
2519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2520 function prototypes and stuff, but not '\xHH' hex character constants.
2521 These don't provoke an error unfortunately, instead are silently treated
2522 as 'x'. The following induces an error, until -std is added to get
2523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2524 array size at least. It's necessary to write '\x00'==0 to get something
2525 that's true only with -std. */
2526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527
2528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2529 inside strings and character constants. */
2530 #define FOO(x) 'x'
2531 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2532
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537 int argc;
2538 char **argv;
2539 int
2540 main ()
2541 {
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550 CC="$ac_save_CC $ac_arg"
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552 ac_cv_prog_cc_c89=$ac_arg
2553 fi
2554 rm -f core conftest.err conftest.$ac_objext
2555 test "x$ac_cv_prog_cc_c89" != "xno" && break
2556 done
2557 rm -f conftest.$ac_ext
2558 CC=$ac_save_CC
2559
2560 fi
2561 # AC_CACHE_VAL
2562 case "x$ac_cv_prog_cc_c89" in
2563 x)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2565 $as_echo "none needed" >&6; } ;;
2566 xno)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2568 $as_echo "unsupported" >&6; } ;;
2569 *)
2570 CC="$CC $ac_cv_prog_cc_c89"
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2572 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2573 esac
2574 if test "x$ac_cv_prog_cc_c89" != xno; then :
2575
2576 fi
2577
2578 ac_ext=c
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
2584 ac_aux_dir=
2585 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2586 if test -f "$ac_dir/install-sh"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/install-sh -c"
2589 break
2590 elif test -f "$ac_dir/install.sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install.sh -c"
2593 break
2594 elif test -f "$ac_dir/shtool"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/shtool install -c"
2597 break
2598 fi
2599 done
2600 if test -z "$ac_aux_dir"; then
2601 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2602 fi
2603
2604 # These three variables are undocumented and unsupported,
2605 # and are intended to be withdrawn in a future Autoconf release.
2606 # They can cause serious problems if a builder's source tree is in a directory
2607 # whose full name contains unusual characters.
2608 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2609 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2610 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2611
2612
2613 # Find a good install program. We prefer a C program (faster),
2614 # so one script is as good as another. But avoid the broken or
2615 # incompatible versions:
2616 # SysV /etc/install, /usr/sbin/install
2617 # SunOS /usr/etc/install
2618 # IRIX /sbin/install
2619 # AIX /bin/install
2620 # AmigaOS /C/install, which installs bootblocks on floppy discs
2621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624 # OS/2's system install, which has a completely different semantic
2625 # ./install, which can be erroneously created by make from ./install.sh.
2626 # Reject install programs that cannot install multiple files.
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2629 if test -z "$INSTALL"; then
2630 if ${ac_cv_path_install+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 # Account for people who put trailing slashes in PATH elements.
2639 case $as_dir/ in #((
2640 ./ | .// | /[cC]/* | \
2641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643 /usr/ucb/* ) ;;
2644 *)
2645 # OSF1 and SCO ODT 3.0 have their own names for install.
2646 # Don't use installbsd from OSF since it installs stuff as root
2647 # by default.
2648 for ac_prog in ginstall scoinst install; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2651 if test $ac_prog = install &&
2652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653 # AIX install. It has an incompatible calling convention.
2654 :
2655 elif test $ac_prog = install &&
2656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657 # program-specific install script used by HP pwplus--don't use.
2658 :
2659 else
2660 rm -rf conftest.one conftest.two conftest.dir
2661 echo one > conftest.one
2662 echo two > conftest.two
2663 mkdir conftest.dir
2664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665 test -s conftest.one && test -s conftest.two &&
2666 test -s conftest.dir/conftest.one &&
2667 test -s conftest.dir/conftest.two
2668 then
2669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670 break 3
2671 fi
2672 fi
2673 fi
2674 done
2675 done
2676 ;;
2677 esac
2678
2679 done
2680 IFS=$as_save_IFS
2681
2682 rm -rf conftest.one conftest.two conftest.dir
2683
2684 fi
2685 if test "${ac_cv_path_install+set}" = set; then
2686 INSTALL=$ac_cv_path_install
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for INSTALL within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 INSTALL=$ac_install_sh
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696 $as_echo "$INSTALL" >&6; }
2697
2698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699 # It thinks the first close brace ends the variable substitution.
2700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706 rm -rf .tst 2>/dev/null
2707 mkdir .tst 2>/dev/null
2708 if test -d .tst; then
2709 am__leading_dot=.
2710 else
2711 am__leading_dot=_
2712 fi
2713 rmdir .tst 2>/dev/null
2714
2715 DEPDIR="${am__leading_dot}deps"
2716
2717 # Dependency checking.
2718
2719
2720 ac_config_commands="$ac_config_commands depdir"
2721
2722
2723 depcc="$CC" am_compiler_list=
2724
2725 am_depcomp=$ac_aux_dir/depcomp
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2727 $as_echo_n "checking dependency style of $depcc... " >&6; }
2728 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -f "$am_depcomp"; then
2732 # We make a subdir and do the tests there. Otherwise we can end up
2733 # making bogus files that we don't know about and never remove. For
2734 # instance it was reported that on HP-UX the gcc test will end up
2735 # making a dummy file named `D' -- because `-MD' means `put the output
2736 # in D'.
2737 mkdir conftest.dir
2738 # Copy depcomp to subdir because otherwise we won't find it if we're
2739 # using a relative directory.
2740 cp "$am_depcomp" conftest.dir
2741 cd conftest.dir
2742 # We will build objects and dependencies in a subdirectory because
2743 # it helps to detect inapplicable dependency modes. For instance
2744 # both Tru64's cc and ICC support -MD to output dependencies as a
2745 # side effect of compilation, but ICC will put the dependencies in
2746 # the current directory while Tru64 will put them in the object
2747 # directory.
2748 mkdir sub
2749
2750 am_cv_CC_dependencies_compiler_type=none
2751 if test "$am_compiler_list" = ""; then
2752 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2753 fi
2754 for depmode in $am_compiler_list; do
2755 if test $depmode = none; then break; fi
2756
2757 $as_echo "$as_me:$LINENO: trying $depmode" >&5
2758 # Setup a source with many dependencies, because some compilers
2759 # like to wrap large dependency lists on column 80 (with \), and
2760 # we should not choose a depcomp mode which is confused by this.
2761 #
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 : > sub/conftest.c
2766 for i in 1 2 3 4 5 6; do
2767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2769 # Solaris 8's {/usr,}/bin/sh.
2770 touch sub/conftst$i.h
2771 done
2772 echo "include sub/conftest.Po" > confmf
2773
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 depcmd="depmode=$depmode \
2778 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2780 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2781 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2782 if env $depcmd > conftest.err 2>&1 &&
2783 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2784 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2785 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2786 # icc doesn't choke on unknown options, it will just issue warnings
2787 # or remarks (even with -Werror). So we grep stderr for any message
2788 # that says an option was ignored or not supported.
2789 # When given -MP, icc 7.0 and 7.1 complain thusly:
2790 # icc: Command line warning: ignoring option '-M'; no argument required
2791 # The diagnosis changed in icc 8.0:
2792 # icc: Command line remark: option '-MP' not supported
2793 if (grep 'ignoring option' conftest.err ||
2794 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2795 am_cv_CC_dependencies_compiler_type=$depmode
2796 $as_echo "$as_me:$LINENO: success" >&5
2797 break
2798 fi
2799 fi
2800 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2801 sed -e 's/^/| /' < conftest.err >&5
2802 done
2803
2804 cd ..
2805 rm -rf conftest.dir
2806 else
2807 am_cv_CC_dependencies_compiler_type=none
2808 fi
2809
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2813 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2814 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
2815 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2816
2817 fi
2818
2819
2820 ALL_LINGUAS=
2821 # If we haven't got the data from the intl directory,
2822 # assume NLS is disabled.
2823 USE_NLS=no
2824 LIBINTL=
2825 LIBINTL_DEP=
2826 INCINTL=
2827 XGETTEXT=
2828 GMSGFMT=
2829 POSUB=
2830
2831 if test -f ../../intl/config.intl; then
2832 . ../../intl/config.intl
2833 fi
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2835 $as_echo_n "checking whether NLS is requested... " >&6; }
2836 if test x"$USE_NLS" != xyes; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2842
2843 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
2844
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
2847 $as_echo_n "checking for catalogs to be installed... " >&6; }
2848 # Look for .po and .gmo files in the source directory.
2849 CATALOGS=
2850 XLINGUAS=
2851 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2852 # If there aren't any .gmo files the shell will give us the
2853 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2854 # weeded out.
2855 case "$cat" in *\**)
2856 continue;;
2857 esac
2858 # The quadruple backslash is collapsed to a double backslash
2859 # by the backticks, then collapsed again by the double quotes,
2860 # leaving us with one backslash in the sed expression (right
2861 # before the dot that mustn't act as a wildcard).
2862 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2863 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2864 # The user is allowed to set LINGUAS to a list of languages to
2865 # install catalogs for. If it's empty that means "all of them."
2866 if test "x$LINGUAS" = x; then
2867 CATALOGS="$CATALOGS $cat"
2868 XLINGUAS="$XLINGUAS $lang"
2869 else
2870 case "$LINGUAS" in *$lang*)
2871 CATALOGS="$CATALOGS $cat"
2872 XLINGUAS="$XLINGUAS $lang"
2873 ;;
2874 esac
2875 fi
2876 done
2877 LINGUAS="$XLINGUAS"
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
2879 $as_echo "$LINGUAS" >&6; }
2880
2881
2882 DATADIRNAME=share
2883
2884 INSTOBJEXT=.mo
2885
2886 GENCAT=gencat
2887
2888 CATOBJEXT=.gmo
2889
2890 fi
2891
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2894 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2895 # Check whether --enable-maintainer-mode was given.
2896 if test "${enable_maintainer_mode+set}" = set; then :
2897 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2898 else
2899 USE_MAINTAINER_MODE=no
2900 fi
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2903 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2904 if test $USE_MAINTAINER_MODE = yes; then
2905 MAINTAINER_MODE_TRUE=
2906 MAINTAINER_MODE_FALSE='#'
2907 else
2908 MAINTAINER_MODE_TRUE='#'
2909 MAINTAINER_MODE_FALSE=
2910 fi
2911
2912 MAINT=$MAINTAINER_MODE_TRUE
2913
2914
2915
2916
2917 sim_inline="-DDEFAULT_INLINE=0"
2918 # Check whether --enable-sim-inline was given.
2919 if test "${enable_sim_inline+set}" = set; then :
2920 enableval=$enable_sim_inline; sim_inline=""
2921 case "$enableval" in
2922 no) sim_inline="-DDEFAULT_INLINE=0";;
2923 0) sim_inline="-DDEFAULT_INLINE=0";;
2924 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
2925 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
2926 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
2927 new_flag=""
2928 case "$x" in
2929 *_INLINE=*) new_flag="-D$x";;
2930 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
2931 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
2932 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
2933 esac
2934 if test x"$sim_inline" = x""; then
2935 sim_inline="$new_flag"
2936 else
2937 sim_inline="$sim_inline $new_flag"
2938 fi
2939 done;;
2940 esac
2941 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
2942 echo "Setting inline flags = $sim_inline" 6>&1
2943 fi
2944 fi
2945
2946
2947
2948
2949 default_sim_reserved_bits="1"
2950 # Check whether --enable-sim-reserved-bits was given.
2951 if test "${enable_sim_reserved_bits+set}" = set; then :
2952 enableval=$enable_sim_reserved_bits; case "${enableval}" in
2953 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
2954 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
2955 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
2956 esac
2957 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
2958 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
2959 fi
2960 else
2961 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
2962 fi
2963
2964
2965 # DEPRECATED
2966 #
2967 # Instead of defining a `subtarget' macro, code should be checking
2968 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
2969 # in question.
2970 #
2971 case "${target}" in
2972 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
2973 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
2974 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
2975 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
2976 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
2977 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
2978 *) SIM_SUBTARGET="";;
2979 esac
2980
2981
2982
2983
2984 #
2985 # Select the bitsize of the target
2986 #
2987 mips_addr_bitsize=
2988 case "${target}" in
2989 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
2990 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
2991 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
2992 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
2993 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
2994 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
2995 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
2996 *) mips_bitsize=64 ; mips_msb=63 ;;
2997 esac
2998 wire_word_bitsize="$mips_bitsize"
2999 wire_word_msb="$mips_msb"
3000 wire_address_bitsize="$mips_addr_bitsize"
3001 wire_cell_bitsize=""
3002 # Check whether --enable-sim-bitsize was given.
3003 if test "${enable_sim_bitsize+set}" = set; then :
3004 enableval=$enable_sim_bitsize; sim_bitsize=
3005 case "${enableval}" in
3006 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3007 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3008 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3009 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3010 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3011 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3012 else
3013 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3014 fi ;;
3015 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3016 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3017 else
3018 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3019 fi ;;
3020 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
3021 esac
3022 # address bitsize
3023 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3024 case x"${tmp}" in
3025 x ) ;;
3026 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3027 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3028 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
3029 esac
3030 # cell bitsize
3031 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3032 case x"${tmp}" in
3033 x ) ;;
3034 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3035 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3036 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
3037 esac
3038 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3039 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3040 fi
3041 else
3042 sim_bitsize=""
3043 if test x"$wire_word_bitsize" != x; then
3044 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3045 fi
3046 if test x"$wire_word_msb" != x; then
3047 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3048 fi
3049 if test x"$wire_address_bitsize" != x; then
3050 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3051 fi
3052 if test x"$wire_cell_bitsize" != x; then
3053 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3054 fi
3055 fi
3056
3057
3058
3059
3060 #
3061 # Select the floating hardware support of the target
3062 #
3063 mips_fpu=HARDWARE_FLOATING_POINT
3064 mips_fpu_bitsize=
3065 case "${target}" in
3066 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
3067 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
3068 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
3069 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
3070 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
3071 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
3072 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
3073 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
3074 *) mips_fpu=HARD_FLOATING_POINT ;;
3075 esac
3076
3077 default_sim_float="$mips_fpu"
3078 default_sim_float_bitsize="$mips_fpu_bitsize"
3079 # Check whether --enable-sim-float was given.
3080 if test "${enable_sim_float+set}" = set; then :
3081 enableval=$enable_sim_float; case "${enableval}" in
3082 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3083 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3084 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3085 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3086 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3087 esac
3088 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3089 echo "Setting float flags = $sim_float" 6>&1
3090 fi
3091 else
3092
3093 sim_float=
3094 if test x"${default_sim_float}" != x""; then
3095 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
3096 fi
3097 if test x"${default_sim_float_bitsize}" != x""; then
3098 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3099 fi
3100
3101 fi
3102
3103
3104
3105
3106 #
3107 # Select the IGEN architecture
3108 #
3109 sim_gen=IGEN
3110 sim_igen_machine="-M mipsIV"
3111 sim_m16_machine="-M mips16,mipsIII"
3112 sim_igen_filter="32,64,f"
3113 sim_m16_filter="16"
3114 sim_mach_default="mips8000"
3115
3116 case "${target}" in
3117 mips*tx39*) sim_gen=IGEN
3118 sim_igen_filter="32,f"
3119 sim_igen_machine="-M r3900"
3120 ;;
3121 mips64vr43*-*-*) sim_gen=IGEN
3122 sim_igen_machine="-M mipsIV"
3123 sim_mach_default="mips8000"
3124 ;;
3125 mips64vr5*-*-*) sim_gen=IGEN
3126 sim_igen_machine="-M vr5000"
3127 sim_mach_default="mips5000"
3128 ;;
3129 mips64vr41*) sim_gen=M16
3130 sim_igen_machine="-M vr4100"
3131 sim_m16_machine="-M vr4100"
3132 sim_igen_filter="32,64,f"
3133 sim_m16_filter="16"
3134 sim_mach_default="mips4100"
3135 ;;
3136 mips64vr-*-* | mips64vrel-*-*)
3137 sim_gen=MULTI
3138 sim_multi_configs="\
3139 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
3140 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
3141 vr5000:mipsIV:32,64,f:mips4300,mips5000\
3142 vr5400:mipsIV,vr5400:32,64,f:mips5400\
3143 vr5500:mipsIV,vr5500:32,64,f:mips5500"
3144 sim_multi_default=mips5000
3145 ;;
3146 mips*-sde-elf* | mips*-mti-elf*)
3147 sim_gen=MULTI
3148 sim_multi_configs="\
3149 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
3150 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
3151 sim_multi_default=mipsisa64r2
3152 ;;
3153 mips64*-*-*) sim_igen_filter="32,64,f"
3154 sim_gen=IGEN
3155 ;;
3156 mips16*-*-*) sim_gen=M16
3157 sim_igen_filter="32,64,f"
3158 sim_m16_filter="16"
3159 ;;
3160 mipsisa32r2*-*-*) sim_gen=MULTI
3161 sim_multi_configs="\
3162 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
3163 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
3164 sim_multi_default=mipsisa32r2
3165 ;;
3166 mipsisa32*-*-*) sim_gen=M16
3167 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
3168 sim_m16_machine="-M mips16,mips16e,mips32"
3169 sim_igen_filter="32,f"
3170 sim_mach_default="mipsisa32"
3171 ;;
3172 mipsisa64r2*-*-*) sim_gen=M16
3173 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
3174 sim_m16_machine="-M mips16,mips16e,mips64r2"
3175 sim_igen_filter="32,64,f"
3176 sim_mach_default="mipsisa64r2"
3177 ;;
3178 mipsisa64sb1*-*-*) sim_gen=IGEN
3179 sim_igen_machine="-M mips64,mips3d,sb1"
3180 sim_igen_filter="32,64,f"
3181 sim_mach_default="mips_sb1"
3182 ;;
3183 mipsisa64*-*-*) sim_gen=M16
3184 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
3185 sim_m16_machine="-M mips16,mips16e,mips64"
3186 sim_igen_filter="32,64,f"
3187 sim_mach_default="mipsisa64"
3188 ;;
3189 mips*lsi*) sim_gen=M16
3190 sim_igen_machine="-M mipsIII,mips16"
3191 sim_m16_machine="-M mips16,mipsIII"
3192 sim_igen_filter="32,f"
3193 sim_m16_filter="16"
3194 sim_mach_default="mips4000"
3195 ;;
3196 mips*-*-*) sim_gen=IGEN
3197 sim_igen_filter="32,f"
3198 ;;
3199 esac
3200
3201 # The MULTI generator can combine several simulation engines into one.
3202 # executable. A configuration which uses the MULTI should set two
3203 # variables: ${sim_multi_configs} and ${sim_multi_default}.
3204 #
3205 # ${sim_multi_configs} is the list of engines to build. Each
3206 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
3207 # where:
3208 #
3209 # - NAME is a C-compatible prefix for the engine,
3210 # - MACHINE is a -M argument,
3211 # - FILTER is a -F argument, and
3212 # - BFDMACHS is a comma-separated list of bfd machines that the
3213 # simulator can run.
3214 #
3215 # Each entry will have a separate simulation engine whose prefix is
3216 # m32<NAME>. If the machine list includes "mips16", there will also
3217 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
3218 # generated using the same machine list as the 32-bit version,
3219 # but the filter will be "16" instead of FILTER.
3220 #
3221 # The simulator compares the bfd mach against BFDMACHS to decide
3222 # which engine to use. Entries in BFDMACHS should be bfd_mach
3223 # values with "bfd_mach_" removed. ${sim_multi_default} says
3224 # which entry should be the default.
3225 if test ${sim_gen} = MULTI; then
3226
3227 # Simple sanity check.
3228 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
3229 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
3230 fi
3231
3232 # Start in a known state.
3233 rm -f multi-include.h multi-run.c
3234 sim_multi_flags=
3235 sim_multi_src=
3236 sim_multi_obj=
3237 sim_multi_igen_configs=
3238 sim_seen_default=no
3239
3240 cat << __EOF__ > multi-run.c
3241 /* Main entry point for MULTI simulators.
3242 Copyright (C) 2003-2021 Free Software Foundation, Inc.
3243
3244 This program is free software; you can redistribute it and/or modify
3245 it under the terms of the GNU General Public License as published by
3246 the Free Software Foundation; either version 3 of the License, or
3247 (at your option) any later version.
3248
3249 This program is distributed in the hope that it will be useful,
3250 but WITHOUT ANY WARRANTY; without even the implied warranty of
3251 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3252 GNU General Public License for more details.
3253
3254 You should have received a copy of the GNU General Public License
3255 along with this program. If not, see <http://www.gnu.org/licenses/>.
3256
3257 --
3258
3259 This file was generated by sim/mips/configure. */
3260
3261 #include "sim-main.h"
3262 #include "multi-include.h"
3263 #include "elf-bfd.h"
3264 #include "elf/mips.h"
3265
3266 #define SD sd
3267 #define CPU cpu
3268
3269 void
3270 sim_engine_run (SIM_DESC sd,
3271 int next_cpu_nr,
3272 int nr_cpus,
3273 int signal) /* ignore */
3274 {
3275 int mach;
3276
3277 if (STATE_ARCHITECTURE (sd) == NULL)
3278 mach = bfd_mach_${sim_multi_default};
3279 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
3280 & EF_MIPS_ARCH_ASE_MICROMIPS)
3281 mach = bfd_mach_mips_micromips;
3282 else
3283 mach = STATE_ARCHITECTURE (SD)->mach;
3284
3285 switch (mach)
3286 {
3287 __EOF__
3288
3289 for fc in ${sim_multi_configs}; do
3290
3291 # Split up the entry. ${c} contains the first three elements.
3292 # Note: outer sqaure brackets are m4 quotes.
3293 c=`echo ${fc} | sed 's/:[^:]*$//'`
3294 bfdmachs=`echo ${fc} | sed 's/.*://'`
3295 name=`echo ${c} | sed 's/:.*//'`
3296 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
3297 filter=`echo ${c} | sed 's/.*://'`
3298
3299 # Build the following lists:
3300 #
3301 # sim_multi_flags: all -M and -F flags used by the simulator
3302 # sim_multi_src: all makefile-generated source files
3303 # sim_multi_obj: the objects for ${sim_multi_src}
3304 # sim_multi_igen_configs: igen configuration strings.
3305 #
3306 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
3307 # or m16) followed by the NAME, MACHINE and FILTER part of
3308 # the ${sim_multi_configs} entry.
3309 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
3310
3311 # Check whether special handling is needed.
3312 case ${c} in
3313 *:*mips16*:*)
3314 # Run igen twice, once for normal mode and once for mips16.
3315 ws="m32 m16"
3316
3317 # The top-level function for the mips16 simulator is
3318 # in a file m16${name}_run.c, generated by the
3319 # tmp-run-multi Makefile rule.
3320 sim_multi_src="${sim_multi_src} m16${name}_run.c"
3321 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
3322 sim_multi_flags="${sim_multi_flags} -F 16"
3323 ;;
3324 *:*micromips32*:*)
3325 # Run igen thrice, once for micromips32, once for micromips16,
3326 # and once for m32.
3327 ws="micromips_m32 micromips16 micromips32"
3328
3329 # The top-level function for the micromips simulator is
3330 # in a file micromips${name}_run.c, generated by the
3331 # tmp-run-multi Makefile rule.
3332 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
3333 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
3334 sim_multi_flags="${sim_multi_flags} -F 16,32"
3335 ;;
3336 *:*micromips64*:*)
3337 # Run igen thrice, once for micromips64, once for micromips16,
3338 # and once for m64.
3339 ws="micromips_m64 micromips16 micromips64"
3340
3341 # The top-level function for the micromips simulator is
3342 # in a file micromips${name}_run.c, generated by the
3343 # tmp-run-multi Makefile rule.
3344 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
3345 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
3346 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
3347 ;;
3348 *)
3349 ws=m32
3350 ;;
3351 esac
3352
3353 # Now add the list of igen-generated files to ${sim_multi_src}
3354 # and ${sim_multi_obj}.
3355 for w in ${ws}; do
3356 for base in engine icache idecode model semantics support; do
3357 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
3358 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
3359 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
3360 done
3361 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
3362 done
3363
3364 # Add an include for the engine.h file. This file declares the
3365 # top-level foo_engine_run() function.
3366 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
3367
3368 # Add case statements for this engine to sim_engine_run().
3369 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
3370 echo " case bfd_mach_${mach}:" >> multi-run.c
3371 if test ${mach} = ${sim_multi_default}; then
3372 echo " default:" >> multi-run.c
3373 sim_seen_default=yes
3374 fi
3375 done
3376 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
3377 >> multi-run.c
3378 echo " break;" >> multi-run.c
3379 done
3380
3381 # Check whether we added a 'default:' label.
3382 if test ${sim_seen_default} = no; then
3383 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
3384 fi
3385
3386 cat << __EOF__ >> multi-run.c
3387 }
3388 }
3389
3390 int
3391 mips_mach_multi (SIM_DESC sd)
3392 {
3393 if (STATE_ARCHITECTURE (sd) == NULL)
3394 return bfd_mach_${sim_multi_default};
3395
3396 switch (STATE_ARCHITECTURE (SD)->mach)
3397 {
3398 __EOF__
3399
3400 # Add case statements for this engine to mips_mach_multi().
3401 for fc in ${sim_multi_configs}; do
3402
3403 # Split up the entry. ${c} contains the first three elements.
3404 # Note: outer sqaure brackets are m4 quotes.
3405 c=`echo ${fc} | sed 's/:[^:]*$//'`
3406 bfdmachs=`echo ${fc} | sed 's/.*://'`
3407
3408 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
3409 echo " case bfd_mach_${mach}:" >> multi-run.c
3410 done
3411 done
3412
3413 cat << __EOF__ >> multi-run.c
3414 return (STATE_ARCHITECTURE (SD)->mach);
3415 default:
3416 return bfd_mach_${sim_multi_default};
3417 }
3418 }
3419 __EOF__
3420
3421 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
3422 else
3423 # For clean-extra
3424 sim_multi_src=doesnt-exist.c
3425
3426 if test x"${sim_mach_default}" = x""; then
3427 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
3428 fi
3429 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
3430 fi
3431 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
3432 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
3433 sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
3434 sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444 #
3445 # Add simulated hardware devices
3446 #
3447
3448 hardware="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
3449 sim_hw_cflags="-DWITH_HW=1"
3450 sim_hw="$hardware"
3451 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
3452
3453 # Check whether --enable-sim-hardware was given.
3454 if test "${enable_sim_hardware+set}" = set; then :
3455 enableval=$enable_sim_hardware;
3456 else
3457 enable_sim_hardware="yes"
3458 fi
3459
3460 case ${enable_sim_hardware} in
3461 yes|no) ;;
3462 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3463 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3464 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
3465 esac
3466
3467 if test "$enable_sim_hardware" = no; then
3468 sim_hw_objs=
3469 sim_hw_cflags="-DWITH_HW=0"
3470 sim_hw=
3471 else
3472 sim_hw_cflags="-DWITH_HW=1"
3473 # remove duplicates
3474 sim_hw=""
3475 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
3476 for i in $hardware ; do
3477 case " $sim_hw " in
3478 *" $i "*) ;;
3479 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
3480 esac
3481 done
3482 # mingw does not support sockser
3483 case ${host} in
3484 *mingw*) ;;
3485 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
3486 # that you instatiate. Instead, other code will call into it directly.
3487 # At some point, we should convert it over.
3488 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3489 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
3490 ;;
3491 esac
3492 if test x"$silent" != x"yes"; then
3493 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3494 fi
3495 fi
3496
3497
3498
3499 cgen_breaks=""
3500 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3501 cgen_breaks="break cgen_rtx_error";
3502 fi
3503
3504 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
3505
3506 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
3507
3508 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
3509
3510 ac_config_commands="$ac_config_commands Makefile"
3511
3512 ac_config_commands="$ac_config_commands stamp-h"
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524 cat >confcache <<\_ACEOF
3525 # This file is a shell script that caches the results of configure
3526 # tests run on this system so they can be shared between configure
3527 # scripts and configure runs, see configure's option --config-cache.
3528 # It is not useful on other systems. If it contains results you don't
3529 # want to keep, you may remove or edit it.
3530 #
3531 # config.status only pays attention to the cache file if you give it
3532 # the --recheck option to rerun configure.
3533 #
3534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3536 # following values.
3537
3538 _ACEOF
3539
3540 # The following way of writing the cache mishandles newlines in values,
3541 # but we know of no workaround that is simple, portable, and efficient.
3542 # So, we kill variables containing newlines.
3543 # Ultrix sh set writes to stderr and can't be redirected directly,
3544 # and sets the high bit in the cache file unless we assign to the vars.
3545 (
3546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3547 eval ac_val=\$$ac_var
3548 case $ac_val in #(
3549 *${as_nl}*)
3550 case $ac_var in #(
3551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3553 esac
3554 case $ac_var in #(
3555 _ | IFS | as_nl) ;; #(
3556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3557 *) { eval $ac_var=; unset $ac_var;} ;;
3558 esac ;;
3559 esac
3560 done
3561
3562 (set) 2>&1 |
3563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3564 *${as_nl}ac_space=\ *)
3565 # `set' does not quote correctly, so add quotes: double-quote
3566 # substitution turns \\\\ into \\, and sed turns \\ into \.
3567 sed -n \
3568 "s/'/'\\\\''/g;
3569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3570 ;; #(
3571 *)
3572 # `set' quotes correctly as required by POSIX, so do not add quotes.
3573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3574 ;;
3575 esac |
3576 sort
3577 ) |
3578 sed '
3579 /^ac_cv_env_/b end
3580 t clear
3581 :clear
3582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3583 t end
3584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3585 :end' >>confcache
3586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3587 if test -w "$cache_file"; then
3588 if test "x$cache_file" != "x/dev/null"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3590 $as_echo "$as_me: updating cache $cache_file" >&6;}
3591 if test ! -f "$cache_file" || test -h "$cache_file"; then
3592 cat confcache >"$cache_file"
3593 else
3594 case $cache_file in #(
3595 */* | ?:*)
3596 mv -f confcache "$cache_file"$$ &&
3597 mv -f "$cache_file"$$ "$cache_file" ;; #(
3598 *)
3599 mv -f confcache "$cache_file" ;;
3600 esac
3601 fi
3602 fi
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3606 fi
3607 fi
3608 rm -f confcache
3609
3610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3611 # Let make expand exec_prefix.
3612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3613
3614 # Transform confdefs.h into DEFS.
3615 # Protect against shell expansion while executing Makefile rules.
3616 # Protect against Makefile macro expansion.
3617 #
3618 # If the first sed substitution is executed (which looks for macros that
3619 # take arguments), then branch to the quote section. Otherwise,
3620 # look for a macro that doesn't take arguments.
3621 ac_script='
3622 :mline
3623 /\\$/{
3624 N
3625 s,\\\n,,
3626 b mline
3627 }
3628 t clear
3629 :clear
3630 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3631 t quote
3632 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3633 t quote
3634 b any
3635 :quote
3636 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3637 s/\[/\\&/g
3638 s/\]/\\&/g
3639 s/\$/$$/g
3640 H
3641 :any
3642 ${
3643 g
3644 s/^\n//
3645 s/\n/ /g
3646 p
3647 }
3648 '
3649 DEFS=`sed -n "$ac_script" confdefs.h`
3650
3651
3652 ac_libobjs=
3653 ac_ltlibobjs=
3654 U=
3655 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3656 # 1. Remove the extension, and $U if already installed.
3657 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3658 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3659 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3660 # will be set to the directory where LIBOBJS objects are built.
3661 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3662 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3663 done
3664 LIBOBJS=$ac_libobjs
3665
3666 LTLIBOBJS=$ac_ltlibobjs
3667
3668
3669 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3670 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3672 fi
3673
3674 : "${CONFIG_STATUS=./config.status}"
3675 ac_write_fail=0
3676 ac_clean_files_save=$ac_clean_files
3677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3680 as_write_fail=0
3681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3682 #! $SHELL
3683 # Generated by $as_me.
3684 # Run this file to recreate the current configuration.
3685 # Compiler output produced by configure, useful for debugging
3686 # configure, is in config.log if it exists.
3687
3688 debug=false
3689 ac_cs_recheck=false
3690 ac_cs_silent=false
3691
3692 SHELL=\${CONFIG_SHELL-$SHELL}
3693 export SHELL
3694 _ASEOF
3695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3696 ## -------------------- ##
3697 ## M4sh Initialization. ##
3698 ## -------------------- ##
3699
3700 # Be more Bourne compatible
3701 DUALCASE=1; export DUALCASE # for MKS sh
3702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3703 emulate sh
3704 NULLCMD=:
3705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3706 # is contrary to our usage. Disable this feature.
3707 alias -g '${1+"$@"}'='"$@"'
3708 setopt NO_GLOB_SUBST
3709 else
3710 case `(set -o) 2>/dev/null` in #(
3711 *posix*) :
3712 set -o posix ;; #(
3713 *) :
3714 ;;
3715 esac
3716 fi
3717
3718
3719 as_nl='
3720 '
3721 export as_nl
3722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3726 # Prefer a ksh shell builtin over an external printf program on Solaris,
3727 # but without wasting forks for bash or zsh.
3728 if test -z "$BASH_VERSION$ZSH_VERSION" \
3729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3730 as_echo='print -r --'
3731 as_echo_n='print -rn --'
3732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3733 as_echo='printf %s\n'
3734 as_echo_n='printf %s'
3735 else
3736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3738 as_echo_n='/usr/ucb/echo -n'
3739 else
3740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3741 as_echo_n_body='eval
3742 arg=$1;
3743 case $arg in #(
3744 *"$as_nl"*)
3745 expr "X$arg" : "X\\(.*\\)$as_nl";
3746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3747 esac;
3748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3749 '
3750 export as_echo_n_body
3751 as_echo_n='sh -c $as_echo_n_body as_echo'
3752 fi
3753 export as_echo_body
3754 as_echo='sh -c $as_echo_body as_echo'
3755 fi
3756
3757 # The user is always right.
3758 if test "${PATH_SEPARATOR+set}" != set; then
3759 PATH_SEPARATOR=:
3760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3762 PATH_SEPARATOR=';'
3763 }
3764 fi
3765
3766
3767 # IFS
3768 # We need space, tab and new line, in precisely that order. Quoting is
3769 # there to prevent editors from complaining about space-tab.
3770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3771 # splitting by setting IFS to empty value.)
3772 IFS=" "" $as_nl"
3773
3774 # Find who we are. Look in the path if we contain no directory separator.
3775 as_myself=
3776 case $0 in #((
3777 *[\\/]* ) as_myself=$0 ;;
3778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3784 done
3785 IFS=$as_save_IFS
3786
3787 ;;
3788 esac
3789 # We did not find ourselves, most probably we were run as `sh COMMAND'
3790 # in which case we are not to be found in the path.
3791 if test "x$as_myself" = x; then
3792 as_myself=$0
3793 fi
3794 if test ! -f "$as_myself"; then
3795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3796 exit 1
3797 fi
3798
3799 # Unset variables that we do not need and which cause bugs (e.g. in
3800 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3801 # suppresses any "Segmentation fault" message there. '((' could
3802 # trigger a bug in pdksh 5.2.14.
3803 for as_var in BASH_ENV ENV MAIL MAILPATH
3804 do eval test x\${$as_var+set} = xset \
3805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3806 done
3807 PS1='$ '
3808 PS2='> '
3809 PS4='+ '
3810
3811 # NLS nuisances.
3812 LC_ALL=C
3813 export LC_ALL
3814 LANGUAGE=C
3815 export LANGUAGE
3816
3817 # CDPATH.
3818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3819
3820
3821 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3822 # ----------------------------------------
3823 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3824 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3825 # script with STATUS, using 1 if that was 0.
3826 as_fn_error ()
3827 {
3828 as_status=$1; test $as_status -eq 0 && as_status=1
3829 if test "$4"; then
3830 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3831 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3832 fi
3833 $as_echo "$as_me: error: $2" >&2
3834 as_fn_exit $as_status
3835 } # as_fn_error
3836
3837
3838 # as_fn_set_status STATUS
3839 # -----------------------
3840 # Set $? to STATUS, without forking.
3841 as_fn_set_status ()
3842 {
3843 return $1
3844 } # as_fn_set_status
3845
3846 # as_fn_exit STATUS
3847 # -----------------
3848 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3849 as_fn_exit ()
3850 {
3851 set +e
3852 as_fn_set_status $1
3853 exit $1
3854 } # as_fn_exit
3855
3856 # as_fn_unset VAR
3857 # ---------------
3858 # Portably unset VAR.
3859 as_fn_unset ()
3860 {
3861 { eval $1=; unset $1;}
3862 }
3863 as_unset=as_fn_unset
3864 # as_fn_append VAR VALUE
3865 # ----------------------
3866 # Append the text in VALUE to the end of the definition contained in VAR. Take
3867 # advantage of any shell optimizations that allow amortized linear growth over
3868 # repeated appends, instead of the typical quadratic growth present in naive
3869 # implementations.
3870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3871 eval 'as_fn_append ()
3872 {
3873 eval $1+=\$2
3874 }'
3875 else
3876 as_fn_append ()
3877 {
3878 eval $1=\$$1\$2
3879 }
3880 fi # as_fn_append
3881
3882 # as_fn_arith ARG...
3883 # ------------------
3884 # Perform arithmetic evaluation on the ARGs, and store the result in the
3885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3886 # must be portable across $(()) and expr.
3887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3888 eval 'as_fn_arith ()
3889 {
3890 as_val=$(( $* ))
3891 }'
3892 else
3893 as_fn_arith ()
3894 {
3895 as_val=`expr "$@" || test $? -eq 1`
3896 }
3897 fi # as_fn_arith
3898
3899
3900 if expr a : '\(a\)' >/dev/null 2>&1 &&
3901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3902 as_expr=expr
3903 else
3904 as_expr=false
3905 fi
3906
3907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3908 as_basename=basename
3909 else
3910 as_basename=false
3911 fi
3912
3913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3914 as_dirname=dirname
3915 else
3916 as_dirname=false
3917 fi
3918
3919 as_me=`$as_basename -- "$0" ||
3920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3921 X"$0" : 'X\(//\)$' \| \
3922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3923 $as_echo X/"$0" |
3924 sed '/^.*\/\([^/][^/]*\)\/*$/{
3925 s//\1/
3926 q
3927 }
3928 /^X\/\(\/\/\)$/{
3929 s//\1/
3930 q
3931 }
3932 /^X\/\(\/\).*/{
3933 s//\1/
3934 q
3935 }
3936 s/.*/./; q'`
3937
3938 # Avoid depending upon Character Ranges.
3939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3942 as_cr_digits='0123456789'
3943 as_cr_alnum=$as_cr_Letters$as_cr_digits
3944
3945 ECHO_C= ECHO_N= ECHO_T=
3946 case `echo -n x` in #(((((
3947 -n*)
3948 case `echo 'xy\c'` in
3949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3950 xy) ECHO_C='\c';;
3951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3952 ECHO_T=' ';;
3953 esac;;
3954 *)
3955 ECHO_N='-n';;
3956 esac
3957
3958 rm -f conf$$ conf$$.exe conf$$.file
3959 if test -d conf$$.dir; then
3960 rm -f conf$$.dir/conf$$.file
3961 else
3962 rm -f conf$$.dir
3963 mkdir conf$$.dir 2>/dev/null
3964 fi
3965 if (echo >conf$$.file) 2>/dev/null; then
3966 if ln -s conf$$.file conf$$ 2>/dev/null; then
3967 as_ln_s='ln -s'
3968 # ... but there are two gotchas:
3969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3971 # In both cases, we have to default to `cp -pR'.
3972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3973 as_ln_s='cp -pR'
3974 elif ln conf$$.file conf$$ 2>/dev/null; then
3975 as_ln_s=ln
3976 else
3977 as_ln_s='cp -pR'
3978 fi
3979 else
3980 as_ln_s='cp -pR'
3981 fi
3982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3983 rmdir conf$$.dir 2>/dev/null
3984
3985
3986 # as_fn_mkdir_p
3987 # -------------
3988 # Create "$as_dir" as a directory, including parents if necessary.
3989 as_fn_mkdir_p ()
3990 {
3991
3992 case $as_dir in #(
3993 -*) as_dir=./$as_dir;;
3994 esac
3995 test -d "$as_dir" || eval $as_mkdir_p || {
3996 as_dirs=
3997 while :; do
3998 case $as_dir in #(
3999 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4000 *) as_qdir=$as_dir;;
4001 esac
4002 as_dirs="'$as_qdir' $as_dirs"
4003 as_dir=`$as_dirname -- "$as_dir" ||
4004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4005 X"$as_dir" : 'X\(//\)[^/]' \| \
4006 X"$as_dir" : 'X\(//\)$' \| \
4007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4008 $as_echo X"$as_dir" |
4009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4010 s//\1/
4011 q
4012 }
4013 /^X\(\/\/\)[^/].*/{
4014 s//\1/
4015 q
4016 }
4017 /^X\(\/\/\)$/{
4018 s//\1/
4019 q
4020 }
4021 /^X\(\/\).*/{
4022 s//\1/
4023 q
4024 }
4025 s/.*/./; q'`
4026 test -d "$as_dir" && break
4027 done
4028 test -z "$as_dirs" || eval "mkdir $as_dirs"
4029 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4030
4031
4032 } # as_fn_mkdir_p
4033 if mkdir -p . 2>/dev/null; then
4034 as_mkdir_p='mkdir -p "$as_dir"'
4035 else
4036 test -d ./-p && rmdir ./-p
4037 as_mkdir_p=false
4038 fi
4039
4040
4041 # as_fn_executable_p FILE
4042 # -----------------------
4043 # Test if FILE is an executable regular file.
4044 as_fn_executable_p ()
4045 {
4046 test -f "$1" && test -x "$1"
4047 } # as_fn_executable_p
4048 as_test_x='test -x'
4049 as_executable_p=as_fn_executable_p
4050
4051 # Sed expression to map a string onto a valid CPP name.
4052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4053
4054 # Sed expression to map a string onto a valid variable name.
4055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4056
4057
4058 exec 6>&1
4059 ## ----------------------------------- ##
4060 ## Main body of $CONFIG_STATUS script. ##
4061 ## ----------------------------------- ##
4062 _ASEOF
4063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4064
4065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4066 # Save the log message, to keep $0 and so on meaningful, and to
4067 # report actual input values of CONFIG_FILES etc. instead of their
4068 # values after options handling.
4069 ac_log="
4070 This file was extended by $as_me, which was
4071 generated by GNU Autoconf 2.69. Invocation command line was
4072
4073 CONFIG_FILES = $CONFIG_FILES
4074 CONFIG_HEADERS = $CONFIG_HEADERS
4075 CONFIG_LINKS = $CONFIG_LINKS
4076 CONFIG_COMMANDS = $CONFIG_COMMANDS
4077 $ $0 $@
4078
4079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4080 "
4081
4082 _ACEOF
4083
4084 case $ac_config_files in *"
4085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4086 esac
4087
4088
4089
4090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4091 # Files that config.status was made for.
4092 config_files="$ac_config_files"
4093 config_commands="$ac_config_commands"
4094
4095 _ACEOF
4096
4097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4098 ac_cs_usage="\
4099 \`$as_me' instantiates files and other configuration actions
4100 from templates according to the current configuration. Unless the files
4101 and actions are specified as TAGs, all are instantiated by default.
4102
4103 Usage: $0 [OPTION]... [TAG]...
4104
4105 -h, --help print this help, then exit
4106 -V, --version print version number and configuration settings, then exit
4107 --config print configuration, then exit
4108 -q, --quiet, --silent
4109 do not print progress messages
4110 -d, --debug don't remove temporary files
4111 --recheck update $as_me by reconfiguring in the same conditions
4112 --file=FILE[:TEMPLATE]
4113 instantiate the configuration file FILE
4114
4115 Configuration files:
4116 $config_files
4117
4118 Configuration commands:
4119 $config_commands
4120
4121 Report bugs to the package provider."
4122
4123 _ACEOF
4124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4125 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4126 ac_cs_version="\\
4127 config.status
4128 configured by $0, generated by GNU Autoconf 2.69,
4129 with options \\"\$ac_cs_config\\"
4130
4131 Copyright (C) 2012 Free Software Foundation, Inc.
4132 This config.status script is free software; the Free Software Foundation
4133 gives unlimited permission to copy, distribute and modify it."
4134
4135 ac_pwd='$ac_pwd'
4136 srcdir='$srcdir'
4137 INSTALL='$INSTALL'
4138 test -n "\$AWK" || AWK=awk
4139 _ACEOF
4140
4141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4142 # The default lists apply if the user does not specify any file.
4143 ac_need_defaults=:
4144 while test $# != 0
4145 do
4146 case $1 in
4147 --*=?*)
4148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4150 ac_shift=:
4151 ;;
4152 --*=)
4153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4154 ac_optarg=
4155 ac_shift=:
4156 ;;
4157 *)
4158 ac_option=$1
4159 ac_optarg=$2
4160 ac_shift=shift
4161 ;;
4162 esac
4163
4164 case $ac_option in
4165 # Handling of the options.
4166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4167 ac_cs_recheck=: ;;
4168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4169 $as_echo "$ac_cs_version"; exit ;;
4170 --config | --confi | --conf | --con | --co | --c )
4171 $as_echo "$ac_cs_config"; exit ;;
4172 --debug | --debu | --deb | --de | --d | -d )
4173 debug=: ;;
4174 --file | --fil | --fi | --f )
4175 $ac_shift
4176 case $ac_optarg in
4177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4178 '') as_fn_error $? "missing file argument" ;;
4179 esac
4180 as_fn_append CONFIG_FILES " '$ac_optarg'"
4181 ac_need_defaults=false;;
4182 --he | --h | --help | --hel | -h )
4183 $as_echo "$ac_cs_usage"; exit ;;
4184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4186 ac_cs_silent=: ;;
4187
4188 # This is an error.
4189 -*) as_fn_error $? "unrecognized option: \`$1'
4190 Try \`$0 --help' for more information." ;;
4191
4192 *) as_fn_append ac_config_targets " $1"
4193 ac_need_defaults=false ;;
4194
4195 esac
4196 shift
4197 done
4198
4199 ac_configure_extra_args=
4200
4201 if $ac_cs_silent; then
4202 exec 6>/dev/null
4203 ac_configure_extra_args="$ac_configure_extra_args --silent"
4204 fi
4205
4206 _ACEOF
4207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4208 if \$ac_cs_recheck; then
4209 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4210 shift
4211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4212 CONFIG_SHELL='$SHELL'
4213 export CONFIG_SHELL
4214 exec "\$@"
4215 fi
4216
4217 _ACEOF
4218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4219 exec 5>>config.log
4220 {
4221 echo
4222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4223 ## Running $as_me. ##
4224 _ASBOX
4225 $as_echo "$ac_log"
4226 } >&5
4227
4228 _ACEOF
4229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4230 #
4231 # INIT-COMMANDS
4232 #
4233 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
4234
4235 _ACEOF
4236
4237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4238
4239 # Handling of arguments.
4240 for ac_config_target in $ac_config_targets
4241 do
4242 case $ac_config_target in
4243 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
4244 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
4245 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
4246 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
4247 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
4248 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
4249
4250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4251 esac
4252 done
4253
4254
4255 # If the user did not use the arguments to specify the items to instantiate,
4256 # then the envvar interface is used. Set only those that are not.
4257 # We use the long form for the default assignment because of an extremely
4258 # bizarre bug on SunOS 4.1.3.
4259 if $ac_need_defaults; then
4260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4261 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4262 fi
4263
4264 # Have a temporary directory for convenience. Make it in the build tree
4265 # simply because there is no reason against having it here, and in addition,
4266 # creating and moving files from /tmp can sometimes cause problems.
4267 # Hook for its removal unless debugging.
4268 # Note that there is a small window in which the directory will not be cleaned:
4269 # after its creation but before its name has been assigned to `$tmp'.
4270 $debug ||
4271 {
4272 tmp= ac_tmp=
4273 trap 'exit_status=$?
4274 : "${ac_tmp:=$tmp}"
4275 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4276 ' 0
4277 trap 'as_fn_exit 1' 1 2 13 15
4278 }
4279 # Create a (secure) tmp directory for tmp files.
4280
4281 {
4282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4283 test -d "$tmp"
4284 } ||
4285 {
4286 tmp=./conf$$-$RANDOM
4287 (umask 077 && mkdir "$tmp")
4288 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4289 ac_tmp=$tmp
4290
4291 # Set up the scripts for CONFIG_FILES section.
4292 # No need to generate them if there are no CONFIG_FILES.
4293 # This happens for instance with `./config.status config.h'.
4294 if test -n "$CONFIG_FILES"; then
4295
4296
4297 ac_cr=`echo X | tr X '\015'`
4298 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4299 # But we know of no other shell where ac_cr would be empty at this
4300 # point, so we can use a bashism as a fallback.
4301 if test "x$ac_cr" = x; then
4302 eval ac_cr=\$\'\\r\'
4303 fi
4304 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4305 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4306 ac_cs_awk_cr='\\r'
4307 else
4308 ac_cs_awk_cr=$ac_cr
4309 fi
4310
4311 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4312 _ACEOF
4313
4314
4315 {
4316 echo "cat >conf$$subs.awk <<_ACEOF" &&
4317 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4318 echo "_ACEOF"
4319 } >conf$$subs.sh ||
4320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4321 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4322 ac_delim='%!_!# '
4323 for ac_last_try in false false false false false :; do
4324 . ./conf$$subs.sh ||
4325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4326
4327 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4328 if test $ac_delim_n = $ac_delim_num; then
4329 break
4330 elif $ac_last_try; then
4331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4332 else
4333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4334 fi
4335 done
4336 rm -f conf$$subs.sh
4337
4338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4339 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4340 _ACEOF
4341 sed -n '
4342 h
4343 s/^/S["/; s/!.*/"]=/
4344 p
4345 g
4346 s/^[^!]*!//
4347 :repl
4348 t repl
4349 s/'"$ac_delim"'$//
4350 t delim
4351 :nl
4352 h
4353 s/\(.\{148\}\)..*/\1/
4354 t more1
4355 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4356 p
4357 n
4358 b repl
4359 :more1
4360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4361 p
4362 g
4363 s/.\{148\}//
4364 t nl
4365 :delim
4366 h
4367 s/\(.\{148\}\)..*/\1/
4368 t more2
4369 s/["\\]/\\&/g; s/^/"/; s/$/"/
4370 p
4371 b
4372 :more2
4373 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4374 p
4375 g
4376 s/.\{148\}//
4377 t delim
4378 ' <conf$$subs.awk | sed '
4379 /^[^""]/{
4380 N
4381 s/\n//
4382 }
4383 ' >>$CONFIG_STATUS || ac_write_fail=1
4384 rm -f conf$$subs.awk
4385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4386 _ACAWK
4387 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4388 for (key in S) S_is_set[key] = 1
4389 FS = "\a"
4390
4391 }
4392 {
4393 line = $ 0
4394 nfields = split(line, field, "@")
4395 substed = 0
4396 len = length(field[1])
4397 for (i = 2; i < nfields; i++) {
4398 key = field[i]
4399 keylen = length(key)
4400 if (S_is_set[key]) {
4401 value = S[key]
4402 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4403 len += length(value) + length(field[++i])
4404 substed = 1
4405 } else
4406 len += 1 + keylen
4407 }
4408
4409 print line
4410 }
4411
4412 _ACAWK
4413 _ACEOF
4414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4415 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4416 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4417 else
4418 cat
4419 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4420 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4421 _ACEOF
4422
4423 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4424 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4425 # trailing colons and then remove the whole line if VPATH becomes empty
4426 # (actually we leave an empty line to preserve line numbers).
4427 if test "x$srcdir" = x.; then
4428 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4429 h
4430 s///
4431 s/^/:/
4432 s/[ ]*$/:/
4433 s/:\$(srcdir):/:/g
4434 s/:\${srcdir}:/:/g
4435 s/:@srcdir@:/:/g
4436 s/^:*//
4437 s/:*$//
4438 x
4439 s/\(=[ ]*\).*/\1/
4440 G
4441 s/\n//
4442 s/^[^=]*=[ ]*$//
4443 }'
4444 fi
4445
4446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4447 fi # test -n "$CONFIG_FILES"
4448
4449
4450 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4451 shift
4452 for ac_tag
4453 do
4454 case $ac_tag in
4455 :[FHLC]) ac_mode=$ac_tag; continue;;
4456 esac
4457 case $ac_mode$ac_tag in
4458 :[FHL]*:*);;
4459 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4460 :[FH]-) ac_tag=-:-;;
4461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4462 esac
4463 ac_save_IFS=$IFS
4464 IFS=:
4465 set x $ac_tag
4466 IFS=$ac_save_IFS
4467 shift
4468 ac_file=$1
4469 shift
4470
4471 case $ac_mode in
4472 :L) ac_source=$1;;
4473 :[FH])
4474 ac_file_inputs=
4475 for ac_f
4476 do
4477 case $ac_f in
4478 -) ac_f="$ac_tmp/stdin";;
4479 *) # Look for the file first in the build tree, then in the source tree
4480 # (if the path is not absolute). The absolute path cannot be DOS-style,
4481 # because $ac_f cannot contain `:'.
4482 test -f "$ac_f" ||
4483 case $ac_f in
4484 [\\/$]*) false;;
4485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4486 esac ||
4487 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4488 esac
4489 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4490 as_fn_append ac_file_inputs " '$ac_f'"
4491 done
4492
4493 # Let's still pretend it is `configure' which instantiates (i.e., don't
4494 # use $as_me), people would be surprised to read:
4495 # /* config.h. Generated by config.status. */
4496 configure_input='Generated from '`
4497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4498 `' by configure.'
4499 if test x"$ac_file" != x-; then
4500 configure_input="$ac_file. $configure_input"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4502 $as_echo "$as_me: creating $ac_file" >&6;}
4503 fi
4504 # Neutralize special characters interpreted by sed in replacement strings.
4505 case $configure_input in #(
4506 *\&* | *\|* | *\\* )
4507 ac_sed_conf_input=`$as_echo "$configure_input" |
4508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4509 *) ac_sed_conf_input=$configure_input;;
4510 esac
4511
4512 case $ac_tag in
4513 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4515 esac
4516 ;;
4517 esac
4518
4519 ac_dir=`$as_dirname -- "$ac_file" ||
4520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4521 X"$ac_file" : 'X\(//\)[^/]' \| \
4522 X"$ac_file" : 'X\(//\)$' \| \
4523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4524 $as_echo X"$ac_file" |
4525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4526 s//\1/
4527 q
4528 }
4529 /^X\(\/\/\)[^/].*/{
4530 s//\1/
4531 q
4532 }
4533 /^X\(\/\/\)$/{
4534 s//\1/
4535 q
4536 }
4537 /^X\(\/\).*/{
4538 s//\1/
4539 q
4540 }
4541 s/.*/./; q'`
4542 as_dir="$ac_dir"; as_fn_mkdir_p
4543 ac_builddir=.
4544
4545 case "$ac_dir" in
4546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4547 *)
4548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4549 # A ".." for each directory in $ac_dir_suffix.
4550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4551 case $ac_top_builddir_sub in
4552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4554 esac ;;
4555 esac
4556 ac_abs_top_builddir=$ac_pwd
4557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4558 # for backward compatibility:
4559 ac_top_builddir=$ac_top_build_prefix
4560
4561 case $srcdir in
4562 .) # We are building in place.
4563 ac_srcdir=.
4564 ac_top_srcdir=$ac_top_builddir_sub
4565 ac_abs_top_srcdir=$ac_pwd ;;
4566 [\\/]* | ?:[\\/]* ) # Absolute name.
4567 ac_srcdir=$srcdir$ac_dir_suffix;
4568 ac_top_srcdir=$srcdir
4569 ac_abs_top_srcdir=$srcdir ;;
4570 *) # Relative name.
4571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4572 ac_top_srcdir=$ac_top_build_prefix$srcdir
4573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4574 esac
4575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4576
4577
4578 case $ac_mode in
4579 :F)
4580 #
4581 # CONFIG_FILE
4582 #
4583
4584 case $INSTALL in
4585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4586 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4587 esac
4588 _ACEOF
4589
4590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4591 # If the template does not know about datarootdir, expand it.
4592 # FIXME: This hack should be removed a few years after 2.60.
4593 ac_datarootdir_hack=; ac_datarootdir_seen=
4594 ac_sed_dataroot='
4595 /datarootdir/ {
4596 p
4597 q
4598 }
4599 /@datadir@/p
4600 /@docdir@/p
4601 /@infodir@/p
4602 /@localedir@/p
4603 /@mandir@/p'
4604 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4605 *datarootdir*) ac_datarootdir_seen=yes;;
4606 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4608 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4609 _ACEOF
4610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4611 ac_datarootdir_hack='
4612 s&@datadir@&$datadir&g
4613 s&@docdir@&$docdir&g
4614 s&@infodir@&$infodir&g
4615 s&@localedir@&$localedir&g
4616 s&@mandir@&$mandir&g
4617 s&\\\${datarootdir}&$datarootdir&g' ;;
4618 esac
4619 _ACEOF
4620
4621 # Neutralize VPATH when `$srcdir' = `.'.
4622 # Shell code in configure.ac might set extrasub.
4623 # FIXME: do we really want to maintain this feature?
4624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4625 ac_sed_extra="$ac_vpsub
4626 $extrasub
4627 _ACEOF
4628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4629 :t
4630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4631 s|@configure_input@|$ac_sed_conf_input|;t t
4632 s&@top_builddir@&$ac_top_builddir_sub&;t t
4633 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4634 s&@srcdir@&$ac_srcdir&;t t
4635 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4636 s&@top_srcdir@&$ac_top_srcdir&;t t
4637 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4638 s&@builddir@&$ac_builddir&;t t
4639 s&@abs_builddir@&$ac_abs_builddir&;t t
4640 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4641 s&@INSTALL@&$ac_INSTALL&;t t
4642 $ac_datarootdir_hack
4643 "
4644 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4645 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4646
4647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4648 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4650 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4652 which seems to be undefined. Please make sure it is defined" >&5
4653 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4654 which seems to be undefined. Please make sure it is defined" >&2;}
4655
4656 rm -f "$ac_tmp/stdin"
4657 case $ac_file in
4658 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4659 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4660 esac \
4661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4662 ;;
4663
4664
4665 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4666 $as_echo "$as_me: executing $ac_file commands" >&6;}
4667 ;;
4668 esac
4669
4670
4671 case $ac_file$ac_mode in
4672 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
4673 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4674 rm -f Makesim1.tmp Makesim2.tmp Makefile
4675 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4676 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4677 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4678 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4679 <Makefile.sim >Makefile
4680 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4681 ;;
4682 "stamp-h":C) echo > stamp-h ;;
4683
4684 esac
4685 done # for ac_tag
4686
4687
4688 as_fn_exit 0
4689 _ACEOF
4690 ac_clean_files=$ac_clean_files_save
4691
4692 test $ac_write_fail = 0 ||
4693 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4694
4695
4696 # configure is writing to config.log, and then calls config.status.
4697 # config.status does its own redirection, appending to config.log.
4698 # Unfortunately, on DOS this fails, as config.log is still kept open
4699 # by configure, so config.status won't be able to write to it; its
4700 # output is simply discarded. So we exec the FD to /dev/null,
4701 # effectively closing config.log, so it can be properly (re)opened and
4702 # appended to by config.status. When coming back to configure, we
4703 # need to make the FD available again.
4704 if test "$no_create" != yes; then
4705 ac_cs_success=:
4706 ac_config_status_args=
4707 test "$silent" = yes &&
4708 ac_config_status_args="$ac_config_status_args --quiet"
4709 exec 5>/dev/null
4710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4711 exec 5>>config.log
4712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4713 # would make configure fail if this is the last instruction.
4714 $ac_cs_success || as_fn_exit 1
4715 fi
4716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4719 fi
4720
4721