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