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