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