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