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