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