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