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