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