Fix whitespace snafu in tc-riscv.c
[binutils-gdb.git] / sim / ppc / configure
blob41dafffa5d2fd5a9656cd01f0b678dd8ee02bc67
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 sim_termio
625 sim_model_issue
626 sim_default_model
627 sim_model
628 sim_monitor
629 sim_float
630 sim_timebase
631 sim_hostbitsize
632 sim_bitsize
633 sim_igen_smp
634 sim_smp
635 sim_xor_endian
636 sim_hw_obj
637 sim_hw_src
638 sim_icache
639 sim_filter
640 sim_jump
641 sim_decode_mechanism
642 sim_dup
643 sim_switch
644 sim_opcode
645 sim_line_nr
646 EGREP
647 GREP
649 target_os
650 target_vendor
651 target_cpu
652 target
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 target_alias
672 host_alias
673 build_alias
674 LIBS
675 ECHO_T
676 ECHO_N
677 ECHO_C
678 DEFS
679 mandir
680 localedir
681 libdir
682 psdir
683 pdfdir
684 dvidir
685 htmldir
686 infodir
687 docdir
688 oldincludedir
689 includedir
690 localstatedir
691 sharedstatedir
692 sysconfdir
693 datadir
694 datarootdir
695 libexecdir
696 sbindir
697 bindir
698 program_transform_name
699 prefix
700 exec_prefix
701 PACKAGE_URL
702 PACKAGE_BUGREPORT
703 PACKAGE_STRING
704 PACKAGE_VERSION
705 PACKAGE_TARNAME
706 PACKAGE_NAME
707 PATH_SEPARATOR
708 SHELL'
709 ac_subst_files=''
710 ac_user_opts='
711 enable_option_checking
712 enable_sim_bitsize
713 enable_sim_decode_mechanism
714 enable_sim_default_model
715 enable_sim_duplicate
716 enable_sim_filter
717 enable_sim_float
718 enable_sim_hardware
719 enable_sim_icache
720 enable_sim_jump
721 enable_sim_line_nr
722 enable_sim_model
723 enable_sim_model_issue
724 enable_sim_monitor
725 enable_sim_opcode
726 enable_sim_smp
727 enable_sim_switch
728 enable_sim_timebase
729 enable_sim_xor_endian
731 ac_precious_vars='build_alias
732 host_alias
733 target_alias
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS
739 CPP'
742 # Initialize some variables set by options.
743 ac_init_help=
744 ac_init_version=false
745 ac_unrecognized_opts=
746 ac_unrecognized_sep=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
790 ac_prev=
791 ac_dashdash=
792 for ac_option
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
801 case $ac_option in
802 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *=) ac_optarg= ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
854 "enable_$ac_useropt"
855 "*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "with_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=\$ac_optarg ;;
1091 -without-* | --without-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=no ;;
1107 --x)
1108 # Obsolete; use --with-x.
1109 with_x=yes ;;
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1125 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1129 *=*)
1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
1134 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1135 esac
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 esac
1148 done
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $? "missing argument to $ac_option"
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1157 no) ;;
1158 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 esac
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1171 case $ac_val in
1172 */ )
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1175 esac
1176 # Be sure to have absolute directory names.
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1182 done
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 elif test "x$build_alias" != "x$host_alias"; then
1196 cross_compiling=yes
1200 ac_tool_prefix=
1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203 test "$silent" = yes && exec 6>/dev/null
1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di=`ls -di .` &&
1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209 as_fn_error $? "working directory cannot be determined"
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 as_fn_error $? "pwd does not report name of working directory"
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216 ac_srcdir_defaulted=yes
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir=`$as_dirname -- "$as_myself" ||
1219 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220 X"$as_myself" : 'X\(//\)[^/]' \| \
1221 X"$as_myself" : 'X\(//\)$' \| \
1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223 $as_echo X"$as_myself" |
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 s//\1/
1228 /^X\(\/\/\)[^/].*/{
1229 s//\1/
1232 /^X\(\/\/\)$/{
1233 s//\1/
1236 /^X\(\/\).*/{
1237 s//\1/
1240 s/.*/./; q'`
1241 srcdir=$ac_confdir
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 srcdir=..
1245 else
1246 ac_srcdir_defaulted=no
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures this package to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking ...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333 _ACEOF
1335 cat <<\_ACEOF
1337 System types:
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1340 --target=TARGET configure for building compilers for TARGET [HOST]
1341 _ACEOF
1344 if test -n "$ac_init_help"; then
1346 cat <<\_ACEOF
1348 Optional Features:
1349 --disable-option-checking ignore unrecognized --enable/--with options
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
1353 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1354 --enable-sim-default-model=which Specify default PowerPC to model.
1355 --enable-sim-duplicate Expand (duplicate) semantic functions.
1356 --enable-sim-filter=rule Specify filter rules.
1357 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1358 --enable-sim-hardware=list Specify the hardware to be included in the build.
1359 --enable-sim-icache=size Specify instruction-decode cache size and type.
1360 --enable-sim-jump Jump between semantic code (instead of call/return).
1361 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1362 --enable-sim-model=which Specify PowerPC to model.
1363 --enable-sim-model-issue Specify whether to simulate model specific actions
1364 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1365 --enable-sim-opcode=which Override default opcode lookup.
1366 --enable-sim-smp=n Specify number of processors to configure for.
1367 --enable-sim-switch Use a switch instead of a table for instruction call.
1368 --enable-sim-timebase Specify whether the PPC timebase is supported.
1369 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1371 Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CPP C preprocessor
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to the package provider.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 continue
1395 ac_builddir=.
1397 case "$ac_dir" in
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407 esac
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1413 case $srcdir in
1414 .) # We are building in place.
1415 ac_srcdir=.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 esac
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 configure
1448 generated by GNU Autoconf 2.69
1450 Copyright (C) 2012 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1457 ## ------------------------ ##
1458 ## Autoconf initialization. ##
1459 ## ------------------------ ##
1461 # ac_fn_c_try_compile LINENO
1462 # --------------------------
1463 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_compile ()
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext
1468 if { { ac_try="$ac_compile"
1469 case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472 esac
1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 $as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1476 ac_status=$?
1477 if test -s conftest.err; then
1478 grep -v '^ *+' conftest.err >conftest.er1
1479 cat conftest.er1 >&5
1480 mv -f conftest.er1 conftest.err
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.$ac_objext; then :
1487 ac_retval=0
1488 else
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1492 ac_retval=1
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status $ac_retval
1497 } # ac_fn_c_try_compile
1499 # ac_fn_c_try_run LINENO
1500 # ----------------------
1501 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1502 # that executables *can* be run.
1503 ac_fn_c_try_run ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_link"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_link") 2>&5
1514 ac_status=$?
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1517 { { case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_try") 2>&5
1524 ac_status=$?
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; }; }; then :
1527 ac_retval=0
1528 else
1529 $as_echo "$as_me: program exited with status $ac_status" >&5
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 ac_retval=$ac_status
1535 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1539 } # ac_fn_c_try_run
1541 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1542 # -------------------------------------------
1543 # Tests whether TYPE exists after having included INCLUDES, setting cache
1544 # variable VAR accordingly.
1545 ac_fn_c_check_type ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1549 $as_echo_n "checking for $2... " >&6; }
1550 if eval \${$3+:} false; then :
1551 $as_echo_n "(cached) " >&6
1552 else
1553 eval "$3=no"
1554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555 /* end confdefs.h. */
1558 main ()
1560 if (sizeof ($2))
1561 return 0;
1563 return 0;
1565 _ACEOF
1566 if ac_fn_c_try_compile "$LINENO"; then :
1567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h. */
1571 main ()
1573 if (sizeof (($2)))
1574 return 0;
1576 return 0;
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"; then :
1581 else
1582 eval "$3=yes"
1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 } # ac_fn_c_check_type
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=1
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1630 } # ac_fn_c_try_cpp
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 eval "$3=yes"
1651 else
1652 eval "$3=no"
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 } # ac_fn_c_check_header_compile
1662 cat >config.log <<_ACEOF
1663 This file contains any messages produced by compilers while
1664 running configure, to aid debugging if configure makes a mistake.
1666 It was created by $as_me, which was
1667 generated by GNU Autoconf 2.69. Invocation command line was
1669 $ $0 $@
1671 _ACEOF
1672 exec 5>>config.log
1674 cat <<_ASUNAME
1675 ## --------- ##
1676 ## Platform. ##
1677 ## --------- ##
1679 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1681 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1682 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1683 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1685 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1688 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1689 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1690 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1692 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1693 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1694 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1696 _ASUNAME
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 $as_echo "PATH: $as_dir"
1704 done
1705 IFS=$as_save_IFS
1707 } >&5
1709 cat >&5 <<_ACEOF
1712 ## ----------- ##
1713 ## Core tests. ##
1714 ## ----------- ##
1716 _ACEOF
1719 # Keep a trace of the command line.
1720 # Strip out --no-create and --no-recursion so they do not pile up.
1721 # Strip out --silent because we don't want to record it for future runs.
1722 # Also quote any args containing shell meta-characters.
1723 # Make two passes to allow for proper duplicate-argument suppression.
1724 ac_configure_args=
1725 ac_configure_args0=
1726 ac_configure_args1=
1727 ac_must_keep_next=false
1728 for ac_pass in 1 2
1730 for ac_arg
1732 case $ac_arg in
1733 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1736 continue ;;
1737 *\'*)
1738 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1739 esac
1740 case $ac_pass in
1741 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1743 as_fn_append ac_configure_args1 " '$ac_arg'"
1744 if test $ac_must_keep_next = true; then
1745 ac_must_keep_next=false # Got value, back to normal.
1746 else
1747 case $ac_arg in
1748 *=* | --config-cache | -C | -disable-* | --disable-* \
1749 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751 | -with-* | --with-* | -without-* | --without-* | --x)
1752 case "$ac_configure_args0 " in
1753 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1754 esac
1756 -* ) ac_must_keep_next=true ;;
1757 esac
1759 as_fn_append ac_configure_args " '$ac_arg'"
1761 esac
1762 done
1763 done
1764 { ac_configure_args0=; unset ac_configure_args0;}
1765 { ac_configure_args1=; unset ac_configure_args1;}
1767 # When interrupted or exit'd, cleanup temporary files, and complete
1768 # config.log. We remove comments because anyway the quotes in there
1769 # would cause problems or look ugly.
1770 # WARNING: Use '\'' to represent an apostrophe within the trap.
1771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772 trap 'exit_status=$?
1773 # Save into config.log some information that might help in debugging.
1775 echo
1777 $as_echo "## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##"
1780 echo
1781 # The following way of writing the cache mishandles newlines in values,
1783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in #(
1786 *${as_nl}*)
1787 case $ac_var in #(
1788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1790 esac
1791 case $ac_var in #(
1792 _ | IFS | as_nl) ;; #(
1793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794 *) { eval $ac_var=; unset $ac_var;} ;;
1795 esac ;;
1796 esac
1797 done
1798 (set) 2>&1 |
1799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
1801 sed -n \
1802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804 ;; #(
1806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 esac |
1809 sort
1811 echo
1813 $as_echo "## ----------------- ##
1814 ## Output variables. ##
1815 ## ----------------- ##"
1816 echo
1817 for ac_var in $ac_subst_vars
1819 eval ac_val=\$$ac_var
1820 case $ac_val in
1821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 esac
1823 $as_echo "$ac_var='\''$ac_val'\''"
1824 done | sort
1825 echo
1827 if test -n "$ac_subst_files"; then
1828 $as_echo "## ------------------- ##
1829 ## File substitutions. ##
1830 ## ------------------- ##"
1831 echo
1832 for ac_var in $ac_subst_files
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 $as_echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1843 if test -s confdefs.h; then
1844 $as_echo "## ----------- ##
1845 ## confdefs.h. ##
1846 ## ----------- ##"
1847 echo
1848 cat confdefs.h
1849 echo
1851 test "$ac_signal" != 0 &&
1852 $as_echo "$as_me: caught signal $ac_signal"
1853 $as_echo "$as_me: exit $exit_status"
1854 } >&5
1855 rm -f core *.core core.conftest.* &&
1856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857 exit $exit_status
1859 for ac_signal in 1 2 13 15; do
1860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1861 done
1862 ac_signal=0
1864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1865 rm -f -r conftest* confdefs.h
1867 $as_echo "/* confdefs.h */" > confdefs.h
1869 # Predefined preprocessor variables.
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1873 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 _ACEOF
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1881 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 _ACEOF
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_URL "$PACKAGE_URL"
1893 _ACEOF
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer an explicitly selected file to automatically selected ones.
1898 ac_site_file1=NONE
1899 ac_site_file2=NONE
1900 if test -n "$CONFIG_SITE"; then
1901 # We do not want a PATH search for config.site.
1902 case $CONFIG_SITE in #((
1903 -*) ac_site_file1=./$CONFIG_SITE;;
1904 */*) ac_site_file1=$CONFIG_SITE;;
1905 *) ac_site_file1=./$CONFIG_SITE;;
1906 esac
1907 elif test "x$prefix" != xNONE; then
1908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
1910 else
1911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
1914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1916 test "x$ac_site_file" = xNONE && continue
1917 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file" \
1922 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1924 as_fn_error $? "failed to load site script $ac_site_file
1925 See \`config.log' for more details" "$LINENO" 5; }
1927 done
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special files
1931 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1932 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1940 else
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1946 # Check that the precious variables saved in the cache have kept the same
1947 # value.
1948 ac_cache_corrupted=false
1949 for ac_var in $ac_precious_vars; do
1950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
1952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
1954 case $ac_old_set,$ac_new_set in
1955 set,)
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1959 ,set)
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,);;
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
1966 # differences in whitespace do not lead to failure.
1967 ac_old_val_w=`echo x $ac_old_val`
1968 ac_new_val_w=`echo x $ac_new_val`
1969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 ac_cache_corrupted=:
1973 else
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1976 eval $ac_var=\$ac_old_val
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1979 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
1987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1993 esac
1995 done
1996 if $ac_cache_corrupted; then
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2003 ## -------------------- ##
2004 ## Main body of script. ##
2005 ## -------------------- ##
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 ac_aux_dir=
2017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018 if test -f "$ac_dir/install-sh"; then
2019 ac_aux_dir=$ac_dir
2020 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 break
2022 elif test -f "$ac_dir/install.sh"; then
2023 ac_aux_dir=$ac_dir
2024 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 break
2026 elif test -f "$ac_dir/shtool"; then
2027 ac_aux_dir=$ac_dir
2028 ac_install_sh="$ac_aux_dir/shtool install -c"
2029 break
2031 done
2032 if test -z "$ac_aux_dir"; then
2033 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 # Find a good install program. We prefer a C program (faster),
2046 # so one script is as good as another. But avoid the broken or
2047 # incompatible versions:
2048 # SysV /etc/install, /usr/sbin/install
2049 # SunOS /usr/etc/install
2050 # IRIX /sbin/install
2051 # AIX /bin/install
2052 # AmigaOS /C/install, which installs bootblocks on floppy discs
2053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2056 # OS/2's system install, which has a completely different semantic
2057 # ./install, which can be erroneously created by make from ./install.sh.
2058 # Reject install programs that cannot install multiple files.
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2061 if test -z "$INSTALL"; then
2062 if ${ac_cv_path_install+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 # Account for people who put trailing slashes in PATH elements.
2071 case $as_dir/ in #((
2072 ./ | .// | /[cC]/* | \
2073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2074 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2075 /usr/ucb/* ) ;;
2077 # OSF1 and SCO ODT 3.0 have their own names for install.
2078 # Don't use installbsd from OSF since it installs stuff as root
2079 # by default.
2080 for ac_prog in ginstall scoinst install; do
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2083 if test $ac_prog = install &&
2084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085 # AIX install. It has an incompatible calling convention.
2087 elif test $ac_prog = install &&
2088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089 # program-specific install script used by HP pwplus--don't use.
2091 else
2092 rm -rf conftest.one conftest.two conftest.dir
2093 echo one > conftest.one
2094 echo two > conftest.two
2095 mkdir conftest.dir
2096 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2097 test -s conftest.one && test -s conftest.two &&
2098 test -s conftest.dir/conftest.one &&
2099 test -s conftest.dir/conftest.two
2100 then
2101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2102 break 3
2106 done
2107 done
2109 esac
2111 done
2112 IFS=$as_save_IFS
2114 rm -rf conftest.one conftest.two conftest.dir
2117 if test "${ac_cv_path_install+set}" = set; then
2118 INSTALL=$ac_cv_path_install
2119 else
2120 # As a last resort, use the slow shell script. Don't cache a
2121 # value for INSTALL within a source directory, because that will
2122 # break other packages using the cache if that directory is
2123 # removed, or if the value is a relative name.
2124 INSTALL=$ac_install_sh
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2128 $as_echo "$INSTALL" >&6; }
2130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131 # It thinks the first close brace ends the variable substitution.
2132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2138 ac_ext=c
2139 ac_cpp='$CPP $CPPFLAGS'
2140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2147 $as_echo_n "checking for $ac_word... " >&6; }
2148 if ${ac_cv_prog_CC+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2165 done
2166 done
2167 IFS=$as_save_IFS
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2174 $as_echo "$CC" >&6; }
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2177 $as_echo "no" >&6; }
2182 if test -z "$ac_cv_prog_CC"; then
2183 ac_ct_CC=$CC
2184 # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_ac_ct_CC="gcc"
2202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2207 IFS=$as_save_IFS
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2214 $as_echo "$ac_ct_CC" >&6; }
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2217 $as_echo "no" >&6; }
2220 if test "x$ac_ct_CC" = x; then
2221 CC=""
2222 else
2223 case $cross_compiling:$ac_tool_warned in
2224 yes:)
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2227 ac_tool_warned=yes ;;
2228 esac
2229 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2240 $as_echo_n "checking for $ac_word... " >&6; }
2241 if ${ac_cv_prog_CC+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_CC="${ac_tool_prefix}cc"
2255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2267 $as_echo "$CC" >&6; }
2268 else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2270 $as_echo "no" >&6; }
2276 if test -z "$CC"; then
2277 # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2280 $as_echo_n "checking for $ac_word... " >&6; }
2281 if ${ac_cv_prog_CC+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287 ac_prog_rejected=no
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296 ac_prog_rejected=yes
2297 continue
2299 ac_cv_prog_CC="cc"
2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2303 done
2304 done
2305 IFS=$as_save_IFS
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2310 shift
2311 if test $# != 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2315 shift
2316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2324 $as_echo "$CC" >&6; }
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327 $as_echo "no" >&6; }
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl.exe
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if ${ac_cv_prog_CC+:} false; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2359 IFS=$as_save_IFS
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2366 $as_echo "$CC" >&6; }
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369 $as_echo "no" >&6; }
2373 test -n "$CC" && break
2374 done
2376 if test -z "$CC"; then
2377 ac_ct_CC=$CC
2378 for ac_prog in cl.exe
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test -n "$ac_ct_CC"; then
2388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_ac_ct_CC="$ac_prog"
2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2401 done
2402 done
2403 IFS=$as_save_IFS
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2410 $as_echo "$ac_ct_CC" >&6; }
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2417 test -n "$ac_ct_CC" && break
2418 done
2420 if test "x$ac_ct_CC" = x; then
2421 CC=""
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2427 ac_tool_warned=yes ;;
2428 esac
2429 CC=$ac_ct_CC
2436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error $? "no acceptable C compiler found in \$PATH
2439 See \`config.log' for more details" "$LINENO" 5; }
2441 # Provide some information about the compiler.
2442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2443 set X $ac_compile
2444 ac_compiler=$2
2445 for ac_option in --version -v -V -qversion; do
2446 { { ac_try="$ac_compiler $ac_option >&5"
2447 case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2454 ac_status=$?
2455 if test -s conftest.err; then
2456 sed '10a\
2457 ... rest of stderr output deleted ...
2458 10q' conftest.err >conftest.er1
2459 cat conftest.er1 >&5
2461 rm -f conftest.er1 conftest.err
2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463 test $ac_status = 0; }
2464 done
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2470 main ()
2474 return 0;
2476 _ACEOF
2477 ac_clean_files_save=$ac_clean_files
2478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2479 # Try to create an executable without -o first, disregard a.out.
2480 # It will help us diagnose broken compilers, and finding out an intuition
2481 # of exeext.
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2483 $as_echo_n "checking whether the C compiler works... " >&6; }
2484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2486 # The possible output files:
2487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2489 ac_rmfiles=
2490 for ac_file in $ac_files
2492 case $ac_file in
2493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2494 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2495 esac
2496 done
2497 rm -f $ac_rmfiles
2499 if { { ac_try="$ac_link_default"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link_default") 2>&5
2507 ac_status=$?
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; }; then :
2510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2513 # so that the user can short-circuit this test for compilers unknown to
2514 # Autoconf.
2515 for ac_file in $ac_files ''
2517 test -f "$ac_file" || continue
2518 case $ac_file in
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2521 [ab].out )
2522 # We found the default executable, but exeext='' is most
2523 # certainly right.
2524 break;;
2525 *.* )
2526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2527 then :; else
2528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2530 # We set ac_cv_exeext here because the later test for it is not
2531 # safe: cross compilers may not add the suffix if given an `-o'
2532 # argument, so we may need to know it at that point already.
2533 # Even if this section looks crufty: it has the advantage of
2534 # actually working.
2535 break;;
2537 break;;
2538 esac
2539 done
2540 test "$ac_cv_exeext" = no && ac_cv_exeext=
2542 else
2543 ac_file=''
2545 if test -z "$ac_file"; then :
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 $as_echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 as_fn_error 77 "C compiler cannot create executables
2554 See \`config.log' for more details" "$LINENO" 5; }
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2560 $as_echo_n "checking for C compiler default output file name... " >&6; }
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2562 $as_echo "$ac_file" >&6; }
2563 ac_exeext=$ac_cv_exeext
2565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2566 ac_clean_files=$ac_clean_files_save
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2568 $as_echo_n "checking for suffix of executables... " >&6; }
2569 if { { ac_try="$ac_link"
2570 case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573 esac
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link") 2>&5
2577 ac_status=$?
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }; then :
2580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2581 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2582 # work properly (i.e., refer to `conftest.exe'), while it won't with
2583 # `rm'.
2584 for ac_file in conftest.exe conftest conftest.*; do
2585 test -f "$ac_file" || continue
2586 case $ac_file in
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2588 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2589 break;;
2590 * ) break;;
2591 esac
2592 done
2593 else
2594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2597 See \`config.log' for more details" "$LINENO" 5; }
2599 rm -f conftest conftest$ac_cv_exeext
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2601 $as_echo "$ac_cv_exeext" >&6; }
2603 rm -f conftest.$ac_ext
2604 EXEEXT=$ac_cv_exeext
2605 ac_exeext=$EXEEXT
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 #include <stdio.h>
2610 main ()
2612 FILE *f = fopen ("conftest.out", "w");
2613 return ferror (f) || fclose (f) != 0;
2616 return 0;
2618 _ACEOF
2619 ac_clean_files="$ac_clean_files conftest.out"
2620 # Check that the compiler produces executables we can run. If not, either
2621 # the compiler is broken, or we cross compile.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2623 $as_echo_n "checking whether we are cross compiling... " >&6; }
2624 if test "$cross_compiling" != yes; then
2625 { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>&5
2633 ac_status=$?
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; }
2636 if { ac_try='./conftest$ac_cv_exeext'
2637 { { case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_try") 2>&5
2644 ac_status=$?
2645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646 test $ac_status = 0; }; }; then
2647 cross_compiling=no
2648 else
2649 if test "$cross_compiling" = maybe; then
2650 cross_compiling=yes
2651 else
2652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 as_fn_error $? "cannot run C compiled programs.
2655 If you meant to cross compile, use \`--host'.
2656 See \`config.log' for more details" "$LINENO" 5; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2661 $as_echo "$cross_compiling" >&6; }
2663 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2664 ac_clean_files=$ac_clean_files_save
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2666 $as_echo_n "checking for suffix of object files... " >&6; }
2667 if ${ac_cv_objext+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2674 main ()
2678 return 0;
2680 _ACEOF
2681 rm -f conftest.o conftest.obj
2682 if { { ac_try="$ac_compile"
2683 case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686 esac
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689 (eval "$ac_compile") 2>&5
2690 ac_status=$?
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }; then :
2693 for ac_file in conftest.o conftest.obj conftest.*; do
2694 test -f "$ac_file" || continue;
2695 case $ac_file in
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698 break;;
2699 esac
2700 done
2701 else
2702 $as_echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error $? "cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details" "$LINENO" 5; }
2710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2713 $as_echo "$ac_cv_objext" >&6; }
2714 OBJEXT=$ac_cv_objext
2715 ac_objext=$OBJEXT
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2718 if ${ac_cv_c_compiler_gnu+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2725 main ()
2727 #ifndef __GNUC__
2728 choke me
2729 #endif
2732 return 0;
2734 _ACEOF
2735 if ac_fn_c_try_compile "$LINENO"; then :
2736 ac_compiler_gnu=yes
2737 else
2738 ac_compiler_gnu=no
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2746 if test $ac_compiler_gnu = yes; then
2747 GCC=yes
2748 else
2749 GCC=
2751 ac_test_CFLAGS=${CFLAGS+set}
2752 ac_save_CFLAGS=$CFLAGS
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2755 if ${ac_cv_prog_cc_g+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 ac_save_c_werror_flag=$ac_c_werror_flag
2759 ac_c_werror_flag=yes
2760 ac_cv_prog_cc_g=no
2761 CFLAGS="-g"
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2766 main ()
2770 return 0;
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_cv_prog_cc_g=yes
2775 else
2776 CFLAGS=""
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2781 main ()
2785 return 0;
2787 _ACEOF
2788 if ac_fn_c_try_compile "$LINENO"; then :
2790 else
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2792 CFLAGS="-g"
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2797 main ()
2801 return 0;
2803 _ACEOF
2804 if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_cv_prog_cc_g=yes
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_c_werror_flag=$ac_save_c_werror_flag
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2815 $as_echo "$ac_cv_prog_cc_g" >&6; }
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2820 CFLAGS="-g -O2"
2821 else
2822 CFLAGS="-g"
2824 else
2825 if test "$GCC" = yes; then
2826 CFLAGS="-O2"
2827 else
2828 CFLAGS=
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2833 if ${ac_cv_prog_cc_c89+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 ac_cv_prog_cc_c89=no
2837 ac_save_CC=$CC
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2840 #include <stdarg.h>
2841 #include <stdio.h>
2842 struct stat;
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2847 char **p;
2848 int i;
2850 return p[i];
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2854 char *s;
2855 va_list v;
2856 va_start (v,p);
2857 s = g (p, va_arg (v,int));
2858 va_end (v);
2859 return s;
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2873 #define FOO(x) 'x'
2874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 int argc;
2881 char **argv;
2883 main ()
2885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2887 return 0;
2889 _ACEOF
2890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 CC="$ac_save_CC $ac_arg"
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895 ac_cv_prog_cc_c89=$ac_arg
2897 rm -f core conftest.err conftest.$ac_objext
2898 test "x$ac_cv_prog_cc_c89" != "xno" && break
2899 done
2900 rm -f conftest.$ac_ext
2901 CC=$ac_save_CC
2904 # AC_CACHE_VAL
2905 case "x$ac_cv_prog_cc_c89" in
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2908 $as_echo "none needed" >&6; } ;;
2909 xno)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2911 $as_echo "unsupported" >&6; } ;;
2913 CC="$CC $ac_cv_prog_cc_c89"
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2916 esac
2917 if test "x$ac_cv_prog_cc_c89" != xno; then :
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 # Make sure we can run config.sub.
2929 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2930 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2933 $as_echo_n "checking build system type... " >&6; }
2934 if ${ac_cv_build+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 ac_build_alias=$build_alias
2938 test "x$ac_build_alias" = x &&
2939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2940 test "x$ac_build_alias" = x &&
2941 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2947 $as_echo "$ac_cv_build" >&6; }
2948 case $ac_cv_build in
2949 *-*-*) ;;
2950 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2951 esac
2952 build=$ac_cv_build
2953 ac_save_IFS=$IFS; IFS='-'
2954 set x $ac_cv_build
2955 shift
2956 build_cpu=$1
2957 build_vendor=$2
2958 shift; shift
2959 # Remember, the first character of IFS is used to create $*,
2960 # except with old shells:
2961 build_os=$*
2962 IFS=$ac_save_IFS
2963 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2967 $as_echo_n "checking host system type... " >&6; }
2968 if ${ac_cv_host+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test "x$host_alias" = x; then
2972 ac_cv_host=$ac_cv_build
2973 else
2974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2975 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2980 $as_echo "$ac_cv_host" >&6; }
2981 case $ac_cv_host in
2982 *-*-*) ;;
2983 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2984 esac
2985 host=$ac_cv_host
2986 ac_save_IFS=$IFS; IFS='-'
2987 set x $ac_cv_host
2988 shift
2989 host_cpu=$1
2990 host_vendor=$2
2991 shift; shift
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2994 host_os=$*
2995 IFS=$ac_save_IFS
2996 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3000 $as_echo_n "checking target system type... " >&6; }
3001 if ${ac_cv_target+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test "x$target_alias" = x; then
3005 ac_cv_target=$ac_cv_host
3006 else
3007 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3008 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3013 $as_echo "$ac_cv_target" >&6; }
3014 case $ac_cv_target in
3015 *-*-*) ;;
3016 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3017 esac
3018 target=$ac_cv_target
3019 ac_save_IFS=$IFS; IFS='-'
3020 set x $ac_cv_target
3021 shift
3022 target_cpu=$1
3023 target_vendor=$2
3024 shift; shift
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3027 target_os=$*
3028 IFS=$ac_save_IFS
3029 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3032 # The aliases save the names the user supplied, while $host etc.
3033 # will get canonicalized.
3034 test -n "$target_alias" &&
3035 test "$program_prefix$program_suffix$program_transform_name" = \
3036 NONENONEs,x,x, &&
3037 program_prefix=${target_alias}-
3040 # Check whether --enable-sim-bitsize was given.
3041 if test "${enable_sim_bitsize+set}" = set; then :
3042 enableval=$enable_sim_bitsize; case "${enableval}" in
3043 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3044 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3045 esac
3046 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3047 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3049 else
3050 sim_bitsize=""
3054 # Check whether --enable-sim-decode-mechanism was given.
3055 if test "${enable_sim_decode_mechanism+set}" = set; then :
3056 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3057 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3058 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3059 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3060 sim_decode_mechanism="switch";;
3061 esac
3062 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3063 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3065 else
3066 sim_decode_mechanism=""
3067 if test x"$silent" != x"yes"; then
3068 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3073 # Check whether --enable-sim-default-model was given.
3074 if test "${enable_sim_default_model+set}" = set; then :
3075 enableval=$enable_sim_default_model; case "${enableval}" in
3076 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3077 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3078 esac
3079 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3080 echo "Setting default-model flags = $sim_default_model" 6>&1
3082 else
3083 sim_default_model=""
3087 # Check whether --enable-sim-duplicate was given.
3088 if test "${enable_sim_duplicate+set}" = set; then :
3089 enableval=$enable_sim_duplicate; case "${enableval}" in
3090 yes) sim_dup="-E";;
3091 no) sim_dup="";;
3092 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3093 esac
3094 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3095 echo "Setting duplicate flags = $sim_dup" 6>&1
3097 else
3098 sim_dup="-E"
3099 if test x"$silent" != x"yes"; then
3100 echo "Setting duplicate flags = $sim_dup" 6>&1
3105 # Check whether --enable-sim-filter was given.
3106 if test "${enable_sim_filter+set}" = set; then :
3107 enableval=$enable_sim_filter; case "${enableval}" in
3108 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3109 no) sim_filter="";;
3110 *) sim_filter="-F $enableval";;
3111 esac
3112 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3113 echo "Setting filter flags = $sim_filter" 6>&1
3115 else
3116 sim_filter="-F 32,f,o"
3117 if test x"$silent" != x"yes"; then
3118 echo "Setting filter flags = $sim_filter" 6>&1
3123 # Check whether --enable-sim-float was given.
3124 if test "${enable_sim_float+set}" = set; then :
3125 enableval=$enable_sim_float; case "${enableval}" in
3126 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3127 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3128 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3129 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3130 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3131 esac
3132 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3133 echo "Setting float flags = $sim_float" 6>&1
3135 else
3137 case "${target}" in
3138 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3139 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3140 *) sim_float=""
3141 esac
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3147 $as_echo_n "checking if union semun defined... " >&6; }
3148 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3154 #include <sys/types.h>
3155 #include <sys/ipc.h>
3156 #include <sys/sem.h>
3158 main ()
3160 union semun arg ;
3162 return 0;
3164 _ACEOF
3165 if ac_fn_c_try_compile "$LINENO"; then :
3166 ac_cv_has_union_semun="yes"
3167 else
3168 ac_cv_has_union_semun="no"
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3172 $as_echo "$ac_cv_has_union_semun" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3176 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3179 if test "$ac_cv_has_union_semun" = "yes"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3181 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3182 if ${ac_cv_sysv_sem+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3186 if test "$cross_compiling" = yes; then :
3188 else
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3192 #include <sys/types.h>
3193 #include <sys/ipc.h>
3194 #include <sys/sem.h>
3195 int main () {
3196 union semun arg ;
3198 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3199 if (id == -1)
3200 exit(1);
3201 arg.val = 0; /* avoid implicit type cast to union */
3202 if (semctl(id, 0, IPC_RMID, arg) == -1)
3203 exit(1);
3204 exit(0);
3207 _ACEOF
3208 if ac_fn_c_try_run "$LINENO"; then :
3209 ac_cv_sysv_sem="yes"
3210 else
3211 ac_cv_sysv_sem="no"
3213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3214 conftest.$ac_objext conftest.beam conftest.$ac_ext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3220 $as_echo "$ac_cv_sysv_sem" >&6; }
3221 else # semun is not defined
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3223 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3224 if ${ac_cv_sysv_sem+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3228 if test "$cross_compiling" = yes; then :
3230 else
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3234 #include <sys/types.h>
3235 #include <sys/ipc.h>
3236 #include <sys/sem.h>
3237 union semun {
3238 int val;
3239 struct semid_ds *buf;
3240 ushort *array;
3242 int main () {
3243 union semun arg ;
3245 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3246 if (id == -1)
3247 exit(1);
3248 arg.val = 0; /* avoid implicit type cast to union */
3249 if (semctl(id, 0, IPC_RMID, arg) == -1)
3250 exit(1);
3251 exit(0);
3254 _ACEOF
3255 if ac_fn_c_try_run "$LINENO"; then :
3256 ac_cv_sysv_sem="yes"
3257 else
3258 ac_cv_sysv_sem="no"
3260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3261 conftest.$ac_objext conftest.beam conftest.$ac_ext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3267 $as_echo "$ac_cv_sysv_sem" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3271 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3272 if ${ac_cv_sysv_shm+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3276 if test "$cross_compiling" = yes; then :
3278 else
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 #include <sys/ipc.h>
3284 #include <sys/shm.h>
3285 int main () {
3286 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3287 if (id == -1)
3288 exit(1);
3289 if (shmctl(id, IPC_RMID, 0) == -1)
3290 exit(1);
3291 exit(0);
3294 _ACEOF
3295 if ac_fn_c_try_run "$LINENO"; then :
3296 ac_cv_sysv_shm="yes"
3297 else
3298 ac_cv_sysv_shm="no"
3300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3301 conftest.$ac_objext conftest.beam conftest.$ac_ext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3307 $as_echo "$ac_cv_sysv_shm" >&6; }
3309 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3310 sim_sysv_ipc_hw=",sem,shm";
3311 else
3312 sim_sysv_ipc_hw="";
3315 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3317 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3322 # Check whether --enable-sim-hardware was given.
3323 if test "${enable_sim_hardware+set}" = set; then :
3324 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3325 case "${enableval}" in
3326 yes) ;;
3327 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3328 ,*) hardware="${hardware}${enableval}";;
3329 *,) hardware="${enableval}${hardware}";;
3330 *) hardware="${enableval}"'';;
3331 esac
3332 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3333 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3334 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3335 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3337 else
3338 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3339 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3340 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3341 if test x"$silent" != x"yes"; then
3342 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3347 # Check whether --enable-sim-icache was given.
3348 if test "${enable_sim_icache+set}" = set; then :
3349 enableval=$enable_sim_icache; icache="-R"
3350 case "${enableval}" in
3351 yes) icache="1024"; sim_icache="-I $icache";;
3352 no) sim_icache="-R";;
3353 *) icache=1024
3354 sim_icache="-"
3355 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3356 case "$x" in
3357 define) sim_icache="${sim_icache}R";;
3358 semantic) sim_icache="${sim_icache}C";;
3359 insn) sim_icache="${sim_icache}S";;
3360 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3361 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
3362 esac
3363 done
3364 sim_icache="${sim_icache}I $icache";;
3365 esac
3366 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3367 echo "Setting instruction cache size to $icache ($sim_icache)"
3369 else
3370 sim_icache="-CSRI 1024"
3371 if test x"$silent" != x"yes"; then
3372 echo "Setting instruction cache size to 1024 ($sim_icache)"
3377 # Check whether --enable-sim-jump was given.
3378 if test "${enable_sim_jump+set}" = set; then :
3379 enableval=$enable_sim_jump; case "${enableval}" in
3380 yes) sim_jump="-J";;
3381 no) sim_jump="";;
3382 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
3383 esac
3384 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3385 echo "Setting jump flag = $sim_jump" 6>&1
3387 else
3388 sim_jump=""
3389 if test x"$silent" != x"yes"; then
3390 echo "Setting jump flag = $sim_jump" 6>&1
3395 # Check whether --enable-sim-line-nr was given.
3396 if test "${enable_sim_line_nr+set}" = set; then :
3397 enableval=$enable_sim_line_nr; case "${enableval}" in
3398 yes) sim_line_nr="";;
3399 no) sim_line_nr="-L";;
3400 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
3401 esac
3402 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3403 echo "Setting warning flags = $sim_line_nr" 6>&1
3405 else
3406 sim_line_nr=""
3410 # Check whether --enable-sim-model was given.
3411 if test "${enable_sim_model+set}" = set; then :
3412 enableval=$enable_sim_model; case "${enableval}" in
3413 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
3414 *) sim_model="-DWITH_MODEL=${enableval}";;
3415 esac
3416 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3417 echo "Setting model flags = $sim_model" 6>&1
3419 else
3420 sim_model=""
3424 # Check whether --enable-sim-model-issue was given.
3425 if test "${enable_sim_model_issue+set}" = set; then :
3426 enableval=$enable_sim_model_issue; case "${enableval}" in
3427 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3428 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3429 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
3430 esac
3431 if test x"$silent" != x"yes"; then
3432 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3434 else
3435 sim_model_issue=""
3439 # Check whether --enable-sim-monitor was given.
3440 if test "${enable_sim_monitor+set}" = set; then :
3441 enableval=$enable_sim_monitor; case "${enableval}" in
3442 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3443 no) sim_monitor="-DWITH_MON=0";;
3444 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3445 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3446 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
3447 esac
3448 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3449 echo "Setting monitor flags = $sim_monitor" 6>&1
3451 else
3452 sim_monitor=""
3456 # Check whether --enable-sim-opcode was given.
3457 if test "${enable_sim_opcode+set}" = set; then :
3458 enableval=$enable_sim_opcode; case "${enableval}" in
3459 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
3460 *) if test -f "${srcdir}/${enableval}"; then
3461 sim_opcode="${enableval}"
3462 elif test -f "${srcdir}/dc-${enableval}"; then
3463 sim_opcode="dc-${enableval}"
3464 else
3465 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3466 sim_opcode="dc-complex"
3467 fi;;
3468 esac
3469 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3470 echo "Setting opcode flags = $sim_opcode" 6>&1
3472 else
3473 sim_opcode="dc-complex"
3474 if test x"$silent" != x"yes"; then
3475 echo "Setting opcode flags = $sim_opcode"
3480 # Check whether --enable-sim-smp was given.
3481 if test "${enable_sim_smp+set}" = set; then :
3482 enableval=$enable_sim_smp; case "${enableval}" in
3483 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3484 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3485 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3486 esac
3487 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3488 echo "Setting smp flags = $sim_smp" 6>&1
3490 else
3491 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3492 if test x"$silent" != x"yes"; then
3493 echo "Setting smp flags = $sim_smp" 6>&1
3498 # Check whether --enable-sim-switch was given.
3499 if test "${enable_sim_switch+set}" = set; then :
3500 enableval=$enable_sim_switch; case "${enableval}" in
3501 yes) sim_switch="-DWITH_SPREG_SWITCH_TABLE";;
3502 no) sim_switch="";;
3503 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
3504 esac
3505 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3506 echo "Setting switch flags = $sim_switch" 6>&1
3508 else
3509 sim_switch="";
3510 if test x"$silent" != x"yes"; then
3511 echo "Setting switch flags = $sim_switch" 6>&1
3516 # Check whether --enable-sim-timebase was given.
3517 if test "${enable_sim_timebase+set}" = set; then :
3518 enableval=$enable_sim_timebase; case "${enableval}" in
3519 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3520 no) sim_timebase="-DWITH_TIME_BASE=0";;
3521 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
3522 esac
3523 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3524 echo "Setting timebase flags = $sim_timebase" 6>&1
3526 else
3527 sim_timebase=""
3531 # Check whether --enable-sim-xor-endian was given.
3532 if test "${enable_sim_xor_endian+set}" = set; then :
3533 enableval=$enable_sim_xor_endian; case "${enableval}" in
3534 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3535 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3536 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3537 esac
3538 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3539 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3541 else
3542 sim_xor_endian=""
3546 ac_config_headers="$ac_config_headers config.h:config.in"
3550 sim_termio=""
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
3552 $as_echo_n "checking for struct termios... " >&6; }
3553 if ${ac_cv_termios_struct+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #include <sys/types.h>
3559 #include <sys/termios.h>
3561 main ()
3563 static struct termios x;
3564 x.c_iflag = 0;
3565 x.c_oflag = 0;
3566 x.c_cflag = 0;
3567 x.c_lflag = 0;
3568 x.c_cc[NCCS] = 0;
3570 return 0;
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3574 ac_cv_termios_struct=yes
3575 else
3576 ac_cv_termios_struct=no
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
3582 $as_echo "$ac_cv_termios_struct" >&6; }
3583 if test $ac_cv_termios_struct = yes; then
3584 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
3587 if test "$ac_cv_termios_struct" = "yes"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
3589 $as_echo_n "checking for c_line field in struct termios... " >&6; }
3590 if ${ac_cv_termios_cline+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/termios.h>
3598 main ()
3600 static struct termios x; x.c_line = 0;
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_termios_cline=yes
3607 else
3608 ac_cv_termios_cline=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
3615 $as_echo "$ac_cv_termios_cline" >&6; }
3616 if test $ac_cv_termios_cline = yes; then
3617 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
3619 else
3620 ac_cv_termios_cline=no
3623 if test "$ac_cv_termios_struct" != "yes"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
3625 $as_echo_n "checking for struct termio... " >&6; }
3626 if ${ac_cv_termio_struct+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631 #include <sys/types.h>
3632 #include <sys/termio.h>
3634 main ()
3636 static struct termio x;
3637 x.c_iflag = 0;
3638 x.c_oflag = 0;
3639 x.c_cflag = 0;
3640 x.c_lflag = 0;
3641 x.c_cc[NCC] = 0;
3643 return 0;
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_cv_termio_struct=yes
3648 else
3649 ac_cv_termio_struct=no
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
3655 $as_echo "$ac_cv_termio_struct" >&6; }
3656 if test $ac_cv_termio_struct = yes; then
3657 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
3659 else
3660 ac_cv_termio_struct=no
3663 if test "$ac_cv_termio_struct" = "yes"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
3665 $as_echo_n "checking for c_line field in struct termio... " >&6; }
3666 if ${ac_cv_termio_cline+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 #include <sys/types.h>
3672 #include <sys/termio.h>
3674 main ()
3676 static struct termio x; x.c_line = 0;
3678 return 0;
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_termio_cline=yes
3683 else
3684 ac_cv_termio_cline=no
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
3691 $as_echo "$ac_cv_termio_cline" >&6; }
3692 if test $ac_cv_termio_cline = yes; then
3693 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
3695 else
3696 ac_cv_termio_cline=no
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
3700 $as_echo_n "checking for struct statfs... " >&6; }
3701 if ${ac_cv_struct_statfs+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <sys/types.h>
3707 #ifdef HAVE_SYS_PARAM_H
3708 #include <sys/param.h>
3709 #endif
3710 #ifdef HAVE_SYS_MOUNT_H
3711 #include <sys/mount.h>
3712 #endif
3713 #ifdef HAVE_SYS_VFS_H
3714 #include <sys/vfs.h>
3715 #endif
3716 #ifdef HAVE_SYS_STATFS_H
3717 #include <sys/statfs.h>
3718 #endif
3720 main ()
3722 static struct statfs s;
3724 return 0;
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv_struct_statfs=yes
3729 else
3730 ac_cv_struct_statfs=no
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
3736 $as_echo "$ac_cv_struct_statfs" >&6; }
3737 if test $ac_cv_struct_statfs = yes; then
3739 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3749 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752 CPP=
3754 if test -z "$CPP"; then
3755 if ${ac_cv_prog_CPP+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772 #ifdef __STDC__
3773 # include <limits.h>
3774 #else
3775 # include <assert.h>
3776 #endif
3777 Syntax error
3778 _ACEOF
3779 if ac_fn_c_try_cpp "$LINENO"; then :
3781 else
3782 # Broken: fails on valid input.
3783 continue
3785 rm -f conftest.err conftest.i conftest.$ac_ext
3787 # OK, works on sane cases. Now check whether nonexistent headers
3788 # can be detected and how.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #include <ac_nonexistent.h>
3792 _ACEOF
3793 if ac_fn_c_try_cpp "$LINENO"; then :
3794 # Broken: success on invalid input.
3795 continue
3796 else
3797 # Passes both tests.
3798 ac_preproc_ok=:
3799 break
3801 rm -f conftest.err conftest.i conftest.$ac_ext
3803 done
3804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805 rm -f conftest.i conftest.err conftest.$ac_ext
3806 if $ac_preproc_ok; then :
3807 break
3810 done
3811 ac_cv_prog_CPP=$CPP
3814 CPP=$ac_cv_prog_CPP
3815 else
3816 ac_cv_prog_CPP=$CPP
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3819 $as_echo "$CPP" >&6; }
3820 ac_preproc_ok=false
3821 for ac_c_preproc_warn_flag in '' yes
3823 # Use a header file that comes with gcc, so configuring glibc
3824 # with a fresh cross-compiler works.
3825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3826 # <limits.h> exists even on freestanding compilers.
3827 # On the NeXT, cc -E runs the code through the compiler's parser,
3828 # not just through cpp. "Syntax error" is here to catch this case.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831 #ifdef __STDC__
3832 # include <limits.h>
3833 #else
3834 # include <assert.h>
3835 #endif
3836 Syntax error
3837 _ACEOF
3838 if ac_fn_c_try_cpp "$LINENO"; then :
3840 else
3841 # Broken: fails on valid input.
3842 continue
3844 rm -f conftest.err conftest.i conftest.$ac_ext
3846 # OK, works on sane cases. Now check whether nonexistent headers
3847 # can be detected and how.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <ac_nonexistent.h>
3851 _ACEOF
3852 if ac_fn_c_try_cpp "$LINENO"; then :
3853 # Broken: success on invalid input.
3854 continue
3855 else
3856 # Passes both tests.
3857 ac_preproc_ok=:
3858 break
3860 rm -f conftest.err conftest.i conftest.$ac_ext
3862 done
3863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3864 rm -f conftest.i conftest.err conftest.$ac_ext
3865 if $ac_preproc_ok; then :
3867 else
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3871 See \`config.log' for more details" "$LINENO" 5; }
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3883 if ${ac_cv_path_GREP+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -z "$GREP"; then
3887 ac_path_GREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_prog in grep ggrep; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3897 as_fn_executable_p "$ac_path_GREP" || continue
3898 # Check for GNU ac_path_GREP and select it if it is found.
3899 # Check for GNU $ac_path_GREP
3900 case `"$ac_path_GREP" --version 2>&1` in
3901 *GNU*)
3902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 ac_count=0
3905 $as_echo_n 0123456789 >"conftest.in"
3906 while :
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 $as_echo 'GREP' >> "conftest.nl"
3912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914 as_fn_arith $ac_count + 1 && ac_count=$as_val
3915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_GREP="$ac_path_GREP"
3918 ac_path_GREP_max=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3922 done
3923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 esac
3926 $ac_path_GREP_found && break 3
3927 done
3928 done
3929 done
3930 IFS=$as_save_IFS
3931 if test -z "$ac_cv_path_GREP"; then
3932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3934 else
3935 ac_cv_path_GREP=$GREP
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3940 $as_echo "$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3945 $as_echo_n "checking for egrep... " >&6; }
3946 if ${ac_cv_path_EGREP+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 if test -z "$EGREP"; then
3953 ac_path_EGREP_found=false
3954 # Loop through the user's path and test for each of PROGNAME-LIST
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_prog in egrep; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3963 as_fn_executable_p "$ac_path_EGREP" || continue
3964 # Check for GNU ac_path_EGREP and select it if it is found.
3965 # Check for GNU $ac_path_EGREP
3966 case `"$ac_path_EGREP" --version 2>&1` in
3967 *GNU*)
3968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3970 ac_count=0
3971 $as_echo_n 0123456789 >"conftest.in"
3972 while :
3974 cat "conftest.in" "conftest.in" >"conftest.tmp"
3975 mv "conftest.tmp" "conftest.in"
3976 cp "conftest.in" "conftest.nl"
3977 $as_echo 'EGREP' >> "conftest.nl"
3978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3980 as_fn_arith $ac_count + 1 && ac_count=$as_val
3981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3982 # Best one so far, save it but keep looking for a better one
3983 ac_cv_path_EGREP="$ac_path_EGREP"
3984 ac_path_EGREP_max=$ac_count
3986 # 10*(2^10) chars as input seems more than enough
3987 test $ac_count -gt 10 && break
3988 done
3989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990 esac
3992 $ac_path_EGREP_found && break 3
3993 done
3994 done
3995 done
3996 IFS=$as_save_IFS
3997 if test -z "$ac_cv_path_EGREP"; then
3998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4000 else
4001 ac_cv_path_EGREP=$EGREP
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4007 $as_echo "$ac_cv_path_EGREP" >&6; }
4008 EGREP="$ac_cv_path_EGREP"
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4012 $as_echo_n "checking for ANSI C header files... " >&6; }
4013 if ${ac_cv_header_stdc+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <stdlib.h>
4019 #include <stdarg.h>
4020 #include <string.h>
4021 #include <float.h>
4024 main ()
4028 return 0;
4030 _ACEOF
4031 if ac_fn_c_try_compile "$LINENO"; then :
4032 ac_cv_header_stdc=yes
4033 else
4034 ac_cv_header_stdc=no
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 if test $ac_cv_header_stdc = yes; then
4039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 #include <string.h>
4044 _ACEOF
4045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4046 $EGREP "memchr" >/dev/null 2>&1; then :
4048 else
4049 ac_cv_header_stdc=no
4051 rm -f conftest*
4055 if test $ac_cv_header_stdc = yes; then
4056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <stdlib.h>
4061 _ACEOF
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 $EGREP "free" >/dev/null 2>&1; then :
4065 else
4066 ac_cv_header_stdc=no
4068 rm -f conftest*
4072 if test $ac_cv_header_stdc = yes; then
4073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4074 if test "$cross_compiling" = yes; then :
4076 else
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #include <ctype.h>
4080 #include <stdlib.h>
4081 #if ((' ' & 0x0FF) == 0x020)
4082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4084 #else
4085 # define ISLOWER(c) \
4086 (('a' <= (c) && (c) <= 'i') \
4087 || ('j' <= (c) && (c) <= 'r') \
4088 || ('s' <= (c) && (c) <= 'z'))
4089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4090 #endif
4092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4094 main ()
4096 int i;
4097 for (i = 0; i < 256; i++)
4098 if (XOR (islower (i), ISLOWER (i))
4099 || toupper (i) != TOUPPER (i))
4100 return 2;
4101 return 0;
4103 _ACEOF
4104 if ac_fn_c_try_run "$LINENO"; then :
4106 else
4107 ac_cv_header_stdc=no
4109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4110 conftest.$ac_objext conftest.beam conftest.$ac_ext
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4116 $as_echo "$ac_cv_header_stdc" >&6; }
4117 if test $ac_cv_header_stdc = yes; then
4119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4123 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4124 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4125 inttypes.h stdint.h unistd.h
4126 do :
4127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4128 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4131 cat >>confdefs.h <<_ACEOF
4132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133 _ACEOF
4137 done
4140 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4141 if test "x$ac_cv_type_long_long" = xyes; then :
4143 cat >>confdefs.h <<_ACEOF
4144 #define HAVE_LONG_LONG 1
4145 _ACEOF
4151 # Since we run commands on the build system, we have to create a
4152 # separate config header for the build system if build != host.
4153 if test x$host = x$build; then
4154 ac_config_commands="$ac_config_commands build-config.h"
4156 else
4157 tempdir=build.$$
4158 rm -rf $tempdir
4159 mkdir $tempdir
4160 cd $tempdir
4161 case ${srcdir} in
4162 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4163 *) realsrcdir=../${srcdir};;
4164 esac
4165 saved_CFLAGS="${CFLAGS}"
4166 # Put a plausible default for CC_FOR_BUILD in Makefile.
4167 if test "x$cross_compiling" = "xno"; then
4168 CC_FOR_BUILD='$(CC)'
4169 else
4170 CC_FOR_BUILD=gcc
4172 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD-${CFLAGS}}" \
4173 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
4174 ${realsrcdir}/configure \
4175 --enable-languages=${enable_languages-all} \
4176 --target=$target_alias --host=$build_alias --build=$build_alias
4177 CFLAGS="${saved_CFLAGS}"
4178 mv config.h ../build-config.h
4179 cd ..
4180 rm -rf $tempdir
4206 ac_config_files="$ac_config_files Makefile"
4208 ac_config_commands="$ac_config_commands default"
4210 cat >confcache <<\_ACEOF
4211 # This file is a shell script that caches the results of configure
4212 # tests run on this system so they can be shared between configure
4213 # scripts and configure runs, see configure's option --config-cache.
4214 # It is not useful on other systems. If it contains results you don't
4215 # want to keep, you may remove or edit it.
4217 # config.status only pays attention to the cache file if you give it
4218 # the --recheck option to rerun configure.
4220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4222 # following values.
4224 _ACEOF
4226 # The following way of writing the cache mishandles newlines in values,
4227 # but we know of no workaround that is simple, portable, and efficient.
4228 # So, we kill variables containing newlines.
4229 # Ultrix sh set writes to stderr and can't be redirected directly,
4230 # and sets the high bit in the cache file unless we assign to the vars.
4232 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4233 eval ac_val=\$$ac_var
4234 case $ac_val in #(
4235 *${as_nl}*)
4236 case $ac_var in #(
4237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4239 esac
4240 case $ac_var in #(
4241 _ | IFS | as_nl) ;; #(
4242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4243 *) { eval $ac_var=; unset $ac_var;} ;;
4244 esac ;;
4245 esac
4246 done
4248 (set) 2>&1 |
4249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4250 *${as_nl}ac_space=\ *)
4251 # `set' does not quote correctly, so add quotes: double-quote
4252 # substitution turns \\\\ into \\, and sed turns \\ into \.
4253 sed -n \
4254 "s/'/'\\\\''/g;
4255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4256 ;; #(
4258 # `set' quotes correctly as required by POSIX, so do not add quotes.
4259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4261 esac |
4262 sort
4264 sed '
4265 /^ac_cv_env_/b end
4266 t clear
4267 :clear
4268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4269 t end
4270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4271 :end' >>confcache
4272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4273 if test -w "$cache_file"; then
4274 if test "x$cache_file" != "x/dev/null"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4276 $as_echo "$as_me: updating cache $cache_file" >&6;}
4277 if test ! -f "$cache_file" || test -h "$cache_file"; then
4278 cat confcache >"$cache_file"
4279 else
4280 case $cache_file in #(
4281 */* | ?:*)
4282 mv -f confcache "$cache_file"$$ &&
4283 mv -f "$cache_file"$$ "$cache_file" ;; #(
4285 mv -f confcache "$cache_file" ;;
4286 esac
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4294 rm -f confcache
4296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4297 # Let make expand exec_prefix.
4298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4300 DEFS=-DHAVE_CONFIG_H
4302 ac_libobjs=
4303 ac_ltlibobjs=
4305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4306 # 1. Remove the extension, and $U if already installed.
4307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4308 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4310 # will be set to the directory where LIBOBJS objects are built.
4311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4313 done
4314 LIBOBJS=$ac_libobjs
4316 LTLIBOBJS=$ac_ltlibobjs
4320 : "${CONFIG_STATUS=./config.status}"
4321 ac_write_fail=0
4322 ac_clean_files_save=$ac_clean_files
4323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4326 as_write_fail=0
4327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4328 #! $SHELL
4329 # Generated by $as_me.
4330 # Run this file to recreate the current configuration.
4331 # Compiler output produced by configure, useful for debugging
4332 # configure, is in config.log if it exists.
4334 debug=false
4335 ac_cs_recheck=false
4336 ac_cs_silent=false
4338 SHELL=\${CONFIG_SHELL-$SHELL}
4339 export SHELL
4340 _ASEOF
4341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4342 ## -------------------- ##
4343 ## M4sh Initialization. ##
4344 ## -------------------- ##
4346 # Be more Bourne compatible
4347 DUALCASE=1; export DUALCASE # for MKS sh
4348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4349 emulate sh
4350 NULLCMD=:
4351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4352 # is contrary to our usage. Disable this feature.
4353 alias -g '${1+"$@"}'='"$@"'
4354 setopt NO_GLOB_SUBST
4355 else
4356 case `(set -o) 2>/dev/null` in #(
4357 *posix*) :
4358 set -o posix ;; #(
4359 *) :
4361 esac
4365 as_nl='
4367 export as_nl
4368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4369 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4372 # Prefer a ksh shell builtin over an external printf program on Solaris,
4373 # but without wasting forks for bash or zsh.
4374 if test -z "$BASH_VERSION$ZSH_VERSION" \
4375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4376 as_echo='print -r --'
4377 as_echo_n='print -rn --'
4378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4379 as_echo='printf %s\n'
4380 as_echo_n='printf %s'
4381 else
4382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4384 as_echo_n='/usr/ucb/echo -n'
4385 else
4386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4387 as_echo_n_body='eval
4388 arg=$1;
4389 case $arg in #(
4390 *"$as_nl"*)
4391 expr "X$arg" : "X\\(.*\\)$as_nl";
4392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4393 esac;
4394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4396 export as_echo_n_body
4397 as_echo_n='sh -c $as_echo_n_body as_echo'
4399 export as_echo_body
4400 as_echo='sh -c $as_echo_body as_echo'
4403 # The user is always right.
4404 if test "${PATH_SEPARATOR+set}" != set; then
4405 PATH_SEPARATOR=:
4406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4408 PATH_SEPARATOR=';'
4413 # IFS
4414 # We need space, tab and new line, in precisely that order. Quoting is
4415 # there to prevent editors from complaining about space-tab.
4416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4417 # splitting by setting IFS to empty value.)
4418 IFS=" "" $as_nl"
4420 # Find who we are. Look in the path if we contain no directory separator.
4421 as_myself=
4422 case $0 in #((
4423 *[\\/]* ) as_myself=$0 ;;
4424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4430 done
4431 IFS=$as_save_IFS
4434 esac
4435 # We did not find ourselves, most probably we were run as `sh COMMAND'
4436 # in which case we are not to be found in the path.
4437 if test "x$as_myself" = x; then
4438 as_myself=$0
4440 if test ! -f "$as_myself"; then
4441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4442 exit 1
4445 # Unset variables that we do not need and which cause bugs (e.g. in
4446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4447 # suppresses any "Segmentation fault" message there. '((' could
4448 # trigger a bug in pdksh 5.2.14.
4449 for as_var in BASH_ENV ENV MAIL MAILPATH
4450 do eval test x\${$as_var+set} = xset \
4451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4452 done
4453 PS1='$ '
4454 PS2='> '
4455 PS4='+ '
4457 # NLS nuisances.
4458 LC_ALL=C
4459 export LC_ALL
4460 LANGUAGE=C
4461 export LANGUAGE
4463 # CDPATH.
4464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4467 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4468 # ----------------------------------------
4469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4471 # script with STATUS, using 1 if that was 0.
4472 as_fn_error ()
4474 as_status=$1; test $as_status -eq 0 && as_status=1
4475 if test "$4"; then
4476 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4479 $as_echo "$as_me: error: $2" >&2
4480 as_fn_exit $as_status
4481 } # as_fn_error
4484 # as_fn_set_status STATUS
4485 # -----------------------
4486 # Set $? to STATUS, without forking.
4487 as_fn_set_status ()
4489 return $1
4490 } # as_fn_set_status
4492 # as_fn_exit STATUS
4493 # -----------------
4494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4495 as_fn_exit ()
4497 set +e
4498 as_fn_set_status $1
4499 exit $1
4500 } # as_fn_exit
4502 # as_fn_unset VAR
4503 # ---------------
4504 # Portably unset VAR.
4505 as_fn_unset ()
4507 { eval $1=; unset $1;}
4509 as_unset=as_fn_unset
4510 # as_fn_append VAR VALUE
4511 # ----------------------
4512 # Append the text in VALUE to the end of the definition contained in VAR. Take
4513 # advantage of any shell optimizations that allow amortized linear growth over
4514 # repeated appends, instead of the typical quadratic growth present in naive
4515 # implementations.
4516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4517 eval 'as_fn_append ()
4519 eval $1+=\$2
4521 else
4522 as_fn_append ()
4524 eval $1=\$$1\$2
4526 fi # as_fn_append
4528 # as_fn_arith ARG...
4529 # ------------------
4530 # Perform arithmetic evaluation on the ARGs, and store the result in the
4531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4532 # must be portable across $(()) and expr.
4533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4534 eval 'as_fn_arith ()
4536 as_val=$(( $* ))
4538 else
4539 as_fn_arith ()
4541 as_val=`expr "$@" || test $? -eq 1`
4543 fi # as_fn_arith
4546 if expr a : '\(a\)' >/dev/null 2>&1 &&
4547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4548 as_expr=expr
4549 else
4550 as_expr=false
4553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4554 as_basename=basename
4555 else
4556 as_basename=false
4559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4560 as_dirname=dirname
4561 else
4562 as_dirname=false
4565 as_me=`$as_basename -- "$0" ||
4566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4567 X"$0" : 'X\(//\)$' \| \
4568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4569 $as_echo X/"$0" |
4570 sed '/^.*\/\([^/][^/]*\)\/*$/{
4571 s//\1/
4574 /^X\/\(\/\/\)$/{
4575 s//\1/
4578 /^X\/\(\/\).*/{
4579 s//\1/
4582 s/.*/./; q'`
4584 # Avoid depending upon Character Ranges.
4585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4588 as_cr_digits='0123456789'
4589 as_cr_alnum=$as_cr_Letters$as_cr_digits
4591 ECHO_C= ECHO_N= ECHO_T=
4592 case `echo -n x` in #(((((
4593 -n*)
4594 case `echo 'xy\c'` in
4595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4596 xy) ECHO_C='\c';;
4597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4598 ECHO_T=' ';;
4599 esac;;
4601 ECHO_N='-n';;
4602 esac
4604 rm -f conf$$ conf$$.exe conf$$.file
4605 if test -d conf$$.dir; then
4606 rm -f conf$$.dir/conf$$.file
4607 else
4608 rm -f conf$$.dir
4609 mkdir conf$$.dir 2>/dev/null
4611 if (echo >conf$$.file) 2>/dev/null; then
4612 if ln -s conf$$.file conf$$ 2>/dev/null; then
4613 as_ln_s='ln -s'
4614 # ... but there are two gotchas:
4615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4617 # In both cases, we have to default to `cp -pR'.
4618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4619 as_ln_s='cp -pR'
4620 elif ln conf$$.file conf$$ 2>/dev/null; then
4621 as_ln_s=ln
4622 else
4623 as_ln_s='cp -pR'
4625 else
4626 as_ln_s='cp -pR'
4628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4629 rmdir conf$$.dir 2>/dev/null
4632 # as_fn_mkdir_p
4633 # -------------
4634 # Create "$as_dir" as a directory, including parents if necessary.
4635 as_fn_mkdir_p ()
4638 case $as_dir in #(
4639 -*) as_dir=./$as_dir;;
4640 esac
4641 test -d "$as_dir" || eval $as_mkdir_p || {
4642 as_dirs=
4643 while :; do
4644 case $as_dir in #(
4645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4646 *) as_qdir=$as_dir;;
4647 esac
4648 as_dirs="'$as_qdir' $as_dirs"
4649 as_dir=`$as_dirname -- "$as_dir" ||
4650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4651 X"$as_dir" : 'X\(//\)[^/]' \| \
4652 X"$as_dir" : 'X\(//\)$' \| \
4653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4654 $as_echo X"$as_dir" |
4655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4656 s//\1/
4659 /^X\(\/\/\)[^/].*/{
4660 s//\1/
4663 /^X\(\/\/\)$/{
4664 s//\1/
4667 /^X\(\/\).*/{
4668 s//\1/
4671 s/.*/./; q'`
4672 test -d "$as_dir" && break
4673 done
4674 test -z "$as_dirs" || eval "mkdir $as_dirs"
4675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4678 } # as_fn_mkdir_p
4679 if mkdir -p . 2>/dev/null; then
4680 as_mkdir_p='mkdir -p "$as_dir"'
4681 else
4682 test -d ./-p && rmdir ./-p
4683 as_mkdir_p=false
4687 # as_fn_executable_p FILE
4688 # -----------------------
4689 # Test if FILE is an executable regular file.
4690 as_fn_executable_p ()
4692 test -f "$1" && test -x "$1"
4693 } # as_fn_executable_p
4694 as_test_x='test -x'
4695 as_executable_p=as_fn_executable_p
4697 # Sed expression to map a string onto a valid CPP name.
4698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4700 # Sed expression to map a string onto a valid variable name.
4701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4704 exec 6>&1
4705 ## ----------------------------------- ##
4706 ## Main body of $CONFIG_STATUS script. ##
4707 ## ----------------------------------- ##
4708 _ASEOF
4709 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4712 # Save the log message, to keep $0 and so on meaningful, and to
4713 # report actual input values of CONFIG_FILES etc. instead of their
4714 # values after options handling.
4715 ac_log="
4716 This file was extended by $as_me, which was
4717 generated by GNU Autoconf 2.69. Invocation command line was
4719 CONFIG_FILES = $CONFIG_FILES
4720 CONFIG_HEADERS = $CONFIG_HEADERS
4721 CONFIG_LINKS = $CONFIG_LINKS
4722 CONFIG_COMMANDS = $CONFIG_COMMANDS
4723 $ $0 $@
4725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4728 _ACEOF
4730 case $ac_config_files in *"
4731 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4732 esac
4734 case $ac_config_headers in *"
4735 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4736 esac
4739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4740 # Files that config.status was made for.
4741 config_files="$ac_config_files"
4742 config_headers="$ac_config_headers"
4743 config_commands="$ac_config_commands"
4745 _ACEOF
4747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4748 ac_cs_usage="\
4749 \`$as_me' instantiates files and other configuration actions
4750 from templates according to the current configuration. Unless the files
4751 and actions are specified as TAGs, all are instantiated by default.
4753 Usage: $0 [OPTION]... [TAG]...
4755 -h, --help print this help, then exit
4756 -V, --version print version number and configuration settings, then exit
4757 --config print configuration, then exit
4758 -q, --quiet, --silent
4759 do not print progress messages
4760 -d, --debug don't remove temporary files
4761 --recheck update $as_me by reconfiguring in the same conditions
4762 --file=FILE[:TEMPLATE]
4763 instantiate the configuration file FILE
4764 --header=FILE[:TEMPLATE]
4765 instantiate the configuration header FILE
4767 Configuration files:
4768 $config_files
4770 Configuration headers:
4771 $config_headers
4773 Configuration commands:
4774 $config_commands
4776 Report bugs to the package provider."
4778 _ACEOF
4779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4780 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4781 ac_cs_version="\\
4782 config.status
4783 configured by $0, generated by GNU Autoconf 2.69,
4784 with options \\"\$ac_cs_config\\"
4786 Copyright (C) 2012 Free Software Foundation, Inc.
4787 This config.status script is free software; the Free Software Foundation
4788 gives unlimited permission to copy, distribute and modify it."
4790 ac_pwd='$ac_pwd'
4791 srcdir='$srcdir'
4792 INSTALL='$INSTALL'
4793 test -n "\$AWK" || AWK=awk
4794 _ACEOF
4796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4797 # The default lists apply if the user does not specify any file.
4798 ac_need_defaults=:
4799 while test $# != 0
4801 case $1 in
4802 --*=?*)
4803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4805 ac_shift=:
4807 --*=)
4808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4809 ac_optarg=
4810 ac_shift=:
4813 ac_option=$1
4814 ac_optarg=$2
4815 ac_shift=shift
4817 esac
4819 case $ac_option in
4820 # Handling of the options.
4821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4822 ac_cs_recheck=: ;;
4823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4824 $as_echo "$ac_cs_version"; exit ;;
4825 --config | --confi | --conf | --con | --co | --c )
4826 $as_echo "$ac_cs_config"; exit ;;
4827 --debug | --debu | --deb | --de | --d | -d )
4828 debug=: ;;
4829 --file | --fil | --fi | --f )
4830 $ac_shift
4831 case $ac_optarg in
4832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4833 '') as_fn_error $? "missing file argument" ;;
4834 esac
4835 as_fn_append CONFIG_FILES " '$ac_optarg'"
4836 ac_need_defaults=false;;
4837 --header | --heade | --head | --hea )
4838 $ac_shift
4839 case $ac_optarg in
4840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4841 esac
4842 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4843 ac_need_defaults=false;;
4844 --he | --h)
4845 # Conflict between --help and --header
4846 as_fn_error $? "ambiguous option: \`$1'
4847 Try \`$0 --help' for more information.";;
4848 --help | --hel | -h )
4849 $as_echo "$ac_cs_usage"; exit ;;
4850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4852 ac_cs_silent=: ;;
4854 # This is an error.
4855 -*) as_fn_error $? "unrecognized option: \`$1'
4856 Try \`$0 --help' for more information." ;;
4858 *) as_fn_append ac_config_targets " $1"
4859 ac_need_defaults=false ;;
4861 esac
4862 shift
4863 done
4865 ac_configure_extra_args=
4867 if $ac_cs_silent; then
4868 exec 6>/dev/null
4869 ac_configure_extra_args="$ac_configure_extra_args --silent"
4872 _ACEOF
4873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4874 if \$ac_cs_recheck; then
4875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4876 shift
4877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4878 CONFIG_SHELL='$SHELL'
4879 export CONFIG_SHELL
4880 exec "\$@"
4883 _ACEOF
4884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4885 exec 5>>config.log
4887 echo
4888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4889 ## Running $as_me. ##
4890 _ASBOX
4891 $as_echo "$ac_log"
4892 } >&5
4894 _ACEOF
4895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4896 _ACEOF
4898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4900 # Handling of arguments.
4901 for ac_config_target in $ac_config_targets
4903 case $ac_config_target in
4904 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4905 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
4906 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4907 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4909 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4910 esac
4911 done
4914 # If the user did not use the arguments to specify the items to instantiate,
4915 # then the envvar interface is used. Set only those that are not.
4916 # We use the long form for the default assignment because of an extremely
4917 # bizarre bug on SunOS 4.1.3.
4918 if $ac_need_defaults; then
4919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4924 # Have a temporary directory for convenience. Make it in the build tree
4925 # simply because there is no reason against having it here, and in addition,
4926 # creating and moving files from /tmp can sometimes cause problems.
4927 # Hook for its removal unless debugging.
4928 # Note that there is a small window in which the directory will not be cleaned:
4929 # after its creation but before its name has been assigned to `$tmp'.
4930 $debug ||
4932 tmp= ac_tmp=
4933 trap 'exit_status=$?
4934 : "${ac_tmp:=$tmp}"
4935 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4937 trap 'as_fn_exit 1' 1 2 13 15
4939 # Create a (secure) tmp directory for tmp files.
4942 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4943 test -d "$tmp"
4944 } ||
4946 tmp=./conf$$-$RANDOM
4947 (umask 077 && mkdir "$tmp")
4948 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4949 ac_tmp=$tmp
4951 # Set up the scripts for CONFIG_FILES section.
4952 # No need to generate them if there are no CONFIG_FILES.
4953 # This happens for instance with `./config.status config.h'.
4954 if test -n "$CONFIG_FILES"; then
4957 ac_cr=`echo X | tr X '\015'`
4958 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4959 # But we know of no other shell where ac_cr would be empty at this
4960 # point, so we can use a bashism as a fallback.
4961 if test "x$ac_cr" = x; then
4962 eval ac_cr=\$\'\\r\'
4964 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4965 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4966 ac_cs_awk_cr='\\r'
4967 else
4968 ac_cs_awk_cr=$ac_cr
4971 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4972 _ACEOF
4976 echo "cat >conf$$subs.awk <<_ACEOF" &&
4977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4978 echo "_ACEOF"
4979 } >conf$$subs.sh ||
4980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4982 ac_delim='%!_!# '
4983 for ac_last_try in false false false false false :; do
4984 . ./conf$$subs.sh ||
4985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4988 if test $ac_delim_n = $ac_delim_num; then
4989 break
4990 elif $ac_last_try; then
4991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4992 else
4993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4995 done
4996 rm -f conf$$subs.sh
4998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4999 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5000 _ACEOF
5001 sed -n '
5003 s/^/S["/; s/!.*/"]=/
5006 s/^[^!]*!//
5007 :repl
5008 t repl
5009 s/'"$ac_delim"'$//
5010 t delim
5013 s/\(.\{148\}\)..*/\1/
5014 t more1
5015 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5018 b repl
5019 :more1
5020 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5023 s/.\{148\}//
5024 t nl
5025 :delim
5027 s/\(.\{148\}\)..*/\1/
5028 t more2
5029 s/["\\]/\\&/g; s/^/"/; s/$/"/
5032 :more2
5033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5036 s/.\{148\}//
5037 t delim
5038 ' <conf$$subs.awk | sed '
5039 /^[^""]/{
5041 s/\n//
5043 ' >>$CONFIG_STATUS || ac_write_fail=1
5044 rm -f conf$$subs.awk
5045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5046 _ACAWK
5047 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5048 for (key in S) S_is_set[key] = 1
5049 FS = "\a"
5053 line = $ 0
5054 nfields = split(line, field, "@")
5055 substed = 0
5056 len = length(field[1])
5057 for (i = 2; i < nfields; i++) {
5058 key = field[i]
5059 keylen = length(key)
5060 if (S_is_set[key]) {
5061 value = S[key]
5062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5063 len += length(value) + length(field[++i])
5064 substed = 1
5065 } else
5066 len += 1 + keylen
5069 print line
5072 _ACAWK
5073 _ACEOF
5074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5075 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5076 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5077 else
5079 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5080 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5081 _ACEOF
5083 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5084 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5085 # trailing colons and then remove the whole line if VPATH becomes empty
5086 # (actually we leave an empty line to preserve line numbers).
5087 if test "x$srcdir" = x.; then
5088 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5090 s///
5091 s/^/:/
5092 s/[ ]*$/:/
5093 s/:\$(srcdir):/:/g
5094 s/:\${srcdir}:/:/g
5095 s/:@srcdir@:/:/g
5096 s/^:*//
5097 s/:*$//
5099 s/\(=[ ]*\).*/\1/
5101 s/\n//
5102 s/^[^=]*=[ ]*$//
5106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5107 fi # test -n "$CONFIG_FILES"
5109 # Set up the scripts for CONFIG_HEADERS section.
5110 # No need to generate them if there are no CONFIG_HEADERS.
5111 # This happens for instance with `./config.status Makefile'.
5112 if test -n "$CONFIG_HEADERS"; then
5113 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5114 BEGIN {
5115 _ACEOF
5117 # Transform confdefs.h into an awk script `defines.awk', embedded as
5118 # here-document in config.status, that substitutes the proper values into
5119 # config.h.in to produce config.h.
5121 # Create a delimiter string that does not exist in confdefs.h, to ease
5122 # handling of long lines.
5123 ac_delim='%!_!# '
5124 for ac_last_try in false false :; do
5125 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5126 if test -z "$ac_tt"; then
5127 break
5128 elif $ac_last_try; then
5129 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5130 else
5131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5133 done
5135 # For the awk script, D is an array of macro values keyed by name,
5136 # likewise P contains macro parameters if any. Preserve backslash
5137 # newline sequences.
5139 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5140 sed -n '
5141 s/.\{148\}/&'"$ac_delim"'/g
5142 t rset
5143 :rset
5144 s/^[ ]*#[ ]*define[ ][ ]*/ /
5145 t def
5147 :def
5148 s/\\$//
5149 t bsnl
5150 s/["\\]/\\&/g
5151 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5152 D["\1"]=" \3"/p
5153 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5155 :bsnl
5156 s/["\\]/\\&/g
5157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5158 D["\1"]=" \3\\\\\\n"\\/p
5159 t cont
5160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5161 t cont
5163 :cont
5165 s/.\{148\}/&'"$ac_delim"'/g
5166 t clear
5167 :clear
5168 s/\\$//
5169 t bsnlc
5170 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5172 :bsnlc
5173 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5174 b cont
5175 ' <confdefs.h | sed '
5176 s/'"$ac_delim"'/"\\\
5177 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5180 for (key in D) D_is_set[key] = 1
5181 FS = "\a"
5183 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5184 line = \$ 0
5185 split(line, arg, " ")
5186 if (arg[1] == "#") {
5187 defundef = arg[2]
5188 mac1 = arg[3]
5189 } else {
5190 defundef = substr(arg[1], 2)
5191 mac1 = arg[2]
5193 split(mac1, mac2, "(") #)
5194 macro = mac2[1]
5195 prefix = substr(line, 1, index(line, defundef) - 1)
5196 if (D_is_set[macro]) {
5197 # Preserve the white space surrounding the "#".
5198 print prefix "define", macro P[macro] D[macro]
5199 next
5200 } else {
5201 # Replace #undef with comments. This is necessary, for example,
5202 # in the case of _POSIX_SOURCE, which is predefined and required
5203 # on some systems where configure will not decide to define it.
5204 if (defundef == "undef") {
5205 print "/*", prefix defundef, macro, "*/"
5206 next
5210 { print }
5211 _ACAWK
5212 _ACEOF
5213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5214 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5215 fi # test -n "$CONFIG_HEADERS"
5218 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5219 shift
5220 for ac_tag
5222 case $ac_tag in
5223 :[FHLC]) ac_mode=$ac_tag; continue;;
5224 esac
5225 case $ac_mode$ac_tag in
5226 :[FHL]*:*);;
5227 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5228 :[FH]-) ac_tag=-:-;;
5229 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5230 esac
5231 ac_save_IFS=$IFS
5232 IFS=:
5233 set x $ac_tag
5234 IFS=$ac_save_IFS
5235 shift
5236 ac_file=$1
5237 shift
5239 case $ac_mode in
5240 :L) ac_source=$1;;
5241 :[FH])
5242 ac_file_inputs=
5243 for ac_f
5245 case $ac_f in
5246 -) ac_f="$ac_tmp/stdin";;
5247 *) # Look for the file first in the build tree, then in the source tree
5248 # (if the path is not absolute). The absolute path cannot be DOS-style,
5249 # because $ac_f cannot contain `:'.
5250 test -f "$ac_f" ||
5251 case $ac_f in
5252 [\\/$]*) false;;
5253 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5254 esac ||
5255 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5256 esac
5257 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5258 as_fn_append ac_file_inputs " '$ac_f'"
5259 done
5261 # Let's still pretend it is `configure' which instantiates (i.e., don't
5262 # use $as_me), people would be surprised to read:
5263 # /* config.h. Generated by config.status. */
5264 configure_input='Generated from '`
5265 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5266 `' by configure.'
5267 if test x"$ac_file" != x-; then
5268 configure_input="$ac_file. $configure_input"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5270 $as_echo "$as_me: creating $ac_file" >&6;}
5272 # Neutralize special characters interpreted by sed in replacement strings.
5273 case $configure_input in #(
5274 *\&* | *\|* | *\\* )
5275 ac_sed_conf_input=`$as_echo "$configure_input" |
5276 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5277 *) ac_sed_conf_input=$configure_input;;
5278 esac
5280 case $ac_tag in
5281 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5283 esac
5285 esac
5287 ac_dir=`$as_dirname -- "$ac_file" ||
5288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5289 X"$ac_file" : 'X\(//\)[^/]' \| \
5290 X"$ac_file" : 'X\(//\)$' \| \
5291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5292 $as_echo X"$ac_file" |
5293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5294 s//\1/
5297 /^X\(\/\/\)[^/].*/{
5298 s//\1/
5301 /^X\(\/\/\)$/{
5302 s//\1/
5305 /^X\(\/\).*/{
5306 s//\1/
5309 s/.*/./; q'`
5310 as_dir="$ac_dir"; as_fn_mkdir_p
5311 ac_builddir=.
5313 case "$ac_dir" in
5314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5316 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5317 # A ".." for each directory in $ac_dir_suffix.
5318 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5319 case $ac_top_builddir_sub in
5320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5322 esac ;;
5323 esac
5324 ac_abs_top_builddir=$ac_pwd
5325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5326 # for backward compatibility:
5327 ac_top_builddir=$ac_top_build_prefix
5329 case $srcdir in
5330 .) # We are building in place.
5331 ac_srcdir=.
5332 ac_top_srcdir=$ac_top_builddir_sub
5333 ac_abs_top_srcdir=$ac_pwd ;;
5334 [\\/]* | ?:[\\/]* ) # Absolute name.
5335 ac_srcdir=$srcdir$ac_dir_suffix;
5336 ac_top_srcdir=$srcdir
5337 ac_abs_top_srcdir=$srcdir ;;
5338 *) # Relative name.
5339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5340 ac_top_srcdir=$ac_top_build_prefix$srcdir
5341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5342 esac
5343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5346 case $ac_mode in
5349 # CONFIG_FILE
5352 case $INSTALL in
5353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5354 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5355 esac
5356 _ACEOF
5358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5359 # If the template does not know about datarootdir, expand it.
5360 # FIXME: This hack should be removed a few years after 2.60.
5361 ac_datarootdir_hack=; ac_datarootdir_seen=
5362 ac_sed_dataroot='
5363 /datarootdir/ {
5367 /@datadir@/p
5368 /@docdir@/p
5369 /@infodir@/p
5370 /@localedir@/p
5371 /@mandir@/p'
5372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5373 *datarootdir*) ac_datarootdir_seen=yes;;
5374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5377 _ACEOF
5378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5379 ac_datarootdir_hack='
5380 s&@datadir@&$datadir&g
5381 s&@docdir@&$docdir&g
5382 s&@infodir@&$infodir&g
5383 s&@localedir@&$localedir&g
5384 s&@mandir@&$mandir&g
5385 s&\\\${datarootdir}&$datarootdir&g' ;;
5386 esac
5387 _ACEOF
5389 # Neutralize VPATH when `$srcdir' = `.'.
5390 # Shell code in configure.ac might set extrasub.
5391 # FIXME: do we really want to maintain this feature?
5392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5393 ac_sed_extra="$ac_vpsub
5394 $extrasub
5395 _ACEOF
5396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5399 s|@configure_input@|$ac_sed_conf_input|;t t
5400 s&@top_builddir@&$ac_top_builddir_sub&;t t
5401 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5402 s&@srcdir@&$ac_srcdir&;t t
5403 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5404 s&@top_srcdir@&$ac_top_srcdir&;t t
5405 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5406 s&@builddir@&$ac_builddir&;t t
5407 s&@abs_builddir@&$ac_abs_builddir&;t t
5408 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5409 s&@INSTALL@&$ac_INSTALL&;t t
5410 $ac_datarootdir_hack
5412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5413 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5416 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5417 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5418 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5420 which seems to be undefined. Please make sure it is defined" >&5
5421 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5422 which seems to be undefined. Please make sure it is defined" >&2;}
5424 rm -f "$ac_tmp/stdin"
5425 case $ac_file in
5426 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5427 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5428 esac \
5429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5433 # CONFIG_HEADER
5435 if test x"$ac_file" != x-; then
5437 $as_echo "/* $configure_input */" \
5438 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5439 } >"$ac_tmp/config.h" \
5440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5441 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5443 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5444 else
5445 rm -f "$ac_file"
5446 mv "$ac_tmp/config.h" "$ac_file" \
5447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5449 else
5450 $as_echo "/* $configure_input */" \
5451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5452 || as_fn_error $? "could not create -" "$LINENO" 5
5456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5457 $as_echo "$as_me: executing $ac_file commands" >&6;}
5459 esac
5462 case $ac_file$ac_mode in
5463 "build-config.h":C) cp config.h build-config.h ;;
5464 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
5466 esac
5467 done # for ac_tag
5470 as_fn_exit 0
5471 _ACEOF
5472 ac_clean_files=$ac_clean_files_save
5474 test $ac_write_fail = 0 ||
5475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5478 # configure is writing to config.log, and then calls config.status.
5479 # config.status does its own redirection, appending to config.log.
5480 # Unfortunately, on DOS this fails, as config.log is still kept open
5481 # by configure, so config.status won't be able to write to it; its
5482 # output is simply discarded. So we exec the FD to /dev/null,
5483 # effectively closing config.log, so it can be properly (re)opened and
5484 # appended to by config.status. When coming back to configure, we
5485 # need to make the FD available again.
5486 if test "$no_create" != yes; then
5487 ac_cs_success=:
5488 ac_config_status_args=
5489 test "$silent" = yes &&
5490 ac_config_status_args="$ac_config_status_args --quiet"
5491 exec 5>/dev/null
5492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5493 exec 5>>config.log
5494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5495 # would make configure fail if this is the last instruction.
5496 $ac_cs_success || as_fn_exit 1
5498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}