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