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