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