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