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