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