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