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