sim: drop use of bfd/configure.host
[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 sim_fpu
624 sim_fpu_cflags
625 sim_targ_vals
626 sim_callback
627 sim_devzero
628 sim_termio
629 sim_model_issue
630 sim_model
631 sim_monitor
632 sim_reserved
633 sim_timebase
634 sim_hostbitsize
635 sim_igen_smp
636 sim_smp
637 sim_hostendian
638 sim_xor_endian
639 sim_pk_obj
640 sim_pk_src
641 sim_hw_obj
642 sim_hw_src
643 sim_icache
644 sim_filter
645 sim_jump
646 sim_decode_mechanism
647 sim_dup
648 sim_switch
649 sim_opcode
650 sim_config
651 sim_line_nr
652 sim_warnings
653 RANLIB
654 AR
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 LIBOBJS
658 zlibinc
659 zlibdir
660 target_os
661 target_vendor
662 target_cpu
663 target
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 REPORT_BUGS_TEXI
673 REPORT_BUGS_TO
674 PKGVERSION
675 EGREP
676 GREP
677 CPP
678 CATOBJEXT
679 GENCAT
680 INSTOBJEXT
681 DATADIRNAME
682 CATALOGS
683 POSUB
684 GMSGFMT
685 XGETTEXT
686 INCINTL
687 LIBINTL_DEP
688 LIBINTL
689 USE_NLS
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 WERROR_CFLAGS
701 WARN_CFLAGS
702 sim_reserved_bits
703 sim_inline
704 sim_hw
705 sim_hw_objs
706 sim_hw_cflags
707 sim_default_model
708 sim_scache
709 sim_float
710 sim_endian
711 sim_bitsize
712 sim_alignment
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_sim_alignment
755 enable_sim_assert
756 enable_sim_bitsize
757 enable_sim_config
758 enable_sim_decode_mechanism
759 enable_sim_default_model
760 enable_sim_duplicate
761 enable_sim_endian
762 enable_sim_env
763 enable_sim_filter
764 enable_sim_float
765 enable_sim_hardware
766 enable_sim_hostbitsize
767 enable_sim_hostendian
768 enable_sim_icache
769 enable_sim_inline
770 enable_sim_jump
771 enable_sim_line_nr
772 enable_sim_model
773 enable_sim_model_issue
774 enable_sim_monitor
775 enable_sim_opcode
776 enable_sim_packages
777 enable_sim_reserved_bits
778 enable_sim_smp
779 enable_sim_stdio
780 enable_sim_switch
781 enable_sim_timebase
782 enable_sim_trace
783 enable_sim_warnings
784 enable_sim_xor_endian
785 with_pkgversion
786 with_bugurl
787 with_system_zlib
788 enable_plugins
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
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 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1149
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 ;;
1205
1206 esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1227 do
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257 fi
1258
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262 test "$silent" = yes && exec 6>/dev/null
1263
1264
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1303 fi
1304 else
1305 ac_srcdir_defaulted=no
1306 fi
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 fi
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318 fi
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1331
1332 #
1333 # Report the --help message.
1334 #
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures this package to adapt to many kinds of systems.
1340
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1345
1346 Defaults for the options are specified in brackets.
1347
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1364
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1369
1370 For better control, use the options below.
1371
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1393
1394 cat <<\_ACEOF
1395
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409
1410 cat <<\_ACEOF
1411
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1417 --enable-sim-assert Specify whether to perform random assertions.
1418 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
1419 --enable-sim-config=file Override default config file
1420 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1421 --enable-sim-default-model=which Specify default PowerPC to model.
1422 --enable-sim-duplicate Expand (duplicate) semantic functions.
1423 --enable-sim-endian=endian Specify target byte endian orientation.
1424 --enable-sim-env=env Specify target environment (operating, virtual, user).
1425 --enable-sim-filter=rule Specify filter rules.
1426 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1427 --enable-sim-hardware=list Specify the hardware to be included in the build.
1428 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1429 --enable-sim-hostendian=end Specify host byte endian orientation.
1430 --enable-sim-icache=size Specify instruction-decode cache size and type.
1431 --enable-sim-inline=inlines Specify which functions should be inlined.
1432 --enable-sim-jump Jump between semantic code (instead of call/return).
1433 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1434 --enable-sim-model=which Specify PowerPC to model.
1435 --enable-sim-model-issue Specify whether to simulate model specific actions
1436 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1437 --enable-sim-opcode=which Override default opcode lookup.
1438 --enable-sim-packages=list Specify the packages to be included in the build.
1439 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1440 --enable-sim-smp=n Specify number of processors to configure for.
1441 --enable-sim-stdio Specify whether to use stdio for console input/output.
1442 --enable-sim-switch Use a switch instead of a table for instruction call.
1443 --enable-sim-timebase Specify whether the PPC timebase is supported.
1444 --enable-sim-trace Specify whether tracing is supported.
1445 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1446 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1447 --enable-plugins Enable support for plugins
1448
1449 Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1453 --with-bugurl=URL Direct users to URL to report a bug
1454 --with-system-zlib use installed libz
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to the package provider.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531 cat <<\_ACEOF
1532 configure
1533 generated by GNU Autoconf 2.69
1534
1535 Copyright (C) 2012 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539 exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_run LINENO
1585 # ----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1587 # that executables *can* be run.
1588 ac_fn_c_try_run ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_link"
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_link") 2>&5
1599 ac_status=$?
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1602 { { case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_try") 2>&5
1609 ac_status=$?
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; }; }; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: program exited with status $ac_status" >&5
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=$ac_status
1619 fi
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_run
1625
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_cpp
1662
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 fi
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692 } # ac_fn_c_check_header_compile
1693
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_link
1739
1740 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1741 # ----------------------------------------------------
1742 # Tries to find if the field MEMBER exists in type AGGR, after including
1743 # INCLUDES, setting cache variable VAR accordingly.
1744 ac_fn_c_check_member ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1748 $as_echo_n "checking for $2.$3... " >&6; }
1749 if eval \${$4+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 $5
1755 int
1756 main ()
1757 {
1758 static $2 ac_aggr;
1759 if (ac_aggr.$3)
1760 return 0;
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$4=yes"
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $5
1771 int
1772 main ()
1773 {
1774 static $2 ac_aggr;
1775 if (sizeof ac_aggr.$3)
1776 return 0;
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 eval "$4=yes"
1783 else
1784 eval "$4=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$4
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_member
1796
1797 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1798 # ---------------------------------------------
1799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800 # accordingly.
1801 ac_fn_c_check_decl ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 as_decl_name=`echo $2|sed 's/ *(.*//'`
1805 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1807 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 int
1815 main ()
1816 {
1817 #ifndef $as_decl_name
1818 #ifdef __cplusplus
1819 (void) $as_decl_use;
1820 #else
1821 (void) $as_decl_name;
1822 #endif
1823 #endif
1824
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_decl
1842
1843 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1844 # -------------------------------------------
1845 # Tests whether TYPE exists after having included INCLUDES, setting cache
1846 # variable VAR accordingly.
1847 ac_fn_c_check_type ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 eval "$3=no"
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 int
1860 main ()
1861 {
1862 if (sizeof ($2))
1863 return 0;
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 $4
1872 int
1873 main ()
1874 {
1875 if (sizeof (($2)))
1876 return 0;
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882
1883 else
1884 eval "$3=yes"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_type
1896
1897 # ac_fn_c_check_func LINENO FUNC VAR
1898 # ----------------------------------
1899 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1900 ac_fn_c_check_func ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1912 #define $2 innocuous_$2
1913
1914 /* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char $2 (); below.
1916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917 <limits.h> exists even on freestanding compilers. */
1918
1919 #ifdef __STDC__
1920 # include <limits.h>
1921 #else
1922 # include <assert.h>
1923 #endif
1924
1925 #undef $2
1926
1927 /* Override any GCC internal prototype to avoid an error.
1928 Use char because int might match the return type of a GCC
1929 builtin and then its argument prototype would still apply. */
1930 #ifdef __cplusplus
1931 extern "C"
1932 #endif
1933 char $2 ();
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined __stub_$2 || defined __stub___$2
1938 choke me
1939 #endif
1940
1941 int
1942 main ()
1943 {
1944 return $2 ();
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951 else
1952 eval "$3=no"
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_func
1963
1964 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1968 # accordingly.
1969 ac_fn_c_check_header_mongrel ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if eval \${$3+:} false; then :
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 else
1982 # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 #include <$2>
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_header_compiler=yes
1992 else
1993 ac_header_compiler=no
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1998
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_cpp "$LINENO"; then :
2007 ac_header_preproc=yes
2008 else
2009 ac_header_preproc=no
2010 fi
2011 rm -f conftest.err conftest.i conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2014
2015 # So? What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 yes:no: )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ;;
2023 no:yes:* )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 esac
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 eval "$3=\$ac_header_compiler"
2042 fi
2043 eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 fi
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_header_mongrel
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2053
2054 It was created by $as_me, which was
2055 generated by GNU Autoconf 2.69. Invocation command line was
2056
2057 $ $0 $@
2058
2059 _ACEOF
2060 exec 5>>config.log
2061 {
2062 cat <<_ASUNAME
2063 ## --------- ##
2064 ## Platform. ##
2065 ## --------- ##
2066
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2075
2076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2083
2084 _ASUNAME
2085
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 $as_echo "PATH: $as_dir"
2092 done
2093 IFS=$as_save_IFS
2094
2095 } >&5
2096
2097 cat >&5 <<_ACEOF
2098
2099
2100 ## ----------- ##
2101 ## Core tests. ##
2102 ## ----------- ##
2103
2104 _ACEOF
2105
2106
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2112 ac_configure_args=
2113 ac_configure_args0=
2114 ac_configure_args1=
2115 ac_must_keep_next=false
2116 for ac_pass in 1 2
2117 do
2118 for ac_arg
2119 do
2120 case $ac_arg in
2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123 | -silent | --silent | --silen | --sile | --sil)
2124 continue ;;
2125 *\'*)
2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 esac
2128 case $ac_pass in
2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130 2)
2131 as_fn_append ac_configure_args1 " '$ac_arg'"
2132 if test $ac_must_keep_next = true; then
2133 ac_must_keep_next=false # Got value, back to normal.
2134 else
2135 case $ac_arg in
2136 *=* | --config-cache | -C | -disable-* | --disable-* \
2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139 | -with-* | --with-* | -without-* | --without-* | --x)
2140 case "$ac_configure_args0 " in
2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2142 esac
2143 ;;
2144 -* ) ac_must_keep_next=true ;;
2145 esac
2146 fi
2147 as_fn_append ac_configure_args " '$ac_arg'"
2148 ;;
2149 esac
2150 done
2151 done
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2154
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log. We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161 # Save into config.log some information that might help in debugging.
2162 {
2163 echo
2164
2165 $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2168 echo
2169 # The following way of writing the cache mishandles newlines in values,
2170 (
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2173 case $ac_val in #(
2174 *${as_nl}*)
2175 case $ac_var in #(
2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178 esac
2179 case $ac_var in #(
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2183 esac ;;
2184 esac
2185 done
2186 (set) 2>&1 |
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
2189 sed -n \
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192 ;; #(
2193 *)
2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195 ;;
2196 esac |
2197 sort
2198 )
2199 echo
2200
2201 $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2204 echo
2205 for ac_var in $ac_subst_vars
2206 do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
2212 done | sort
2213 echo
2214
2215 if test -n "$ac_subst_files"; then
2216 $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2219 echo
2220 for ac_var in $ac_subst_files
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229 fi
2230
2231 if test -s confdefs.h; then
2232 $as_echo "## ----------- ##
2233 ## confdefs.h. ##
2234 ## ----------- ##"
2235 echo
2236 cat confdefs.h
2237 echo
2238 fi
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2242 } >&5
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245 exit $exit_status
2246 ' 0
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 done
2250 ac_signal=0
2251
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2254
2255 $as_echo "/* confdefs.h */" > confdefs.h
2256
2257 # Predefined preprocessor variables.
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2281 _ACEOF
2282
2283
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2286 ac_site_file1=NONE
2287 ac_site_file2=NONE
2288 if test -n "$CONFIG_SITE"; then
2289 # We do not want a PATH search for config.site.
2290 case $CONFIG_SITE in #((
2291 -*) ac_site_file1=./$CONFIG_SITE;;
2292 */*) ac_site_file1=$CONFIG_SITE;;
2293 *) ac_site_file1=./$CONFIG_SITE;;
2294 esac
2295 elif test "x$prefix" != xNONE; then
2296 ac_site_file1=$prefix/share/config.site
2297 ac_site_file2=$prefix/etc/config.site
2298 else
2299 ac_site_file1=$ac_default_prefix/share/config.site
2300 ac_site_file2=$ac_default_prefix/etc/config.site
2301 fi
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2303 do
2304 test "x$ac_site_file" = xNONE && continue
2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308 sed 's/^/| /' "$ac_site_file" >&5
2309 . "$ac_site_file" \
2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2314 fi
2315 done
2316
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2323 case $cache_file in
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2326 esac
2327 fi
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2331 >$cache_file
2332 fi
2333
2334 # Check that the precious variables saved in the cache have kept the same
2335 # value.
2336 ac_cache_corrupted=false
2337 for ac_var in $ac_precious_vars; do
2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339 eval ac_new_set=\$ac_env_${ac_var}_set
2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341 eval ac_new_val=\$ac_env_${ac_var}_value
2342 case $ac_old_set,$ac_new_set in
2343 set,)
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2347 ,set)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2351 ,);;
2352 *)
2353 if test "x$ac_old_val" != "x$ac_new_val"; then
2354 # differences in whitespace do not lead to failure.
2355 ac_old_val_w=`echo x $ac_old_val`
2356 ac_new_val_w=`echo x $ac_new_val`
2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360 ac_cache_corrupted=:
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364 eval $ac_var=\$ac_old_val
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2367 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2369 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2370 fi;;
2371 esac
2372 # Pass precious variables to config.status.
2373 if test "$ac_new_set" = set; then
2374 case $ac_new_val in
2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 *) ac_arg=$ac_var=$ac_new_val ;;
2377 esac
2378 case " $ac_configure_args " in
2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2381 esac
2382 fi
2383 done
2384 if $ac_cache_corrupted; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2389 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 fi
2391 ## -------------------- ##
2392 ## Main body of script. ##
2393 ## -------------------- ##
2394
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402 # This file contains common code used by all simulators.
2403 #
2404 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2405 # directory. It is intended to be invoked before any target specific stuff.
2406 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2407 # It is intended to be invoked last.
2408 #
2409 # See README-HACKING for more details.
2410
2411 # Include global overrides and fixes for Autoconf.
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2448 #
2449 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2450 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2451 # Written by Gordon Matzigkeit, 1996
2452 #
2453 # This file is free software; the Free Software Foundation gives
2454 # unlimited permission to copy and/or distribute it, with or without
2455 # modifications, as long as this notice is preserved.
2456
2457
2458
2459 # serial 56 LT_INIT
2460
2461
2462 # LT_PREREQ(VERSION)
2463 # ------------------
2464 # Complain and exit if this libtool version is less that VERSION.
2465
2466
2467
2468 # _LT_CHECK_BUILDDIR
2469 # ------------------
2470 # Complain if the absolute build directory name contains unusual characters
2471
2472
2473
2474 # LT_INIT([OPTIONS])
2475 # ------------------
2476 # LT_INIT
2477
2478 # Old names:
2479 # This is what autoupdate's m4 run will expand. It fires
2480 # the warning (with _au_warn_XXX), outputs it into the
2481 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2482 # the replacement expansion.
2483
2484
2485 # This is an auxiliary macro that is also run when
2486 # autoupdate runs m4. It simply calls m4_warning, but
2487 # we need a wrapper so that each warning is emitted only
2488 # once. We break the quoting in m4_warning's argument in
2489 # order to expand this macro's arguments, not AU_DEFUN's.
2490
2491
2492 # Finally, this is the expansion that is picked up by
2493 # autoconf. It tells the user to run autoupdate, and
2494 # then outputs the replacement expansion. We do not care
2495 # about autoupdate's warning because that contains
2496 # information on what to do *after* running autoupdate.
2497
2498 # This is what autoupdate's m4 run will expand. It fires
2499 # the warning (with _au_warn_XXX), outputs it into the
2500 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2501 # the replacement expansion.
2502
2503
2504 # This is an auxiliary macro that is also run when
2505 # autoupdate runs m4. It simply calls m4_warning, but
2506 # we need a wrapper so that each warning is emitted only
2507 # once. We break the quoting in m4_warning's argument in
2508 # order to expand this macro's arguments, not AU_DEFUN's.
2509
2510
2511 # Finally, this is the expansion that is picked up by
2512 # autoconf. It tells the user to run autoupdate, and
2513 # then outputs the replacement expansion. We do not care
2514 # about autoupdate's warning because that contains
2515 # information on what to do *after* running autoupdate.
2516
2517
2518
2519 # _LT_CC_BASENAME(CC)
2520 # -------------------
2521 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2522
2523
2524
2525 # _LT_FILEUTILS_DEFAULTS
2526 # ----------------------
2527 # It is okay to use these file commands and assume they have been set
2528 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2529 # _LT_FILEUTILS_DEFAULTS
2530
2531
2532 # _LT_SETUP
2533 # ---------
2534 # _LT_SETUP
2535
2536
2537 # _LT_PREPARE_SED_QUOTE_VARS
2538 # --------------------------
2539 # Define a few sed substitution that help us do robust quoting.
2540
2541
2542 # _LT_PROG_LTMAIN
2543 # ---------------
2544 # Note that this code is called both from `configure', and `config.status'
2545 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2546 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2547 # so we pass a copy along to make sure it has a sensible value anyway.
2548 # _LT_PROG_LTMAIN
2549
2550
2551 ## ------------------------------------- ##
2552 ## Accumulate code for creating libtool. ##
2553 ## ------------------------------------- ##
2554
2555 # So that we can recreate a full libtool script including additional
2556 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2557 # in macros and then make a single call at the end using the `libtool'
2558 # label.
2559
2560
2561 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2562 # ----------------------------------------
2563 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2564
2565
2566 # Initialize.
2567
2568
2569
2570 # _LT_CONFIG_LIBTOOL([COMMANDS])
2571 # ------------------------------
2572 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2573
2574
2575 # Initialize.
2576
2577
2578
2579 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2580 # -----------------------------------------------------
2581
2582
2583
2584 # _LT_FORMAT_COMMENT([COMMENT])
2585 # -----------------------------
2586 # Add leading comment marks to the start of each line, and a trailing
2587 # full-stop to the whole comment if one is not present already.
2588
2589
2590
2591
2592 ## ------------------------ ##
2593 ## FIXME: Eliminate VARNAME ##
2594 ## ------------------------ ##
2595
2596
2597 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2598 # -------------------------------------------------------------------
2599 # CONFIGNAME is the name given to the value in the libtool script.
2600 # VARNAME is the (base) name used in the configure script.
2601 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2602 # VARNAME. Any other value will be used directly.
2603
2604
2605
2606 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2607 # --------------------------------------------------------
2608
2609
2610
2611 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2612 # ------------------------------------------------
2613
2614
2615
2616 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2617 # ---------------------------------------------------------
2618
2619
2620
2621 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2622 # --------------------------------------------------
2623
2624
2625
2626 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2627 # ---------------------------------------------------
2628
2629
2630
2631 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2632 # ---------------------------------------------------
2633
2634
2635
2636
2637 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2638 # ------------------------------------------------
2639
2640
2641
2642
2643 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2644 # ------------------------------------
2645 # Quote a variable value, and forward it to `config.status' so that its
2646 # declaration there will have the same value as in `configure'. VARNAME
2647 # must have a single quote delimited value for this to work.
2648
2649
2650
2651 # _LT_CONFIG_STATUS_DECLARATIONS
2652 # ------------------------------
2653 # We delimit libtool config variables with single quotes, so when
2654 # we write them to config.status, we have to be sure to quote all
2655 # embedded single quotes properly. In configure, this macro expands
2656 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2657 #
2658 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2659
2660
2661
2662 # _LT_LIBTOOL_TAGS
2663 # ----------------
2664 # Output comment and list of tags supported by the script
2665
2666
2667
2668 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2669 # -----------------------------------
2670 # Extract the dictionary values for VARNAME (optionally with TAG) and
2671 # expand to a commented shell variable setting:
2672 #
2673 # # Some comment about what VAR is for.
2674 # visible_name=$lt_internal_name
2675
2676
2677
2678 # _LT_LIBTOOL_CONFIG_VARS
2679 # -----------------------
2680 # Produce commented declarations of non-tagged libtool config variables
2681 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2682 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2683 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2684
2685
2686
2687 # _LT_LIBTOOL_TAG_VARS(TAG)
2688 # -------------------------
2689
2690
2691
2692 # _LT_TAGVAR(VARNAME, [TAGNAME])
2693 # ------------------------------
2694
2695
2696
2697 # _LT_CONFIG_COMMANDS
2698 # -------------------
2699 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2700 # variables for single and double quote escaping we saved from calls
2701 # to _LT_DECL, we can put quote escaped variables declarations
2702 # into `config.status', and then the shell code to quote escape them in
2703 # for loops in `config.status'. Finally, any additional code accumulated
2704 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2705 #_LT_CONFIG_COMMANDS
2706
2707
2708 # Initialize.
2709
2710
2711 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2712 # ------------------------------------
2713 # Generate a child script FILE with all initialization necessary to
2714 # reuse the environment learned by the parent script, and make the
2715 # file executable. If COMMENT is supplied, it is inserted after the
2716 # `#!' sequence but before initialization text begins. After this
2717 # macro, additional text can be appended to FILE to form the body of
2718 # the child script. The macro ends with non-zero status if the
2719 # file could not be fully written (such as if the disk is full).
2720 # _LT_GENERATED_FILE_INIT
2721
2722 # LT_OUTPUT
2723 # ---------
2724 # This macro allows early generation of the libtool script (before
2725 # AC_OUTPUT is called), incase it is used in configure for compilation
2726 # tests.
2727 # LT_OUTPUT
2728
2729
2730 # _LT_CONFIG(TAG)
2731 # ---------------
2732 # If TAG is the built-in tag, create an initial libtool script with a
2733 # default configuration from the untagged config vars. Otherwise add code
2734 # to config.status for appending the configuration named by TAG from the
2735 # matching tagged config vars.
2736 # _LT_CONFIG
2737
2738
2739 # LT_SUPPORTED_TAG(TAG)
2740 # ---------------------
2741 # Trace this macro to discover what tags are supported by the libtool
2742 # --tag option, using:
2743 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2744
2745
2746
2747 # C support is built-in for now
2748
2749
2750
2751
2752 # LT_LANG(LANG)
2753 # -------------
2754 # Enable libtool support for the given language if not already enabled.
2755 # LT_LANG
2756
2757
2758 # _LT_LANG(LANGNAME)
2759 # ------------------
2760 # _LT_LANG
2761
2762
2763 # _LT_LANG_DEFAULT_CONFIG
2764 # -----------------------
2765 # _LT_LANG_DEFAULT_CONFIG
2766
2767 # Obsolete macros:
2768 # This is what autoupdate's m4 run will expand. It fires
2769 # the warning (with _au_warn_XXX), outputs it into the
2770 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2771 # the replacement expansion.
2772
2773
2774 # This is an auxiliary macro that is also run when
2775 # autoupdate runs m4. It simply calls m4_warning, but
2776 # we need a wrapper so that each warning is emitted only
2777 # once. We break the quoting in m4_warning's argument in
2778 # order to expand this macro's arguments, not AU_DEFUN's.
2779
2780
2781 # Finally, this is the expansion that is picked up by
2782 # autoconf. It tells the user to run autoupdate, and
2783 # then outputs the replacement expansion. We do not care
2784 # about autoupdate's warning because that contains
2785 # information on what to do *after* running autoupdate.
2786
2787 # This is what autoupdate's m4 run will expand. It fires
2788 # the warning (with _au_warn_XXX), outputs it into the
2789 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2790 # the replacement expansion.
2791
2792
2793 # This is an auxiliary macro that is also run when
2794 # autoupdate runs m4. It simply calls m4_warning, but
2795 # we need a wrapper so that each warning is emitted only
2796 # once. We break the quoting in m4_warning's argument in
2797 # order to expand this macro's arguments, not AU_DEFUN's.
2798
2799
2800 # Finally, this is the expansion that is picked up by
2801 # autoconf. It tells the user to run autoupdate, and
2802 # then outputs the replacement expansion. We do not care
2803 # about autoupdate's warning because that contains
2804 # information on what to do *after* running autoupdate.
2805
2806 # This is what autoupdate's m4 run will expand. It fires
2807 # the warning (with _au_warn_XXX), outputs it into the
2808 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2809 # the replacement expansion.
2810
2811
2812 # This is an auxiliary macro that is also run when
2813 # autoupdate runs m4. It simply calls m4_warning, but
2814 # we need a wrapper so that each warning is emitted only
2815 # once. We break the quoting in m4_warning's argument in
2816 # order to expand this macro's arguments, not AU_DEFUN's.
2817
2818
2819 # Finally, this is the expansion that is picked up by
2820 # autoconf. It tells the user to run autoupdate, and
2821 # then outputs the replacement expansion. We do not care
2822 # about autoupdate's warning because that contains
2823 # information on what to do *after* running autoupdate.
2824
2825 # This is what autoupdate's m4 run will expand. It fires
2826 # the warning (with _au_warn_XXX), outputs it into the
2827 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2828 # the replacement expansion.
2829
2830
2831 # This is an auxiliary macro that is also run when
2832 # autoupdate runs m4. It simply calls m4_warning, but
2833 # we need a wrapper so that each warning is emitted only
2834 # once. We break the quoting in m4_warning's argument in
2835 # order to expand this macro's arguments, not AU_DEFUN's.
2836
2837
2838 # Finally, this is the expansion that is picked up by
2839 # autoconf. It tells the user to run autoupdate, and
2840 # then outputs the replacement expansion. We do not care
2841 # about autoupdate's warning because that contains
2842 # information on what to do *after* running autoupdate.
2843
2844 # This is what autoupdate's m4 run will expand. It fires
2845 # the warning (with _au_warn_XXX), outputs it into the
2846 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2847 # the replacement expansion.
2848
2849
2850 # This is an auxiliary macro that is also run when
2851 # autoupdate runs m4. It simply calls m4_warning, but
2852 # we need a wrapper so that each warning is emitted only
2853 # once. We break the quoting in m4_warning's argument in
2854 # order to expand this macro's arguments, not AU_DEFUN's.
2855
2856
2857 # Finally, this is the expansion that is picked up by
2858 # autoconf. It tells the user to run autoupdate, and
2859 # then outputs the replacement expansion. We do not care
2860 # about autoupdate's warning because that contains
2861 # information on what to do *after* running autoupdate.
2862
2863
2864
2865 # _LT_TAG_COMPILER
2866 # ----------------
2867 # _LT_TAG_COMPILER
2868
2869
2870 # _LT_COMPILER_BOILERPLATE
2871 # ------------------------
2872 # Check for compiler boilerplate output or warnings with
2873 # the simple compiler test code.
2874 # _LT_COMPILER_BOILERPLATE
2875
2876
2877 # _LT_LINKER_BOILERPLATE
2878 # ----------------------
2879 # Check for linker boilerplate output or warnings with
2880 # the simple link test code.
2881 # _LT_LINKER_BOILERPLATE
2882
2883 # _LT_REQUIRED_DARWIN_CHECKS
2884 # -------------------------
2885
2886
2887
2888 # _LT_DARWIN_LINKER_FEATURES
2889 # --------------------------
2890 # Checks for linker and compiler features on darwin
2891
2892
2893 # _LT_SYS_MODULE_PATH_AIX
2894 # -----------------------
2895 # Links a minimal program and checks the executable
2896 # for the system default hardcoded library path. In most cases,
2897 # this is /usr/lib:/lib, but when the MPI compilers are used
2898 # the location of the communication and MPI libs are included too.
2899 # If we don't find anything, use the default library path according
2900 # to the aix ld manual.
2901 # _LT_SYS_MODULE_PATH_AIX
2902
2903
2904 # _LT_SHELL_INIT(ARG)
2905 # -------------------
2906 # _LT_SHELL_INIT
2907
2908
2909
2910 # _LT_PROG_ECHO_BACKSLASH
2911 # -----------------------
2912 # Find how we can fake an echo command that does not interpret backslash.
2913 # In particular, with Autoconf 2.60 or later we add some code to the start
2914 # of the generated configure script which will find a shell with a builtin
2915 # printf (which we can use as an echo command).
2916 # _LT_PROG_ECHO_BACKSLASH
2917
2918
2919 # _LT_ENABLE_LOCK
2920 # ---------------
2921 # _LT_ENABLE_LOCK
2922
2923
2924 # _LT_CMD_OLD_ARCHIVE
2925 # -------------------
2926 # _LT_CMD_OLD_ARCHIVE
2927
2928
2929 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2930 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2931 # ----------------------------------------------------------------
2932 # Check whether the given compiler option works
2933 # _LT_COMPILER_OPTION
2934
2935 # Old name:
2936 # This is what autoupdate's m4 run will expand. It fires
2937 # the warning (with _au_warn_XXX), outputs it into the
2938 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2939 # the replacement expansion.
2940
2941
2942 # This is an auxiliary macro that is also run when
2943 # autoupdate runs m4. It simply calls m4_warning, but
2944 # we need a wrapper so that each warning is emitted only
2945 # once. We break the quoting in m4_warning's argument in
2946 # order to expand this macro's arguments, not AU_DEFUN's.
2947
2948
2949 # Finally, this is the expansion that is picked up by
2950 # autoconf. It tells the user to run autoupdate, and
2951 # then outputs the replacement expansion. We do not care
2952 # about autoupdate's warning because that contains
2953 # information on what to do *after* running autoupdate.
2954
2955
2956
2957 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2958 # [ACTION-SUCCESS], [ACTION-FAILURE])
2959 # ----------------------------------------------------
2960 # Check whether the given linker option works
2961 # _LT_LINKER_OPTION
2962
2963 # Old name:
2964 # This is what autoupdate's m4 run will expand. It fires
2965 # the warning (with _au_warn_XXX), outputs it into the
2966 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2967 # the replacement expansion.
2968
2969
2970 # This is an auxiliary macro that is also run when
2971 # autoupdate runs m4. It simply calls m4_warning, but
2972 # we need a wrapper so that each warning is emitted only
2973 # once. We break the quoting in m4_warning's argument in
2974 # order to expand this macro's arguments, not AU_DEFUN's.
2975
2976
2977 # Finally, this is the expansion that is picked up by
2978 # autoconf. It tells the user to run autoupdate, and
2979 # then outputs the replacement expansion. We do not care
2980 # about autoupdate's warning because that contains
2981 # information on what to do *after* running autoupdate.
2982
2983
2984
2985 # LT_CMD_MAX_LEN
2986 #---------------
2987 # LT_CMD_MAX_LEN
2988
2989 # Old name:
2990 # This is what autoupdate's m4 run will expand. It fires
2991 # the warning (with _au_warn_XXX), outputs it into the
2992 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2993 # the replacement expansion.
2994
2995
2996 # This is an auxiliary macro that is also run when
2997 # autoupdate runs m4. It simply calls m4_warning, but
2998 # we need a wrapper so that each warning is emitted only
2999 # once. We break the quoting in m4_warning's argument in
3000 # order to expand this macro's arguments, not AU_DEFUN's.
3001
3002
3003 # Finally, this is the expansion that is picked up by
3004 # autoconf. It tells the user to run autoupdate, and
3005 # then outputs the replacement expansion. We do not care
3006 # about autoupdate's warning because that contains
3007 # information on what to do *after* running autoupdate.
3008
3009
3010
3011 # _LT_HEADER_DLFCN
3012 # ----------------
3013 # _LT_HEADER_DLFCN
3014
3015
3016 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3017 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3018 # ----------------------------------------------------------------
3019 # _LT_TRY_DLOPEN_SELF
3020
3021
3022 # LT_SYS_DLOPEN_SELF
3023 # ------------------
3024 # LT_SYS_DLOPEN_SELF
3025
3026 # Old name:
3027 # This is what autoupdate's m4 run will expand. It fires
3028 # the warning (with _au_warn_XXX), outputs it into the
3029 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3030 # the replacement expansion.
3031
3032
3033 # This is an auxiliary macro that is also run when
3034 # autoupdate runs m4. It simply calls m4_warning, but
3035 # we need a wrapper so that each warning is emitted only
3036 # once. We break the quoting in m4_warning's argument in
3037 # order to expand this macro's arguments, not AU_DEFUN's.
3038
3039
3040 # Finally, this is the expansion that is picked up by
3041 # autoconf. It tells the user to run autoupdate, and
3042 # then outputs the replacement expansion. We do not care
3043 # about autoupdate's warning because that contains
3044 # information on what to do *after* running autoupdate.
3045
3046
3047
3048 # _LT_COMPILER_C_O([TAGNAME])
3049 # ---------------------------
3050 # Check to see if options -c and -o are simultaneously supported by compiler.
3051 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3052 # _LT_COMPILER_C_O
3053
3054
3055 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3056 # ----------------------------------
3057 # Check to see if we can do hard links to lock some files if needed
3058 # _LT_COMPILER_FILE_LOCKS
3059
3060
3061 # _LT_CHECK_OBJDIR
3062 # ----------------
3063 # _LT_CHECK_OBJDIR
3064
3065
3066 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3067 # --------------------------------------
3068 # Check hardcoding attributes.
3069 # _LT_LINKER_HARDCODE_LIBPATH
3070
3071
3072 # _LT_CMD_STRIPLIB
3073 # ----------------
3074 # _LT_CMD_STRIPLIB
3075
3076
3077 # _LT_SYS_DYNAMIC_LINKER([TAG])
3078 # -----------------------------
3079 # PORTME Fill in your ld.so characteristics
3080 # _LT_SYS_DYNAMIC_LINKER
3081
3082
3083 # _LT_PATH_TOOL_PREFIX(TOOL)
3084 # --------------------------
3085 # find a file program which can recognize shared library
3086 # _LT_PATH_TOOL_PREFIX
3087
3088 # Old name:
3089 # This is what autoupdate's m4 run will expand. It fires
3090 # the warning (with _au_warn_XXX), outputs it into the
3091 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3092 # the replacement expansion.
3093
3094
3095 # This is an auxiliary macro that is also run when
3096 # autoupdate runs m4. It simply calls m4_warning, but
3097 # we need a wrapper so that each warning is emitted only
3098 # once. We break the quoting in m4_warning's argument in
3099 # order to expand this macro's arguments, not AU_DEFUN's.
3100
3101
3102 # Finally, this is the expansion that is picked up by
3103 # autoconf. It tells the user to run autoupdate, and
3104 # then outputs the replacement expansion. We do not care
3105 # about autoupdate's warning because that contains
3106 # information on what to do *after* running autoupdate.
3107
3108
3109
3110 # _LT_PATH_MAGIC
3111 # --------------
3112 # find a file program which can recognize a shared library
3113 # _LT_PATH_MAGIC
3114
3115
3116 # LT_PATH_LD
3117 # ----------
3118 # find the pathname to the GNU or non-GNU linker
3119 # LT_PATH_LD
3120
3121 # Old names:
3122 # This is what autoupdate's m4 run will expand. It fires
3123 # the warning (with _au_warn_XXX), outputs it into the
3124 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3125 # the replacement expansion.
3126
3127
3128 # This is an auxiliary macro that is also run when
3129 # autoupdate runs m4. It simply calls m4_warning, but
3130 # we need a wrapper so that each warning is emitted only
3131 # once. We break the quoting in m4_warning's argument in
3132 # order to expand this macro's arguments, not AU_DEFUN's.
3133
3134
3135 # Finally, this is the expansion that is picked up by
3136 # autoconf. It tells the user to run autoupdate, and
3137 # then outputs the replacement expansion. We do not care
3138 # about autoupdate's warning because that contains
3139 # information on what to do *after* running autoupdate.
3140
3141 # This is what autoupdate's m4 run will expand. It fires
3142 # the warning (with _au_warn_XXX), outputs it into the
3143 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3144 # the replacement expansion.
3145
3146
3147 # This is an auxiliary macro that is also run when
3148 # autoupdate runs m4. It simply calls m4_warning, but
3149 # we need a wrapper so that each warning is emitted only
3150 # once. We break the quoting in m4_warning's argument in
3151 # order to expand this macro's arguments, not AU_DEFUN's.
3152
3153
3154 # Finally, this is the expansion that is picked up by
3155 # autoconf. It tells the user to run autoupdate, and
3156 # then outputs the replacement expansion. We do not care
3157 # about autoupdate's warning because that contains
3158 # information on what to do *after* running autoupdate.
3159
3160
3161
3162 # _LT_PATH_LD_GNU
3163 #- --------------
3164 # _LT_PATH_LD_GNU
3165
3166
3167 # _LT_CMD_RELOAD
3168 # --------------
3169 # find reload flag for linker
3170 # -- PORTME Some linkers may need a different reload flag.
3171 # _LT_CMD_RELOAD
3172
3173
3174 # _LT_CHECK_MAGIC_METHOD
3175 # ----------------------
3176 # how to check for library dependencies
3177 # -- PORTME fill in with the dynamic library characteristics
3178 # _LT_CHECK_MAGIC_METHOD
3179
3180
3181 # LT_PATH_NM
3182 # ----------
3183 # find the pathname to a BSD- or MS-compatible name lister
3184 # LT_PATH_NM
3185
3186 # Old names:
3187 # This is what autoupdate's m4 run will expand. It fires
3188 # the warning (with _au_warn_XXX), outputs it into the
3189 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3190 # the replacement expansion.
3191
3192
3193 # This is an auxiliary macro that is also run when
3194 # autoupdate runs m4. It simply calls m4_warning, but
3195 # we need a wrapper so that each warning is emitted only
3196 # once. We break the quoting in m4_warning's argument in
3197 # order to expand this macro's arguments, not AU_DEFUN's.
3198
3199
3200 # Finally, this is the expansion that is picked up by
3201 # autoconf. It tells the user to run autoupdate, and
3202 # then outputs the replacement expansion. We do not care
3203 # about autoupdate's warning because that contains
3204 # information on what to do *after* running autoupdate.
3205
3206 # This is what autoupdate's m4 run will expand. It fires
3207 # the warning (with _au_warn_XXX), outputs it into the
3208 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3209 # the replacement expansion.
3210
3211
3212 # This is an auxiliary macro that is also run when
3213 # autoupdate runs m4. It simply calls m4_warning, but
3214 # we need a wrapper so that each warning is emitted only
3215 # once. We break the quoting in m4_warning's argument in
3216 # order to expand this macro's arguments, not AU_DEFUN's.
3217
3218
3219 # Finally, this is the expansion that is picked up by
3220 # autoconf. It tells the user to run autoupdate, and
3221 # then outputs the replacement expansion. We do not care
3222 # about autoupdate's warning because that contains
3223 # information on what to do *after* running autoupdate.
3224
3225
3226
3227 # LT_LIB_M
3228 # --------
3229 # check for math library
3230 # LT_LIB_M
3231
3232 # Old name:
3233 # This is what autoupdate's m4 run will expand. It fires
3234 # the warning (with _au_warn_XXX), outputs it into the
3235 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3236 # the replacement expansion.
3237
3238
3239 # This is an auxiliary macro that is also run when
3240 # autoupdate runs m4. It simply calls m4_warning, but
3241 # we need a wrapper so that each warning is emitted only
3242 # once. We break the quoting in m4_warning's argument in
3243 # order to expand this macro's arguments, not AU_DEFUN's.
3244
3245
3246 # Finally, this is the expansion that is picked up by
3247 # autoconf. It tells the user to run autoupdate, and
3248 # then outputs the replacement expansion. We do not care
3249 # about autoupdate's warning because that contains
3250 # information on what to do *after* running autoupdate.
3251
3252
3253
3254 # _LT_COMPILER_NO_RTTI([TAGNAME])
3255 # -------------------------------
3256 # _LT_COMPILER_NO_RTTI
3257
3258
3259 # _LT_CMD_GLOBAL_SYMBOLS
3260 # ----------------------
3261 # _LT_CMD_GLOBAL_SYMBOLS
3262
3263
3264 # _LT_COMPILER_PIC([TAGNAME])
3265 # ---------------------------
3266 # _LT_COMPILER_PIC
3267
3268
3269 # _LT_LINKER_SHLIBS([TAGNAME])
3270 # ----------------------------
3271 # See if the linker supports building shared libraries.
3272 # _LT_LINKER_SHLIBS
3273
3274
3275 # _LT_LANG_C_CONFIG([TAG])
3276 # ------------------------
3277 # Ensure that the configuration variables for a C compiler are suitably
3278 # defined. These variables are subsequently used by _LT_CONFIG to write
3279 # the compiler configuration to `libtool'.
3280 # _LT_LANG_C_CONFIG
3281
3282
3283 # _LT_LANG_CXX_CONFIG([TAG])
3284 # --------------------------
3285 # Ensure that the configuration variables for a C++ compiler are suitably
3286 # defined. These variables are subsequently used by _LT_CONFIG to write
3287 # the compiler configuration to `libtool'.
3288 # _LT_LANG_CXX_CONFIG
3289
3290
3291 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3292 # ---------------------------------
3293 # Figure out "hidden" library dependencies from verbose
3294 # compiler output when linking a shared library.
3295 # Parse the compiler output and extract the necessary
3296 # objects, libraries and library flags.
3297 # _LT_SYS_HIDDEN_LIBDEPS
3298
3299
3300 # _LT_LANG_F77_CONFIG([TAG])
3301 # --------------------------
3302 # Ensure that the configuration variables for a Fortran 77 compiler are
3303 # suitably defined. These variables are subsequently used by _LT_CONFIG
3304 # to write the compiler configuration to `libtool'.
3305 # _LT_LANG_F77_CONFIG
3306
3307
3308 # _LT_LANG_FC_CONFIG([TAG])
3309 # -------------------------
3310 # Ensure that the configuration variables for a Fortran compiler are
3311 # suitably defined. These variables are subsequently used by _LT_CONFIG
3312 # to write the compiler configuration to `libtool'.
3313 # _LT_LANG_FC_CONFIG
3314
3315
3316 # _LT_LANG_GCJ_CONFIG([TAG])
3317 # --------------------------
3318 # Ensure that the configuration variables for the GNU Java Compiler compiler
3319 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3320 # to write the compiler configuration to `libtool'.
3321 # _LT_LANG_GCJ_CONFIG
3322
3323
3324 # _LT_LANG_RC_CONFIG([TAG])
3325 # -------------------------
3326 # Ensure that the configuration variables for the Windows resource compiler
3327 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3328 # to write the compiler configuration to `libtool'.
3329 # _LT_LANG_RC_CONFIG
3330
3331
3332 # LT_PROG_GCJ
3333 # -----------
3334
3335
3336 # Old name:
3337 # This is what autoupdate's m4 run will expand. It fires
3338 # the warning (with _au_warn_XXX), outputs it into the
3339 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3340 # the replacement expansion.
3341
3342
3343 # This is an auxiliary macro that is also run when
3344 # autoupdate runs m4. It simply calls m4_warning, but
3345 # we need a wrapper so that each warning is emitted only
3346 # once. We break the quoting in m4_warning's argument in
3347 # order to expand this macro's arguments, not AU_DEFUN's.
3348
3349
3350 # Finally, this is the expansion that is picked up by
3351 # autoconf. It tells the user to run autoupdate, and
3352 # then outputs the replacement expansion. We do not care
3353 # about autoupdate's warning because that contains
3354 # information on what to do *after* running autoupdate.
3355
3356
3357
3358 # LT_PROG_RC
3359 # ----------
3360
3361
3362 # Old name:
3363 # This is what autoupdate's m4 run will expand. It fires
3364 # the warning (with _au_warn_XXX), outputs it into the
3365 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3366 # the replacement expansion.
3367
3368
3369 # This is an auxiliary macro that is also run when
3370 # autoupdate runs m4. It simply calls m4_warning, but
3371 # we need a wrapper so that each warning is emitted only
3372 # once. We break the quoting in m4_warning's argument in
3373 # order to expand this macro's arguments, not AU_DEFUN's.
3374
3375
3376 # Finally, this is the expansion that is picked up by
3377 # autoconf. It tells the user to run autoupdate, and
3378 # then outputs the replacement expansion. We do not care
3379 # about autoupdate's warning because that contains
3380 # information on what to do *after* running autoupdate.
3381
3382
3383
3384 # _LT_DECL_EGREP
3385 # --------------
3386 # If we don't have a new enough Autoconf to choose the best grep
3387 # available, choose the one first in the user's PATH.
3388
3389
3390
3391 # _LT_DECL_OBJDUMP
3392 # --------------
3393 # If we don't have a new enough Autoconf to choose the best objdump
3394 # available, choose the one first in the user's PATH.
3395
3396
3397
3398 # _LT_DECL_SED
3399 # ------------
3400 # Check for a fully-functional sed program, that truncates
3401 # as few characters as possible. Prefer GNU sed if found.
3402 # _LT_DECL_SED
3403
3404 #m4_ifndef
3405
3406 # Old name:
3407 # This is what autoupdate's m4 run will expand. It fires
3408 # the warning (with _au_warn_XXX), outputs it into the
3409 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3410 # the replacement expansion.
3411
3412
3413 # This is an auxiliary macro that is also run when
3414 # autoupdate runs m4. It simply calls m4_warning, but
3415 # we need a wrapper so that each warning is emitted only
3416 # once. We break the quoting in m4_warning's argument in
3417 # order to expand this macro's arguments, not AU_DEFUN's.
3418
3419
3420 # Finally, this is the expansion that is picked up by
3421 # autoconf. It tells the user to run autoupdate, and
3422 # then outputs the replacement expansion. We do not care
3423 # about autoupdate's warning because that contains
3424 # information on what to do *after* running autoupdate.
3425
3426
3427
3428 # _LT_CHECK_SHELL_FEATURES
3429 # ------------------------
3430 # Find out whether the shell is Bourne or XSI compatible,
3431 # or has some other useful features.
3432 # _LT_CHECK_SHELL_FEATURES
3433
3434
3435 # _LT_PROG_XSI_SHELLFNS
3436 # ---------------------
3437 # Bourne and XSI compatible variants of some useful shell functions.
3438
3439
3440 # Helper functions for option handling. -*- Autoconf -*-
3441 #
3442 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3443 # Inc.
3444 # Written by Gary V. Vaughan, 2004
3445 #
3446 # This file is free software; the Free Software Foundation gives
3447 # unlimited permission to copy and/or distribute it, with or without
3448 # modifications, as long as this notice is preserved.
3449
3450 # serial 6 ltoptions.m4
3451
3452 # This is to help aclocal find these macros, as it can't see m4_define.
3453
3454
3455
3456 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3457 # ------------------------------------------
3458
3459
3460
3461 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3462 # ---------------------------------------
3463 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3464 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
3465 # saved as a flag.
3466
3467
3468
3469 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3470 # ------------------------------------------------------------
3471 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3472
3473
3474
3475 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3476 # -------------------------------------------------------
3477 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3478 # are set.
3479
3480
3481
3482 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3483 # ----------------------------------------
3484 # OPTION-LIST is a space-separated list of Libtool options associated
3485 # with MACRO-NAME. If any OPTION has a matching handler declared with
3486 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3487 # the unknown option and exit.
3488 # _LT_SET_OPTIONS
3489
3490
3491 ## --------------------------------- ##
3492 ## Macros to handle LT_INIT options. ##
3493 ## --------------------------------- ##
3494
3495 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3496 # -----------------------------------------
3497
3498
3499
3500 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3501 # -----------------------------------------------
3502 # LT_OPTION_DEFINE
3503
3504
3505 # dlopen
3506 # ------
3507
3508
3509 # This is what autoupdate's m4 run will expand. It fires
3510 # the warning (with _au_warn_XXX), outputs it into the
3511 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3512 # the replacement expansion.
3513
3514
3515 # This is an auxiliary macro that is also run when
3516 # autoupdate runs m4. It simply calls m4_warning, but
3517 # we need a wrapper so that each warning is emitted only
3518 # once. We break the quoting in m4_warning's argument in
3519 # order to expand this macro's arguments, not AU_DEFUN's.
3520
3521
3522 # Finally, this is the expansion that is picked up by
3523 # autoconf. It tells the user to run autoupdate, and
3524 # then outputs the replacement expansion. We do not care
3525 # about autoupdate's warning because that contains
3526 # information on what to do *after* running autoupdate.
3527
3528
3529
3530
3531 # win32-dll
3532 # ---------
3533 # Declare package support for building win32 dll's.
3534 # win32-dll
3535
3536 # This is what autoupdate's m4 run will expand. It fires
3537 # the warning (with _au_warn_XXX), outputs it into the
3538 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3539 # the replacement expansion.
3540
3541
3542 # This is an auxiliary macro that is also run when
3543 # autoupdate runs m4. It simply calls m4_warning, but
3544 # we need a wrapper so that each warning is emitted only
3545 # once. We break the quoting in m4_warning's argument in
3546 # order to expand this macro's arguments, not AU_DEFUN's.
3547
3548
3549 # Finally, this is the expansion that is picked up by
3550 # autoconf. It tells the user to run autoupdate, and
3551 # then outputs the replacement expansion. We do not care
3552 # about autoupdate's warning because that contains
3553 # information on what to do *after* running autoupdate.
3554
3555
3556
3557
3558 # _LT_ENABLE_SHARED([DEFAULT])
3559 # ----------------------------
3560 # implement the --enable-shared flag, and supports the `shared' and
3561 # `disable-shared' LT_INIT options.
3562 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3563 # _LT_ENABLE_SHARED
3564
3565
3566
3567
3568 # Old names:
3569
3570
3571
3572
3573 # This is what autoupdate's m4 run will expand. It fires
3574 # the warning (with _au_warn_XXX), outputs it into the
3575 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3576 # the replacement expansion.
3577
3578
3579 # This is an auxiliary macro that is also run when
3580 # autoupdate runs m4. It simply calls m4_warning, but
3581 # we need a wrapper so that each warning is emitted only
3582 # once. We break the quoting in m4_warning's argument in
3583 # order to expand this macro's arguments, not AU_DEFUN's.
3584
3585
3586 # Finally, this is the expansion that is picked up by
3587 # autoconf. It tells the user to run autoupdate, and
3588 # then outputs the replacement expansion. We do not care
3589 # about autoupdate's warning because that contains
3590 # information on what to do *after* running autoupdate.
3591
3592 # This is what autoupdate's m4 run will expand. It fires
3593 # the warning (with _au_warn_XXX), outputs it into the
3594 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3595 # the replacement expansion.
3596
3597
3598 # This is an auxiliary macro that is also run when
3599 # autoupdate runs m4. It simply calls m4_warning, but
3600 # we need a wrapper so that each warning is emitted only
3601 # once. We break the quoting in m4_warning's argument in
3602 # order to expand this macro's arguments, not AU_DEFUN's.
3603
3604
3605 # Finally, this is the expansion that is picked up by
3606 # autoconf. It tells the user to run autoupdate, and
3607 # then outputs the replacement expansion. We do not care
3608 # about autoupdate's warning because that contains
3609 # information on what to do *after* running autoupdate.
3610
3611
3612
3613
3614
3615 # _LT_ENABLE_STATIC([DEFAULT])
3616 # ----------------------------
3617 # implement the --enable-static flag, and support the `static' and
3618 # `disable-static' LT_INIT options.
3619 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3620 # _LT_ENABLE_STATIC
3621
3622
3623
3624
3625 # Old names:
3626
3627
3628
3629
3630 # This is what autoupdate's m4 run will expand. It fires
3631 # the warning (with _au_warn_XXX), outputs it into the
3632 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3633 # the replacement expansion.
3634
3635
3636 # This is an auxiliary macro that is also run when
3637 # autoupdate runs m4. It simply calls m4_warning, but
3638 # we need a wrapper so that each warning is emitted only
3639 # once. We break the quoting in m4_warning's argument in
3640 # order to expand this macro's arguments, not AU_DEFUN's.
3641
3642
3643 # Finally, this is the expansion that is picked up by
3644 # autoconf. It tells the user to run autoupdate, and
3645 # then outputs the replacement expansion. We do not care
3646 # about autoupdate's warning because that contains
3647 # information on what to do *after* running autoupdate.
3648
3649 # This is what autoupdate's m4 run will expand. It fires
3650 # the warning (with _au_warn_XXX), outputs it into the
3651 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3652 # the replacement expansion.
3653
3654
3655 # This is an auxiliary macro that is also run when
3656 # autoupdate runs m4. It simply calls m4_warning, but
3657 # we need a wrapper so that each warning is emitted only
3658 # once. We break the quoting in m4_warning's argument in
3659 # order to expand this macro's arguments, not AU_DEFUN's.
3660
3661
3662 # Finally, this is the expansion that is picked up by
3663 # autoconf. It tells the user to run autoupdate, and
3664 # then outputs the replacement expansion. We do not care
3665 # about autoupdate's warning because that contains
3666 # information on what to do *after* running autoupdate.
3667
3668
3669
3670
3671
3672 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3673 # ----------------------------------
3674 # implement the --enable-fast-install flag, and support the `fast-install'
3675 # and `disable-fast-install' LT_INIT options.
3676 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3677 # _LT_ENABLE_FAST_INSTALL
3678
3679
3680
3681
3682 # Old names:
3683 # This is what autoupdate's m4 run will expand. It fires
3684 # the warning (with _au_warn_XXX), outputs it into the
3685 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3686 # the replacement expansion.
3687
3688
3689 # This is an auxiliary macro that is also run when
3690 # autoupdate runs m4. It simply calls m4_warning, but
3691 # we need a wrapper so that each warning is emitted only
3692 # once. We break the quoting in m4_warning's argument in
3693 # order to expand this macro's arguments, not AU_DEFUN's.
3694
3695
3696 # Finally, this is the expansion that is picked up by
3697 # autoconf. It tells the user to run autoupdate, and
3698 # then outputs the replacement expansion. We do not care
3699 # about autoupdate's warning because that contains
3700 # information on what to do *after* running autoupdate.
3701
3702
3703 # This is what autoupdate's m4 run will expand. It fires
3704 # the warning (with _au_warn_XXX), outputs it into the
3705 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3706 # the replacement expansion.
3707
3708
3709 # This is an auxiliary macro that is also run when
3710 # autoupdate runs m4. It simply calls m4_warning, but
3711 # we need a wrapper so that each warning is emitted only
3712 # once. We break the quoting in m4_warning's argument in
3713 # order to expand this macro's arguments, not AU_DEFUN's.
3714
3715
3716 # Finally, this is the expansion that is picked up by
3717 # autoconf. It tells the user to run autoupdate, and
3718 # then outputs the replacement expansion. We do not care
3719 # about autoupdate's warning because that contains
3720 # information on what to do *after* running autoupdate.
3721
3722
3723
3724
3725 # _LT_WITH_PIC([MODE])
3726 # --------------------
3727 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3728 # LT_INIT options.
3729 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3730 # _LT_WITH_PIC
3731
3732
3733
3734
3735 # Old name:
3736 # This is what autoupdate's m4 run will expand. It fires
3737 # the warning (with _au_warn_XXX), outputs it into the
3738 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3739 # the replacement expansion.
3740
3741
3742 # This is an auxiliary macro that is also run when
3743 # autoupdate runs m4. It simply calls m4_warning, but
3744 # we need a wrapper so that each warning is emitted only
3745 # once. We break the quoting in m4_warning's argument in
3746 # order to expand this macro's arguments, not AU_DEFUN's.
3747
3748
3749 # Finally, this is the expansion that is picked up by
3750 # autoconf. It tells the user to run autoupdate, and
3751 # then outputs the replacement expansion. We do not care
3752 # about autoupdate's warning because that contains
3753 # information on what to do *after* running autoupdate.
3754
3755
3756
3757 ## ----------------- ##
3758 ## LTDL_INIT Options ##
3759 ## ----------------- ##
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3771 #
3772 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3773 # Written by Gary V. Vaughan, 2004
3774 #
3775 # This file is free software; the Free Software Foundation gives
3776 # unlimited permission to copy and/or distribute it, with or without
3777 # modifications, as long as this notice is preserved.
3778
3779 # serial 6 ltsugar.m4
3780
3781 # This is to help aclocal find these macros, as it can't see m4_define.
3782
3783
3784
3785 # lt_join(SEP, ARG1, [ARG2...])
3786 # -----------------------------
3787 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3788 # associated separator.
3789 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3790 # versions in m4sugar had bugs.
3791
3792
3793
3794
3795 # lt_car(LIST)
3796 # lt_cdr(LIST)
3797 # ------------
3798 # Manipulate m4 lists.
3799 # These macros are necessary as long as will still need to support
3800 # Autoconf-2.59 which quotes differently.
3801
3802
3803
3804
3805
3806 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3807 # ------------------------------------------
3808 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3809 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3810 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3811 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3812 # than defined and empty).
3813 #
3814 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3815 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3816
3817
3818
3819
3820 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3821 # ----------------------------------------------------------
3822 # Produce a SEP delimited list of all paired combinations of elements of
3823 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3824 # has the form PREFIXmINFIXSUFFIXn.
3825 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3826
3827
3828
3829 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3830 # -----------------------------------------------------------------------
3831 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3832 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3833
3834
3835
3836 # lt_dict_add(DICT, KEY, VALUE)
3837 # -----------------------------
3838
3839
3840
3841 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3842 # --------------------------------------------
3843
3844
3845
3846 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3847 # ----------------------------------
3848
3849
3850
3851 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3852 # -----------------------------------------------------------------
3853
3854
3855
3856 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3857 # --------------------------------------------------------------
3858
3859
3860 # ltversion.m4 -- version numbers -*- Autoconf -*-
3861 #
3862 # Copyright (C) 2004 Free Software Foundation, Inc.
3863 # Written by Scott James Remnant, 2004
3864 #
3865 # This file is free software; the Free Software Foundation gives
3866 # unlimited permission to copy and/or distribute it, with or without
3867 # modifications, as long as this notice is preserved.
3868
3869 # Generated from ltversion.in.
3870
3871 # serial 3134 ltversion.m4
3872 # This file is part of GNU Libtool
3873
3874
3875
3876
3877
3878
3879 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3880 #
3881 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3882 # Written by Scott James Remnant, 2004.
3883 #
3884 # This file is free software; the Free Software Foundation gives
3885 # unlimited permission to copy and/or distribute it, with or without
3886 # modifications, as long as this notice is preserved.
3887
3888 # serial 4 lt~obsolete.m4
3889
3890 # These exist entirely to fool aclocal when bootstrapping libtool.
3891 #
3892 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3893 # which have later been changed to m4_define as they aren't part of the
3894 # exported API, or moved to Autoconf or Automake where they belong.
3895 #
3896 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3897 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3898 # using a macro with the same name in our local m4/libtool.m4 it'll
3899 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3900 # and doesn't know about Autoconf macros at all.)
3901 #
3902 # So we provide this file, which has a silly filename so it's always
3903 # included after everything else. This provides aclocal with the
3904 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3905 # because those macros already exist, or will be overwritten later.
3906 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3907 #
3908 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3909 # Yes, that means every name once taken will need to remain here until
3910 # we give up compatibility with versions before 1.7, at which point
3911 # we need to keep only those names which we still refer to.
3912
3913 # This is to help aclocal find these macros, as it can't see m4_define.
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978 ## -*- Autoconf -*-
3979
3980 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3981 # Free Software Foundation, Inc.
3982 #
3983 # This file is free software; the Free Software Foundation
3984 # gives unlimited permission to copy and/or distribute it,
3985 # with or without modifications, as long as this notice is preserved.
3986
3987 # serial 8
3988
3989 # Based on depend.m4 from automake 1.9, modified for standalone use in
3990 # an environment where GNU make is required.
3991
3992 # ZW_PROG_COMPILER_DEPENDENCIES
3993 # -----------------------------
3994 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
3995 # sets fooDEPMODE accordingly. Cache-variable compatible with
3996 # original; not side-effect compatible. As the users of this macro
3997 # may require accurate dependencies for correct builds, it does *not*
3998 # honor --disable-dependency-checking, and failure to detect a usable
3999 # method is an error. depcomp is assumed to be located in
4000 # $ac_aux_dir.
4001 #
4002 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4003
4004
4005
4006 # AM_SET_DEPDIR
4007 # -------------
4008 # Choose a directory name for dependency files.
4009
4010
4011 # ZW_CREATE_DEPDIR
4012 # ----------------
4013 # As AM_SET_DEPDIR, but also create the directory at config.status time.
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080 # intl sister-directory configuration rules.
4081 #
4082
4083 # The idea behind this macro is that there's no need to repeat all the
4084 # autoconf probes done by the intl directory - it's already done them
4085 # for us. In fact, there's no need even to look at the cache for the
4086 # answers. All we need to do is nab a few pieces of information.
4087 # The intl directory is set up to make this easy, by generating a
4088 # small file which can be sourced as a shell script; then we produce
4089 # the necessary substitutions and definitions for this directory.
4090
4091
4092
4093 # Autoconf M4 include file defining utility macros for complex Canadian
4094 # cross builds.
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104 ####
4105 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4106 # or AC_INIT.
4107 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
4108
4109 ####
4110 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4111 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4112
4113
4114 ####
4115 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4116 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4117
4118
4119
4120 # Backported from Autoconf 2.5x; can go away when and if
4121 # we switch. Put the OS path separator in $PATH_SEPARATOR.
4122
4123
4124
4125
4126
4127
4128
4129
4130 # ACX_HAVE_GCC_FOR_TARGET
4131 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4132
4133
4134 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4135 # Searching for installed target binutils. We need to take extra care,
4136 # else we may find the wrong assembler, linker, etc., and lose.
4137 #
4138 # First try --with-build-time-tools, if specified.
4139 #
4140 # For build != host, we ask the installed GCC for the name of the tool it
4141 # uses, and accept it if it is an absolute path. This is because the
4142 # only good choice for a compiler is the same GCC version that is being
4143 # installed (or we couldn't make target libraries), and we assume that
4144 # on the host system we'll have not only the same GCC version, but also
4145 # the same binutils version.
4146 #
4147 # For build == host, search the same directories that the installed
4148 # compiler will search. We used to do this for the assembler, linker,
4149 # and nm only; for simplicity of configuration, however, we extend this
4150 # criterion to tools (such as ar and ranlib) that are never invoked by
4151 # the compiler, to avoid mismatches.
4152 #
4153 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
4154 # if build == target. This makes the most sense only when bootstrapping,
4155 # but we also do so when build != host. In this case, we hope that the
4156 # build and host systems will have similar contents of MD_EXEC_PREFIX.
4157 #
4158 # If we do not find a suitable binary, then try the user's path.
4159
4160
4161 ###
4162 # AC_PROG_CPP_WERROR
4163 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4164 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
4165 # For now, using this also overrides header checks to use only the
4166 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4167 # bit harder from here).
4168 # Eventually autoconf will default to checking headers with the compiler
4169 # instead, and we'll have to do this differently.
4170
4171 # AC_PROG_CPP_WERROR
4172
4173 # Test for GNAT.
4174 # We require the gnatbind & gnatmake programs, as well as a compiler driver
4175 # that understands Ada. We use the user's CC setting, already found, and
4176 # possibly add $1 to the command-line parameters.
4177 #
4178 # Sets the shell variable have_gnat to yes or no as appropriate, and
4179 # substitutes GNATBIND and GNATMAKE.
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205 ac_aux_dir=
4206 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4207 if test -f "$ac_dir/install-sh"; then
4208 ac_aux_dir=$ac_dir
4209 ac_install_sh="$ac_aux_dir/install-sh -c"
4210 break
4211 elif test -f "$ac_dir/install.sh"; then
4212 ac_aux_dir=$ac_dir
4213 ac_install_sh="$ac_aux_dir/install.sh -c"
4214 break
4215 elif test -f "$ac_dir/shtool"; then
4216 ac_aux_dir=$ac_dir
4217 ac_install_sh="$ac_aux_dir/shtool install -c"
4218 break
4219 fi
4220 done
4221 if test -z "$ac_aux_dir"; then
4222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4223 fi
4224
4225 # These three variables are undocumented and unsupported,
4226 # and are intended to be withdrawn in a future Autoconf release.
4227 # They can cause serious problems if a builder's source tree is in a directory
4228 # whose full name contains unusual characters.
4229 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4230 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4231 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4232
4233
4234 # Find a good install program. We prefer a C program (faster),
4235 # so one script is as good as another. But avoid the broken or
4236 # incompatible versions:
4237 # SysV /etc/install, /usr/sbin/install
4238 # SunOS /usr/etc/install
4239 # IRIX /sbin/install
4240 # AIX /bin/install
4241 # AmigaOS /C/install, which installs bootblocks on floppy discs
4242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4245 # OS/2's system install, which has a completely different semantic
4246 # ./install, which can be erroneously created by make from ./install.sh.
4247 # Reject install programs that cannot install multiple files.
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4250 if test -z "$INSTALL"; then
4251 if ${ac_cv_path_install+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 # Account for people who put trailing slashes in PATH elements.
4260 case $as_dir/ in #((
4261 ./ | .// | /[cC]/* | \
4262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4264 /usr/ucb/* ) ;;
4265 *)
4266 # OSF1 and SCO ODT 3.0 have their own names for install.
4267 # Don't use installbsd from OSF since it installs stuff as root
4268 # by default.
4269 for ac_prog in ginstall scoinst install; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4272 if test $ac_prog = install &&
4273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4274 # AIX install. It has an incompatible calling convention.
4275 :
4276 elif test $ac_prog = install &&
4277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4278 # program-specific install script used by HP pwplus--don't use.
4279 :
4280 else
4281 rm -rf conftest.one conftest.two conftest.dir
4282 echo one > conftest.one
4283 echo two > conftest.two
4284 mkdir conftest.dir
4285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4286 test -s conftest.one && test -s conftest.two &&
4287 test -s conftest.dir/conftest.one &&
4288 test -s conftest.dir/conftest.two
4289 then
4290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291 break 3
4292 fi
4293 fi
4294 fi
4295 done
4296 done
4297 ;;
4298 esac
4299
4300 done
4301 IFS=$as_save_IFS
4302
4303 rm -rf conftest.one conftest.two conftest.dir
4304
4305 fi
4306 if test "${ac_cv_path_install+set}" = set; then
4307 INSTALL=$ac_cv_path_install
4308 else
4309 # As a last resort, use the slow shell script. Don't cache a
4310 # value for INSTALL within a source directory, because that will
4311 # break other packages using the cache if that directory is
4312 # removed, or if the value is a relative name.
4313 INSTALL=$ac_install_sh
4314 fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4317 $as_echo "$INSTALL" >&6; }
4318
4319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4320 # It thinks the first close brace ends the variable substitution.
4321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4322
4323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4324
4325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4326
4327 ac_ext=c
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 fi
4371 if test -z "$ac_cv_prog_CC"; then
4372 ac_ct_CC=$CC
4373 # Extract the first word of "gcc", so it can be a program name with args.
4374 set dummy gcc; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$ac_ct_CC"; then
4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_prog_ac_ct_CC="gcc"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4401 if test -n "$ac_ct_CC"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4403 $as_echo "$ac_ct_CC" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409 if test "x$ac_ct_CC" = x; then
4410 CC=""
4411 else
4412 case $cross_compiling:$ac_tool_warned in
4413 yes:)
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418 CC=$ac_ct_CC
4419 fi
4420 else
4421 CC="$ac_cv_prog_CC"
4422 fi
4423
4424 if test -z "$CC"; then
4425 if test -n "$ac_tool_prefix"; then
4426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4427 set dummy ${ac_tool_prefix}cc; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_CC+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$CC"; then
4434 ac_cv_prog_CC="$CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_CC="${ac_tool_prefix}cc"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 CC=$ac_cv_prog_CC
4454 if test -n "$CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4456 $as_echo "$CC" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463 fi
4464 fi
4465 if test -z "$CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469 $as_echo_n "checking for $ac_word... " >&6; }
4470 if ${ac_cv_prog_CC+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475 else
4476 ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_CC="cc"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_CC
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set CC to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4506 fi
4507 fi
4508 fi
4509 fi
4510 CC=$ac_cv_prog_CC
4511 if test -n "$CC"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4513 $as_echo "$CC" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4518
4519
4520 fi
4521 if test -z "$CC"; then
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in cl.exe
4524 do
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_CC+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$CC"; then
4533 ac_cv_prog_CC="$CC" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 CC=$ac_cv_prog_CC
4553 if test -n "$CC"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4555 $as_echo "$CC" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 test -n "$CC" && break
4563 done
4564 fi
4565 if test -z "$CC"; then
4566 ac_ct_CC=$CC
4567 for ac_prog in cl.exe
4568 do
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_CC"; then
4577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_ac_ct_CC="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4597 if test -n "$ac_ct_CC"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4599 $as_echo "$ac_ct_CC" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 test -n "$ac_ct_CC" && break
4607 done
4608
4609 if test "x$ac_ct_CC" = x; then
4610 CC=""
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CC=$ac_ct_CC
4619 fi
4620 fi
4621
4622 fi
4623
4624
4625 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627 as_fn_error $? "no acceptable C compiler found in \$PATH
4628 See \`config.log' for more details" "$LINENO" 5; }
4629
4630 # Provide some information about the compiler.
4631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4632 set X $ac_compile
4633 ac_compiler=$2
4634 for ac_option in --version -v -V -qversion; do
4635 { { ac_try="$ac_compiler $ac_option >&5"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641 $as_echo "$ac_try_echo"; } >&5
4642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4643 ac_status=$?
4644 if test -s conftest.err; then
4645 sed '10a\
4646 ... rest of stderr output deleted ...
4647 10q' conftest.err >conftest.er1
4648 cat conftest.er1 >&5
4649 fi
4650 rm -f conftest.er1 conftest.err
4651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4652 test $ac_status = 0; }
4653 done
4654
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657
4658 int
4659 main ()
4660 {
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 ac_clean_files_save=$ac_clean_files
4667 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4668 # Try to create an executable without -o first, disregard a.out.
4669 # It will help us diagnose broken compilers, and finding out an intuition
4670 # of exeext.
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4672 $as_echo_n "checking whether the C compiler works... " >&6; }
4673 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4674
4675 # The possible output files:
4676 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4677
4678 ac_rmfiles=
4679 for ac_file in $ac_files
4680 do
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4684 esac
4685 done
4686 rm -f $ac_rmfiles
4687
4688 if { { ac_try="$ac_link_default"
4689 case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4694 $as_echo "$ac_try_echo"; } >&5
4695 (eval "$ac_link_default") 2>&5
4696 ac_status=$?
4697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4698 test $ac_status = 0; }; then :
4699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4700 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4701 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4702 # so that the user can short-circuit this test for compilers unknown to
4703 # Autoconf.
4704 for ac_file in $ac_files ''
4705 do
4706 test -f "$ac_file" || continue
4707 case $ac_file in
4708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4709 ;;
4710 [ab].out )
4711 # We found the default executable, but exeext='' is most
4712 # certainly right.
4713 break;;
4714 *.* )
4715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4716 then :; else
4717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4718 fi
4719 # We set ac_cv_exeext here because the later test for it is not
4720 # safe: cross compilers may not add the suffix if given an `-o'
4721 # argument, so we may need to know it at that point already.
4722 # Even if this section looks crufty: it has the advantage of
4723 # actually working.
4724 break;;
4725 * )
4726 break;;
4727 esac
4728 done
4729 test "$ac_cv_exeext" = no && ac_cv_exeext=
4730
4731 else
4732 ac_file=''
4733 fi
4734 if test -z "$ac_file"; then :
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error 77 "C compiler cannot create executables
4743 See \`config.log' for more details" "$LINENO" 5; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746 $as_echo "yes" >&6; }
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4749 $as_echo_n "checking for C compiler default output file name... " >&6; }
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4751 $as_echo "$ac_file" >&6; }
4752 ac_exeext=$ac_cv_exeext
4753
4754 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4755 ac_clean_files=$ac_clean_files_save
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4757 $as_echo_n "checking for suffix of executables... " >&6; }
4758 if { { ac_try="$ac_link"
4759 case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762 esac
4763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4764 $as_echo "$ac_try_echo"; } >&5
4765 (eval "$ac_link") 2>&5
4766 ac_status=$?
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }; then :
4769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4771 # work properly (i.e., refer to `conftest.exe'), while it won't with
4772 # `rm'.
4773 for ac_file in conftest.exe conftest conftest.*; do
4774 test -f "$ac_file" || continue
4775 case $ac_file in
4776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4778 break;;
4779 * ) break;;
4780 esac
4781 done
4782 else
4783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4785 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4786 See \`config.log' for more details" "$LINENO" 5; }
4787 fi
4788 rm -f conftest conftest$ac_cv_exeext
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4790 $as_echo "$ac_cv_exeext" >&6; }
4791
4792 rm -f conftest.$ac_ext
4793 EXEEXT=$ac_cv_exeext
4794 ac_exeext=$EXEEXT
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <stdio.h>
4798 int
4799 main ()
4800 {
4801 FILE *f = fopen ("conftest.out", "w");
4802 return ferror (f) || fclose (f) != 0;
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 ac_clean_files="$ac_clean_files conftest.out"
4809 # Check that the compiler produces executables we can run. If not, either
4810 # the compiler is broken, or we cross compile.
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4812 $as_echo_n "checking whether we are cross compiling... " >&6; }
4813 if test "$cross_compiling" != yes; then
4814 { { ac_try="$ac_link"
4815 case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818 esac
4819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4820 $as_echo "$ac_try_echo"; } >&5
4821 (eval "$ac_link") 2>&5
4822 ac_status=$?
4823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4824 test $ac_status = 0; }
4825 if { ac_try='./conftest$ac_cv_exeext'
4826 { { case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831 $as_echo "$ac_try_echo"; } >&5
4832 (eval "$ac_try") 2>&5
4833 ac_status=$?
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }; }; then
4836 cross_compiling=no
4837 else
4838 if test "$cross_compiling" = maybe; then
4839 cross_compiling=yes
4840 else
4841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 as_fn_error $? "cannot run C compiled programs.
4844 If you meant to cross compile, use \`--host'.
4845 See \`config.log' for more details" "$LINENO" 5; }
4846 fi
4847 fi
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4850 $as_echo "$cross_compiling" >&6; }
4851
4852 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4853 ac_clean_files=$ac_clean_files_save
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4855 $as_echo_n "checking for suffix of object files... " >&6; }
4856 if ${ac_cv_objext+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861
4862 int
4863 main ()
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.o conftest.obj
4871 if { { ac_try="$ac_compile"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877 $as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compile") 2>&5
4879 ac_status=$?
4880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4881 test $ac_status = 0; }; then :
4882 for ac_file in conftest.o conftest.obj conftest.*; do
4883 test -f "$ac_file" || continue;
4884 case $ac_file in
4885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4887 break;;
4888 esac
4889 done
4890 else
4891 $as_echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4896 as_fn_error $? "cannot compute suffix of object files: cannot compile
4897 See \`config.log' for more details" "$LINENO" 5; }
4898 fi
4899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4902 $as_echo "$ac_cv_objext" >&6; }
4903 OBJEXT=$ac_cv_objext
4904 ac_objext=$OBJEXT
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4906 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4907 if ${ac_cv_c_compiler_gnu+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 int
4914 main ()
4915 {
4916 #ifndef __GNUC__
4917 choke me
4918 #endif
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_compiler_gnu=yes
4926 else
4927 ac_compiler_gnu=no
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4931
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4934 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4935 if test $ac_compiler_gnu = yes; then
4936 GCC=yes
4937 else
4938 GCC=
4939 fi
4940 ac_test_CFLAGS=${CFLAGS+set}
4941 ac_save_CFLAGS=$CFLAGS
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4943 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4944 if ${ac_cv_prog_cc_g+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 ac_save_c_werror_flag=$ac_c_werror_flag
4948 ac_c_werror_flag=yes
4949 ac_cv_prog_cc_g=no
4950 CFLAGS="-g"
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953
4954 int
4955 main ()
4956 {
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_prog_cc_g=yes
4964 else
4965 CFLAGS=""
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968
4969 int
4970 main ()
4971 {
4972
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978
4979 else
4980 ac_c_werror_flag=$ac_save_c_werror_flag
4981 CFLAGS="-g"
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_c_try_compile "$LINENO"; then :
4994 ac_cv_prog_cc_g=yes
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 ac_c_werror_flag=$ac_save_c_werror_flag
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5004 $as_echo "$ac_cv_prog_cc_g" >&6; }
5005 if test "$ac_test_CFLAGS" = set; then
5006 CFLAGS=$ac_save_CFLAGS
5007 elif test $ac_cv_prog_cc_g = yes; then
5008 if test "$GCC" = yes; then
5009 CFLAGS="-g -O2"
5010 else
5011 CFLAGS="-g"
5012 fi
5013 else
5014 if test "$GCC" = yes; then
5015 CFLAGS="-O2"
5016 else
5017 CFLAGS=
5018 fi
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5021 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5022 if ${ac_cv_prog_cc_c89+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 ac_cv_prog_cc_c89=no
5026 ac_save_CC=$CC
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029 #include <stdarg.h>
5030 #include <stdio.h>
5031 struct stat;
5032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5033 struct buf { int x; };
5034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5035 static char *e (p, i)
5036 char **p;
5037 int i;
5038 {
5039 return p[i];
5040 }
5041 static char *f (char * (*g) (char **, int), char **p, ...)
5042 {
5043 char *s;
5044 va_list v;
5045 va_start (v,p);
5046 s = g (p, va_arg (v,int));
5047 va_end (v);
5048 return s;
5049 }
5050
5051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5052 function prototypes and stuff, but not '\xHH' hex character constants.
5053 These don't provoke an error unfortunately, instead are silently treated
5054 as 'x'. The following induces an error, until -std is added to get
5055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5056 array size at least. It's necessary to write '\x00'==0 to get something
5057 that's true only with -std. */
5058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5059
5060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5061 inside strings and character constants. */
5062 #define FOO(x) 'x'
5063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5064
5065 int test (int i, double x);
5066 struct s1 {int (*f) (int a);};
5067 struct s2 {int (*f) (double a);};
5068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5069 int argc;
5070 char **argv;
5071 int
5072 main ()
5073 {
5074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5081 do
5082 CC="$ac_save_CC $ac_arg"
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_prog_cc_c89=$ac_arg
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext
5087 test "x$ac_cv_prog_cc_c89" != "xno" && break
5088 done
5089 rm -f conftest.$ac_ext
5090 CC=$ac_save_CC
5091
5092 fi
5093 # AC_CACHE_VAL
5094 case "x$ac_cv_prog_cc_c89" in
5095 x)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5097 $as_echo "none needed" >&6; } ;;
5098 xno)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5100 $as_echo "unsupported" >&6; } ;;
5101 *)
5102 CC="$CC $ac_cv_prog_cc_c89"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5104 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5105 esac
5106 if test "x$ac_cv_prog_cc_c89" != xno; then :
5107
5108 fi
5109
5110 ac_ext=c
5111 ac_cpp='$CPP $CPPFLAGS'
5112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115
5116
5117 # Put a plausible default for CC_FOR_BUILD in Makefile.
5118 if test "x$cross_compiling" = "xno"; then
5119 CC_FOR_BUILD='$(CC)'
5120 else
5121 CC_FOR_BUILD=gcc
5122 fi
5123 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5124
5125 ALL_LINGUAS=
5126 # If we haven't got the data from the intl directory,
5127 # assume NLS is disabled.
5128 USE_NLS=no
5129 LIBINTL=
5130 LIBINTL_DEP=
5131 INCINTL=
5132 XGETTEXT=
5133 GMSGFMT=
5134 POSUB=
5135
5136 if test -f ../../intl/config.intl; then
5137 . ../../intl/config.intl
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5140 $as_echo_n "checking whether NLS is requested... " >&6; }
5141 if test x"$USE_NLS" != xyes; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5147
5148 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5149
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5152 $as_echo_n "checking for catalogs to be installed... " >&6; }
5153 # Look for .po and .gmo files in the source directory.
5154 CATALOGS=
5155 XLINGUAS=
5156 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5157 # If there aren't any .gmo files the shell will give us the
5158 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5159 # weeded out.
5160 case "$cat" in *\**)
5161 continue;;
5162 esac
5163 # The quadruple backslash is collapsed to a double backslash
5164 # by the backticks, then collapsed again by the double quotes,
5165 # leaving us with one backslash in the sed expression (right
5166 # before the dot that mustn't act as a wildcard).
5167 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5168 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5169 # The user is allowed to set LINGUAS to a list of languages to
5170 # install catalogs for. If it's empty that means "all of them."
5171 if test "x$LINGUAS" = x; then
5172 CATALOGS="$CATALOGS $cat"
5173 XLINGUAS="$XLINGUAS $lang"
5174 else
5175 case "$LINGUAS" in *$lang*)
5176 CATALOGS="$CATALOGS $cat"
5177 XLINGUAS="$XLINGUAS $lang"
5178 ;;
5179 esac
5180 fi
5181 done
5182 LINGUAS="$XLINGUAS"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5184 $as_echo "$LINGUAS" >&6; }
5185
5186
5187 DATADIRNAME=share
5188
5189 INSTOBJEXT=.mo
5190
5191 GENCAT=gencat
5192
5193 CATOBJEXT=.gmo
5194
5195 fi
5196
5197
5198 # Check whether --enable-sim-alignment was given.
5199 if test "${enable_sim_alignment+set}" = set; then :
5200 enableval=$enable_sim_alignment; case "${enableval}" in
5201 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5202 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5203 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
5204 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
5205 esac
5206 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5207 echo "Setting alignment flags = $sim_alignment" 6>&1
5208 fi
5209 else
5210 sim_alignment=""
5211 fi
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
5215 $as_echo_n "checking whether to enable sim asserts... " >&6; }
5216 sim_assert="1"
5217 # Check whether --enable-sim-assert was given.
5218 if test "${enable_sim_assert+set}" = set; then :
5219 enableval=$enable_sim_assert; case "${enableval}" in
5220 yes) sim_assert="1";;
5221 no) sim_assert="0";;
5222 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
5223 esac
5224 fi
5225
5226 cat >>confdefs.h <<_ACEOF
5227 #define WITH_ASSERT $sim_assert
5228 _ACEOF
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
5231 $as_echo "$sim_assert" >&6; }
5232
5233
5234 # Check whether --enable-sim-bitsize was given.
5235 if test "${enable_sim_bitsize+set}" = set; then :
5236 enableval=$enable_sim_bitsize; case "${enableval}" in
5237 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
5238 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
5239 esac
5240 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5241 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5242 fi
5243 else
5244 sim_bitsize=""
5245 fi
5246
5247
5248 # Check whether --enable-sim-config was given.
5249 if test "${enable_sim_config+set}" = set; then :
5250 enableval=$enable_sim_config; case "${enableval}" in
5251 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
5252 *) if test -f "${srcdir}/${enableval}"; then
5253 sim_config="${enableval}";
5254 elif test -f "${srcdir}/${enableval}-config.h"; then
5255 sim_config="${enableval}-config.h"
5256 else
5257 as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
5258 sim_config=std-config.h
5259 fi;;
5260 esac
5261 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5262 echo "Setting config flags = $sim_config" 6>&1
5263 fi
5264 else
5265 sim_config="std-config.h"
5266 if test x"$silent" != x"yes"; then
5267 echo "Setting config flags = $sim_config" 6>&1
5268 fi
5269 fi
5270
5271
5272 # Check whether --enable-sim-decode-mechanism was given.
5273 if test "${enable_sim_decode_mechanism+set}" = set; then :
5274 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5275 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
5276 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
5277 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
5278 sim_decode_mechanism="switch";;
5279 esac
5280 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5281 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5282 fi
5283 else
5284 sim_decode_mechanism=""
5285 if test x"$silent" != x"yes"; then
5286 echo "Setting decode mechanism flags = $sim_decode_mechanism"
5287 fi
5288 fi
5289
5290
5291 # Check whether --enable-sim-default-model was given.
5292 if test "${enable_sim_default_model+set}" = set; then :
5293 enableval=$enable_sim_default_model; case "${enableval}" in
5294 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
5295 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5296 esac
5297 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5298 echo "Setting default-model flags = $sim_default_model" 6>&1
5299 fi
5300 else
5301 sim_default_model=""
5302 fi
5303
5304
5305 # Check whether --enable-sim-duplicate was given.
5306 if test "${enable_sim_duplicate+set}" = set; then :
5307 enableval=$enable_sim_duplicate; case "${enableval}" in
5308 yes) sim_dup="-E";;
5309 no) sim_dup="";;
5310 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
5311 esac
5312 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5313 echo "Setting duplicate flags = $sim_dup" 6>&1
5314 fi
5315 else
5316 sim_dup="-E"
5317 if test x"$silent" != x"yes"; then
5318 echo "Setting duplicate flags = $sim_dup" 6>&1
5319 fi
5320 fi
5321
5322
5323 # Check whether --enable-sim-endian was given.
5324 if test "${enable_sim_endian+set}" = set; then :
5325 enableval=$enable_sim_endian; case "${enableval}" in
5326 yes) case "$target" in
5327 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5328 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5329 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5330 esac;;
5331 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5332 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5333 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5334 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5335 esac
5336 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5337 echo "Setting endian flags = $sim_endian" 6>&1
5338 fi
5339 else
5340 sim_endian=""
5341 fi
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
5345 $as_echo_n "checking default sim environment setting... " >&6; }
5346 sim_env="0"
5347 # Check whether --enable-sim-env was given.
5348 if test "${enable_sim_env+set}" = set; then :
5349 enableval=$enable_sim_env; case "${enableval}" in
5350 operating | os | oea) sim_env="OPERATING_ENVIRONMENT";;
5351 virtual | vea) sim_env="VIRTUAL_ENVIRONMENT";;
5352 user | uea) sim_env="USER_ENVIRONMENT";;
5353 no) sim_env="0";;
5354 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-env" "$LINENO" 5;;
5355 esac
5356 fi
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define WITH_ENVIRONMENT $sim_env
5360 _ACEOF
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_env" >&5
5363 $as_echo "$sim_env" >&6; }
5364
5365
5366 # Check whether --enable-sim-filter was given.
5367 if test "${enable_sim_filter+set}" = set; then :
5368 enableval=$enable_sim_filter; case "${enableval}" in
5369 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
5370 no) sim_filter="";;
5371 *) sim_filter="-F $enableval";;
5372 esac
5373 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5374 echo "Setting filter flags = $sim_filter" 6>&1
5375 fi
5376 else
5377 sim_filter="-F 32,f,o"
5378 if test x"$silent" != x"yes"; then
5379 echo "Setting filter flags = $sim_filter" 6>&1
5380 fi
5381 fi
5382
5383
5384 # Check whether --enable-sim-float was given.
5385 if test "${enable_sim_float+set}" = set; then :
5386 enableval=$enable_sim_float; case "${enableval}" in
5387 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5388 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5389 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5390 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5391 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5392 esac
5393 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5394 echo "Setting float flags = $sim_float" 6>&1
5395 fi
5396 else
5397
5398 case "${target}" in
5399 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5400 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5401 *) sim_float=""
5402 esac
5403
5404 fi
5405
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5408 $as_echo_n "checking if union semun defined... " >&6; }
5409 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 #include <sys/types.h>
5416 #include <sys/ipc.h>
5417 #include <sys/sem.h>
5418 int
5419 main ()
5420 {
5421 union semun arg ;
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 ac_cv_has_union_semun="yes"
5428 else
5429 ac_cv_has_union_semun="no"
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5433 $as_echo "$ac_cv_has_union_semun" >&6; }
5434
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5437 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
5438
5439
5440 if test "$ac_cv_has_union_semun" = "yes"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5442 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5443 if ${ac_cv_sysv_sem+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446
5447 if test "$cross_compiling" = yes; then :
5448 :
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452
5453 #include <sys/types.h>
5454 #include <sys/ipc.h>
5455 #include <sys/sem.h>
5456 int main () {
5457 union semun arg ;
5458
5459 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5460 if (id == -1)
5461 exit(1);
5462 arg.val = 0; /* avoid implicit type cast to union */
5463 if (semctl(id, 0, IPC_RMID, arg) == -1)
5464 exit(1);
5465 exit(0);
5466 }
5467
5468 _ACEOF
5469 if ac_fn_c_try_run "$LINENO"; then :
5470 ac_cv_sysv_sem="yes"
5471 else
5472 ac_cv_sysv_sem="no"
5473 fi
5474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5475 conftest.$ac_objext conftest.beam conftest.$ac_ext
5476 fi
5477
5478
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5481 $as_echo "$ac_cv_sysv_sem" >&6; }
5482 else # semun is not defined
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5484 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
5485 if ${ac_cv_sysv_sem+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488
5489 if test "$cross_compiling" = yes; then :
5490 :
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494
5495 #include <sys/types.h>
5496 #include <sys/ipc.h>
5497 #include <sys/sem.h>
5498 union semun {
5499 int val;
5500 struct semid_ds *buf;
5501 ushort *array;
5502 };
5503 int main () {
5504 union semun arg ;
5505
5506 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5507 if (id == -1)
5508 exit(1);
5509 arg.val = 0; /* avoid implicit type cast to union */
5510 if (semctl(id, 0, IPC_RMID, arg) == -1)
5511 exit(1);
5512 exit(0);
5513 }
5514
5515 _ACEOF
5516 if ac_fn_c_try_run "$LINENO"; then :
5517 ac_cv_sysv_sem="yes"
5518 else
5519 ac_cv_sysv_sem="no"
5520 fi
5521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5522 conftest.$ac_objext conftest.beam conftest.$ac_ext
5523 fi
5524
5525
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5528 $as_echo "$ac_cv_sysv_sem" >&6; }
5529 fi
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5532 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
5533 if ${ac_cv_sysv_shm+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536
5537 if test "$cross_compiling" = yes; then :
5538 :
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542
5543 #include <sys/types.h>
5544 #include <sys/ipc.h>
5545 #include <sys/shm.h>
5546 int main () {
5547 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5548 if (id == -1)
5549 exit(1);
5550 if (shmctl(id, IPC_RMID, 0) == -1)
5551 exit(1);
5552 exit(0);
5553 }
5554
5555 _ACEOF
5556 if ac_fn_c_try_run "$LINENO"; then :
5557 ac_cv_sysv_shm="yes"
5558 else
5559 ac_cv_sysv_shm="no"
5560 fi
5561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5562 conftest.$ac_objext conftest.beam conftest.$ac_ext
5563 fi
5564
5565
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5568 $as_echo "$ac_cv_sysv_shm" >&6; }
5569
5570 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5571 sim_sysv_ipc_hw=",sem,shm";
5572 else
5573 sim_sysv_ipc_hw="";
5574 fi
5575
5576 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5577
5578 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5579
5580 fi
5581
5582
5583 # Check whether --enable-sim-hardware was given.
5584 if test "${enable_sim_hardware+set}" = set; then :
5585 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}"
5586 case "${enableval}" in
5587 yes) ;;
5588 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
5589 ,*) hardware="${hardware}${enableval}";;
5590 *,) hardware="${enableval}${hardware}";;
5591 *) hardware="${enableval}"'';;
5592 esac
5593 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5594 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5595 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5596 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5597 fi
5598 else
5599 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5600 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5601 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5602 if test x"$silent" != x"yes"; then
5603 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5604 fi
5605 fi
5606
5607 # Check whether --enable-sim-hostbitsize was given.
5608 if test "${enable_sim_hostbitsize+set}" = set; then :
5609 enableval=$enable_sim_hostbitsize; case "${enableval}" in
5610 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
5611 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
5612 esac
5613 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5614 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5615 fi
5616 else
5617 sim_hostbitsize=""
5618 fi
5619
5620
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5627 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5628 # On Suns, sometimes $CPP names a directory.
5629 if test -n "$CPP" && test -d "$CPP"; then
5630 CPP=
5631 fi
5632 if test -z "$CPP"; then
5633 if ${ac_cv_prog_CPP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 # Double quotes because CPP needs to be expanded
5637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5638 do
5639 ac_preproc_ok=false
5640 for ac_c_preproc_warn_flag in '' yes
5641 do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #ifdef __STDC__
5651 # include <limits.h>
5652 #else
5653 # include <assert.h>
5654 #endif
5655 Syntax error
5656 _ACEOF
5657 if ac_fn_c_try_cpp "$LINENO"; then :
5658
5659 else
5660 # Broken: fails on valid input.
5661 continue
5662 fi
5663 rm -f conftest.err conftest.i conftest.$ac_ext
5664
5665 # OK, works on sane cases. Now check whether nonexistent headers
5666 # can be detected and how.
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <ac_nonexistent.h>
5670 _ACEOF
5671 if ac_fn_c_try_cpp "$LINENO"; then :
5672 # Broken: success on invalid input.
5673 continue
5674 else
5675 # Passes both tests.
5676 ac_preproc_ok=:
5677 break
5678 fi
5679 rm -f conftest.err conftest.i conftest.$ac_ext
5680
5681 done
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.i conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then :
5685 break
5686 fi
5687
5688 done
5689 ac_cv_prog_CPP=$CPP
5690
5691 fi
5692 CPP=$ac_cv_prog_CPP
5693 else
5694 ac_cv_prog_CPP=$CPP
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5697 $as_echo "$CPP" >&6; }
5698 ac_preproc_ok=false
5699 for ac_c_preproc_warn_flag in '' yes
5700 do
5701 # Use a header file that comes with gcc, so configuring glibc
5702 # with a fresh cross-compiler works.
5703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704 # <limits.h> exists even on freestanding compilers.
5705 # On the NeXT, cc -E runs the code through the compiler's parser,
5706 # not just through cpp. "Syntax error" is here to catch this case.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #ifdef __STDC__
5710 # include <limits.h>
5711 #else
5712 # include <assert.h>
5713 #endif
5714 Syntax error
5715 _ACEOF
5716 if ac_fn_c_try_cpp "$LINENO"; then :
5717
5718 else
5719 # Broken: fails on valid input.
5720 continue
5721 fi
5722 rm -f conftest.err conftest.i conftest.$ac_ext
5723
5724 # OK, works on sane cases. Now check whether nonexistent headers
5725 # can be detected and how.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <ac_nonexistent.h>
5729 _ACEOF
5730 if ac_fn_c_try_cpp "$LINENO"; then :
5731 # Broken: success on invalid input.
5732 continue
5733 else
5734 # Passes both tests.
5735 ac_preproc_ok=:
5736 break
5737 fi
5738 rm -f conftest.err conftest.i conftest.$ac_ext
5739
5740 done
5741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5742 rm -f conftest.i conftest.err conftest.$ac_ext
5743 if $ac_preproc_ok; then :
5744
5745 else
5746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5748 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5749 See \`config.log' for more details" "$LINENO" 5; }
5750 fi
5751
5752 ac_ext=c
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5760 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5761 if ${ac_cv_path_GREP+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -z "$GREP"; then
5765 ac_path_GREP_found=false
5766 # Loop through the user's path and test for each of PROGNAME-LIST
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_prog in grep ggrep; do
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5775 as_fn_executable_p "$ac_path_GREP" || continue
5776 # Check for GNU ac_path_GREP and select it if it is found.
5777 # Check for GNU $ac_path_GREP
5778 case `"$ac_path_GREP" --version 2>&1` in
5779 *GNU*)
5780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5781 *)
5782 ac_count=0
5783 $as_echo_n 0123456789 >"conftest.in"
5784 while :
5785 do
5786 cat "conftest.in" "conftest.in" >"conftest.tmp"
5787 mv "conftest.tmp" "conftest.in"
5788 cp "conftest.in" "conftest.nl"
5789 $as_echo 'GREP' >> "conftest.nl"
5790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5792 as_fn_arith $ac_count + 1 && ac_count=$as_val
5793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5794 # Best one so far, save it but keep looking for a better one
5795 ac_cv_path_GREP="$ac_path_GREP"
5796 ac_path_GREP_max=$ac_count
5797 fi
5798 # 10*(2^10) chars as input seems more than enough
5799 test $ac_count -gt 10 && break
5800 done
5801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5802 esac
5803
5804 $ac_path_GREP_found && break 3
5805 done
5806 done
5807 done
5808 IFS=$as_save_IFS
5809 if test -z "$ac_cv_path_GREP"; then
5810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5811 fi
5812 else
5813 ac_cv_path_GREP=$GREP
5814 fi
5815
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5818 $as_echo "$ac_cv_path_GREP" >&6; }
5819 GREP="$ac_cv_path_GREP"
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5823 $as_echo_n "checking for egrep... " >&6; }
5824 if ${ac_cv_path_EGREP+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5828 then ac_cv_path_EGREP="$GREP -E"
5829 else
5830 if test -z "$EGREP"; then
5831 ac_path_EGREP_found=false
5832 # Loop through the user's path and test for each of PROGNAME-LIST
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5835 do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_prog in egrep; do
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5841 as_fn_executable_p "$ac_path_EGREP" || continue
5842 # Check for GNU ac_path_EGREP and select it if it is found.
5843 # Check for GNU $ac_path_EGREP
5844 case `"$ac_path_EGREP" --version 2>&1` in
5845 *GNU*)
5846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5847 *)
5848 ac_count=0
5849 $as_echo_n 0123456789 >"conftest.in"
5850 while :
5851 do
5852 cat "conftest.in" "conftest.in" >"conftest.tmp"
5853 mv "conftest.tmp" "conftest.in"
5854 cp "conftest.in" "conftest.nl"
5855 $as_echo 'EGREP' >> "conftest.nl"
5856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5858 as_fn_arith $ac_count + 1 && ac_count=$as_val
5859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5860 # Best one so far, save it but keep looking for a better one
5861 ac_cv_path_EGREP="$ac_path_EGREP"
5862 ac_path_EGREP_max=$ac_count
5863 fi
5864 # 10*(2^10) chars as input seems more than enough
5865 test $ac_count -gt 10 && break
5866 done
5867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5868 esac
5869
5870 $ac_path_EGREP_found && break 3
5871 done
5872 done
5873 done
5874 IFS=$as_save_IFS
5875 if test -z "$ac_cv_path_EGREP"; then
5876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5877 fi
5878 else
5879 ac_cv_path_EGREP=$EGREP
5880 fi
5881
5882 fi
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5885 $as_echo "$ac_cv_path_EGREP" >&6; }
5886 EGREP="$ac_cv_path_EGREP"
5887
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5890 $as_echo_n "checking for ANSI C header files... " >&6; }
5891 if ${ac_cv_header_stdc+:} false; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896 #include <stdlib.h>
5897 #include <stdarg.h>
5898 #include <string.h>
5899 #include <float.h>
5900
5901 int
5902 main ()
5903 {
5904
5905 ;
5906 return 0;
5907 }
5908 _ACEOF
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 ac_cv_header_stdc=yes
5911 else
5912 ac_cv_header_stdc=no
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915
5916 if test $ac_cv_header_stdc = yes; then
5917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <string.h>
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "memchr" >/dev/null 2>&1; then :
5925
5926 else
5927 ac_cv_header_stdc=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932
5933 if test $ac_cv_header_stdc = yes; then
5934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include <stdlib.h>
5938
5939 _ACEOF
5940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5941 $EGREP "free" >/dev/null 2>&1; then :
5942
5943 else
5944 ac_cv_header_stdc=no
5945 fi
5946 rm -f conftest*
5947
5948 fi
5949
5950 if test $ac_cv_header_stdc = yes; then
5951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5952 if test "$cross_compiling" = yes; then :
5953 :
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #include <ctype.h>
5958 #include <stdlib.h>
5959 #if ((' ' & 0x0FF) == 0x020)
5960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5962 #else
5963 # define ISLOWER(c) \
5964 (('a' <= (c) && (c) <= 'i') \
5965 || ('j' <= (c) && (c) <= 'r') \
5966 || ('s' <= (c) && (c) <= 'z'))
5967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5968 #endif
5969
5970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5971 int
5972 main ()
5973 {
5974 int i;
5975 for (i = 0; i < 256; i++)
5976 if (XOR (islower (i), ISLOWER (i))
5977 || toupper (i) != TOUPPER (i))
5978 return 2;
5979 return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_run "$LINENO"; then :
5983
5984 else
5985 ac_cv_header_stdc=no
5986 fi
5987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5988 conftest.$ac_objext conftest.beam conftest.$ac_ext
5989 fi
5990
5991 fi
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5994 $as_echo "$ac_cv_header_stdc" >&6; }
5995 if test $ac_cv_header_stdc = yes; then
5996
5997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5998
5999 fi
6000
6001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6003 inttypes.h stdint.h unistd.h
6004 do :
6005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6007 "
6008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6009 cat >>confdefs.h <<_ACEOF
6010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6011 _ACEOF
6012
6013 fi
6014
6015 done
6016
6017
6018 # Check whether --enable-sim-hostendian was given.
6019 if test "${enable_sim_hostendian+set}" = set; then :
6020 enableval=$enable_sim_hostendian; case "${enableval}" in
6021 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6022 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6023 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6024 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
6025 esac
6026 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6027 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6028 fi
6029 else
6030
6031 if test "x$cross_compiling" = "xno"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6033 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6034 if ${ac_cv_c_bigendian+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 ac_cv_c_bigendian=unknown
6038 # See if we're dealing with a universal compiler.
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 #ifndef __APPLE_CC__
6042 not a universal capable compiler
6043 #endif
6044 typedef int dummy;
6045
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048
6049 # Check for potential -arch flags. It is not universal unless
6050 # there are at least two -arch flags with different values.
6051 ac_arch=
6052 ac_prev=
6053 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6054 if test -n "$ac_prev"; then
6055 case $ac_word in
6056 i?86 | x86_64 | ppc | ppc64)
6057 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6058 ac_arch=$ac_word
6059 else
6060 ac_cv_c_bigendian=universal
6061 break
6062 fi
6063 ;;
6064 esac
6065 ac_prev=
6066 elif test "x$ac_word" = "x-arch"; then
6067 ac_prev=arch
6068 fi
6069 done
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 if test $ac_cv_c_bigendian = unknown; then
6073 # See if sys/param.h defines the BYTE_ORDER macro.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <sys/types.h>
6077 #include <sys/param.h>
6078
6079 int
6080 main ()
6081 {
6082 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6083 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6084 && LITTLE_ENDIAN)
6085 bogus endian macros
6086 #endif
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 # It does; now see whether it defined to BIG_ENDIAN or not.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/param.h>
6098
6099 int
6100 main ()
6101 {
6102 #if BYTE_ORDER != BIG_ENDIAN
6103 not big endian
6104 #endif
6105
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111 ac_cv_c_bigendian=yes
6112 else
6113 ac_cv_c_bigendian=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 if test $ac_cv_c_bigendian = unknown; then
6120 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <limits.h>
6124
6125 int
6126 main ()
6127 {
6128 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6129 bogus endian macros
6130 #endif
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"; then :
6137 # It does; now see whether it defined to _BIG_ENDIAN or not.
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <limits.h>
6141
6142 int
6143 main ()
6144 {
6145 #ifndef _BIG_ENDIAN
6146 not big endian
6147 #endif
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"; then :
6154 ac_cv_c_bigendian=yes
6155 else
6156 ac_cv_c_bigendian=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 if test $ac_cv_c_bigendian = unknown; then
6163 # Compile a test program.
6164 if test "$cross_compiling" = yes; then :
6165 # Try to guess by grepping values from an object file.
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 short int ascii_mm[] =
6169 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6170 short int ascii_ii[] =
6171 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6172 int use_ascii (int i) {
6173 return ascii_mm[i] + ascii_ii[i];
6174 }
6175 short int ebcdic_ii[] =
6176 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6177 short int ebcdic_mm[] =
6178 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6179 int use_ebcdic (int i) {
6180 return ebcdic_mm[i] + ebcdic_ii[i];
6181 }
6182 extern int foo;
6183
6184 int
6185 main ()
6186 {
6187 return use_ascii (foo) == use_ebcdic (foo);
6188 ;
6189 return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6194 ac_cv_c_bigendian=yes
6195 fi
6196 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6197 if test "$ac_cv_c_bigendian" = unknown; then
6198 ac_cv_c_bigendian=no
6199 else
6200 # finding both strings is unlikely to happen, but who knows?
6201 ac_cv_c_bigendian=unknown
6202 fi
6203 fi
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 $ac_includes_default
6210 int
6211 main ()
6212 {
6213
6214 /* Are we little or big endian? From Harbison&Steele. */
6215 union
6216 {
6217 long int l;
6218 char c[sizeof (long int)];
6219 } u;
6220 u.l = 1;
6221 return u.c[sizeof (long int) - 1] == 1;
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_c_try_run "$LINENO"; then :
6228 ac_cv_c_bigendian=no
6229 else
6230 ac_cv_c_bigendian=yes
6231 fi
6232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6233 conftest.$ac_objext conftest.beam conftest.$ac_ext
6234 fi
6235
6236 fi
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6239 $as_echo "$ac_cv_c_bigendian" >&6; }
6240 case $ac_cv_c_bigendian in #(
6241 yes)
6242 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6243 ;; #(
6244 no)
6245 ;; #(
6246 universal)
6247
6248 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6249
6250 ;; #(
6251 *)
6252 as_fn_error $? "unknown endianness
6253 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6254 esac
6255
6256 if test $ac_cv_c_bigendian = yes; then
6257 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6258 else
6259 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6260 fi
6261 else
6262 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6263 fi
6264 fi
6265
6266
6267 # Check whether --enable-sim-icache was given.
6268 if test "${enable_sim_icache+set}" = set; then :
6269 enableval=$enable_sim_icache; icache="-R"
6270 case "${enableval}" in
6271 yes) icache="1024"; sim_icache="-I $icache";;
6272 no) sim_icache="-R";;
6273 *) icache=1024
6274 sim_icache="-"
6275 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6276 case "$x" in
6277 define) sim_icache="${sim_icache}R";;
6278 semantic) sim_icache="${sim_icache}C";;
6279 insn) sim_icache="${sim_icache}S";;
6280 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
6281 *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
6282 esac
6283 done
6284 sim_icache="${sim_icache}I $icache";;
6285 esac
6286 if test x"$silent" != x"yes" && test x"$icache" != x""; then
6287 echo "Setting instruction cache size to $icache ($sim_icache)"
6288 fi
6289 else
6290 sim_icache="-CSRI 1024"
6291 if test x"$silent" != x"yes"; then
6292 echo "Setting instruction cache size to 1024 ($sim_icache)"
6293 fi
6294 fi
6295
6296
6297 # Check whether --enable-sim-inline was given.
6298 if test "${enable_sim_inline+set}" = set; then :
6299 enableval=$enable_sim_inline; sim_inline=""
6300 case "$enableval" in
6301 no) sim_inline="-DDEFAULT_INLINE=0";;
6302 0) sim_inline="-DDEFAULT_INLINE=0";;
6303 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
6304 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6305 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6306 new_flag=""
6307 case "$x" in
6308 *_INLINE=*) new_flag="-D$x";;
6309 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6310 *_INLINE) new_flag="-D$x=ALL_INLINE";;
6311 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
6312 esac
6313 if test x"$sim_inline" = x""; then
6314 sim_inline="$new_flag"
6315 else
6316 sim_inline="$sim_inline $new_flag"
6317 fi
6318 done;;
6319 esac
6320 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6321 echo "Setting inline flags = $sim_inline" 6>&1
6322 fi
6323 else
6324 if test x"$GCC" != ""; then
6325 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6326 if test x"$silent" != x"yes"; then
6327 echo "Setting inline flags = $sim_inline" 6>&1
6328 fi
6329 else
6330 sim_inline=""
6331 fi
6332 fi
6333
6334
6335 # Check whether --enable-sim-jump was given.
6336 if test "${enable_sim_jump+set}" = set; then :
6337 enableval=$enable_sim_jump; case "${enableval}" in
6338 yes) sim_jump="-J";;
6339 no) sim_jump="";;
6340 *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
6341 esac
6342 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6343 echo "Setting jump flag = $sim_jump" 6>&1
6344 fi
6345 else
6346 sim_jump=""
6347 if test x"$silent" != x"yes"; then
6348 echo "Setting jump flag = $sim_jump" 6>&1
6349 fi
6350 fi
6351
6352
6353 # Check whether --enable-sim-line-nr was given.
6354 if test "${enable_sim_line_nr+set}" = set; then :
6355 enableval=$enable_sim_line_nr; case "${enableval}" in
6356 yes) sim_line_nr="";;
6357 no) sim_line_nr="-L";;
6358 *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
6359 esac
6360 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6361 echo "Setting warning flags = $sim_line_nr" 6>&1
6362 fi
6363 else
6364 sim_line_nr=""
6365 fi
6366
6367
6368 # Check whether --enable-sim-model was given.
6369 if test "${enable_sim_model+set}" = set; then :
6370 enableval=$enable_sim_model; case "${enableval}" in
6371 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6372 *) sim_model="-DWITH_MODEL=${enableval}";;
6373 esac
6374 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6375 echo "Setting model flags = $sim_model" 6>&1
6376 fi
6377 else
6378 sim_model=""
6379 fi
6380
6381
6382 # Check whether --enable-sim-model-issue was given.
6383 if test "${enable_sim_model_issue+set}" = set; then :
6384 enableval=$enable_sim_model_issue; case "${enableval}" in
6385 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6386 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6387 *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
6388 esac
6389 if test x"$silent" != x"yes"; then
6390 echo "Setting model-issue flags = $sim_model_issue" 6>&1
6391 fi
6392 else
6393 sim_model_issue=""
6394 fi
6395
6396
6397 # Check whether --enable-sim-monitor was given.
6398 if test "${enable_sim_monitor+set}" = set; then :
6399 enableval=$enable_sim_monitor; case "${enableval}" in
6400 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6401 no) sim_monitor="-DWITH_MON=0";;
6402 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6403 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6404 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
6405 esac
6406 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6407 echo "Setting monitor flags = $sim_monitor" 6>&1
6408 fi
6409 else
6410 sim_monitor=""
6411 fi
6412
6413
6414 # Check whether --enable-sim-opcode was given.
6415 if test "${enable_sim_opcode+set}" = set; then :
6416 enableval=$enable_sim_opcode; case "${enableval}" in
6417 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6418 *) if test -f "${srcdir}/${enableval}"; then
6419 sim_opcode="${enableval}"
6420 elif test -f "${srcdir}/dc-${enableval}"; then
6421 sim_opcode="dc-${enableval}"
6422 else
6423 as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6424 sim_opcode="dc-complex"
6425 fi;;
6426 esac
6427 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6428 echo "Setting opcode flags = $sim_opcode" 6>&1
6429 fi
6430 else
6431 sim_opcode="dc-complex"
6432 if test x"$silent" != x"yes"; then
6433 echo "Setting opcode flags = $sim_opcode"
6434 fi
6435 fi
6436
6437
6438 # Check whether --enable-sim-packages was given.
6439 if test "${enable_sim_packages+set}" = set; then :
6440 enableval=$enable_sim_packages; packages=disklabel
6441 case "${enableval}" in
6442 yes) ;;
6443 no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
6444 ,*) packages="${packages}${enableval}";;
6445 *,) packages="${enableval}${packages}";;
6446 *) packages="${enableval}"'';;
6447 esac
6448 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6449 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6450 if test x"$silent" != x"yes" && test x"$packages" != x""; then
6451 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6452 fi
6453 else
6454 packages=disklabel
6455 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6456 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6457 if test x"$silent" != x"yes"; then
6458 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6459 fi
6460 fi
6461
6462
6463 # Check whether --enable-sim-reserved-bits was given.
6464 if test "${enable_sim_reserved_bits+set}" = set; then :
6465 enableval=$enable_sim_reserved_bits; case "${enableval}" in
6466 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
6467 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
6468 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
6469 esac
6470 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6471 echo "Setting reserved flags = $sim_reserved" 6>&1
6472 fi
6473 else
6474 sim_reserved=""
6475 fi
6476
6477
6478 # Check whether --enable-sim-smp was given.
6479 if test "${enable_sim_smp+set}" = set; then :
6480 enableval=$enable_sim_smp; case "${enableval}" in
6481 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6482 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6483 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6484 esac
6485 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6486 echo "Setting smp flags = $sim_smp" 6>&1
6487 fi
6488 else
6489 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6490 if test x"$silent" != x"yes"; then
6491 echo "Setting smp flags = $sim_smp" 6>&1
6492 fi
6493 fi
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
6497 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
6498 sim_stdio=0
6499 # Check whether --enable-sim-stdio was given.
6500 if test "${enable_sim_stdio+set}" = set; then :
6501 enableval=$enable_sim_stdio; case "${enableval}" in
6502 yes) sim_stdio="DO_USE_STDIO";;
6503 no) sim_stdio="DONT_USE_STDIO";;
6504 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
6505 esac
6506 fi
6507
6508 cat >>confdefs.h <<_ACEOF
6509 #define WITH_STDIO $sim_stdio
6510 _ACEOF
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
6513 $as_echo "$sim_stdio" >&6; }
6514
6515
6516 # Check whether --enable-sim-switch was given.
6517 if test "${enable_sim_switch+set}" = set; then :
6518 enableval=$enable_sim_switch; case "${enableval}" in
6519 yes) sim_switch="-s";;
6520 no) sim_switch="";;
6521 *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
6522 esac
6523 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6524 echo "Setting switch flags = $sim_switch" 6>&1
6525 fi
6526 else
6527 sim_switch="";
6528 if test x"$silent" != x"yes"; then
6529 echo "Setting switch flags = $sim_switch" 6>&1
6530 fi
6531 fi
6532
6533
6534 # Check whether --enable-sim-timebase was given.
6535 if test "${enable_sim_timebase+set}" = set; then :
6536 enableval=$enable_sim_timebase; case "${enableval}" in
6537 yes) sim_timebase="-DWITH_TIME_BASE=1";;
6538 no) sim_timebase="-DWITH_TIME_BASE=0";;
6539 *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
6540 esac
6541 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6542 echo "Setting timebase flags = $sim_timebase" 6>&1
6543 fi
6544 else
6545 sim_timebase=""
6546 fi
6547
6548
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
6550 $as_echo_n "checking for sim trace settings... " >&6; }
6551 sim_trace="1"
6552 # Check whether --enable-sim-trace was given.
6553 if test "${enable_sim_trace+set}" = set; then :
6554 enableval=$enable_sim_trace; case "${enableval}" in
6555 yes) sim_trace="1";;
6556 no) sim_trace="0";;
6557 *) as_fn_error $? "--enable-sim-trace does not take a value" "$LINENO" 5;;
6558 esac
6559 fi
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define WITH_TRACE $sim_trace
6563 _ACEOF
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
6566 $as_echo "$sim_trace" >&6; }
6567
6568
6569 # Check whether --enable-sim-warnings was given.
6570 if test "${enable_sim_warnings+set}" = set; then :
6571 enableval=$enable_sim_warnings; case "${enableval}" in
6572 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6573 no) sim_warnings="-w";;
6574 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6575 esac
6576 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6577 echo "Setting warning flags = $sim_warnings" 6>&1
6578 fi
6579 else
6580 sim_warnings=""
6581 fi
6582
6583
6584 # Check whether --enable-sim-xor-endian was given.
6585 if test "${enable_sim_xor_endian+set}" = set; then :
6586 enableval=$enable_sim_xor_endian; case "${enableval}" in
6587 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6588 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6589 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6590 esac
6591 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6592 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6593 fi
6594 else
6595 sim_xor_endian=""
6596 fi
6597
6598
6599
6600
6601 # Check whether --with-pkgversion was given.
6602 if test "${with_pkgversion+set}" = set; then :
6603 withval=$with_pkgversion; case "$withval" in
6604 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6605 no) PKGVERSION= ;;
6606 *) PKGVERSION="($withval) " ;;
6607 esac
6608 else
6609 PKGVERSION="(GDB) "
6610
6611 fi
6612
6613
6614
6615
6616
6617 # Check whether --with-bugurl was given.
6618 if test "${with_bugurl+set}" = set; then :
6619 withval=$with_bugurl; case "$withval" in
6620 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6621 no) BUGURL=
6622 ;;
6623 *) BUGURL="$withval"
6624 ;;
6625 esac
6626 else
6627 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6628
6629 fi
6630
6631 case ${BUGURL} in
6632 "")
6633 REPORT_BUGS_TO=
6634 REPORT_BUGS_TEXI=
6635 ;;
6636 *)
6637 REPORT_BUGS_TO="<$BUGURL>"
6638 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6639 ;;
6640 esac;
6641
6642
6643
6644
6645 cat >>confdefs.h <<_ACEOF
6646 #define PKGVERSION "$PKGVERSION"
6647 _ACEOF
6648
6649
6650 cat >>confdefs.h <<_ACEOF
6651 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6652 _ACEOF
6653
6654
6655 # Make sure we can run config.sub.
6656 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6657 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6658
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6660 $as_echo_n "checking build system type... " >&6; }
6661 if ${ac_cv_build+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 ac_build_alias=$build_alias
6665 test "x$ac_build_alias" = x &&
6666 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6667 test "x$ac_build_alias" = x &&
6668 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6671
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6674 $as_echo "$ac_cv_build" >&6; }
6675 case $ac_cv_build in
6676 *-*-*) ;;
6677 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6678 esac
6679 build=$ac_cv_build
6680 ac_save_IFS=$IFS; IFS='-'
6681 set x $ac_cv_build
6682 shift
6683 build_cpu=$1
6684 build_vendor=$2
6685 shift; shift
6686 # Remember, the first character of IFS is used to create $*,
6687 # except with old shells:
6688 build_os=$*
6689 IFS=$ac_save_IFS
6690 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6694 $as_echo_n "checking host system type... " >&6; }
6695 if ${ac_cv_host+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test "x$host_alias" = x; then
6699 ac_cv_host=$ac_cv_build
6700 else
6701 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6703 fi
6704
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6707 $as_echo "$ac_cv_host" >&6; }
6708 case $ac_cv_host in
6709 *-*-*) ;;
6710 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6711 esac
6712 host=$ac_cv_host
6713 ac_save_IFS=$IFS; IFS='-'
6714 set x $ac_cv_host
6715 shift
6716 host_cpu=$1
6717 host_vendor=$2
6718 shift; shift
6719 # Remember, the first character of IFS is used to create $*,
6720 # except with old shells:
6721 host_os=$*
6722 IFS=$ac_save_IFS
6723 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6724
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6727 $as_echo_n "checking target system type... " >&6; }
6728 if ${ac_cv_target+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test "x$target_alias" = x; then
6732 ac_cv_target=$ac_cv_host
6733 else
6734 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6736 fi
6737
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6740 $as_echo "$ac_cv_target" >&6; }
6741 case $ac_cv_target in
6742 *-*-*) ;;
6743 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6744 esac
6745 target=$ac_cv_target
6746 ac_save_IFS=$IFS; IFS='-'
6747 set x $ac_cv_target
6748 shift
6749 target_cpu=$1
6750 target_vendor=$2
6751 shift; shift
6752 # Remember, the first character of IFS is used to create $*,
6753 # except with old shells:
6754 target_os=$*
6755 IFS=$ac_save_IFS
6756 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6757
6758
6759 # The aliases save the names the user supplied, while $host etc.
6760 # will get canonicalized.
6761 test -n "$target_alias" &&
6762 test "$program_prefix$program_suffix$program_transform_name" = \
6763 NONENONEs,x,x, &&
6764 program_prefix=${target_alias}-
6765
6766 test "$program_prefix" != NONE &&
6767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6768 # Use a double $ so make ignores it.
6769 test "$program_suffix" != NONE &&
6770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6771 # Double any \ or $.
6772 # By default was `s,x,x', remove it if useless.
6773 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6774 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6775
6776
6777 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
6778 # using the same condition.
6779
6780 # Use the system's zlib library.
6781 zlibdir="-L\$(top_builddir)/../zlib"
6782 zlibinc="-I\$(top_srcdir)/../zlib"
6783
6784 # Check whether --with-system-zlib was given.
6785 if test "${with_system_zlib+set}" = set; then :
6786 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6787 zlibdir=
6788 zlibinc=
6789 fi
6790
6791 fi
6792
6793
6794
6795
6796
6797 # BFD uses libdl when when plugins enabled.
6798
6799 maybe_plugins=no
6800 for ac_header in dlfcn.h
6801 do :
6802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6803 "
6804 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6805 cat >>confdefs.h <<_ACEOF
6806 #define HAVE_DLFCN_H 1
6807 _ACEOF
6808 maybe_plugins=yes
6809 fi
6810
6811 done
6812
6813 for ac_header in windows.h
6814 do :
6815 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6816 "
6817 if test "x$ac_cv_header_windows_h" = xyes; then :
6818 cat >>confdefs.h <<_ACEOF
6819 #define HAVE_WINDOWS_H 1
6820 _ACEOF
6821 maybe_plugins=yes
6822 fi
6823
6824 done
6825
6826
6827 # Check whether --enable-plugins was given.
6828 if test "${enable_plugins+set}" = set; then :
6829 enableval=$enable_plugins; case "${enableval}" in
6830 no) plugins=no ;;
6831 *) plugins=yes
6832 if test "$maybe_plugins" != "yes" ; then
6833 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6834 fi ;;
6835 esac
6836 else
6837 plugins=$maybe_plugins
6838
6839 fi
6840
6841 if test "$plugins" = "yes"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6843 $as_echo_n "checking for library containing dlsym... " >&6; }
6844 if ${ac_cv_search_dlsym+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 ac_func_search_save_LIBS=$LIBS
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 /* Override any GCC internal prototype to avoid an error.
6852 Use char because int might match the return type of a GCC
6853 builtin and then its argument prototype would still apply. */
6854 #ifdef __cplusplus
6855 extern "C"
6856 #endif
6857 char dlsym ();
6858 int
6859 main ()
6860 {
6861 return dlsym ();
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 for ac_lib in '' dl; do
6867 if test -z "$ac_lib"; then
6868 ac_res="none required"
6869 else
6870 ac_res=-l$ac_lib
6871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6872 fi
6873 if ac_fn_c_try_link "$LINENO"; then :
6874 ac_cv_search_dlsym=$ac_res
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext
6878 if ${ac_cv_search_dlsym+:} false; then :
6879 break
6880 fi
6881 done
6882 if ${ac_cv_search_dlsym+:} false; then :
6883
6884 else
6885 ac_cv_search_dlsym=no
6886 fi
6887 rm conftest.$ac_ext
6888 LIBS=$ac_func_search_save_LIBS
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6891 $as_echo "$ac_cv_search_dlsym" >&6; }
6892 ac_res=$ac_cv_search_dlsym
6893 if test "$ac_res" != no; then :
6894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6895
6896 fi
6897
6898 fi
6899
6900
6901 case ${host} in
6902 *mingw32*)
6903
6904 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6905
6906 ;;
6907 esac
6908
6909 ac_config_headers="$ac_config_headers config.h:config.in"
6910
6911
6912 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6913 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6914
6915 cat >>confdefs.h <<_ACEOF
6916 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6917 _ACEOF
6918
6919
6920 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6921
6922 fi
6923
6924
6925 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6926 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6927
6928 cat >>confdefs.h <<_ACEOF
6929 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6930 _ACEOF
6931
6932
6933 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6934
6935 else
6936 case " $LIBOBJS " in
6937 *" fileblocks.$ac_objext "* ) ;;
6938 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6939 ;;
6940 esac
6941
6942 fi
6943
6944
6945 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6946 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define HAVE_STRUCT_STAT_ST_RDEV 1
6950 _ACEOF
6951
6952
6953 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6954
6955 fi
6956
6957
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6959 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6960 if ${ac_cv_struct_tm+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 #include <sys/types.h>
6966 #include <time.h>
6967
6968 int
6969 main ()
6970 {
6971 struct tm tm;
6972 int *p = &tm.tm_sec;
6973 return !p;
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 ac_cv_struct_tm=time.h
6980 else
6981 ac_cv_struct_tm=sys/time.h
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6986 $as_echo "$ac_cv_struct_tm" >&6; }
6987 if test $ac_cv_struct_tm = sys/time.h; then
6988
6989 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6990
6991 fi
6992
6993 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6994 #include <$ac_cv_struct_tm>
6995
6996 "
6997 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6998
6999 cat >>confdefs.h <<_ACEOF
7000 #define HAVE_STRUCT_TM_TM_ZONE 1
7001 _ACEOF
7002
7003
7004 fi
7005
7006 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7007
7008 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7009
7010 else
7011 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7012 "
7013 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7014 ac_have_decl=1
7015 else
7016 ac_have_decl=0
7017 fi
7018
7019 cat >>confdefs.h <<_ACEOF
7020 #define HAVE_DECL_TZNAME $ac_have_decl
7021 _ACEOF
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7024 $as_echo_n "checking for tzname... " >&6; }
7025 if ${ac_cv_var_tzname+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030 #include <time.h>
7031 #if !HAVE_DECL_TZNAME
7032 extern char *tzname[];
7033 #endif
7034
7035 int
7036 main ()
7037 {
7038 return tzname[0][0];
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_link "$LINENO"; then :
7044 ac_cv_var_tzname=yes
7045 else
7046 ac_cv_var_tzname=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7052 $as_echo "$ac_cv_var_tzname" >&6; }
7053 if test $ac_cv_var_tzname = yes; then
7054
7055 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7056
7057 fi
7058 fi
7059
7060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7062 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7063 if ${ac_cv_type_uid_t+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #include <sys/types.h>
7069
7070 _ACEOF
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "uid_t" >/dev/null 2>&1; then :
7073 ac_cv_type_uid_t=yes
7074 else
7075 ac_cv_type_uid_t=no
7076 fi
7077 rm -f conftest*
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7081 $as_echo "$ac_cv_type_uid_t" >&6; }
7082 if test $ac_cv_type_uid_t = no; then
7083
7084 $as_echo "#define uid_t int" >>confdefs.h
7085
7086
7087 $as_echo "#define gid_t int" >>confdefs.h
7088
7089 fi
7090
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7092 $as_echo_n "checking type of array argument to getgroups... " >&6; }
7093 if ${ac_cv_type_getgroups+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test "$cross_compiling" = yes; then :
7097 ac_cv_type_getgroups=cross
7098 else
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 /* Thanks to Mike Rendell for this test. */
7102 $ac_includes_default
7103 #define NGID 256
7104 #undef MAX
7105 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7106
7107 int
7108 main ()
7109 {
7110 gid_t gidset[NGID];
7111 int i, n;
7112 union { gid_t gval; long int lval; } val;
7113
7114 val.lval = -1;
7115 for (i = 0; i < NGID; i++)
7116 gidset[i] = val.gval;
7117 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7118 gidset);
7119 /* Exit non-zero if getgroups seems to require an array of ints. This
7120 happens when gid_t is short int but getgroups modifies an array
7121 of ints. */
7122 return n > 0 && gidset[n] != val.gval;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_run "$LINENO"; then :
7126 ac_cv_type_getgroups=gid_t
7127 else
7128 ac_cv_type_getgroups=int
7129 fi
7130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7131 conftest.$ac_objext conftest.beam conftest.$ac_ext
7132 fi
7133
7134 if test $ac_cv_type_getgroups = cross; then
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #include <unistd.h>
7138
7139 _ACEOF
7140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7142 ac_cv_type_getgroups=gid_t
7143 else
7144 ac_cv_type_getgroups=int
7145 fi
7146 rm -f conftest*
7147
7148 fi
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7151 $as_echo "$ac_cv_type_getgroups" >&6; }
7152
7153 cat >>confdefs.h <<_ACEOF
7154 #define GETGROUPS_T $ac_cv_type_getgroups
7155 _ACEOF
7156
7157
7158 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7159 if test "x$ac_cv_type_mode_t" = xyes; then :
7160
7161 else
7162
7163 cat >>confdefs.h <<_ACEOF
7164 #define mode_t int
7165 _ACEOF
7166
7167 fi
7168
7169 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7170 if test "x$ac_cv_type_off_t" = xyes; then :
7171
7172 else
7173
7174 cat >>confdefs.h <<_ACEOF
7175 #define off_t long int
7176 _ACEOF
7177
7178 fi
7179
7180 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7181 if test "x$ac_cv_type_pid_t" = xyes; then :
7182
7183 else
7184
7185 cat >>confdefs.h <<_ACEOF
7186 #define pid_t int
7187 _ACEOF
7188
7189 fi
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7192 $as_echo_n "checking return type of signal handlers... " >&6; }
7193 if ${ac_cv_type_signal+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <sys/types.h>
7199 #include <signal.h>
7200
7201 int
7202 main ()
7203 {
7204 return *(signal (0, 0)) (0) == 1;
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 ac_cv_type_signal=int
7211 else
7212 ac_cv_type_signal=void
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7217 $as_echo "$ac_cv_type_signal" >&6; }
7218
7219 cat >>confdefs.h <<_ACEOF
7220 #define RETSIGTYPE $ac_cv_type_signal
7221 _ACEOF
7222
7223
7224 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7225 if test "x$ac_cv_type_size_t" = xyes; then :
7226
7227 else
7228
7229 cat >>confdefs.h <<_ACEOF
7230 #define size_t unsigned int
7231 _ACEOF
7232
7233 fi
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7236 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7237 if ${ac_cv_type_uid_t+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <sys/types.h>
7243
7244 _ACEOF
7245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246 $EGREP "uid_t" >/dev/null 2>&1; then :
7247 ac_cv_type_uid_t=yes
7248 else
7249 ac_cv_type_uid_t=no
7250 fi
7251 rm -f conftest*
7252
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7255 $as_echo "$ac_cv_type_uid_t" >&6; }
7256 if test $ac_cv_type_uid_t = no; then
7257
7258 $as_echo "#define uid_t int" >>confdefs.h
7259
7260
7261 $as_echo "#define gid_t int" >>confdefs.h
7262
7263 fi
7264
7265
7266 for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7267 do :
7268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7271 cat >>confdefs.h <<_ACEOF
7272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7273 _ACEOF
7274
7275 fi
7276 done
7277
7278
7279 for ac_header in fcntl.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h unistd.h sys/vfs.h sys/statfs.h
7280 do :
7281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7284 cat >>confdefs.h <<_ACEOF
7285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286 _ACEOF
7287
7288 fi
7289
7290 done
7291
7292 ac_header_dirent=no
7293 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7294 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7296 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7297 if eval \${$as_ac_Header+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 #include <sys/types.h>
7303 #include <$ac_hdr>
7304
7305 int
7306 main ()
7307 {
7308 if ((DIR *) 0)
7309 return 0;
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_compile "$LINENO"; then :
7315 eval "$as_ac_Header=yes"
7316 else
7317 eval "$as_ac_Header=no"
7318 fi
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 fi
7321 eval ac_res=\$$as_ac_Header
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7323 $as_echo "$ac_res" >&6; }
7324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7325 cat >>confdefs.h <<_ACEOF
7326 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7327 _ACEOF
7328
7329 ac_header_dirent=$ac_hdr; break
7330 fi
7331
7332 done
7333 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7334 if test $ac_header_dirent = dirent.h; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7336 $as_echo_n "checking for library containing opendir... " >&6; }
7337 if ${ac_cv_search_opendir+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 ac_func_search_save_LIBS=$LIBS
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343
7344 /* Override any GCC internal prototype to avoid an error.
7345 Use char because int might match the return type of a GCC
7346 builtin and then its argument prototype would still apply. */
7347 #ifdef __cplusplus
7348 extern "C"
7349 #endif
7350 char opendir ();
7351 int
7352 main ()
7353 {
7354 return opendir ();
7355 ;
7356 return 0;
7357 }
7358 _ACEOF
7359 for ac_lib in '' dir; do
7360 if test -z "$ac_lib"; then
7361 ac_res="none required"
7362 else
7363 ac_res=-l$ac_lib
7364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7365 fi
7366 if ac_fn_c_try_link "$LINENO"; then :
7367 ac_cv_search_opendir=$ac_res
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext
7371 if ${ac_cv_search_opendir+:} false; then :
7372 break
7373 fi
7374 done
7375 if ${ac_cv_search_opendir+:} false; then :
7376
7377 else
7378 ac_cv_search_opendir=no
7379 fi
7380 rm conftest.$ac_ext
7381 LIBS=$ac_func_search_save_LIBS
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7384 $as_echo "$ac_cv_search_opendir" >&6; }
7385 ac_res=$ac_cv_search_opendir
7386 if test "$ac_res" != no; then :
7387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7388
7389 fi
7390
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7393 $as_echo_n "checking for library containing opendir... " >&6; }
7394 if ${ac_cv_search_opendir+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 ac_func_search_save_LIBS=$LIBS
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400
7401 /* Override any GCC internal prototype to avoid an error.
7402 Use char because int might match the return type of a GCC
7403 builtin and then its argument prototype would still apply. */
7404 #ifdef __cplusplus
7405 extern "C"
7406 #endif
7407 char opendir ();
7408 int
7409 main ()
7410 {
7411 return opendir ();
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 for ac_lib in '' x; do
7417 if test -z "$ac_lib"; then
7418 ac_res="none required"
7419 else
7420 ac_res=-l$ac_lib
7421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7422 fi
7423 if ac_fn_c_try_link "$LINENO"; then :
7424 ac_cv_search_opendir=$ac_res
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext
7428 if ${ac_cv_search_opendir+:} false; then :
7429 break
7430 fi
7431 done
7432 if ${ac_cv_search_opendir+:} false; then :
7433
7434 else
7435 ac_cv_search_opendir=no
7436 fi
7437 rm conftest.$ac_ext
7438 LIBS=$ac_func_search_save_LIBS
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7441 $as_echo "$ac_cv_search_opendir" >&6; }
7442 ac_res=$ac_cv_search_opendir
7443 if test "$ac_res" != no; then :
7444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7445
7446 fi
7447
7448 fi
7449
7450
7451 sim_termio=""
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7453 $as_echo_n "checking for struct termios... " >&6; }
7454 if ${ac_cv_termios_struct+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <sys/types.h>
7460 #include <sys/termios.h>
7461 int
7462 main ()
7463 {
7464 static struct termios x;
7465 x.c_iflag = 0;
7466 x.c_oflag = 0;
7467 x.c_cflag = 0;
7468 x.c_lflag = 0;
7469 x.c_cc[NCCS] = 0;
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"; then :
7475 ac_cv_termios_struct=yes
7476 else
7477 ac_cv_termios_struct=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 fi
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7483 $as_echo "$ac_cv_termios_struct" >&6; }
7484 if test $ac_cv_termios_struct = yes; then
7485 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7486 fi
7487
7488 if test "$ac_cv_termios_struct" = "yes"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7490 $as_echo_n "checking for c_line field in struct termios... " >&6; }
7491 if ${ac_cv_termios_cline+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 #include <sys/types.h>
7497 #include <sys/termios.h>
7498 int
7499 main ()
7500 {
7501 static struct termios x; x.c_line = 0;
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 ac_cv_termios_cline=yes
7508 else
7509 ac_cv_termios_cline=no
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513
7514
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7516 $as_echo "$ac_cv_termios_cline" >&6; }
7517 if test $ac_cv_termios_cline = yes; then
7518 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
7519 fi
7520 else
7521 ac_cv_termios_cline=no
7522 fi
7523
7524 if test "$ac_cv_termios_struct" != "yes"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7526 $as_echo_n "checking for struct termio... " >&6; }
7527 if ${ac_cv_termio_struct+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 #include <sys/types.h>
7533 #include <sys/termio.h>
7534 int
7535 main ()
7536 {
7537 static struct termio x;
7538 x.c_iflag = 0;
7539 x.c_oflag = 0;
7540 x.c_cflag = 0;
7541 x.c_lflag = 0;
7542 x.c_cc[NCC] = 0;
7543 ;
7544 return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 ac_cv_termio_struct=yes
7549 else
7550 ac_cv_termio_struct=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7556 $as_echo "$ac_cv_termio_struct" >&6; }
7557 if test $ac_cv_termio_struct = yes; then
7558 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7559 fi
7560 else
7561 ac_cv_termio_struct=no
7562 fi
7563
7564 if test "$ac_cv_termio_struct" = "yes"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7566 $as_echo_n "checking for c_line field in struct termio... " >&6; }
7567 if ${ac_cv_termio_cline+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #include <sys/types.h>
7573 #include <sys/termio.h>
7574 int
7575 main ()
7576 {
7577 static struct termio x; x.c_line = 0;
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_compile "$LINENO"; then :
7583 ac_cv_termio_cline=yes
7584 else
7585 ac_cv_termio_cline=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 fi
7589
7590
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7592 $as_echo "$ac_cv_termio_cline" >&6; }
7593 if test $ac_cv_termio_cline = yes; then
7594 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
7595 fi
7596 else
7597 ac_cv_termio_cline=no
7598 fi
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7601 $as_echo_n "checking for struct statfs... " >&6; }
7602 if ${ac_cv_struct_statfs+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <sys/types.h>
7608 #ifdef HAVE_SYS_PARAM_H
7609 #include <sys/param.h>
7610 #endif
7611 #ifdef HAVE_SYS_MOUNT_H
7612 #include <sys/mount.h>
7613 #endif
7614 #ifdef HAVE_SYS_VFS_H
7615 #include <sys/vfs.h>
7616 #endif
7617 #ifdef HAVE_SYS_STATFS_H
7618 #include <sys/statfs.h>
7619 #endif
7620 int
7621 main ()
7622 {
7623 static struct statfs s;
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629 ac_cv_struct_statfs=yes
7630 else
7631 ac_cv_struct_statfs=no
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 fi
7635
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7637 $as_echo "$ac_cv_struct_statfs" >&6; }
7638 if test $ac_cv_struct_statfs = yes; then
7639
7640 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
7641
7642 fi
7643
7644 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7645 if test "x$ac_cv_type_long_long" = xyes; then :
7646
7647 cat >>confdefs.h <<_ACEOF
7648 #define HAVE_LONG_LONG 1
7649 _ACEOF
7650
7651
7652 fi
7653
7654
7655 sim_devzero=""
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7657 $as_echo_n "checking for /dev/zero... " >&6; }
7658 if ${ac_cv_devzero+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test "$cross_compiling" = yes; then :
7662 ac_cv_devzero=no
7663 else
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <fcntl.h>
7667 main () {
7668 char buf[2048];
7669 int i;
7670 int fd = open ("/dev/zero", O_RDONLY);
7671 if (fd < 0)
7672 return 1;
7673 for (i = 0; i < sizeof (buf); i++)
7674 buf[i] = 1;
7675 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7676 return 1;
7677 for (i = 0; i < sizeof (buf); i++)
7678 if (buf[i])
7679 return 1;
7680 return 0;
7681 }
7682 _ACEOF
7683 if ac_fn_c_try_run "$LINENO"; then :
7684 ac_cv_devzero=yes
7685 else
7686 ac_cv_devzero=no
7687 fi
7688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689 conftest.$ac_objext conftest.beam conftest.$ac_ext
7690 fi
7691
7692 fi
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7695 $as_echo "$ac_cv_devzero" >&6; }
7696 if test $ac_cv_devzero = yes; then
7697 sim_devzero="-DHAVE_DEVZERO"
7698 else
7699 sim_devzero=""
7700 fi
7701
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7703 $as_echo_n "checking for common simulator directory... " >&6; }
7704 if test -f "${srcdir}/../common/callback.c"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706 $as_echo "yes" >&6; }
7707 sim_callback="callback.o targ-map.o"
7708 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 sim_callback=""
7713 sim_targ_vals=""
7714 fi
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7717 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
7718 if test -f "${srcdir}/../common/sim-fpu.c"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7720 $as_echo "yes" >&6; }
7721 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
7722 sim_fpu="sim-fpu.o"
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 sim_fpu_cflags=
7727 sim_fpu=
7728 fi
7729
7730 # Since we run commands on the build system, we have to create a
7731 # separate config header for the build system if build != host.
7732 if test x$host = x$build; then
7733 ac_config_commands="$ac_config_commands build-config.h"
7734
7735 else
7736 tempdir=build.$$
7737 rm -rf $tempdir
7738 mkdir $tempdir
7739 cd $tempdir
7740 case ${srcdir} in
7741 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
7742 *) realsrcdir=../${srcdir};;
7743 esac
7744 saved_CFLAGS="${CFLAGS}"
7745 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
7746 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
7747 ${realsrcdir}/configure \
7748 --enable-languages=${enable_languages-all} \
7749 --target=$target_alias --host=$build_alias --build=$build_alias
7750 CFLAGS="${saved_CFLAGS}"
7751 mv config.h ../build-config.h
7752 cd ..
7753 rm -rf $tempdir
7754 fi
7755
7756
7757
7758
7759
7760
7761 AR=${AR-ar}
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_RANLIB+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$RANLIB"; then
7772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 RANLIB=$ac_cv_prog_RANLIB
7792 if test -n "$RANLIB"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7794 $as_echo "$RANLIB" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801 fi
7802 if test -z "$ac_cv_prog_RANLIB"; then
7803 ac_ct_RANLIB=$RANLIB
7804 # Extract the first word of "ranlib", so it can be a program name with args.
7805 set dummy ranlib; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$ac_ct_RANLIB"; then
7812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_RANLIB="ranlib"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7832 if test -n "$ac_ct_RANLIB"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7834 $as_echo "$ac_ct_RANLIB" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840 if test "x$ac_ct_RANLIB" = x; then
7841 RANLIB=":"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844 yes:)
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned=yes ;;
7848 esac
7849 RANLIB=$ac_ct_RANLIB
7850 fi
7851 else
7852 RANLIB="$ac_cv_prog_RANLIB"
7853 fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 ac_config_files="$ac_config_files Makefile"
7893
7894 ac_config_commands="$ac_config_commands default"
7895
7896 cat >confcache <<\_ACEOF
7897 # This file is a shell script that caches the results of configure
7898 # tests run on this system so they can be shared between configure
7899 # scripts and configure runs, see configure's option --config-cache.
7900 # It is not useful on other systems. If it contains results you don't
7901 # want to keep, you may remove or edit it.
7902 #
7903 # config.status only pays attention to the cache file if you give it
7904 # the --recheck option to rerun configure.
7905 #
7906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7908 # following values.
7909
7910 _ACEOF
7911
7912 # The following way of writing the cache mishandles newlines in values,
7913 # but we know of no workaround that is simple, portable, and efficient.
7914 # So, we kill variables containing newlines.
7915 # Ultrix sh set writes to stderr and can't be redirected directly,
7916 # and sets the high bit in the cache file unless we assign to the vars.
7917 (
7918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7919 eval ac_val=\$$ac_var
7920 case $ac_val in #(
7921 *${as_nl}*)
7922 case $ac_var in #(
7923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7925 esac
7926 case $ac_var in #(
7927 _ | IFS | as_nl) ;; #(
7928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7929 *) { eval $ac_var=; unset $ac_var;} ;;
7930 esac ;;
7931 esac
7932 done
7933
7934 (set) 2>&1 |
7935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7936 *${as_nl}ac_space=\ *)
7937 # `set' does not quote correctly, so add quotes: double-quote
7938 # substitution turns \\\\ into \\, and sed turns \\ into \.
7939 sed -n \
7940 "s/'/'\\\\''/g;
7941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7942 ;; #(
7943 *)
7944 # `set' quotes correctly as required by POSIX, so do not add quotes.
7945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7946 ;;
7947 esac |
7948 sort
7949 ) |
7950 sed '
7951 /^ac_cv_env_/b end
7952 t clear
7953 :clear
7954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7955 t end
7956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7957 :end' >>confcache
7958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7959 if test -w "$cache_file"; then
7960 if test "x$cache_file" != "x/dev/null"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7962 $as_echo "$as_me: updating cache $cache_file" >&6;}
7963 if test ! -f "$cache_file" || test -h "$cache_file"; then
7964 cat confcache >"$cache_file"
7965 else
7966 case $cache_file in #(
7967 */* | ?:*)
7968 mv -f confcache "$cache_file"$$ &&
7969 mv -f "$cache_file"$$ "$cache_file" ;; #(
7970 *)
7971 mv -f confcache "$cache_file" ;;
7972 esac
7973 fi
7974 fi
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7978 fi
7979 fi
7980 rm -f confcache
7981
7982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7983 # Let make expand exec_prefix.
7984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7985
7986 DEFS=-DHAVE_CONFIG_H
7987
7988 ac_libobjs=
7989 ac_ltlibobjs=
7990 U=
7991 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7992 # 1. Remove the extension, and $U if already installed.
7993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7994 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7996 # will be set to the directory where LIBOBJS objects are built.
7997 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7998 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7999 done
8000 LIBOBJS=$ac_libobjs
8001
8002 LTLIBOBJS=$ac_ltlibobjs
8003
8004
8005
8006
8007 : "${CONFIG_STATUS=./config.status}"
8008 ac_write_fail=0
8009 ac_clean_files_save=$ac_clean_files
8010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8012 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8013 as_write_fail=0
8014 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8015 #! $SHELL
8016 # Generated by $as_me.
8017 # Run this file to recreate the current configuration.
8018 # Compiler output produced by configure, useful for debugging
8019 # configure, is in config.log if it exists.
8020
8021 debug=false
8022 ac_cs_recheck=false
8023 ac_cs_silent=false
8024
8025 SHELL=\${CONFIG_SHELL-$SHELL}
8026 export SHELL
8027 _ASEOF
8028 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8029 ## -------------------- ##
8030 ## M4sh Initialization. ##
8031 ## -------------------- ##
8032
8033 # Be more Bourne compatible
8034 DUALCASE=1; export DUALCASE # for MKS sh
8035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8036 emulate sh
8037 NULLCMD=:
8038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8039 # is contrary to our usage. Disable this feature.
8040 alias -g '${1+"$@"}'='"$@"'
8041 setopt NO_GLOB_SUBST
8042 else
8043 case `(set -o) 2>/dev/null` in #(
8044 *posix*) :
8045 set -o posix ;; #(
8046 *) :
8047 ;;
8048 esac
8049 fi
8050
8051
8052 as_nl='
8053 '
8054 export as_nl
8055 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8056 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8059 # Prefer a ksh shell builtin over an external printf program on Solaris,
8060 # but without wasting forks for bash or zsh.
8061 if test -z "$BASH_VERSION$ZSH_VERSION" \
8062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8063 as_echo='print -r --'
8064 as_echo_n='print -rn --'
8065 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8066 as_echo='printf %s\n'
8067 as_echo_n='printf %s'
8068 else
8069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8071 as_echo_n='/usr/ucb/echo -n'
8072 else
8073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8074 as_echo_n_body='eval
8075 arg=$1;
8076 case $arg in #(
8077 *"$as_nl"*)
8078 expr "X$arg" : "X\\(.*\\)$as_nl";
8079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8080 esac;
8081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8082 '
8083 export as_echo_n_body
8084 as_echo_n='sh -c $as_echo_n_body as_echo'
8085 fi
8086 export as_echo_body
8087 as_echo='sh -c $as_echo_body as_echo'
8088 fi
8089
8090 # The user is always right.
8091 if test "${PATH_SEPARATOR+set}" != set; then
8092 PATH_SEPARATOR=:
8093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8095 PATH_SEPARATOR=';'
8096 }
8097 fi
8098
8099
8100 # IFS
8101 # We need space, tab and new line, in precisely that order. Quoting is
8102 # there to prevent editors from complaining about space-tab.
8103 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8104 # splitting by setting IFS to empty value.)
8105 IFS=" "" $as_nl"
8106
8107 # Find who we are. Look in the path if we contain no directory separator.
8108 as_myself=
8109 case $0 in #((
8110 *[\\/]* ) as_myself=$0 ;;
8111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8117 done
8118 IFS=$as_save_IFS
8119
8120 ;;
8121 esac
8122 # We did not find ourselves, most probably we were run as `sh COMMAND'
8123 # in which case we are not to be found in the path.
8124 if test "x$as_myself" = x; then
8125 as_myself=$0
8126 fi
8127 if test ! -f "$as_myself"; then
8128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8129 exit 1
8130 fi
8131
8132 # Unset variables that we do not need and which cause bugs (e.g. in
8133 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8134 # suppresses any "Segmentation fault" message there. '((' could
8135 # trigger a bug in pdksh 5.2.14.
8136 for as_var in BASH_ENV ENV MAIL MAILPATH
8137 do eval test x\${$as_var+set} = xset \
8138 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8139 done
8140 PS1='$ '
8141 PS2='> '
8142 PS4='+ '
8143
8144 # NLS nuisances.
8145 LC_ALL=C
8146 export LC_ALL
8147 LANGUAGE=C
8148 export LANGUAGE
8149
8150 # CDPATH.
8151 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8152
8153
8154 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8155 # ----------------------------------------
8156 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8157 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8158 # script with STATUS, using 1 if that was 0.
8159 as_fn_error ()
8160 {
8161 as_status=$1; test $as_status -eq 0 && as_status=1
8162 if test "$4"; then
8163 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8164 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8165 fi
8166 $as_echo "$as_me: error: $2" >&2
8167 as_fn_exit $as_status
8168 } # as_fn_error
8169
8170
8171 # as_fn_set_status STATUS
8172 # -----------------------
8173 # Set $? to STATUS, without forking.
8174 as_fn_set_status ()
8175 {
8176 return $1
8177 } # as_fn_set_status
8178
8179 # as_fn_exit STATUS
8180 # -----------------
8181 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8182 as_fn_exit ()
8183 {
8184 set +e
8185 as_fn_set_status $1
8186 exit $1
8187 } # as_fn_exit
8188
8189 # as_fn_unset VAR
8190 # ---------------
8191 # Portably unset VAR.
8192 as_fn_unset ()
8193 {
8194 { eval $1=; unset $1;}
8195 }
8196 as_unset=as_fn_unset
8197 # as_fn_append VAR VALUE
8198 # ----------------------
8199 # Append the text in VALUE to the end of the definition contained in VAR. Take
8200 # advantage of any shell optimizations that allow amortized linear growth over
8201 # repeated appends, instead of the typical quadratic growth present in naive
8202 # implementations.
8203 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8204 eval 'as_fn_append ()
8205 {
8206 eval $1+=\$2
8207 }'
8208 else
8209 as_fn_append ()
8210 {
8211 eval $1=\$$1\$2
8212 }
8213 fi # as_fn_append
8214
8215 # as_fn_arith ARG...
8216 # ------------------
8217 # Perform arithmetic evaluation on the ARGs, and store the result in the
8218 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8219 # must be portable across $(()) and expr.
8220 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8221 eval 'as_fn_arith ()
8222 {
8223 as_val=$(( $* ))
8224 }'
8225 else
8226 as_fn_arith ()
8227 {
8228 as_val=`expr "$@" || test $? -eq 1`
8229 }
8230 fi # as_fn_arith
8231
8232
8233 if expr a : '\(a\)' >/dev/null 2>&1 &&
8234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8235 as_expr=expr
8236 else
8237 as_expr=false
8238 fi
8239
8240 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8241 as_basename=basename
8242 else
8243 as_basename=false
8244 fi
8245
8246 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8247 as_dirname=dirname
8248 else
8249 as_dirname=false
8250 fi
8251
8252 as_me=`$as_basename -- "$0" ||
8253 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8254 X"$0" : 'X\(//\)$' \| \
8255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8256 $as_echo X/"$0" |
8257 sed '/^.*\/\([^/][^/]*\)\/*$/{
8258 s//\1/
8259 q
8260 }
8261 /^X\/\(\/\/\)$/{
8262 s//\1/
8263 q
8264 }
8265 /^X\/\(\/\).*/{
8266 s//\1/
8267 q
8268 }
8269 s/.*/./; q'`
8270
8271 # Avoid depending upon Character Ranges.
8272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8275 as_cr_digits='0123456789'
8276 as_cr_alnum=$as_cr_Letters$as_cr_digits
8277
8278 ECHO_C= ECHO_N= ECHO_T=
8279 case `echo -n x` in #(((((
8280 -n*)
8281 case `echo 'xy\c'` in
8282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8283 xy) ECHO_C='\c';;
8284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8285 ECHO_T=' ';;
8286 esac;;
8287 *)
8288 ECHO_N='-n';;
8289 esac
8290
8291 rm -f conf$$ conf$$.exe conf$$.file
8292 if test -d conf$$.dir; then
8293 rm -f conf$$.dir/conf$$.file
8294 else
8295 rm -f conf$$.dir
8296 mkdir conf$$.dir 2>/dev/null
8297 fi
8298 if (echo >conf$$.file) 2>/dev/null; then
8299 if ln -s conf$$.file conf$$ 2>/dev/null; then
8300 as_ln_s='ln -s'
8301 # ... but there are two gotchas:
8302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8304 # In both cases, we have to default to `cp -pR'.
8305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8306 as_ln_s='cp -pR'
8307 elif ln conf$$.file conf$$ 2>/dev/null; then
8308 as_ln_s=ln
8309 else
8310 as_ln_s='cp -pR'
8311 fi
8312 else
8313 as_ln_s='cp -pR'
8314 fi
8315 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8316 rmdir conf$$.dir 2>/dev/null
8317
8318
8319 # as_fn_mkdir_p
8320 # -------------
8321 # Create "$as_dir" as a directory, including parents if necessary.
8322 as_fn_mkdir_p ()
8323 {
8324
8325 case $as_dir in #(
8326 -*) as_dir=./$as_dir;;
8327 esac
8328 test -d "$as_dir" || eval $as_mkdir_p || {
8329 as_dirs=
8330 while :; do
8331 case $as_dir in #(
8332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8333 *) as_qdir=$as_dir;;
8334 esac
8335 as_dirs="'$as_qdir' $as_dirs"
8336 as_dir=`$as_dirname -- "$as_dir" ||
8337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8338 X"$as_dir" : 'X\(//\)[^/]' \| \
8339 X"$as_dir" : 'X\(//\)$' \| \
8340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8341 $as_echo X"$as_dir" |
8342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8343 s//\1/
8344 q
8345 }
8346 /^X\(\/\/\)[^/].*/{
8347 s//\1/
8348 q
8349 }
8350 /^X\(\/\/\)$/{
8351 s//\1/
8352 q
8353 }
8354 /^X\(\/\).*/{
8355 s//\1/
8356 q
8357 }
8358 s/.*/./; q'`
8359 test -d "$as_dir" && break
8360 done
8361 test -z "$as_dirs" || eval "mkdir $as_dirs"
8362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8363
8364
8365 } # as_fn_mkdir_p
8366 if mkdir -p . 2>/dev/null; then
8367 as_mkdir_p='mkdir -p "$as_dir"'
8368 else
8369 test -d ./-p && rmdir ./-p
8370 as_mkdir_p=false
8371 fi
8372
8373
8374 # as_fn_executable_p FILE
8375 # -----------------------
8376 # Test if FILE is an executable regular file.
8377 as_fn_executable_p ()
8378 {
8379 test -f "$1" && test -x "$1"
8380 } # as_fn_executable_p
8381 as_test_x='test -x'
8382 as_executable_p=as_fn_executable_p
8383
8384 # Sed expression to map a string onto a valid CPP name.
8385 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8386
8387 # Sed expression to map a string onto a valid variable name.
8388 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8389
8390
8391 exec 6>&1
8392 ## ----------------------------------- ##
8393 ## Main body of $CONFIG_STATUS script. ##
8394 ## ----------------------------------- ##
8395 _ASEOF
8396 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8397
8398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8399 # Save the log message, to keep $0 and so on meaningful, and to
8400 # report actual input values of CONFIG_FILES etc. instead of their
8401 # values after options handling.
8402 ac_log="
8403 This file was extended by $as_me, which was
8404 generated by GNU Autoconf 2.69. Invocation command line was
8405
8406 CONFIG_FILES = $CONFIG_FILES
8407 CONFIG_HEADERS = $CONFIG_HEADERS
8408 CONFIG_LINKS = $CONFIG_LINKS
8409 CONFIG_COMMANDS = $CONFIG_COMMANDS
8410 $ $0 $@
8411
8412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8413 "
8414
8415 _ACEOF
8416
8417 case $ac_config_files in *"
8418 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8419 esac
8420
8421 case $ac_config_headers in *"
8422 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8423 esac
8424
8425
8426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8427 # Files that config.status was made for.
8428 config_files="$ac_config_files"
8429 config_headers="$ac_config_headers"
8430 config_commands="$ac_config_commands"
8431
8432 _ACEOF
8433
8434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8435 ac_cs_usage="\
8436 \`$as_me' instantiates files and other configuration actions
8437 from templates according to the current configuration. Unless the files
8438 and actions are specified as TAGs, all are instantiated by default.
8439
8440 Usage: $0 [OPTION]... [TAG]...
8441
8442 -h, --help print this help, then exit
8443 -V, --version print version number and configuration settings, then exit
8444 --config print configuration, then exit
8445 -q, --quiet, --silent
8446 do not print progress messages
8447 -d, --debug don't remove temporary files
8448 --recheck update $as_me by reconfiguring in the same conditions
8449 --file=FILE[:TEMPLATE]
8450 instantiate the configuration file FILE
8451 --header=FILE[:TEMPLATE]
8452 instantiate the configuration header FILE
8453
8454 Configuration files:
8455 $config_files
8456
8457 Configuration headers:
8458 $config_headers
8459
8460 Configuration commands:
8461 $config_commands
8462
8463 Report bugs to the package provider."
8464
8465 _ACEOF
8466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8468 ac_cs_version="\\
8469 config.status
8470 configured by $0, generated by GNU Autoconf 2.69,
8471 with options \\"\$ac_cs_config\\"
8472
8473 Copyright (C) 2012 Free Software Foundation, Inc.
8474 This config.status script is free software; the Free Software Foundation
8475 gives unlimited permission to copy, distribute and modify it."
8476
8477 ac_pwd='$ac_pwd'
8478 srcdir='$srcdir'
8479 INSTALL='$INSTALL'
8480 test -n "\$AWK" || AWK=awk
8481 _ACEOF
8482
8483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8484 # The default lists apply if the user does not specify any file.
8485 ac_need_defaults=:
8486 while test $# != 0
8487 do
8488 case $1 in
8489 --*=?*)
8490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8492 ac_shift=:
8493 ;;
8494 --*=)
8495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8496 ac_optarg=
8497 ac_shift=:
8498 ;;
8499 *)
8500 ac_option=$1
8501 ac_optarg=$2
8502 ac_shift=shift
8503 ;;
8504 esac
8505
8506 case $ac_option in
8507 # Handling of the options.
8508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8509 ac_cs_recheck=: ;;
8510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8511 $as_echo "$ac_cs_version"; exit ;;
8512 --config | --confi | --conf | --con | --co | --c )
8513 $as_echo "$ac_cs_config"; exit ;;
8514 --debug | --debu | --deb | --de | --d | -d )
8515 debug=: ;;
8516 --file | --fil | --fi | --f )
8517 $ac_shift
8518 case $ac_optarg in
8519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8520 '') as_fn_error $? "missing file argument" ;;
8521 esac
8522 as_fn_append CONFIG_FILES " '$ac_optarg'"
8523 ac_need_defaults=false;;
8524 --header | --heade | --head | --hea )
8525 $ac_shift
8526 case $ac_optarg in
8527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8528 esac
8529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8530 ac_need_defaults=false;;
8531 --he | --h)
8532 # Conflict between --help and --header
8533 as_fn_error $? "ambiguous option: \`$1'
8534 Try \`$0 --help' for more information.";;
8535 --help | --hel | -h )
8536 $as_echo "$ac_cs_usage"; exit ;;
8537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8539 ac_cs_silent=: ;;
8540
8541 # This is an error.
8542 -*) as_fn_error $? "unrecognized option: \`$1'
8543 Try \`$0 --help' for more information." ;;
8544
8545 *) as_fn_append ac_config_targets " $1"
8546 ac_need_defaults=false ;;
8547
8548 esac
8549 shift
8550 done
8551
8552 ac_configure_extra_args=
8553
8554 if $ac_cs_silent; then
8555 exec 6>/dev/null
8556 ac_configure_extra_args="$ac_configure_extra_args --silent"
8557 fi
8558
8559 _ACEOF
8560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8561 if \$ac_cs_recheck; then
8562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8563 shift
8564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8565 CONFIG_SHELL='$SHELL'
8566 export CONFIG_SHELL
8567 exec "\$@"
8568 fi
8569
8570 _ACEOF
8571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8572 exec 5>>config.log
8573 {
8574 echo
8575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8576 ## Running $as_me. ##
8577 _ASBOX
8578 $as_echo "$ac_log"
8579 } >&5
8580
8581 _ACEOF
8582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8583 _ACEOF
8584
8585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8586
8587 # Handling of arguments.
8588 for ac_config_target in $ac_config_targets
8589 do
8590 case $ac_config_target in
8591 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8592 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
8593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8594 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8595
8596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8597 esac
8598 done
8599
8600
8601 # If the user did not use the arguments to specify the items to instantiate,
8602 # then the envvar interface is used. Set only those that are not.
8603 # We use the long form for the default assignment because of an extremely
8604 # bizarre bug on SunOS 4.1.3.
8605 if $ac_need_defaults; then
8606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8609 fi
8610
8611 # Have a temporary directory for convenience. Make it in the build tree
8612 # simply because there is no reason against having it here, and in addition,
8613 # creating and moving files from /tmp can sometimes cause problems.
8614 # Hook for its removal unless debugging.
8615 # Note that there is a small window in which the directory will not be cleaned:
8616 # after its creation but before its name has been assigned to `$tmp'.
8617 $debug ||
8618 {
8619 tmp= ac_tmp=
8620 trap 'exit_status=$?
8621 : "${ac_tmp:=$tmp}"
8622 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8623 ' 0
8624 trap 'as_fn_exit 1' 1 2 13 15
8625 }
8626 # Create a (secure) tmp directory for tmp files.
8627
8628 {
8629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8630 test -d "$tmp"
8631 } ||
8632 {
8633 tmp=./conf$$-$RANDOM
8634 (umask 077 && mkdir "$tmp")
8635 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8636 ac_tmp=$tmp
8637
8638 # Set up the scripts for CONFIG_FILES section.
8639 # No need to generate them if there are no CONFIG_FILES.
8640 # This happens for instance with `./config.status config.h'.
8641 if test -n "$CONFIG_FILES"; then
8642
8643
8644 ac_cr=`echo X | tr X '\015'`
8645 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8646 # But we know of no other shell where ac_cr would be empty at this
8647 # point, so we can use a bashism as a fallback.
8648 if test "x$ac_cr" = x; then
8649 eval ac_cr=\$\'\\r\'
8650 fi
8651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8653 ac_cs_awk_cr='\\r'
8654 else
8655 ac_cs_awk_cr=$ac_cr
8656 fi
8657
8658 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8659 _ACEOF
8660
8661
8662 {
8663 echo "cat >conf$$subs.awk <<_ACEOF" &&
8664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8665 echo "_ACEOF"
8666 } >conf$$subs.sh ||
8667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8668 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8669 ac_delim='%!_!# '
8670 for ac_last_try in false false false false false :; do
8671 . ./conf$$subs.sh ||
8672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8673
8674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8675 if test $ac_delim_n = $ac_delim_num; then
8676 break
8677 elif $ac_last_try; then
8678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8679 else
8680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8681 fi
8682 done
8683 rm -f conf$$subs.sh
8684
8685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8686 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8687 _ACEOF
8688 sed -n '
8689 h
8690 s/^/S["/; s/!.*/"]=/
8691 p
8692 g
8693 s/^[^!]*!//
8694 :repl
8695 t repl
8696 s/'"$ac_delim"'$//
8697 t delim
8698 :nl
8699 h
8700 s/\(.\{148\}\)..*/\1/
8701 t more1
8702 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8703 p
8704 n
8705 b repl
8706 :more1
8707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8708 p
8709 g
8710 s/.\{148\}//
8711 t nl
8712 :delim
8713 h
8714 s/\(.\{148\}\)..*/\1/
8715 t more2
8716 s/["\\]/\\&/g; s/^/"/; s/$/"/
8717 p
8718 b
8719 :more2
8720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8721 p
8722 g
8723 s/.\{148\}//
8724 t delim
8725 ' <conf$$subs.awk | sed '
8726 /^[^""]/{
8727 N
8728 s/\n//
8729 }
8730 ' >>$CONFIG_STATUS || ac_write_fail=1
8731 rm -f conf$$subs.awk
8732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8733 _ACAWK
8734 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8735 for (key in S) S_is_set[key] = 1
8736 FS = "\a"
8737
8738 }
8739 {
8740 line = $ 0
8741 nfields = split(line, field, "@")
8742 substed = 0
8743 len = length(field[1])
8744 for (i = 2; i < nfields; i++) {
8745 key = field[i]
8746 keylen = length(key)
8747 if (S_is_set[key]) {
8748 value = S[key]
8749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8750 len += length(value) + length(field[++i])
8751 substed = 1
8752 } else
8753 len += 1 + keylen
8754 }
8755
8756 print line
8757 }
8758
8759 _ACAWK
8760 _ACEOF
8761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8762 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8764 else
8765 cat
8766 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8767 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8768 _ACEOF
8769
8770 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8771 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8772 # trailing colons and then remove the whole line if VPATH becomes empty
8773 # (actually we leave an empty line to preserve line numbers).
8774 if test "x$srcdir" = x.; then
8775 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8776 h
8777 s///
8778 s/^/:/
8779 s/[ ]*$/:/
8780 s/:\$(srcdir):/:/g
8781 s/:\${srcdir}:/:/g
8782 s/:@srcdir@:/:/g
8783 s/^:*//
8784 s/:*$//
8785 x
8786 s/\(=[ ]*\).*/\1/
8787 G
8788 s/\n//
8789 s/^[^=]*=[ ]*$//
8790 }'
8791 fi
8792
8793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8794 fi # test -n "$CONFIG_FILES"
8795
8796 # Set up the scripts for CONFIG_HEADERS section.
8797 # No need to generate them if there are no CONFIG_HEADERS.
8798 # This happens for instance with `./config.status Makefile'.
8799 if test -n "$CONFIG_HEADERS"; then
8800 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8801 BEGIN {
8802 _ACEOF
8803
8804 # Transform confdefs.h into an awk script `defines.awk', embedded as
8805 # here-document in config.status, that substitutes the proper values into
8806 # config.h.in to produce config.h.
8807
8808 # Create a delimiter string that does not exist in confdefs.h, to ease
8809 # handling of long lines.
8810 ac_delim='%!_!# '
8811 for ac_last_try in false false :; do
8812 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8813 if test -z "$ac_tt"; then
8814 break
8815 elif $ac_last_try; then
8816 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8817 else
8818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8819 fi
8820 done
8821
8822 # For the awk script, D is an array of macro values keyed by name,
8823 # likewise P contains macro parameters if any. Preserve backslash
8824 # newline sequences.
8825
8826 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8827 sed -n '
8828 s/.\{148\}/&'"$ac_delim"'/g
8829 t rset
8830 :rset
8831 s/^[ ]*#[ ]*define[ ][ ]*/ /
8832 t def
8833 d
8834 :def
8835 s/\\$//
8836 t bsnl
8837 s/["\\]/\\&/g
8838 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8839 D["\1"]=" \3"/p
8840 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8841 d
8842 :bsnl
8843 s/["\\]/\\&/g
8844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8845 D["\1"]=" \3\\\\\\n"\\/p
8846 t cont
8847 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8848 t cont
8849 d
8850 :cont
8851 n
8852 s/.\{148\}/&'"$ac_delim"'/g
8853 t clear
8854 :clear
8855 s/\\$//
8856 t bsnlc
8857 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8858 d
8859 :bsnlc
8860 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8861 b cont
8862 ' <confdefs.h | sed '
8863 s/'"$ac_delim"'/"\\\
8864 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8865
8866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8867 for (key in D) D_is_set[key] = 1
8868 FS = "\a"
8869 }
8870 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8871 line = \$ 0
8872 split(line, arg, " ")
8873 if (arg[1] == "#") {
8874 defundef = arg[2]
8875 mac1 = arg[3]
8876 } else {
8877 defundef = substr(arg[1], 2)
8878 mac1 = arg[2]
8879 }
8880 split(mac1, mac2, "(") #)
8881 macro = mac2[1]
8882 prefix = substr(line, 1, index(line, defundef) - 1)
8883 if (D_is_set[macro]) {
8884 # Preserve the white space surrounding the "#".
8885 print prefix "define", macro P[macro] D[macro]
8886 next
8887 } else {
8888 # Replace #undef with comments. This is necessary, for example,
8889 # in the case of _POSIX_SOURCE, which is predefined and required
8890 # on some systems where configure will not decide to define it.
8891 if (defundef == "undef") {
8892 print "/*", prefix defundef, macro, "*/"
8893 next
8894 }
8895 }
8896 }
8897 { print }
8898 _ACAWK
8899 _ACEOF
8900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8901 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8902 fi # test -n "$CONFIG_HEADERS"
8903
8904
8905 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8906 shift
8907 for ac_tag
8908 do
8909 case $ac_tag in
8910 :[FHLC]) ac_mode=$ac_tag; continue;;
8911 esac
8912 case $ac_mode$ac_tag in
8913 :[FHL]*:*);;
8914 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8915 :[FH]-) ac_tag=-:-;;
8916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8917 esac
8918 ac_save_IFS=$IFS
8919 IFS=:
8920 set x $ac_tag
8921 IFS=$ac_save_IFS
8922 shift
8923 ac_file=$1
8924 shift
8925
8926 case $ac_mode in
8927 :L) ac_source=$1;;
8928 :[FH])
8929 ac_file_inputs=
8930 for ac_f
8931 do
8932 case $ac_f in
8933 -) ac_f="$ac_tmp/stdin";;
8934 *) # Look for the file first in the build tree, then in the source tree
8935 # (if the path is not absolute). The absolute path cannot be DOS-style,
8936 # because $ac_f cannot contain `:'.
8937 test -f "$ac_f" ||
8938 case $ac_f in
8939 [\\/$]*) false;;
8940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8941 esac ||
8942 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8943 esac
8944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8945 as_fn_append ac_file_inputs " '$ac_f'"
8946 done
8947
8948 # Let's still pretend it is `configure' which instantiates (i.e., don't
8949 # use $as_me), people would be surprised to read:
8950 # /* config.h. Generated by config.status. */
8951 configure_input='Generated from '`
8952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8953 `' by configure.'
8954 if test x"$ac_file" != x-; then
8955 configure_input="$ac_file. $configure_input"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8957 $as_echo "$as_me: creating $ac_file" >&6;}
8958 fi
8959 # Neutralize special characters interpreted by sed in replacement strings.
8960 case $configure_input in #(
8961 *\&* | *\|* | *\\* )
8962 ac_sed_conf_input=`$as_echo "$configure_input" |
8963 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8964 *) ac_sed_conf_input=$configure_input;;
8965 esac
8966
8967 case $ac_tag in
8968 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8970 esac
8971 ;;
8972 esac
8973
8974 ac_dir=`$as_dirname -- "$ac_file" ||
8975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8976 X"$ac_file" : 'X\(//\)[^/]' \| \
8977 X"$ac_file" : 'X\(//\)$' \| \
8978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8979 $as_echo X"$ac_file" |
8980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8981 s//\1/
8982 q
8983 }
8984 /^X\(\/\/\)[^/].*/{
8985 s//\1/
8986 q
8987 }
8988 /^X\(\/\/\)$/{
8989 s//\1/
8990 q
8991 }
8992 /^X\(\/\).*/{
8993 s//\1/
8994 q
8995 }
8996 s/.*/./; q'`
8997 as_dir="$ac_dir"; as_fn_mkdir_p
8998 ac_builddir=.
8999
9000 case "$ac_dir" in
9001 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9002 *)
9003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9004 # A ".." for each directory in $ac_dir_suffix.
9005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9006 case $ac_top_builddir_sub in
9007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9009 esac ;;
9010 esac
9011 ac_abs_top_builddir=$ac_pwd
9012 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9013 # for backward compatibility:
9014 ac_top_builddir=$ac_top_build_prefix
9015
9016 case $srcdir in
9017 .) # We are building in place.
9018 ac_srcdir=.
9019 ac_top_srcdir=$ac_top_builddir_sub
9020 ac_abs_top_srcdir=$ac_pwd ;;
9021 [\\/]* | ?:[\\/]* ) # Absolute name.
9022 ac_srcdir=$srcdir$ac_dir_suffix;
9023 ac_top_srcdir=$srcdir
9024 ac_abs_top_srcdir=$srcdir ;;
9025 *) # Relative name.
9026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9027 ac_top_srcdir=$ac_top_build_prefix$srcdir
9028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9029 esac
9030 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9031
9032
9033 case $ac_mode in
9034 :F)
9035 #
9036 # CONFIG_FILE
9037 #
9038
9039 case $INSTALL in
9040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9042 esac
9043 _ACEOF
9044
9045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9046 # If the template does not know about datarootdir, expand it.
9047 # FIXME: This hack should be removed a few years after 2.60.
9048 ac_datarootdir_hack=; ac_datarootdir_seen=
9049 ac_sed_dataroot='
9050 /datarootdir/ {
9051 p
9052 q
9053 }
9054 /@datadir@/p
9055 /@docdir@/p
9056 /@infodir@/p
9057 /@localedir@/p
9058 /@mandir@/p'
9059 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9060 *datarootdir*) ac_datarootdir_seen=yes;;
9061 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9063 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9064 _ACEOF
9065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9066 ac_datarootdir_hack='
9067 s&@datadir@&$datadir&g
9068 s&@docdir@&$docdir&g
9069 s&@infodir@&$infodir&g
9070 s&@localedir@&$localedir&g
9071 s&@mandir@&$mandir&g
9072 s&\\\${datarootdir}&$datarootdir&g' ;;
9073 esac
9074 _ACEOF
9075
9076 # Neutralize VPATH when `$srcdir' = `.'.
9077 # Shell code in configure.ac might set extrasub.
9078 # FIXME: do we really want to maintain this feature?
9079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9080 ac_sed_extra="$ac_vpsub
9081 $extrasub
9082 _ACEOF
9083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9084 :t
9085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9086 s|@configure_input@|$ac_sed_conf_input|;t t
9087 s&@top_builddir@&$ac_top_builddir_sub&;t t
9088 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9089 s&@srcdir@&$ac_srcdir&;t t
9090 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9091 s&@top_srcdir@&$ac_top_srcdir&;t t
9092 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9093 s&@builddir@&$ac_builddir&;t t
9094 s&@abs_builddir@&$ac_abs_builddir&;t t
9095 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9096 s&@INSTALL@&$ac_INSTALL&;t t
9097 $ac_datarootdir_hack
9098 "
9099 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9101
9102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9105 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9107 which seems to be undefined. Please make sure it is defined" >&5
9108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9109 which seems to be undefined. Please make sure it is defined" >&2;}
9110
9111 rm -f "$ac_tmp/stdin"
9112 case $ac_file in
9113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9115 esac \
9116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9117 ;;
9118 :H)
9119 #
9120 # CONFIG_HEADER
9121 #
9122 if test x"$ac_file" != x-; then
9123 {
9124 $as_echo "/* $configure_input */" \
9125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9126 } >"$ac_tmp/config.h" \
9127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9128 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9130 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9131 else
9132 rm -f "$ac_file"
9133 mv "$ac_tmp/config.h" "$ac_file" \
9134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9135 fi
9136 else
9137 $as_echo "/* $configure_input */" \
9138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9139 || as_fn_error $? "could not create -" "$LINENO" 5
9140 fi
9141 ;;
9142
9143 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9144 $as_echo "$as_me: executing $ac_file commands" >&6;}
9145 ;;
9146 esac
9147
9148
9149 case $ac_file$ac_mode in
9150 "build-config.h":C) cp config.h build-config.h ;;
9151 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
9152
9153 esac
9154 done # for ac_tag
9155
9156
9157 as_fn_exit 0
9158 _ACEOF
9159 ac_clean_files=$ac_clean_files_save
9160
9161 test $ac_write_fail = 0 ||
9162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9163
9164
9165 # configure is writing to config.log, and then calls config.status.
9166 # config.status does its own redirection, appending to config.log.
9167 # Unfortunately, on DOS this fails, as config.log is still kept open
9168 # by configure, so config.status won't be able to write to it; its
9169 # output is simply discarded. So we exec the FD to /dev/null,
9170 # effectively closing config.log, so it can be properly (re)opened and
9171 # appended to by config.status. When coming back to configure, we
9172 # need to make the FD available again.
9173 if test "$no_create" != yes; then
9174 ac_cs_success=:
9175 ac_config_status_args=
9176 test "$silent" = yes &&
9177 ac_config_status_args="$ac_config_status_args --quiet"
9178 exec 5>/dev/null
9179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9180 exec 5>>config.log
9181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9182 # would make configure fail if this is the last instruction.
9183 $ac_cs_success || as_fn_exit 1
9184 fi
9185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9187 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9188 fi
9189