]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/configure
sim:
[thirdparty/binutils-gdb.git] / sim / mips / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-maintainer-mode Enable developer functionality.
858 --enable-sim-bswap Use Host specific BSWAP instruction.
859 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
860 --enable-sim-debug=opts Enable debugging flags
861 --enable-sim-stdio Specify whether to use stdio for console input/output.
862 --enable-sim-trace=opts Enable tracing flags
863 --enable-sim-profile=opts Enable profiling flags
864 --enable-sim-inline=inlines Specify which functions should be inlined.
865 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
866 --enable-sim-hostendian=end Specify host byte endian orientation.
867 --enable-build-warnings Enable build-time compiler warnings if gcc is used
868 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
869 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
870 --enable-sim-endian=endian Specify target byte endian orientation.
871 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
872 --enable-sim-float Specify that the target processor has floating point hardware.
873 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp}).
874 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
875
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
880 --with-bugurl=URL Direct users to URL to report a bug
881 --with-x use the X Window System
882
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
904
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910 ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
931 case `pwd` in
932 .) ac_abs_builddir="$ac_dir";;
933 *)
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *)
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
951 *)
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *)
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966 esac
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd $ac_popdir
984 done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989 cat <<\_ACEOF
990
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995 exit 0
996 fi
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1001
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1004
1005 $ $0 $@
1006
1007 _ACEOF
1008 {
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1013
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031 _ASUNAME
1032
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1035 do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039 done
1040
1041 } >&5
1042
1043 cat >&5 <<_ACEOF
1044
1045
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1049
1050 _ACEOF
1051
1052
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1064 do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 2)
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1097 ;;
1098 esac
1099 done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
1114 cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1121 {
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
1129 *)
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ;;
1133 esac;
1134 }
1135 echo
1136
1137 cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1182 ' 0
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1187
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1192
1193 # Predefined preprocessor variables.
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1218
1219
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
1228 fi
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1235 fi
1236 done
1237
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1248 fi
1249 else
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1253 fi
1254
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1296 fi
1297 done
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1304 fi
1305
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 ac_config_headers="$ac_config_headers config.h:config.in"
1331
1332
1333 # This file contains common code used by all simulators.
1334 #
1335 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1336 # directory. It is intended to be invoked before any target specific stuff.
1337 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1338 # It is intended to be invoked last.
1339 #
1340 # The simulator's configure.in should look like:
1341 #
1342 # dnl Process this file with autoconf to produce a configure script.
1343 # sinclude(../common/aclocal.m4)
1344 # AC_PREREQ(2.5)dnl
1345 # AC_INIT(Makefile.in)
1346 #
1347 # SIM_AC_COMMON
1348 #
1349 # ... target specific stuff ...
1350 #
1351 # SIM_AC_OUTPUT
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400 sim_inline="-DDEFAULT_INLINE=0"
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437 # intl sister-directory configuration rules.
1438 #
1439
1440 # The idea behind this macro is that there's no need to repeat all the
1441 # autoconf probes done by the intl directory - it's already done them
1442 # for us. In fact, there's no need even to look at the cache for the
1443 # answers. All we need to do is nab a few pieces of information.
1444 # The intl directory is set up to make this easy, by generating a
1445 # small file which can be sourced as a shell script; then we produce
1446 # the necessary substitutions and definitions for this directory.
1447
1448
1449
1450 # Autoconf M4 include file defining utility macros for complex Canadian
1451 # cross builds.
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461 ####
1462 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1463 # or AC_INIT.
1464 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1465
1466 ####
1467 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1468 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1469
1470
1471 ####
1472 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1473 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1474
1475
1476
1477 # Backported from Autoconf 2.5x; can go away when and if
1478 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1479
1480
1481
1482
1483 # ACX_HAVE_GCC_FOR_TARGET
1484 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1485
1486
1487 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1488 # Searching for installed target binutils. We need to take extra care,
1489 # else we may find the wrong assembler, linker, etc., and lose.
1490 #
1491 # First try --with-build-time-tools, if specified.
1492 #
1493 # For build != host, we ask the installed GCC for the name of the tool it
1494 # uses, and accept it if it is an absolute path. This is because the
1495 # only good choice for a compiler is the same GCC version that is being
1496 # installed (or we couldn't make target libraries), and we assume that
1497 # on the host system we'll have not only the same GCC version, but also
1498 # the same binutils version.
1499 #
1500 # For build == host, search the same directories that the installed
1501 # compiler will search. We used to do this for the assembler, linker,
1502 # and nm only; for simplicity of configuration, however, we extend this
1503 # criterion to tools (such as ar and ranlib) that are never invoked by
1504 # the compiler, to avoid mismatches.
1505 #
1506 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1507 # if build == target. This makes the most sense only when bootstrapping,
1508 # but we also do so when build != host. In this case, we hope that the
1509 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1510 #
1511 # If we do not find a suitable binary, then try the user's path.
1512
1513
1514 ###
1515 # AC_PROG_CPP_WERROR
1516 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1517 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1518 # For now, using this also overrides header checks to use only the
1519 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1520 # bit harder from here).
1521 # Eventually autoconf will default to checking headers with the compiler
1522 # instead, and we'll have to do this differently.
1523
1524 # AC_PROG_CPP_WERROR
1525
1526 # Test for GNAT.
1527 # We require the gnatbind program, and a compiler driver that
1528 # understands Ada. We use the user's CC setting, already found,
1529 # and possibly add $1 to the command-line parameters.
1530 #
1531 # Sets the shell variable have_gnat to yes or no as appropriate, and
1532 # substitutes GNATBIND and GNATMAKE.
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1559 # it by inlining the macro's contents.
1560 # This file contains common code used by all simulators.
1561 #
1562 # common.m4 invokes AC macros used by all simulators and by the common
1563 # directory. It is intended to be included before any target specific
1564 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1565 # the Makefile. It is intended to be invoked last.
1566 #
1567 # The simulator's configure.in should look like:
1568 #
1569 # dnl Process this file with autoconf to produce a configure script.
1570 # AC_PREREQ(2.5)dnl
1571 # AC_INIT(Makefile.in)
1572 # AC_CONFIG_HEADER(config.h:config.in)
1573 #
1574 # sinclude(../common/aclocal.m4)
1575 # sinclude(../common/common.m4)
1576 #
1577 # ... target specific stuff ...
1578
1579 ac_aux_dir=
1580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1581 if test -f $ac_dir/install-sh; then
1582 ac_aux_dir=$ac_dir
1583 ac_install_sh="$ac_aux_dir/install-sh -c"
1584 break
1585 elif test -f $ac_dir/install.sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install.sh -c"
1588 break
1589 elif test -f $ac_dir/shtool; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/shtool install -c"
1592 break
1593 fi
1594 done
1595 if test -z "$ac_aux_dir"; then
1596 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1597 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1598 { (exit 1); exit 1; }; }
1599 fi
1600 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1601 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1602 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1603
1604 # Make sure we can run config.sub.
1605 $ac_config_sub sun4 >/dev/null 2>&1 ||
1606 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1607 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610 echo "$as_me:$LINENO: checking build system type" >&5
1611 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1612 if test "${ac_cv_build+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615 ac_cv_build_alias=$build_alias
1616 test -z "$ac_cv_build_alias" &&
1617 ac_cv_build_alias=`$ac_config_guess`
1618 test -z "$ac_cv_build_alias" &&
1619 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1620 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1621 { (exit 1); exit 1; }; }
1622 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1624 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627 fi
1628 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1629 echo "${ECHO_T}$ac_cv_build" >&6
1630 build=$ac_cv_build
1631 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636 echo "$as_me:$LINENO: checking host system type" >&5
1637 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1638 if test "${ac_cv_host+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_host_alias=$host_alias
1642 test -z "$ac_cv_host_alias" &&
1643 ac_cv_host_alias=$ac_cv_build_alias
1644 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1646 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1648
1649 fi
1650 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1651 echo "${ECHO_T}$ac_cv_host" >&6
1652 host=$ac_cv_host
1653 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658 echo "$as_me:$LINENO: checking target system type" >&5
1659 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1660 if test "${ac_cv_target+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 ac_cv_target_alias=$target_alias
1664 test "x$ac_cv_target_alias" = "x" &&
1665 ac_cv_target_alias=$ac_cv_host_alias
1666 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1668 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1669 { (exit 1); exit 1; }; }
1670
1671 fi
1672 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1673 echo "${ECHO_T}$ac_cv_target" >&6
1674 target=$ac_cv_target
1675 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680 # The aliases save the names the user supplied, while $host etc.
1681 # will get canonicalized.
1682 test -n "$target_alias" &&
1683 test "$program_prefix$program_suffix$program_transform_name" = \
1684 NONENONEs,x,x, &&
1685 program_prefix=${target_alias}-
1686 test "$program_prefix" != NONE &&
1687 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1688 # Use a double $ so make ignores it.
1689 test "$program_suffix" != NONE &&
1690 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1691 # Double any \ or $. echo might interpret backslashes.
1692 # By default was `s,x,x', remove it if useless.
1693 cat <<\_ACEOF >conftest.sed
1694 s/[\\$]/&&/g;s/;s,x,x,$//
1695 _ACEOF
1696 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1697 rm conftest.sed
1698
1699 ac_ext=c
1700 ac_cpp='$CPP $CPPFLAGS'
1701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1704 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1725 fi
1726 done
1727 done
1728
1729 fi
1730 fi
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740 fi
1741 if test -z "$ac_cv_prog_CC"; then
1742 ac_ct_CC=$CC
1743 # Extract the first word of "gcc", so it can be a program name with args.
1744 set dummy gcc; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750 if test -n "$ac_ct_CC"; then
1751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_ac_ct_CC="gcc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1763 fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6
1773 else
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778 CC=$ac_ct_CC
1779 else
1780 CC="$ac_cv_prog_CC"
1781 fi
1782
1783 if test -z "$CC"; then
1784 if test -n "$ac_tool_prefix"; then
1785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1786 set dummy ${ac_tool_prefix}cc; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1797 do
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_CC="${ac_tool_prefix}cc"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 break 2
1805 fi
1806 done
1807 done
1808
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 fi
1821 if test -z "$ac_cv_prog_CC"; then
1822 ac_ct_CC=$CC
1823 # Extract the first word of "cc", so it can be a program name with args.
1824 set dummy cc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$ac_ct_CC"; then
1831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_ac_ct_CC="cc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844 done
1845 done
1846
1847 fi
1848 fi
1849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1850 if test -n "$ac_ct_CC"; then
1851 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1852 echo "${ECHO_T}$ac_ct_CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
1858 CC=$ac_ct_CC
1859 else
1860 CC="$ac_cv_prog_CC"
1861 fi
1862
1863 fi
1864 if test -z "$CC"; then
1865 # Extract the first word of "cc", so it can be a program name with args.
1866 set dummy cc; ac_word=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 else
1875 ac_prog_rejected=no
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1884 ac_prog_rejected=yes
1885 continue
1886 fi
1887 ac_cv_prog_CC="cc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1890 fi
1891 done
1892 done
1893
1894 if test $ac_prog_rejected = yes; then
1895 # We found a bogon in the path, so make sure we never use it.
1896 set dummy $ac_cv_prog_CC
1897 shift
1898 if test $# != 0; then
1899 # We chose a different compiler from the bogus one.
1900 # However, it has the same basename, so the bogon will be chosen
1901 # first if we set CC to just the basename; use the full file name.
1902 shift
1903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1904 fi
1905 fi
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$CC"; then
1919 if test -n "$ac_tool_prefix"; then
1920 for ac_prog in cl
1921 do
1922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943 done
1944 done
1945
1946 fi
1947 fi
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957 test -n "$CC" && break
1958 done
1959 fi
1960 if test -z "$CC"; then
1961 ac_ct_CC=$CC
1962 for ac_prog in cl
1963 do
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 if test -n "$ac_ct_CC"; then
1972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_ac_ct_CC="$ac_prog"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985 done
1986 done
1987
1988 fi
1989 fi
1990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1991 if test -n "$ac_ct_CC"; then
1992 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1993 echo "${ECHO_T}$ac_ct_CC" >&6
1994 else
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999 test -n "$ac_ct_CC" && break
2000 done
2001
2002 CC=$ac_ct_CC
2003 fi
2004
2005 fi
2006
2007
2008 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&2;}
2012 { (exit 1); exit 1; }; }
2013
2014 # Provide some information about the compiler.
2015 echo "$as_me:$LINENO:" \
2016 "checking for C compiler version" >&5
2017 ac_compiler=`set X $ac_compile; echo $2`
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2019 (eval $ac_compiler --version </dev/null >&5) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2024 (eval $ac_compiler -v </dev/null >&5) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }
2028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2029 (eval $ac_compiler -V </dev/null >&5) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }
2033
2034 cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2040
2041 int
2042 main ()
2043 {
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 ac_clean_files_save=$ac_clean_files
2050 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2051 # Try to create an executable without -o first, disregard a.out.
2052 # It will help us diagnose broken compilers, and finding out an intuition
2053 # of exeext.
2054 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2055 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2056 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2057 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2058 (eval $ac_link_default) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 # Find the output, starting from the most likely. This scheme is
2063 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2064 # resort.
2065
2066 # Be careful to initialize this variable, since it used to be cached.
2067 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2068 ac_cv_exeext=
2069 # b.out is created by i960 compilers.
2070 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2071 do
2072 test -f "$ac_file" || continue
2073 case $ac_file in
2074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2075 ;;
2076 conftest.$ac_ext )
2077 # This is the source file.
2078 ;;
2079 [ab].out )
2080 # We found the default executable, but exeext='' is most
2081 # certainly right.
2082 break;;
2083 *.* )
2084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085 # FIXME: I believe we export ac_cv_exeext for Libtool,
2086 # but it would be cool to find out if it's true. Does anybody
2087 # maintain Libtool? --akim.
2088 export ac_cv_exeext
2089 break;;
2090 * )
2091 break;;
2092 esac
2093 done
2094 else
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: C compiler cannot create executables
2101 See \`config.log' for more details." >&2;}
2102 { (exit 77); exit 77; }; }
2103 fi
2104
2105 ac_exeext=$ac_cv_exeext
2106 echo "$as_me:$LINENO: result: $ac_file" >&5
2107 echo "${ECHO_T}$ac_file" >&6
2108
2109 # Check the compiler produces executables we can run. If not, either
2110 # the compiler is broken, or we cross compile.
2111 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2112 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2113 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2114 # If not cross compiling, check that we can run a simple program.
2115 if test "$cross_compiling" != yes; then
2116 if { ac_try='./$ac_file'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 cross_compiling=no
2123 else
2124 if test "$cross_compiling" = maybe; then
2125 cross_compiling=yes
2126 else
2127 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2128 If you meant to cross compile, use \`--host'.
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }
2134 fi
2135 fi
2136 fi
2137 echo "$as_me:$LINENO: result: yes" >&5
2138 echo "${ECHO_T}yes" >&6
2139
2140 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2141 ac_clean_files=$ac_clean_files_save
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2145 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2146 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2147 echo "${ECHO_T}$cross_compiling" >&6
2148
2149 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2150 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2152 (eval $ac_link) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2157 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2158 # work properly (i.e., refer to `conftest.exe'), while it won't with
2159 # `rm'.
2160 for ac_file in conftest.exe conftest conftest.*; do
2161 test -f "$ac_file" || continue
2162 case $ac_file in
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2164 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165 export ac_cv_exeext
2166 break;;
2167 * ) break;;
2168 esac
2169 done
2170 else
2171 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2174 See \`config.log' for more details." >&2;}
2175 { (exit 1); exit 1; }; }
2176 fi
2177
2178 rm -f conftest$ac_cv_exeext
2179 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2180 echo "${ECHO_T}$ac_cv_exeext" >&6
2181
2182 rm -f conftest.$ac_ext
2183 EXEEXT=$ac_cv_exeext
2184 ac_exeext=$EXEEXT
2185 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2186 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2187 if test "${ac_cv_objext+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 cat >conftest.$ac_ext <<_ACEOF
2191 /* confdefs.h. */
2192 _ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2196
2197 int
2198 main ()
2199 {
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.o conftest.obj
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212 case $ac_file in
2213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2214 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2215 break;;
2216 esac
2217 done
2218 else
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2225 See \`config.log' for more details." >&2;}
2226 { (exit 1); exit 1; }; }
2227 fi
2228
2229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2230 fi
2231 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2232 echo "${ECHO_T}$ac_cv_objext" >&6
2233 OBJEXT=$ac_cv_objext
2234 ac_objext=$OBJEXT
2235 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 cat >conftest.$ac_ext <<_ACEOF
2241 /* confdefs.h. */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2246
2247 int
2248 main ()
2249 {
2250 #ifndef __GNUC__
2251 choke me
2252 #endif
2253
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2261 ac_status=$?
2262 grep -v '^ *+' conftest.er1 >conftest.err
2263 rm -f conftest.er1
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 ac_compiler_gnu=yes
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 ac_compiler_gnu=no
2286 fi
2287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289
2290 fi
2291 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2292 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2293 GCC=`test $ac_compiler_gnu = yes && echo yes`
2294 ac_test_CFLAGS=${CFLAGS+set}
2295 ac_save_CFLAGS=$CFLAGS
2296 CFLAGS="-g"
2297 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2298 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2299 if test "${ac_cv_prog_cc_g+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308
2309 int
2310 main ()
2311 {
2312
2313 ;
2314 return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 ac_cv_prog_cc_g=yes
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_cv_prog_cc_g=no
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2350 if test "$ac_test_CFLAGS" = set; then
2351 CFLAGS=$ac_save_CFLAGS
2352 elif test $ac_cv_prog_cc_g = yes; then
2353 if test "$GCC" = yes; then
2354 CFLAGS="-g -O2"
2355 else
2356 CFLAGS="-g"
2357 fi
2358 else
2359 if test "$GCC" = yes; then
2360 CFLAGS="-O2"
2361 else
2362 CFLAGS=
2363 fi
2364 fi
2365 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2366 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2367 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 ac_cv_prog_cc_stdc=no
2371 ac_save_CC=$CC
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2378 #include <stdarg.h>
2379 #include <stdio.h>
2380 #include <sys/types.h>
2381 #include <sys/stat.h>
2382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2383 struct buf { int x; };
2384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2385 static char *e (p, i)
2386 char **p;
2387 int i;
2388 {
2389 return p[i];
2390 }
2391 static char *f (char * (*g) (char **, int), char **p, ...)
2392 {
2393 char *s;
2394 va_list v;
2395 va_start (v,p);
2396 s = g (p, va_arg (v,int));
2397 va_end (v);
2398 return s;
2399 }
2400
2401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2402 function prototypes and stuff, but not '\xHH' hex character constants.
2403 These don't provoke an error unfortunately, instead are silently treated
2404 as 'x'. The following induces an error, until -std1 is added to get
2405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2406 array size at least. It's necessary to write '\x00'==0 to get something
2407 that's true only with -std1. */
2408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2409
2410 int test (int i, double x);
2411 struct s1 {int (*f) (int a);};
2412 struct s2 {int (*f) (double a);};
2413 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2414 int argc;
2415 char **argv;
2416 int
2417 main ()
2418 {
2419 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 # Don't try gcc -ansi; that turns off useful extensions and
2425 # breaks some systems' header files.
2426 # AIX -qlanglvl=ansi
2427 # Ultrix and OSF/1 -std1
2428 # HP-UX 10.20 and later -Ae
2429 # HP-UX older versions -Aa -D_HPUX_SOURCE
2430 # SVR4 -Xc -D__EXTENSIONS__
2431 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2432 do
2433 CC="$ac_save_CC $ac_arg"
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 ac_cv_prog_cc_stdc=$ac_arg
2457 break
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 fi
2463 rm -f conftest.err conftest.$ac_objext
2464 done
2465 rm -f conftest.$ac_ext conftest.$ac_objext
2466 CC=$ac_save_CC
2467
2468 fi
2469
2470 case "x$ac_cv_prog_cc_stdc" in
2471 x|xno)
2472 echo "$as_me:$LINENO: result: none needed" >&5
2473 echo "${ECHO_T}none needed" >&6 ;;
2474 *)
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2477 CC="$CC $ac_cv_prog_cc_stdc" ;;
2478 esac
2479
2480 # Some people use a C++ compiler to compile C. Since we use `exit',
2481 # in C++ we need to declare it. In case someone uses the same compiler
2482 # for both compiling C and C++ we need to have the C++ compiler decide
2483 # the declaration of exit, since it's the most demanding environment.
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #ifndef __cplusplus
2486 choke me
2487 #endif
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 for ac_declaration in \
2512 '' \
2513 'extern "C" void std::exit (int) throw (); using std::exit;' \
2514 'extern "C" void std::exit (int); using std::exit;' \
2515 'extern "C" void exit (int) throw ();' \
2516 'extern "C" void exit (int);' \
2517 'void exit (int);'
2518 do
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2525 $ac_declaration
2526 #include <stdlib.h>
2527 int
2528 main ()
2529 {
2530 exit (42);
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 :
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 continue
2563 fi
2564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565 cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h. */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2571 $ac_declaration
2572 int
2573 main ()
2574 {
2575 exit (42);
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -z "$ac_c_werror_flag"
2590 || test ! -s conftest.err'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 break
2603 else
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 fi
2608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609 done
2610 rm -f conftest*
2611 if test -n "$ac_declaration"; then
2612 echo '#ifdef __cplusplus' >>confdefs.h
2613 echo $ac_declaration >>confdefs.h
2614 echo '#endif' >>confdefs.h
2615 fi
2616
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 fi
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629 # Find a good install program. We prefer a C program (faster),
2630 # so one script is as good as another. But avoid the broken or
2631 # incompatible versions:
2632 # SysV /etc/install, /usr/sbin/install
2633 # SunOS /usr/etc/install
2634 # IRIX /sbin/install
2635 # AIX /bin/install
2636 # AmigaOS /C/install, which installs bootblocks on floppy discs
2637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2640 # OS/2's system install, which has a completely different semantic
2641 # ./install, which can be erroneously created by make from ./install.sh.
2642 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2643 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2644 if test -z "$INSTALL"; then
2645 if test "${ac_cv_path_install+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 # Account for people who put trailing slashes in PATH elements.
2654 case $as_dir/ in
2655 ./ | .// | /cC/* | \
2656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2657 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2658 /usr/ucb/* ) ;;
2659 *)
2660 # OSF1 and SCO ODT 3.0 have their own names for install.
2661 # Don't use installbsd from OSF since it installs stuff as root
2662 # by default.
2663 for ac_prog in ginstall scoinst install; do
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2666 if test $ac_prog = install &&
2667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # AIX install. It has an incompatible calling convention.
2669 :
2670 elif test $ac_prog = install &&
2671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # program-specific install script used by HP pwplus--don't use.
2673 :
2674 else
2675 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2676 break 3
2677 fi
2678 fi
2679 done
2680 done
2681 ;;
2682 esac
2683 done
2684
2685
2686 fi
2687 if test "${ac_cv_path_install+set}" = set; then
2688 INSTALL=$ac_cv_path_install
2689 else
2690 # As a last resort, use the slow shell script. We don't cache a
2691 # path for INSTALL within a source directory, because that will
2692 # break other packages using the cache if that directory is
2693 # removed, or if the path is relative.
2694 INSTALL=$ac_install_sh
2695 fi
2696 fi
2697 echo "$as_me:$LINENO: result: $INSTALL" >&5
2698 echo "${ECHO_T}$INSTALL" >&6
2699
2700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2701 # It thinks the first close brace ends the variable substitution.
2702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2703
2704 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2705
2706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2707
2708
2709 # Put a plausible default for CC_FOR_BUILD in Makefile.
2710 if test "x$cross_compiling" = "xno"; then
2711 CC_FOR_BUILD='$(CC)'
2712 else
2713 CC_FOR_BUILD=gcc
2714 fi
2715
2716
2717
2718
2719 AR=${AR-ar}
2720
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_prog_RANLIB+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 if test -n "$RANLIB"; then
2730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745
2746 fi
2747 fi
2748 RANLIB=$ac_cv_prog_RANLIB
2749 if test -n "$RANLIB"; then
2750 echo "$as_me:$LINENO: result: $RANLIB" >&5
2751 echo "${ECHO_T}$RANLIB" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2755 fi
2756
2757 fi
2758 if test -z "$ac_cv_prog_RANLIB"; then
2759 ac_ct_RANLIB=$RANLIB
2760 # Extract the first word of "ranlib", so it can be a program name with args.
2761 set dummy ranlib; ac_word=$2
2762 echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$ac_ct_RANLIB"; then
2768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_RANLIB="ranlib"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783
2784 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2785 fi
2786 fi
2787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2788 if test -n "$ac_ct_RANLIB"; then
2789 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2790 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795
2796 RANLIB=$ac_ct_RANLIB
2797 else
2798 RANLIB="$ac_cv_prog_RANLIB"
2799 fi
2800
2801
2802 ALL_LINGUAS=
2803 # If we haven't got the data from the intl directory,
2804 # assume NLS is disabled.
2805 USE_NLS=no
2806 LIBINTL=
2807 LIBINTL_DEP=
2808 INCINTL=
2809 XGETTEXT=
2810 GMSGFMT=
2811 POSUB=
2812
2813 if test -f ../../intl/config.intl; then
2814 . ../../intl/config.intl
2815 fi
2816 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2817 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2818 if test x"$USE_NLS" != xyes; then
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 else
2822 echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6
2824
2825 cat >>confdefs.h <<\_ACEOF
2826 #define ENABLE_NLS 1
2827 _ACEOF
2828
2829
2830 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2831 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2832 # Look for .po and .gmo files in the source directory.
2833 CATALOGS=
2834 XLINGUAS=
2835 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2836 # If there aren't any .gmo files the shell will give us the
2837 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2838 # weeded out.
2839 case "$cat" in *\**)
2840 continue;;
2841 esac
2842 # The quadruple backslash is collapsed to a double backslash
2843 # by the backticks, then collapsed again by the double quotes,
2844 # leaving us with one backslash in the sed expression (right
2845 # before the dot that mustn't act as a wildcard).
2846 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2847 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2848 # The user is allowed to set LINGUAS to a list of languages to
2849 # install catalogs for. If it's empty that means "all of them."
2850 if test "x$LINGUAS" = x; then
2851 CATALOGS="$CATALOGS $cat"
2852 XLINGUAS="$XLINGUAS $lang"
2853 else
2854 case "$LINGUAS" in *$lang*)
2855 CATALOGS="$CATALOGS $cat"
2856 XLINGUAS="$XLINGUAS $lang"
2857 ;;
2858 esac
2859 fi
2860 done
2861 LINGUAS="$XLINGUAS"
2862 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2863 echo "${ECHO_T}$LINGUAS" >&6
2864
2865
2866 DATADIRNAME=share
2867
2868 INSTOBJEXT=.mo
2869
2870 GENCAT=gencat
2871
2872 CATOBJEXT=.gmo
2873
2874 fi
2875
2876 # Check for common headers.
2877 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2878 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2879
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2887 # On Suns, sometimes $CPP names a directory.
2888 if test -n "$CPP" && test -d "$CPP"; then
2889 CPP=
2890 fi
2891 if test -z "$CPP"; then
2892 if test "${ac_cv_prog_CPP+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 # Double quotes because CPP needs to be expanded
2896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2897 do
2898 ac_preproc_ok=false
2899 for ac_c_preproc_warn_flag in '' yes
2900 do
2901 # Use a header file that comes with gcc, so configuring glibc
2902 # with a fresh cross-compiler works.
2903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2904 # <limits.h> exists even on freestanding compilers.
2905 # On the NeXT, cc -E runs the code through the compiler's parser,
2906 # not just through cpp. "Syntax error" is here to catch this case.
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #ifdef __STDC__
2914 # include <limits.h>
2915 #else
2916 # include <assert.h>
2917 #endif
2918 Syntax error
2919 _ACEOF
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2931 else
2932 ac_cpp_err=
2933 fi
2934 else
2935 ac_cpp_err=yes
2936 fi
2937 if test -z "$ac_cpp_err"; then
2938 :
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 # Broken: fails on valid input.
2944 continue
2945 fi
2946 rm -f conftest.err conftest.$ac_ext
2947
2948 # OK, works on sane cases. Now check whether non-existent headers
2949 # can be detected and how.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <ac_nonexistent.h>
2957 _ACEOF
2958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969 else
2970 ac_cpp_err=
2971 fi
2972 else
2973 ac_cpp_err=yes
2974 fi
2975 if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2977 continue
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 # Passes both tests.
2983 ac_preproc_ok=:
2984 break
2985 fi
2986 rm -f conftest.err conftest.$ac_ext
2987
2988 done
2989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990 rm -f conftest.err conftest.$ac_ext
2991 if $ac_preproc_ok; then
2992 break
2993 fi
2994
2995 done
2996 ac_cv_prog_CPP=$CPP
2997
2998 fi
2999 CPP=$ac_cv_prog_CPP
3000 else
3001 ac_cv_prog_CPP=$CPP
3002 fi
3003 echo "$as_me:$LINENO: result: $CPP" >&5
3004 echo "${ECHO_T}$CPP" >&6
3005 ac_preproc_ok=false
3006 for ac_c_preproc_warn_flag in '' yes
3007 do
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011 # <limits.h> exists even on freestanding compilers.
3012 # On the NeXT, cc -E runs the code through the compiler's parser,
3013 # not just through cpp. "Syntax error" is here to catch this case.
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #ifdef __STDC__
3021 # include <limits.h>
3022 #else
3023 # include <assert.h>
3024 #endif
3025 Syntax error
3026 _ACEOF
3027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null; then
3035 if test -s conftest.err; then
3036 ac_cpp_err=$ac_c_preproc_warn_flag
3037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3038 else
3039 ac_cpp_err=
3040 fi
3041 else
3042 ac_cpp_err=yes
3043 fi
3044 if test -z "$ac_cpp_err"; then
3045 :
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 # Broken: fails on valid input.
3051 continue
3052 fi
3053 rm -f conftest.err conftest.$ac_ext
3054
3055 # OK, works on sane cases. Now check whether non-existent headers
3056 # can be detected and how.
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #include <ac_nonexistent.h>
3064 _ACEOF
3065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067 ac_status=$?
3068 grep -v '^ *+' conftest.er1 >conftest.err
3069 rm -f conftest.er1
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } >/dev/null; then
3073 if test -s conftest.err; then
3074 ac_cpp_err=$ac_c_preproc_warn_flag
3075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3076 else
3077 ac_cpp_err=
3078 fi
3079 else
3080 ac_cpp_err=yes
3081 fi
3082 if test -z "$ac_cpp_err"; then
3083 # Broken: success on invalid input.
3084 continue
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 # Passes both tests.
3090 ac_preproc_ok=:
3091 break
3092 fi
3093 rm -f conftest.err conftest.$ac_ext
3094
3095 done
3096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3097 rm -f conftest.err conftest.$ac_ext
3098 if $ac_preproc_ok; then
3099 :
3100 else
3101 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3104 See \`config.log' for more details." >&2;}
3105 { (exit 1); exit 1; }; }
3106 fi
3107
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113
3114
3115 echo "$as_me:$LINENO: checking for egrep" >&5
3116 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3117 if test "${ac_cv_prog_egrep+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3121 then ac_cv_prog_egrep='grep -E'
3122 else ac_cv_prog_egrep='egrep'
3123 fi
3124 fi
3125 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3126 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3127 EGREP=$ac_cv_prog_egrep
3128
3129
3130 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3132 if test "${ac_cv_header_stdc+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3141 #include <stdlib.h>
3142 #include <stdarg.h>
3143 #include <string.h>
3144 #include <float.h>
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag"
3164 || test ! -s conftest.err'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3176 ac_cv_header_stdc=yes
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 ac_cv_header_stdc=no
3182 fi
3183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184
3185 if test $ac_cv_header_stdc = yes; then
3186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 #include <string.h>
3194
3195 _ACEOF
3196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3197 $EGREP "memchr" >/dev/null 2>&1; then
3198 :
3199 else
3200 ac_cv_header_stdc=no
3201 fi
3202 rm -f conftest*
3203
3204 fi
3205
3206 if test $ac_cv_header_stdc = yes; then
3207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <stdlib.h>
3215
3216 _ACEOF
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 $EGREP "free" >/dev/null 2>&1; then
3219 :
3220 else
3221 ac_cv_header_stdc=no
3222 fi
3223 rm -f conftest*
3224
3225 fi
3226
3227 if test $ac_cv_header_stdc = yes; then
3228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3229 if test "$cross_compiling" = yes; then
3230 :
3231 else
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 #include <ctype.h>
3239 #if ((' ' & 0x0FF) == 0x020)
3240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3242 #else
3243 # define ISLOWER(c) \
3244 (('a' <= (c) && (c) <= 'i') \
3245 || ('j' <= (c) && (c) <= 'r') \
3246 || ('s' <= (c) && (c) <= 'z'))
3247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3248 #endif
3249
3250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3251 int
3252 main ()
3253 {
3254 int i;
3255 for (i = 0; i < 256; i++)
3256 if (XOR (islower (i), ISLOWER (i))
3257 || toupper (i) != TOUPPER (i))
3258 exit(2);
3259 exit (0);
3260 }
3261 _ACEOF
3262 rm -f conftest$ac_exeext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3264 (eval $ac_link) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 :
3274 else
3275 echo "$as_me: program exited with status $ac_status" >&5
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 ( exit $ac_status )
3280 ac_cv_header_stdc=no
3281 fi
3282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 fi
3285 fi
3286 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3287 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3288 if test $ac_cv_header_stdc = yes; then
3289
3290 cat >>confdefs.h <<\_ACEOF
3291 #define STDC_HEADERS 1
3292 _ACEOF
3293
3294 fi
3295
3296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3307 inttypes.h stdint.h unistd.h
3308 do
3309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3310 echo "$as_me:$LINENO: checking for $ac_header" >&5
3311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 $ac_includes_default
3322
3323 #include <$ac_header>
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -z "$ac_c_werror_flag"
3335 || test ! -s conftest.err'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 eval "$as_ac_Header=yes"
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 eval "$as_ac_Header=no"
3353 fi
3354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3355 fi
3356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3359 cat >>confdefs.h <<_ACEOF
3360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3361 _ACEOF
3362
3363 fi
3364
3365 done
3366
3367
3368
3369
3370
3371
3372
3373 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3374 do
3375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3377 echo "$as_me:$LINENO: checking for $ac_header" >&5
3378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 fi
3382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3384 else
3385 # Is the header compilable?
3386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 $ac_includes_default
3395 #include <$ac_header>
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_header_compiler=yes
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 ac_header_compiler=no
3425 fi
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3428 echo "${ECHO_T}$ac_header_compiler" >&6
3429
3430 # Is the header present?
3431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <$ac_header>
3440 _ACEOF
3441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_c_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 else
3453 ac_cpp_err=
3454 fi
3455 else
3456 ac_cpp_err=yes
3457 fi
3458 if test -z "$ac_cpp_err"; then
3459 ac_header_preproc=yes
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 ac_header_preproc=no
3465 fi
3466 rm -f conftest.err conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3468 echo "${ECHO_T}$ac_header_preproc" >&6
3469
3470 # So? What about this header?
3471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3472 yes:no: )
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3477 ac_header_preproc=yes
3478 ;;
3479 no:yes:* )
3480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3492 (
3493 cat <<\_ASBOX
3494 ## ------------------------------------------ ##
3495 ## Report this to the AC_PACKAGE_NAME lists. ##
3496 ## ------------------------------------------ ##
3497 _ASBOX
3498 ) |
3499 sed "s/^/$as_me: WARNING: /" >&2
3500 ;;
3501 esac
3502 echo "$as_me:$LINENO: checking for $ac_header" >&5
3503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 eval "$as_ac_Header=\$ac_header_preproc"
3508 fi
3509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3511
3512 fi
3513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3514 cat >>confdefs.h <<_ACEOF
3515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3516 _ACEOF
3517
3518 fi
3519
3520 done
3521
3522
3523
3524 for ac_header in sys/time.h sys/resource.h
3525 do
3526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3528 echo "$as_me:$LINENO: checking for $ac_header" >&5
3529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 fi
3533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3535 else
3536 # Is the header compilable?
3537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 $ac_includes_default
3546 #include <$ac_header>
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 ac_header_compiler=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_header_compiler=no
3576 fi
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3579 echo "${ECHO_T}$ac_header_compiler" >&6
3580
3581 # Is the header present?
3582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <$ac_header>
3591 _ACEOF
3592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null; then
3600 if test -s conftest.err; then
3601 ac_cpp_err=$ac_c_preproc_warn_flag
3602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603 else
3604 ac_cpp_err=
3605 fi
3606 else
3607 ac_cpp_err=yes
3608 fi
3609 if test -z "$ac_cpp_err"; then
3610 ac_header_preproc=yes
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 ac_header_preproc=no
3616 fi
3617 rm -f conftest.err conftest.$ac_ext
3618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3619 echo "${ECHO_T}$ac_header_preproc" >&6
3620
3621 # So? What about this header?
3622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3623 yes:no: )
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3628 ac_header_preproc=yes
3629 ;;
3630 no:yes:* )
3631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3643 (
3644 cat <<\_ASBOX
3645 ## ------------------------------------------ ##
3646 ## Report this to the AC_PACKAGE_NAME lists. ##
3647 ## ------------------------------------------ ##
3648 _ASBOX
3649 ) |
3650 sed "s/^/$as_me: WARNING: /" >&2
3651 ;;
3652 esac
3653 echo "$as_me:$LINENO: checking for $ac_header" >&5
3654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 eval "$as_ac_Header=\$ac_header_preproc"
3659 fi
3660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3662
3663 fi
3664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3665 cat >>confdefs.h <<_ACEOF
3666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667 _ACEOF
3668
3669 fi
3670
3671 done
3672
3673
3674
3675 for ac_header in fcntl.h fpu_control.h
3676 do
3677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3679 echo "$as_me:$LINENO: checking for $ac_header" >&5
3680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 fi
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3686 else
3687 # Is the header compilable?
3688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 $ac_includes_default
3697 #include <$ac_header>
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -z "$ac_c_werror_flag"
3709 || test ! -s conftest.err'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; } &&
3715 { ac_try='test -s conftest.$ac_objext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 ac_header_compiler=yes
3722 else
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726 ac_header_compiler=no
3727 fi
3728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3730 echo "${ECHO_T}$ac_header_compiler" >&6
3731
3732 # Is the header present?
3733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 #include <$ac_header>
3742 _ACEOF
3743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null; then
3751 if test -s conftest.err; then
3752 ac_cpp_err=$ac_c_preproc_warn_flag
3753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3754 else
3755 ac_cpp_err=
3756 fi
3757 else
3758 ac_cpp_err=yes
3759 fi
3760 if test -z "$ac_cpp_err"; then
3761 ac_header_preproc=yes
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 ac_header_preproc=no
3767 fi
3768 rm -f conftest.err conftest.$ac_ext
3769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3770 echo "${ECHO_T}$ac_header_preproc" >&6
3771
3772 # So? What about this header?
3773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3774 yes:no: )
3775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3779 ac_header_preproc=yes
3780 ;;
3781 no:yes:* )
3782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3794 (
3795 cat <<\_ASBOX
3796 ## ------------------------------------------ ##
3797 ## Report this to the AC_PACKAGE_NAME lists. ##
3798 ## ------------------------------------------ ##
3799 _ASBOX
3800 ) |
3801 sed "s/^/$as_me: WARNING: /" >&2
3802 ;;
3803 esac
3804 echo "$as_me:$LINENO: checking for $ac_header" >&5
3805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 eval "$as_ac_Header=\$ac_header_preproc"
3810 fi
3811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3813
3814 fi
3815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3816 cat >>confdefs.h <<_ACEOF
3817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3818 _ACEOF
3819
3820 fi
3821
3822 done
3823
3824
3825
3826
3827 for ac_header in dlfcn.h errno.h sys/stat.h
3828 do
3829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3831 echo "$as_me:$LINENO: checking for $ac_header" >&5
3832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 fi
3836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3838 else
3839 # Is the header compilable?
3840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 $ac_includes_default
3849 #include <$ac_header>
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag"
3861 || test ! -s conftest.err'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest.$ac_objext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 ac_header_compiler=yes
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 ac_header_compiler=no
3879 fi
3880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3882 echo "${ECHO_T}$ac_header_compiler" >&6
3883
3884 # Is the header present?
3885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <$ac_header>
3894 _ACEOF
3895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null; then
3903 if test -s conftest.err; then
3904 ac_cpp_err=$ac_c_preproc_warn_flag
3905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3906 else
3907 ac_cpp_err=
3908 fi
3909 else
3910 ac_cpp_err=yes
3911 fi
3912 if test -z "$ac_cpp_err"; then
3913 ac_header_preproc=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ac_header_preproc=no
3919 fi
3920 rm -f conftest.err conftest.$ac_ext
3921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3922 echo "${ECHO_T}$ac_header_preproc" >&6
3923
3924 # So? What about this header?
3925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3926 yes:no: )
3927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3931 ac_header_preproc=yes
3932 ;;
3933 no:yes:* )
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3946 (
3947 cat <<\_ASBOX
3948 ## ------------------------------------------ ##
3949 ## Report this to the AC_PACKAGE_NAME lists. ##
3950 ## ------------------------------------------ ##
3951 _ASBOX
3952 ) |
3953 sed "s/^/$as_me: WARNING: /" >&2
3954 ;;
3955 esac
3956 echo "$as_me:$LINENO: checking for $ac_header" >&5
3957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 eval "$as_ac_Header=\$ac_header_preproc"
3962 fi
3963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3965
3966 fi
3967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3968 cat >>confdefs.h <<_ACEOF
3969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3970 _ACEOF
3971
3972 fi
3973
3974 done
3975
3976
3977
3978
3979
3980 for ac_func in getrusage time sigaction __setfpucw
3981 do
3982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3983 echo "$as_me:$LINENO: checking for $ac_func" >&5
3984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3985 if eval "test \"\${$as_ac_var+set}\" = set"; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3996 #define $ac_func innocuous_$ac_func
3997
3998 /* System header to define __stub macros and hopefully few prototypes,
3999 which can conflict with char $ac_func (); below.
4000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 <limits.h> exists even on freestanding compilers. */
4002
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008
4009 #undef $ac_func
4010
4011 /* Override any gcc2 internal prototype to avoid an error. */
4012 #ifdef __cplusplus
4013 extern "C"
4014 {
4015 #endif
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4018 char $ac_func ();
4019 /* The GNU C library defines this for functions which it implements
4020 to always fail with ENOSYS. Some functions are actually named
4021 something starting with __ and the normal name is an alias. */
4022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4023 choke me
4024 #else
4025 char (*f) () = $ac_func;
4026 #endif
4027 #ifdef __cplusplus
4028 }
4029 #endif
4030
4031 int
4032 main ()
4033 {
4034 return f != $ac_func;
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext conftest$ac_exeext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041 (eval $ac_link) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest$ac_exeext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_var=yes"
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 eval "$as_ac_var=no"
4067 fi
4068 rm -f conftest.err conftest.$ac_objext \
4069 conftest$ac_exeext conftest.$ac_ext
4070 fi
4071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4073 if test `eval echo '${'$as_ac_var'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4076 _ACEOF
4077
4078 fi
4079 done
4080
4081
4082 # Check for socket libraries
4083
4084 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4085 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4086 if test "${ac_cv_lib_socket_bind+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 ac_check_lib_save_LIBS=$LIBS
4090 LIBS="-lsocket $LIBS"
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 #ifdef __cplusplus
4100 extern "C"
4101 #endif
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4104 char bind ();
4105 int
4106 main ()
4107 {
4108 bind ();
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.$ac_objext conftest$ac_exeext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115 (eval $ac_link) 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -z "$ac_c_werror_flag"
4123 || test ! -s conftest.err'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; } &&
4129 { ac_try='test -s conftest$ac_exeext'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4135 ac_cv_lib_socket_bind=yes
4136 else
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140 ac_cv_lib_socket_bind=no
4141 fi
4142 rm -f conftest.err conftest.$ac_objext \
4143 conftest$ac_exeext conftest.$ac_ext
4144 LIBS=$ac_check_lib_save_LIBS
4145 fi
4146 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4147 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4148 if test $ac_cv_lib_socket_bind = yes; then
4149 cat >>confdefs.h <<_ACEOF
4150 #define HAVE_LIBSOCKET 1
4151 _ACEOF
4152
4153 LIBS="-lsocket $LIBS"
4154
4155 fi
4156
4157
4158 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4159 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4160 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 ac_check_lib_save_LIBS=$LIBS
4164 LIBS="-lnsl $LIBS"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171
4172 /* Override any gcc2 internal prototype to avoid an error. */
4173 #ifdef __cplusplus
4174 extern "C"
4175 #endif
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4178 char gethostbyname ();
4179 int
4180 main ()
4181 {
4182 gethostbyname ();
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189 (eval $ac_link) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_lib_nsl_gethostbyname=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ac_cv_lib_nsl_gethostbyname=no
4215 fi
4216 rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4221 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4222 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4223 cat >>confdefs.h <<_ACEOF
4224 #define HAVE_LIBNSL 1
4225 _ACEOF
4226
4227 LIBS="-lnsl $LIBS"
4228
4229 fi
4230
4231
4232 . ${srcdir}/../../bfd/configure.host
4233
4234
4235
4236 USE_MAINTAINER_MODE=no
4237 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4238 if test "${enable_maintainer_mode+set}" = set; then
4239 enableval="$enable_maintainer_mode"
4240 case "${enableval}" in
4241 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4242 no) MAINT="#" ;;
4243 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4244 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4245 { (exit 1); exit 1; }; }; MAINT="#" ;;
4246 esac
4247 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4248 echo "Setting maintainer mode" 6>&1
4249 fi
4250 else
4251 MAINT="#"
4252 fi;
4253
4254
4255 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4256 if test "${enable_sim_bswap+set}" = set; then
4257 enableval="$enable_sim_bswap"
4258 case "${enableval}" in
4259 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4260 no) sim_bswap="-DWITH_BSWAP=0";;
4261 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4262 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4263 { (exit 1); exit 1; }; }; sim_bswap="";;
4264 esac
4265 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4266 echo "Setting bswap flags = $sim_bswap" 6>&1
4267 fi
4268 else
4269 sim_bswap=""
4270 fi;
4271
4272
4273 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4274 if test "${enable_sim_cflags+set}" = set; then
4275 enableval="$enable_sim_cflags"
4276 case "${enableval}" in
4277 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4278 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4279 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4280 { (exit 1); exit 1; }; }; sim_cflags="";;
4281 no) sim_cflags="";;
4282 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4283 esac
4284 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4285 echo "Setting sim cflags = $sim_cflags" 6>&1
4286 fi
4287 else
4288 sim_cflags=""
4289 fi;
4290
4291
4292 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4293 if test "${enable_sim_debug+set}" = set; then
4294 enableval="$enable_sim_debug"
4295 case "${enableval}" in
4296 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4297 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4298 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4299 esac
4300 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4301 echo "Setting sim debug = $sim_debug" 6>&1
4302 fi
4303 else
4304 sim_debug=""
4305 fi;
4306
4307
4308 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4309 if test "${enable_sim_stdio+set}" = set; then
4310 enableval="$enable_sim_stdio"
4311 case "${enableval}" in
4312 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4313 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4314 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4315 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4316 { (exit 1); exit 1; }; }; sim_stdio="";;
4317 esac
4318 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4319 echo "Setting stdio flags = $sim_stdio" 6>&1
4320 fi
4321 else
4322 sim_stdio=""
4323 fi;
4324
4325
4326 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4327 if test "${enable_sim_trace+set}" = set; then
4328 enableval="$enable_sim_trace"
4329 case "${enableval}" in
4330 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4331 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4332 [-0-9]*)
4333 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4334 [a-z]*)
4335 sim_trace=""
4336 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4337 if test x"$sim_trace" = x; then
4338 sim_trace="-DWITH_TRACE='(TRACE_$x"
4339 else
4340 sim_trace="${sim_trace}|TRACE_$x"
4341 fi
4342 done
4343 sim_trace="$sim_trace)'" ;;
4344 esac
4345 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4346 echo "Setting sim trace = $sim_trace" 6>&1
4347 fi
4348 else
4349 sim_trace=""
4350 fi;
4351
4352
4353 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4354 if test "${enable_sim_profile+set}" = set; then
4355 enableval="$enable_sim_profile"
4356 case "${enableval}" in
4357 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4358 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4359 [-0-9]*)
4360 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4361 [a-z]*)
4362 sim_profile=""
4363 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4364 if test x"$sim_profile" = x; then
4365 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4366 else
4367 sim_profile="${sim_profile}|PROFILE_$x"
4368 fi
4369 done
4370 sim_profile="$sim_profile)'" ;;
4371 esac
4372 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4373 echo "Setting sim profile = $sim_profile" 6>&1
4374 fi
4375 else
4376 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4377 fi;
4378
4379
4380
4381 # Check whether --with-pkgversion or --without-pkgversion was given.
4382 if test "${with_pkgversion+set}" = set; then
4383 withval="$with_pkgversion"
4384 case "$withval" in
4385 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4386 echo "$as_me: error: package version not specified" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388 no) PKGVERSION= ;;
4389 *) PKGVERSION="($withval) " ;;
4390 esac
4391 else
4392 PKGVERSION="(GDB) "
4393
4394 fi;
4395
4396
4397
4398
4399 # Check whether --with-bugurl or --without-bugurl was given.
4400 if test "${with_bugurl+set}" = set; then
4401 withval="$with_bugurl"
4402 case "$withval" in
4403 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4404 echo "$as_me: error: bug URL not specified" >&2;}
4405 { (exit 1); exit 1; }; } ;;
4406 no) BUGURL=
4407 ;;
4408 *) BUGURL="$withval"
4409 ;;
4410 esac
4411 else
4412 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4413
4414 fi;
4415 case ${BUGURL} in
4416 "")
4417 REPORT_BUGS_TO=
4418 REPORT_BUGS_TEXI=
4419 ;;
4420 *)
4421 REPORT_BUGS_TO="<$BUGURL>"
4422 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4423 ;;
4424 esac;
4425
4426
4427
4428
4429 cat >>confdefs.h <<_ACEOF
4430 #define PKGVERSION "$PKGVERSION"
4431 _ACEOF
4432
4433
4434 cat >>confdefs.h <<_ACEOF
4435 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4436 _ACEOF
4437
4438
4439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4441 if test "${ac_cv_type_signal+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <sys/types.h>
4451 #include <signal.h>
4452 #ifdef signal
4453 # undef signal
4454 #endif
4455 #ifdef __cplusplus
4456 extern "C" void (*signal (int, void (*)(int)))(int);
4457 #else
4458 void (*signal ()) ();
4459 #endif
4460
4461 int
4462 main ()
4463 {
4464 int i;
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag"
4479 || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_cv_type_signal=void
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_cv_type_signal=int
4497 fi
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499 fi
4500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4501 echo "${ECHO_T}$ac_cv_type_signal" >&6
4502
4503 cat >>confdefs.h <<_ACEOF
4504 #define RETSIGTYPE $ac_cv_type_signal
4505 _ACEOF
4506
4507
4508
4509
4510
4511 sim_link_files=
4512 sim_link_links=
4513
4514 sim_link_links=tconfig.h
4515 if test -f ${srcdir}/tconfig.in
4516 then
4517 sim_link_files=tconfig.in
4518 else
4519 sim_link_files=../common/tconfig.in
4520 fi
4521
4522 # targ-vals.def points to the libc macro description file.
4523 case "${target}" in
4524 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4525 esac
4526 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4527 sim_link_links="${sim_link_links} targ-vals.def"
4528
4529
4530
4531 default_sim_inline=""
4532 # Check whether --enable-sim-inline or --disable-sim-inline was given.
4533 if test "${enable_sim_inline+set}" = set; then
4534 enableval="$enable_sim_inline"
4535 sim_inline=""
4536 case "$enableval" in
4537 no) sim_inline="-DDEFAULT_INLINE=0";;
4538 0) sim_inline="-DDEFAULT_INLINE=0";;
4539 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
4540 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
4541 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4542 new_flag=""
4543 case "$x" in
4544 *_INLINE=*) new_flag="-D$x";;
4545 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4546 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
4547 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
4548 esac
4549 if test x"$sim_inline" = x""; then
4550 sim_inline="$new_flag"
4551 else
4552 sim_inline="$sim_inline $new_flag"
4553 fi
4554 done;;
4555 esac
4556 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4557 echo "Setting inline flags = $sim_inline" 6>&1
4558 fi
4559 else
4560
4561 if test "x$cross_compiling" = "xno"; then
4562 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
4563 sim_inline="${default_sim_inline}"
4564 if test x"$silent" != x"yes"; then
4565 echo "Setting inline flags = $sim_inline" 6>&1
4566 fi
4567 else
4568 sim_inline=""
4569 fi
4570 else
4571 sim_inline="-DDEFAULT_INLINE=0"
4572 fi
4573 fi;
4574 wire_alignment="NONSTRICT_ALIGNMENT"
4575 default_alignment=""
4576
4577 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4578 if test "${enable_sim_alignment+set}" = set; then
4579 enableval="$enable_sim_alignment"
4580 case "${enableval}" in
4581 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4582 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4583 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4584 yes) if test x"$wire_alignment" != x; then
4585 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4586 else
4587 if test x"$default_alignment" != x; then
4588 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4589 else
4590 echo "No hard-wired alignment for target $target" 1>&6
4591 sim_alignment="-DWITH_ALIGNMENT=0"
4592 fi
4593 fi;;
4594 no) if test x"$default_alignment" != x; then
4595 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4596 else
4597 if test x"$wire_alignment" != x; then
4598 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4599 else
4600 echo "No default alignment for target $target" 1>&6
4601 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4602 fi
4603 fi;;
4604 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4605 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4606 { (exit 1); exit 1; }; }; sim_alignment="";;
4607 esac
4608 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4609 echo "Setting alignment flags = $sim_alignment" 6>&1
4610 fi
4611 else
4612 if test x"$default_alignment" != x; then
4613 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4614 else
4615 if test x"$wire_alignment" != x; then
4616 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4617 else
4618 sim_alignment=
4619 fi
4620 fi
4621 fi;
4622
4623 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4624 if test "${enable_sim_hostendian+set}" = set; then
4625 enableval="$enable_sim_hostendian"
4626 case "${enableval}" in
4627 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4628 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4629 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4630 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4631 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4632 { (exit 1); exit 1; }; }; sim_hostendian="";;
4633 esac
4634 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4635 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4636 fi
4637 else
4638
4639 if test "x$cross_compiling" = "xno"; then
4640 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4641 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4642 if test "${ac_cv_c_bigendian+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 # See if sys/param.h defines the BYTE_ORDER macro.
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <sys/types.h>
4653 #include <sys/param.h>
4654
4655 int
4656 main ()
4657 {
4658 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4659 bogus endian macros
4660 #endif
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 # It does; now see whether it defined to BIG_ENDIAN or not.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 #include <sys/param.h>
4697
4698 int
4699 main ()
4700 {
4701 #if BYTE_ORDER != BIG_ENDIAN
4702 not big endian
4703 #endif
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_c_werror_flag"
4719 || test ! -s conftest.err'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_c_bigendian=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 ac_cv_c_bigendian=no
4737 fi
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 # It does not; compile a test program.
4744 if test "$cross_compiling" = yes; then
4745 # try to guess the endianness by grepping values into an object file
4746 ac_cv_c_bigendian=unknown
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4759 int
4760 main ()
4761 {
4762 _ascii (); _ebcdic ();
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -z "$ac_c_werror_flag"
4777 || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4790 ac_cv_c_bigendian=yes
4791 fi
4792 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4793 if test "$ac_cv_c_bigendian" = unknown; then
4794 ac_cv_c_bigendian=no
4795 else
4796 # finding both strings is unlikely to happen, but who knows?
4797 ac_cv_c_bigendian=unknown
4798 fi
4799 fi
4800 else
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 fi
4805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 int
4814 main ()
4815 {
4816 /* Are we little or big endian? From Harbison&Steele. */
4817 union
4818 {
4819 long l;
4820 char c[sizeof (long)];
4821 } u;
4822 u.l = 1;
4823 exit (u.c[sizeof (long) - 1] == 1);
4824 }
4825 _ACEOF
4826 rm -f conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_c_bigendian=no
4838 else
4839 echo "$as_me: program exited with status $ac_status" >&5
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ( exit $ac_status )
4844 ac_cv_c_bigendian=yes
4845 fi
4846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 fi
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4852 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4853 case $ac_cv_c_bigendian in
4854 yes)
4855
4856 cat >>confdefs.h <<\_ACEOF
4857 #define WORDS_BIGENDIAN 1
4858 _ACEOF
4859 ;;
4860 no)
4861 ;;
4862 *)
4863 { { echo "$as_me:$LINENO: error: unknown endianness
4864 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4865 echo "$as_me: error: unknown endianness
4866 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4867 { (exit 1); exit 1; }; } ;;
4868 esac
4869
4870 if test $ac_cv_c_bigendian = yes; then
4871 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4872 else
4873 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4874 fi
4875 else
4876 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4877 fi
4878 fi;
4879
4880 # NOTE: Don't add -Wall or -Wunused, they both include
4881 # -Wunused-parameter which reports bogus warnings.
4882 # NOTE: If you add to this list, remember to update
4883 # gdb/doc/gdbint.texinfo.
4884 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4885 -Wformat -Wparentheses -Wpointer-arith"
4886 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4887 if test x${CFLAGS+set} = xset; then
4888 case "${CFLAGS}" in
4889 *"-O0"* ) ;;
4890 *"-O"* )
4891 build_warnings="${build_warnings} -Wuninitialized"
4892 ;;
4893 esac
4894 else
4895 build_warnings="${build_warnings} -Wuninitialized"
4896 fi
4897 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4898 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4899 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4900 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4901 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4902 # -Woverloaded-virtual -Winline -Werror"
4903 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4904 if test "${enable_build_warnings+set}" = set; then
4905 enableval="$enable_build_warnings"
4906 case "${enableval}" in
4907 yes) ;;
4908 no) build_warnings="-w";;
4909 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4910 build_warnings="${build_warnings} ${t}";;
4911 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4912 build_warnings="${t} ${build_warnings}";;
4913 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4914 esac
4915 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4916 echo "Setting compiler warning flags = $build_warnings" 6>&1
4917 fi
4918 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4919 if test "${enable_sim_build_warnings+set}" = set; then
4920 enableval="$enable_sim_build_warnings"
4921 case "${enableval}" in
4922 yes) ;;
4923 no) build_warnings="-w";;
4924 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4925 build_warnings="${build_warnings} ${t}";;
4926 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4927 build_warnings="${t} ${build_warnings}";;
4928 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4929 esac
4930 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4931 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4932 fi
4933 fi; WARN_CFLAGS=""
4934 WERROR_CFLAGS=""
4935 if test "x${build_warnings}" != x -a "x$GCC" = xyes
4936 then
4937 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4938 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4939 # Separate out the -Werror flag as some files just cannot be
4940 # compiled with it enabled.
4941 for w in ${build_warnings}; do
4942 case $w in
4943 -Werr*) WERROR_CFLAGS=-Werror ;;
4944 *) # Check that GCC accepts it
4945 saved_CFLAGS="$CFLAGS"
4946 CFLAGS="$CFLAGS $w"
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953
4954 int
4955 main ()
4956 {
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 WARN_CFLAGS="${WARN_CFLAGS} $w"
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 fi
4990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991 CFLAGS="$saved_CFLAGS"
4992 esac
4993 done
4994 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4995 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4996 fi
4997
4998
4999 default_sim_reserved_bits="1"
5000 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
5001 if test "${enable_sim_reserved_bits+set}" = set; then
5002 enableval="$enable_sim_reserved_bits"
5003 case "${enableval}" in
5004 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
5005 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
5006 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
5007 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
5008 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
5009 esac
5010 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5011 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
5012 fi
5013 else
5014 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5015 fi;
5016
5017 # DEPRECATED
5018 #
5019 # Instead of defining a `subtarget' macro, code should be checking
5020 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5021 # in question.
5022 #
5023 case "${target}" in
5024 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
5025 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
5026 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5027 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5028 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5029 *) SIM_SUBTARGET="";;
5030 esac
5031
5032
5033
5034
5035 #
5036 # Select the byte order of the target
5037 #
5038 mips_endian=
5039 default_endian=
5040 case "${target}" in
5041 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5042 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5043 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5044 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5045 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5046 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5047 mips*-*-*) default_endian=BIG_ENDIAN ;;
5048 *) default_endian=BIG_ENDIAN ;;
5049 esac
5050
5051 wire_endian="$mips_endian"
5052 default_endian="$default_endian"
5053 # Check whether --enable-sim-endian or --disable-sim-endian was given.
5054 if test "${enable_sim_endian+set}" = set; then
5055 enableval="$enable_sim_endian"
5056 case "${enableval}" in
5057 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5058 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5059 yes) if test x"$wire_endian" != x; then
5060 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5061 else
5062 if test x"$default_endian" != x; then
5063 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5064 else
5065 echo "No hard-wired endian for target $target" 1>&6
5066 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5067 fi
5068 fi;;
5069 no) if test x"$default_endian" != x; then
5070 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5071 else
5072 if test x"$wire_endian" != x; then
5073 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5074 else
5075 echo "No default endian for target $target" 1>&6
5076 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5077 fi
5078 fi;;
5079 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
5080 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
5081 { (exit 1); exit 1; }; }; sim_endian="";;
5082 esac
5083 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5084 echo "Setting endian flags = $sim_endian" 6>&1
5085 fi
5086 else
5087 if test x"$default_endian" != x; then
5088 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5089 else
5090 if test x"$wire_endian" != x; then
5091 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5092 else
5093 sim_endian=
5094 fi
5095 fi
5096 fi;
5097
5098
5099
5100 #
5101 # Select the bitsize of the target
5102 #
5103 mips_addr_bitsize=
5104 case "${target}" in
5105 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5106 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5107 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5108 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5109 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5110 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5111 *) mips_bitsize=64 ; mips_msb=63 ;;
5112 esac
5113 wire_word_bitsize="$mips_bitsize"
5114 wire_word_msb="$mips_msb"
5115 wire_address_bitsize="$mips_addr_bitsize"
5116 wire_cell_bitsize=""
5117 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
5118 if test "${enable_sim_bitsize+set}" = set; then
5119 enableval="$enable_sim_bitsize"
5120 sim_bitsize=
5121 case "${enableval}" in
5122 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5123 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5124 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5125 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5126 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5127 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5128 else
5129 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5130 fi ;;
5131 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5132 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5133 else
5134 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5135 fi ;;
5136 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
5137 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139 esac
5140 # address bitsize
5141 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5142 case x"${tmp}" in
5143 x ) ;;
5144 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5145 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5146 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
5147 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5149 esac
5150 # cell bitsize
5151 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5152 case x"${tmp}" in
5153 x ) ;;
5154 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5155 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5156 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
5157 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5159 esac
5160 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5161 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5162 fi
5163 else
5164 sim_bitsize=""
5165 if test x"$wire_word_bitsize" != x; then
5166 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5167 fi
5168 if test x"$wire_word_msb" != x; then
5169 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5170 fi
5171 if test x"$wire_address_bitsize" != x; then
5172 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5173 fi
5174 if test x"$wire_cell_bitsize" != x; then
5175 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5176 fi
5177 fi;
5178
5179
5180
5181 #
5182 # Select the floating hardware support of the target
5183 #
5184 mips_fpu=HARDWARE_FLOATING_POINT
5185 mips_fpu_bitsize=
5186 case "${target}" in
5187 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5188 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5189 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5190 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5191 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5192 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5193 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5194 *) mips_fpu=HARD_FLOATING_POINT ;;
5195 esac
5196
5197 default_sim_float="$mips_fpu"
5198 default_sim_float_bitsize="$mips_fpu_bitsize"
5199 # Check whether --enable-sim-float or --disable-sim-float was given.
5200 if test "${enable_sim_float+set}" = set; then
5201 enableval="$enable_sim_float"
5202 case "${enableval}" in
5203 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5204 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5205 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5206 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5207 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
5208 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
5209 { (exit 1); exit 1; }; }; sim_float="";;
5210 esac
5211 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5212 echo "Setting float flags = $sim_float" 6>&1
5213 fi
5214 else
5215
5216 sim_float=
5217 if test x"${default_sim_float}" != x""; then
5218 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5219 fi
5220 if test x"${default_sim_float_bitsize}" != x""; then
5221 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5222 fi
5223
5224 fi;
5225
5226
5227
5228 #
5229 # Select the level of SMP support
5230 #
5231 case "${target}" in
5232 *) mips_smp=0 ;;
5233 esac
5234
5235 default_sim_smp="$mips_smp"
5236 # Check whether --enable-sim-smp or --disable-sim-smp was given.
5237 if test "${enable_sim_smp+set}" = set; then
5238 enableval="$enable_sim_smp"
5239 case "${enableval}" in
5240 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5241 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5242 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5243 esac
5244 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5245 echo "Setting smp flags = $sim_smp" 6>&1
5246 fi
5247 else
5248 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5249 if test x"$silent" != x"yes"; then
5250 echo "Setting smp flags = $sim_smp" 6>&1
5251 fi
5252 fi;
5253
5254
5255
5256 #
5257 # Select the IGEN architecture
5258 #
5259 sim_gen=IGEN
5260 sim_igen_machine="-M mipsIV"
5261 sim_m16_machine="-M mips16,mipsIII"
5262 sim_igen_filter="32,64,f"
5263 sim_m16_filter="16"
5264 sim_mach_default="mips8000"
5265
5266 case "${target}" in
5267 mips*tx39*) sim_gen=IGEN
5268 sim_igen_filter="32,f"
5269 sim_igen_machine="-M r3900"
5270 ;;
5271 mips64vr43*-*-*) sim_gen=IGEN
5272 sim_igen_machine="-M mipsIV"
5273 sim_mach_default="mips8000"
5274 ;;
5275 mips64vr5*-*-*) sim_gen=IGEN
5276 sim_igen_machine="-M vr5000"
5277 sim_mach_default="mips5000"
5278 ;;
5279 mips64vr41*) sim_gen=M16
5280 sim_igen_machine="-M vr4100"
5281 sim_m16_machine="-M vr4100"
5282 sim_igen_filter="32,64,f"
5283 sim_m16_filter="16"
5284 sim_mach_default="mips4100"
5285 ;;
5286 mips64vr-*-* | mips64vrel-*-*)
5287 sim_gen=MULTI
5288 sim_multi_configs="\
5289 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5290 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5291 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5292 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5293 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5294 sim_multi_default=mips5000
5295 ;;
5296 mips*-sde-elf*) sim_gen=M16
5297 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5298 sim_m16_machine="-M mips16,mips16e,mips64r2"
5299 sim_igen_filter="32,64,f"
5300 sim_mach_default="mipsisa64r2"
5301 ;;
5302 mips64*-*-*) sim_igen_filter="32,64,f"
5303 sim_gen=IGEN
5304 ;;
5305 mips16*-*-*) sim_gen=M16
5306 sim_igen_filter="32,64,f"
5307 sim_m16_filter="16"
5308 ;;
5309 mipsisa32r2*-*-*) sim_gen=M16
5310 sim_igen_machine="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5311 sim_m16_machine="-M mips16,mips16e,mips32r2"
5312 sim_igen_filter="32,f"
5313 sim_mach_default="mipsisa32r2"
5314 ;;
5315 mipsisa32*-*-*) sim_gen=M16
5316 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
5317 sim_m16_machine="-M mips16,mips16e,mips32"
5318 sim_igen_filter="32,f"
5319 sim_mach_default="mipsisa32"
5320 ;;
5321 mipsisa64r2*-*-*) sim_gen=M16
5322 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
5323 sim_m16_machine="-M mips16,mips16e,mips64r2"
5324 sim_igen_filter="32,64,f"
5325 sim_mach_default="mipsisa64r2"
5326 ;;
5327 mipsisa64sb1*-*-*) sim_gen=IGEN
5328 sim_igen_machine="-M mips64,mips3d,sb1"
5329 sim_igen_filter="32,64,f"
5330 sim_mach_default="mips_sb1"
5331 ;;
5332 mipsisa64*-*-*) sim_gen=M16
5333 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
5334 sim_m16_machine="-M mips16,mips16e,mips64"
5335 sim_igen_filter="32,64,f"
5336 sim_mach_default="mipsisa64"
5337 ;;
5338 mips*lsi*) sim_gen=M16
5339 sim_igen_machine="-M mipsIII,mips16"
5340 sim_m16_machine="-M mips16,mipsIII"
5341 sim_igen_filter="32,f"
5342 sim_m16_filter="16"
5343 sim_mach_default="mips4000"
5344 ;;
5345 mips*-*-*) sim_gen=IGEN
5346 sim_igen_filter="32,f"
5347 ;;
5348 esac
5349
5350 # The MULTI generator can combine several simulation engines into one.
5351 # executable. A configuration which uses the MULTI should set two
5352 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5353 #
5354 # ${sim_multi_configs} is the list of engines to build. Each
5355 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5356 # where:
5357 #
5358 # - NAME is a C-compatible prefix for the engine,
5359 # - MACHINE is a -M argument,
5360 # - FILTER is a -F argument, and
5361 # - BFDMACHS is a comma-separated list of bfd machines that the
5362 # simulator can run.
5363 #
5364 # Each entry will have a separate simulation engine whose prefix is
5365 # m32<NAME>. If the machine list includes "mips16", there will also
5366 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5367 # generated using the same machine list as the 32-bit version,
5368 # but the filter will be "16" instead of FILTER.
5369 #
5370 # The simulator compares the bfd mach against BFDMACHS to decide
5371 # which engine to use. Entries in BFDMACHS should be bfd_mach
5372 # values with "bfd_mach_" removed. ${sim_multi_default} says
5373 # which entry should be the default.
5374 if test ${sim_gen} = MULTI; then
5375
5376 # Simple sanity check.
5377 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5378 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
5379 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
5380 { (exit 1); exit 1; }; }
5381 fi
5382
5383 # Start in a known state.
5384 rm -f multi-include.h multi-run.c
5385 sim_multi_flags=
5386 sim_multi_src=
5387 sim_multi_obj=multi-run.o
5388 sim_multi_igen_configs=
5389 sim_seen_default=no
5390
5391 cat << __EOF__ > multi-run.c
5392 /* Main entry point for MULTI simulators.
5393 Copyright (C) 2003, 2007 Free Software Foundation, Inc.
5394
5395 This program is free software; you can redistribute it and/or modify
5396 it under the terms of the GNU General Public License as published by
5397 the Free Software Foundation; either version 3 of the License, or
5398 (at your option) any later version.
5399
5400 This program is distributed in the hope that it will be useful,
5401 but WITHOUT ANY WARRANTY; without even the implied warranty of
5402 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5403 GNU General Public License for more details.
5404
5405 You should have received a copy of the GNU General Public License
5406 along with this program. If not, see <http://www.gnu.org/licenses/>.
5407
5408 --
5409
5410 This file was generated by sim/mips/configure. */
5411
5412 #include "sim-main.h"
5413 #include "multi-include.h"
5414
5415 #define SD sd
5416 #define CPU cpu
5417
5418 void
5419 sim_engine_run (SIM_DESC sd,
5420 int next_cpu_nr,
5421 int nr_cpus,
5422 int signal) /* ignore */
5423 {
5424 int mach;
5425
5426 if (STATE_ARCHITECTURE (sd) == NULL)
5427 mach = bfd_mach_${sim_multi_default};
5428 else
5429 mach = STATE_ARCHITECTURE (SD)->mach;
5430
5431 switch (mach)
5432 {
5433 __EOF__
5434
5435 for fc in ${sim_multi_configs}; do
5436
5437 # Split up the entry. ${c} contains the first three elements.
5438 # Note: outer sqaure brackets are m4 quotes.
5439 c=`echo ${fc} | sed 's/:[^:]*$//'`
5440 bfdmachs=`echo ${fc} | sed 's/.*://'`
5441 name=`echo ${c} | sed 's/:.*//'`
5442 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5443 filter=`echo ${c} | sed 's/.*://'`
5444
5445 # Build the following lists:
5446 #
5447 # sim_multi_flags: all -M and -F flags used by the simulator
5448 # sim_multi_src: all makefile-generated source files
5449 # sim_multi_obj: the objects for ${sim_multi_src}
5450 # sim_multi_igen_configs: igen configuration strings.
5451 #
5452 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5453 # or m16) followed by the NAME, MACHINE and FILTER part of
5454 # the ${sim_multi_configs} entry.
5455 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5456
5457 # Check whether mips16 handling is needed.
5458 case ${c} in
5459 *:*mips16*:*)
5460 # Run igen twice, once for normal mode and once for mips16.
5461 ws="m32 m16"
5462
5463 # The top-level function for the mips16 simulator is
5464 # in a file m16${name}_run.c, generated by the
5465 # tmp-run-multi Makefile rule.
5466 sim_multi_src="${sim_multi_src} m16${name}_run.c"
5467 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
5468 sim_multi_flags="${sim_multi_flags} -F 16"
5469 ;;
5470 *)
5471 ws=m32
5472 ;;
5473 esac
5474
5475 # Now add the list of igen-generated files to ${sim_multi_src}
5476 # and ${sim_multi_obj}.
5477 for w in ${ws}; do
5478 for base in engine icache idecode model semantics support; do
5479 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
5480 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
5481 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
5482 done
5483 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5484 done
5485
5486 # Add an include for the engine.h file. This file declares the
5487 # top-level foo_engine_run() function.
5488 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5489
5490 # Add case statements for this engine to sim_engine_run().
5491 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5492 echo " case bfd_mach_${mach}:" >> multi-run.c
5493 if test ${mach} = ${sim_multi_default}; then
5494 echo " default:" >> multi-run.c
5495 sim_seen_default=yes
5496 fi
5497 done
5498 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5499 >> multi-run.c
5500 echo " break;" >> multi-run.c
5501 done
5502
5503 # Check whether we added a 'default:' label.
5504 if test ${sim_seen_default} = no; then
5505 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
5506 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
5507 { (exit 1); exit 1; }; }
5508 fi
5509
5510 cat << __EOF__ >> multi-run.c
5511 }
5512 }
5513
5514 int
5515 mips_mach_multi (SIM_DESC sd)
5516 {
5517 if (STATE_ARCHITECTURE (sd) == NULL)
5518 return bfd_mach_${sim_multi_default};
5519
5520 switch (STATE_ARCHITECTURE (SD)->mach)
5521 {
5522 __EOF__
5523
5524 # Add case statements for this engine to mips_mach_multi().
5525 for fc in ${sim_multi_configs}; do
5526
5527 # Split up the entry. ${c} contains the first three elements.
5528 # Note: outer sqaure brackets are m4 quotes.
5529 c=`echo ${fc} | sed 's/:[^:]*$//'`
5530 bfdmachs=`echo ${fc} | sed 's/.*://'`
5531
5532 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5533 echo " case bfd_mach_${mach}:" >> multi-run.c
5534 done
5535 done
5536
5537 cat << __EOF__ >> multi-run.c
5538 return (STATE_ARCHITECTURE (SD)->mach);
5539 default:
5540 return bfd_mach_${sim_multi_default};
5541 }
5542 }
5543 __EOF__
5544
5545 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5546 else
5547 # For clean-extra
5548 sim_multi_src=doesnt-exist.c
5549
5550 if test x"${sim_mach_default}" = x""; then
5551 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
5552 echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
5553 { (exit 1); exit 1; }; }
5554 fi
5555 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5556 fi
5557 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5558 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 #
5569 # Add simulated hardware devices
5570 #
5571 hw_enabled=no
5572 case "${target}" in
5573 mips*tx39*)
5574 hw_enabled=yes
5575 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5576 mips_extra_objs="dv-sockser.o"
5577 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5578 ;;
5579 *)
5580 mips_extra_objs=""
5581 ;;
5582 esac
5583
5584 if test x"$hw_enabled" = x"yes"; then
5585 sim_hw_p=yes
5586 else
5587 sim_hw_p=no
5588 fi
5589 if test "$hw_devices"; then
5590 hardware="core pal glue"
5591 else
5592 hardware="core pal glue $hw_extra_devices"
5593 fi
5594 sim_hw_cflags="-DWITH_HW=1"
5595 sim_hw="$hardware"
5596 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5597 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5598 if test "${enable_sim_hardware+set}" = set; then
5599 enableval="$enable_sim_hardware"
5600
5601 case "${enableval}" in
5602 yes) sim_hw_p=yes;;
5603 no) sim_hw_p=no;;
5604 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5605 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5606 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5607 esac
5608 if test "$sim_hw_p" != yes; then
5609 sim_hw_objs=
5610 sim_hw_cflags="-DWITH_HW=0"
5611 sim_hw=
5612 else
5613 sim_hw_cflags="-DWITH_HW=1"
5614 # remove duplicates
5615 sim_hw=""
5616 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
5617 for i in $hardware ; do
5618 case " $sim_hw " in
5619 *" $i "*) ;;
5620 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5621 esac
5622 done
5623 fi
5624 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5625 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5626 fi
5627 else
5628
5629 if test "$sim_hw_p" != yes; then
5630 sim_hw_objs=
5631 sim_hw_cflags="-DWITH_HW=0"
5632 sim_hw=
5633 fi
5634 if test x"$silent" != x"yes"; then
5635 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5636 fi
5637 fi;
5638
5639
5640
5641 # Choose simulator engine
5642 case "${target}" in
5643 *) mips_igen_engine="engine.o"
5644 ;;
5645 esac
5646
5647
5648
5649 echo "$as_me:$LINENO: checking for X" >&5
5650 echo $ECHO_N "checking for X... $ECHO_C" >&6
5651
5652
5653 # Check whether --with-x or --without-x was given.
5654 if test "${with_x+set}" = set; then
5655 withval="$with_x"
5656
5657 fi;
5658 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5659 if test "x$with_x" = xno; then
5660 # The user explicitly disabled X.
5661 have_x=disabled
5662 else
5663 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5664 # Both variables are already set.
5665 have_x=yes
5666 else
5667 if test "${ac_cv_have_x+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 # One or both of the vars are not set, and there is no cached value.
5671 ac_x_includes=no ac_x_libraries=no
5672 rm -fr conftest.dir
5673 if mkdir conftest.dir; then
5674 cd conftest.dir
5675 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5676 cat >Imakefile <<'_ACEOF'
5677 acfindx:
5678 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5679 _ACEOF
5680 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5682 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5683 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5684 for ac_extension in a so sl; do
5685 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5686 test -f $ac_im_libdir/libX11.$ac_extension; then
5687 ac_im_usrlibdir=$ac_im_libdir; break
5688 fi
5689 done
5690 # Screen out bogus values from the imake configuration. They are
5691 # bogus both because they are the default anyway, and because
5692 # using them would break gcc on systems where it needs fixed includes.
5693 case $ac_im_incroot in
5694 /usr/include) ;;
5695 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5696 esac
5697 case $ac_im_usrlibdir in
5698 /usr/lib | /lib) ;;
5699 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5700 esac
5701 fi
5702 cd ..
5703 rm -fr conftest.dir
5704 fi
5705
5706 # Standard set of common directories for X headers.
5707 # Check X11 before X11Rn because it is often a symlink to the current release.
5708 ac_x_header_dirs='
5709 /usr/X11/include
5710 /usr/X11R6/include
5711 /usr/X11R5/include
5712 /usr/X11R4/include
5713
5714 /usr/include/X11
5715 /usr/include/X11R6
5716 /usr/include/X11R5
5717 /usr/include/X11R4
5718
5719 /usr/local/X11/include
5720 /usr/local/X11R6/include
5721 /usr/local/X11R5/include
5722 /usr/local/X11R4/include
5723
5724 /usr/local/include/X11
5725 /usr/local/include/X11R6
5726 /usr/local/include/X11R5
5727 /usr/local/include/X11R4
5728
5729 /usr/X386/include
5730 /usr/x386/include
5731 /usr/XFree86/include/X11
5732
5733 /usr/include
5734 /usr/local/include
5735 /usr/unsupported/include
5736 /usr/athena/include
5737 /usr/local/x11r5/include
5738 /usr/lpp/Xamples/include
5739
5740 /usr/openwin/include
5741 /usr/openwin/share/include'
5742
5743 if test "$ac_x_includes" = no; then
5744 # Guess where to find include files, by looking for Intrinsic.h.
5745 # First, try using that file with no special directory specified.
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <X11/Intrinsic.h>
5753 _ACEOF
5754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null; then
5762 if test -s conftest.err; then
5763 ac_cpp_err=$ac_c_preproc_warn_flag
5764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5765 else
5766 ac_cpp_err=
5767 fi
5768 else
5769 ac_cpp_err=yes
5770 fi
5771 if test -z "$ac_cpp_err"; then
5772 # We can compile using X headers with no special include directory.
5773 ac_x_includes=
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 for ac_dir in $ac_x_header_dirs; do
5779 if test -r "$ac_dir/X11/Intrinsic.h"; then
5780 ac_x_includes=$ac_dir
5781 break
5782 fi
5783 done
5784 fi
5785 rm -f conftest.err conftest.$ac_ext
5786 fi # $ac_x_includes = no
5787
5788 if test "$ac_x_libraries" = no; then
5789 # Check for the libraries.
5790 # See if we find them without any special options.
5791 # Don't add to $LIBS permanently.
5792 ac_save_LIBS=$LIBS
5793 LIBS="-lXt $LIBS"
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #include <X11/Intrinsic.h>
5801 int
5802 main ()
5803 {
5804 XtMalloc (0)
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 LIBS=$ac_save_LIBS
5832 # We can link X programs with no special library path.
5833 ac_x_libraries=
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 LIBS=$ac_save_LIBS
5839 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5840 do
5841 # Don't even attempt the hair of trying to link an X program!
5842 for ac_extension in a so sl; do
5843 if test -r $ac_dir/libXt.$ac_extension; then
5844 ac_x_libraries=$ac_dir
5845 break 2
5846 fi
5847 done
5848 done
5849 fi
5850 rm -f conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852 fi # $ac_x_libraries = no
5853
5854 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5855 # Didn't find X anywhere. Cache the known absence of X.
5856 ac_cv_have_x="have_x=no"
5857 else
5858 # Record where we found X for the cache.
5859 ac_cv_have_x="have_x=yes \
5860 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5861 fi
5862 fi
5863
5864 fi
5865 eval "$ac_cv_have_x"
5866 fi # $with_x != no
5867
5868 if test "$have_x" != yes; then
5869 echo "$as_me:$LINENO: result: $have_x" >&5
5870 echo "${ECHO_T}$have_x" >&6
5871 no_x=yes
5872 else
5873 # If each of the values was on the command line, it overrides each guess.
5874 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5875 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5876 # Update the cache value to reflect the command line values.
5877 ac_cv_have_x="have_x=yes \
5878 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5879 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5880 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5881 fi
5882
5883 mips_extra_libs=""
5884
5885
5886
5887
5888
5889
5890 for ac_header in string.h strings.h stdlib.h stdlib.h
5891 do
5892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5894 echo "$as_me:$LINENO: checking for $ac_header" >&5
5895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 fi
5899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5901 else
5902 # Is the header compilable?
5903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5912 #include <$ac_header>
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag"
5924 || test ! -s conftest.err'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_header_compiler=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 ac_header_compiler=no
5942 fi
5943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5945 echo "${ECHO_T}$ac_header_compiler" >&6
5946
5947 # Is the header present?
5948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5950 cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h. */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 #include <$ac_header>
5957 _ACEOF
5958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } >/dev/null; then
5966 if test -s conftest.err; then
5967 ac_cpp_err=$ac_c_preproc_warn_flag
5968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5969 else
5970 ac_cpp_err=
5971 fi
5972 else
5973 ac_cpp_err=yes
5974 fi
5975 if test -z "$ac_cpp_err"; then
5976 ac_header_preproc=yes
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 ac_header_preproc=no
5982 fi
5983 rm -f conftest.err conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5985 echo "${ECHO_T}$ac_header_preproc" >&6
5986
5987 # So? What about this header?
5988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5989 yes:no: )
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5994 ac_header_preproc=yes
5995 ;;
5996 no:yes:* )
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6009 (
6010 cat <<\_ASBOX
6011 ## ------------------------------------------ ##
6012 ## Report this to the AC_PACKAGE_NAME lists. ##
6013 ## ------------------------------------------ ##
6014 _ASBOX
6015 ) |
6016 sed "s/^/$as_me: WARNING: /" >&2
6017 ;;
6018 esac
6019 echo "$as_me:$LINENO: checking for $ac_header" >&5
6020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 eval "$as_ac_Header=\$ac_header_preproc"
6025 fi
6026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028
6029 fi
6030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6031 cat >>confdefs.h <<_ACEOF
6032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6033 _ACEOF
6034
6035 fi
6036
6037 done
6038
6039
6040 echo "$as_me:$LINENO: checking for fabs in -lm" >&5
6041 echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
6042 if test "${ac_cv_lib_m_fabs+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 ac_check_lib_save_LIBS=$LIBS
6046 LIBS="-lm $LIBS"
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 #ifdef __cplusplus
6056 extern "C"
6057 #endif
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6060 char fabs ();
6061 int
6062 main ()
6063 {
6064 fabs ();
6065 ;
6066 return 0;
6067 }
6068 _ACEOF
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6071 (eval $ac_link) 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest$ac_exeext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_lib_m_fabs=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_cv_lib_m_fabs=no
6097 fi
6098 rm -f conftest.err conftest.$ac_objext \
6099 conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6101 fi
6102 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
6103 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
6104 if test $ac_cv_lib_m_fabs = yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define HAVE_LIBM 1
6107 _ACEOF
6108
6109 LIBS="-lm $LIBS"
6110
6111 fi
6112
6113
6114
6115
6116 for ac_func in aint anint sqrt
6117 do
6118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6119 echo "$as_me:$LINENO: checking for $ac_func" >&5
6120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6121 if eval "test \"\${$as_ac_var+set}\" = set"; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6132 #define $ac_func innocuous_$ac_func
6133
6134 /* System header to define __stub macros and hopefully few prototypes,
6135 which can conflict with char $ac_func (); below.
6136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6137 <limits.h> exists even on freestanding compilers. */
6138
6139 #ifdef __STDC__
6140 # include <limits.h>
6141 #else
6142 # include <assert.h>
6143 #endif
6144
6145 #undef $ac_func
6146
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 #ifdef __cplusplus
6149 extern "C"
6150 {
6151 #endif
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6154 char $ac_func ();
6155 /* The GNU C library defines this for functions which it implements
6156 to always fail with ENOSYS. Some functions are actually named
6157 something starting with __ and the normal name is an alias. */
6158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6159 choke me
6160 #else
6161 char (*f) () = $ac_func;
6162 #endif
6163 #ifdef __cplusplus
6164 }
6165 #endif
6166
6167 int
6168 main ()
6169 {
6170 return f != $ac_func;
6171 ;
6172 return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177 (eval $ac_link) 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_c_werror_flag"
6185 || test ! -s conftest.err'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 eval "$as_ac_var=yes"
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 eval "$as_ac_var=no"
6203 fi
6204 rm -f conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 fi
6207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6209 if test `eval echo '${'$as_ac_var'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6212 _ACEOF
6213
6214 fi
6215 done
6216
6217
6218
6219 ac_sources="$sim_link_files"
6220 ac_dests="$sim_link_links"
6221 while test -n "$ac_sources"; do
6222 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6223 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6224 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6225 done
6226 ac_config_links="$ac_config_links $ac_config_links_1"
6227
6228 cgen_breaks=""
6229 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
6230 cgen_breaks="break cgen_rtx_error";
6231 fi
6232
6233 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
6234
6235 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
6236
6237 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
6238
6239 ac_config_commands="$ac_config_commands Makefile"
6240
6241 ac_config_commands="$ac_config_commands stamp-h"
6242
6243 cat >confcache <<\_ACEOF
6244 # This file is a shell script that caches the results of configure
6245 # tests run on this system so they can be shared between configure
6246 # scripts and configure runs, see configure's option --config-cache.
6247 # It is not useful on other systems. If it contains results you don't
6248 # want to keep, you may remove or edit it.
6249 #
6250 # config.status only pays attention to the cache file if you give it
6251 # the --recheck option to rerun configure.
6252 #
6253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6255 # following values.
6256
6257 _ACEOF
6258
6259 # The following way of writing the cache mishandles newlines in values,
6260 # but we know of no workaround that is simple, portable, and efficient.
6261 # So, don't put newlines in cache variables' values.
6262 # Ultrix sh set writes to stderr and can't be redirected directly,
6263 # and sets the high bit in the cache file unless we assign to the vars.
6264 {
6265 (set) 2>&1 |
6266 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6267 *ac_space=\ *)
6268 # `set' does not quote correctly, so add quotes (double-quote
6269 # substitution turns \\\\ into \\, and sed turns \\ into \).
6270 sed -n \
6271 "s/'/'\\\\''/g;
6272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6273 ;;
6274 *)
6275 # `set' quotes correctly as required by POSIX, so do not add quotes.
6276 sed -n \
6277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6278 ;;
6279 esac;
6280 } |
6281 sed '
6282 t clear
6283 : clear
6284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6285 t end
6286 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6287 : end' >>confcache
6288 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6289 if test -w $cache_file; then
6290 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6291 cat confcache >$cache_file
6292 else
6293 echo "not updating unwritable cache $cache_file"
6294 fi
6295 fi
6296 rm -f confcache
6297
6298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6299 # Let make expand exec_prefix.
6300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6301
6302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6304 # trailing colons and then remove the whole line if VPATH becomes empty
6305 # (actually we leave an empty line to preserve line numbers).
6306 if test "x$srcdir" = x.; then
6307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6308 s/:*\$(srcdir):*/:/;
6309 s/:*\${srcdir}:*/:/;
6310 s/:*@srcdir@:*/:/;
6311 s/^\([^=]*=[ ]*\):*/\1/;
6312 s/:*$//;
6313 s/^[^=]*=[ ]*$//;
6314 }'
6315 fi
6316
6317 DEFS=-DHAVE_CONFIG_H
6318
6319 ac_libobjs=
6320 ac_ltlibobjs=
6321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6322 # 1. Remove the extension, and $U if already installed.
6323 ac_i=`echo "$ac_i" |
6324 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6325 # 2. Add them.
6326 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6327 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6328 done
6329 LIBOBJS=$ac_libobjs
6330
6331 LTLIBOBJS=$ac_ltlibobjs
6332
6333
6334
6335 : ${CONFIG_STATUS=./config.status}
6336 ac_clean_files_save=$ac_clean_files
6337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6338 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6339 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6340 cat >$CONFIG_STATUS <<_ACEOF
6341 #! $SHELL
6342 # Generated by $as_me.
6343 # Run this file to recreate the current configuration.
6344 # Compiler output produced by configure, useful for debugging
6345 # configure, is in config.log if it exists.
6346
6347 debug=false
6348 ac_cs_recheck=false
6349 ac_cs_silent=false
6350 SHELL=\${CONFIG_SHELL-$SHELL}
6351 _ACEOF
6352
6353 cat >>$CONFIG_STATUS <<\_ACEOF
6354 ## --------------------- ##
6355 ## M4sh Initialization. ##
6356 ## --------------------- ##
6357
6358 # Be Bourne compatible
6359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6360 emulate sh
6361 NULLCMD=:
6362 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6363 # is contrary to our usage. Disable this feature.
6364 alias -g '${1+"$@"}'='"$@"'
6365 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6366 set -o posix
6367 fi
6368 DUALCASE=1; export DUALCASE # for MKS sh
6369
6370 # Support unset when possible.
6371 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6372 as_unset=unset
6373 else
6374 as_unset=false
6375 fi
6376
6377
6378 # Work around bugs in pre-3.0 UWIN ksh.
6379 $as_unset ENV MAIL MAILPATH
6380 PS1='$ '
6381 PS2='> '
6382 PS4='+ '
6383
6384 # NLS nuisances.
6385 for as_var in \
6386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6388 LC_TELEPHONE LC_TIME
6389 do
6390 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6391 eval $as_var=C; export $as_var
6392 else
6393 $as_unset $as_var
6394 fi
6395 done
6396
6397 # Required to use basename.
6398 if expr a : '\(a\)' >/dev/null 2>&1; then
6399 as_expr=expr
6400 else
6401 as_expr=false
6402 fi
6403
6404 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6405 as_basename=basename
6406 else
6407 as_basename=false
6408 fi
6409
6410
6411 # Name of the executable.
6412 as_me=`$as_basename "$0" ||
6413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6414 X"$0" : 'X\(//\)$' \| \
6415 X"$0" : 'X\(/\)$' \| \
6416 . : '\(.\)' 2>/dev/null ||
6417 echo X/"$0" |
6418 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6419 /^X\/\(\/\/\)$/{ s//\1/; q; }
6420 /^X\/\(\/\).*/{ s//\1/; q; }
6421 s/.*/./; q'`
6422
6423
6424 # PATH needs CR, and LINENO needs CR and PATH.
6425 # Avoid depending upon Character Ranges.
6426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6429 as_cr_digits='0123456789'
6430 as_cr_alnum=$as_cr_Letters$as_cr_digits
6431
6432 # The user is always right.
6433 if test "${PATH_SEPARATOR+set}" != set; then
6434 echo "#! /bin/sh" >conf$$.sh
6435 echo "exit 0" >>conf$$.sh
6436 chmod +x conf$$.sh
6437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6438 PATH_SEPARATOR=';'
6439 else
6440 PATH_SEPARATOR=:
6441 fi
6442 rm -f conf$$.sh
6443 fi
6444
6445
6446 as_lineno_1=$LINENO
6447 as_lineno_2=$LINENO
6448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6449 test "x$as_lineno_1" != "x$as_lineno_2" &&
6450 test "x$as_lineno_3" = "x$as_lineno_2" || {
6451 # Find who we are. Look in the path if we contain no path at all
6452 # relative or not.
6453 case $0 in
6454 *[\\/]* ) as_myself=$0 ;;
6455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6461 done
6462
6463 ;;
6464 esac
6465 # We did not find ourselves, most probably we were run as `sh COMMAND'
6466 # in which case we are not to be found in the path.
6467 if test "x$as_myself" = x; then
6468 as_myself=$0
6469 fi
6470 if test ! -f "$as_myself"; then
6471 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6472 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6473 { (exit 1); exit 1; }; }
6474 fi
6475 case $CONFIG_SHELL in
6476 '')
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6479 do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for as_base in sh bash ksh sh5; do
6483 case $as_dir in
6484 /*)
6485 if ("$as_dir/$as_base" -c '
6486 as_lineno_1=$LINENO
6487 as_lineno_2=$LINENO
6488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6489 test "x$as_lineno_1" != "x$as_lineno_2" &&
6490 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6491 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6492 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6493 CONFIG_SHELL=$as_dir/$as_base
6494 export CONFIG_SHELL
6495 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6496 fi;;
6497 esac
6498 done
6499 done
6500 ;;
6501 esac
6502
6503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6504 # uniformly replaced by the line number. The first 'sed' inserts a
6505 # line-number line before each line; the second 'sed' does the real
6506 # work. The second script uses 'N' to pair each line-number line
6507 # with the numbered line, and appends trailing '-' during
6508 # substitution so that $LINENO is not a special case at line end.
6509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6510 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6511 sed '=' <$as_myself |
6512 sed '
6513 N
6514 s,$,-,
6515 : loop
6516 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6517 t loop
6518 s,-$,,
6519 s,^['$as_cr_digits']*\n,,
6520 ' >$as_me.lineno &&
6521 chmod +x $as_me.lineno ||
6522 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6523 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6524 { (exit 1); exit 1; }; }
6525
6526 # Don't try to exec as it changes $[0], causing all sort of problems
6527 # (the dirname of $[0] is not the place where we might find the
6528 # original and so on. Autoconf is especially sensible to this).
6529 . ./$as_me.lineno
6530 # Exit status is that of the last command.
6531 exit
6532 }
6533
6534
6535 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6536 *c*,-n*) ECHO_N= ECHO_C='
6537 ' ECHO_T=' ' ;;
6538 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6539 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6540 esac
6541
6542 if expr a : '\(a\)' >/dev/null 2>&1; then
6543 as_expr=expr
6544 else
6545 as_expr=false
6546 fi
6547
6548 rm -f conf$$ conf$$.exe conf$$.file
6549 echo >conf$$.file
6550 if ln -s conf$$.file conf$$ 2>/dev/null; then
6551 # We could just check for DJGPP; but this test a) works b) is more generic
6552 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6553 if test -f conf$$.exe; then
6554 # Don't use ln at all; we don't have any links
6555 as_ln_s='cp -p'
6556 else
6557 as_ln_s='ln -s'
6558 fi
6559 elif ln conf$$.file conf$$ 2>/dev/null; then
6560 as_ln_s=ln
6561 else
6562 as_ln_s='cp -p'
6563 fi
6564 rm -f conf$$ conf$$.exe conf$$.file
6565
6566 if mkdir -p . 2>/dev/null; then
6567 as_mkdir_p=:
6568 else
6569 test -d ./-p && rmdir ./-p
6570 as_mkdir_p=false
6571 fi
6572
6573 as_executable_p="test -f"
6574
6575 # Sed expression to map a string onto a valid CPP name.
6576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6577
6578 # Sed expression to map a string onto a valid variable name.
6579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6580
6581
6582 # IFS
6583 # We need space, tab and new line, in precisely that order.
6584 as_nl='
6585 '
6586 IFS=" $as_nl"
6587
6588 # CDPATH.
6589 $as_unset CDPATH
6590
6591 exec 6>&1
6592
6593 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6594 # report actual input values of CONFIG_FILES etc. instead of their
6595 # values after options handling. Logging --version etc. is OK.
6596 exec 5>>config.log
6597 {
6598 echo
6599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6600 ## Running $as_me. ##
6601 _ASBOX
6602 } >&5
6603 cat >&5 <<_CSEOF
6604
6605 This file was extended by $as_me, which was
6606 generated by GNU Autoconf 2.59. Invocation command line was
6607
6608 CONFIG_FILES = $CONFIG_FILES
6609 CONFIG_HEADERS = $CONFIG_HEADERS
6610 CONFIG_LINKS = $CONFIG_LINKS
6611 CONFIG_COMMANDS = $CONFIG_COMMANDS
6612 $ $0 $@
6613
6614 _CSEOF
6615 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6616 echo >&5
6617 _ACEOF
6618
6619 # Files that config.status was made for.
6620 if test -n "$ac_config_files"; then
6621 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6622 fi
6623
6624 if test -n "$ac_config_headers"; then
6625 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6626 fi
6627
6628 if test -n "$ac_config_links"; then
6629 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6630 fi
6631
6632 if test -n "$ac_config_commands"; then
6633 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6634 fi
6635
6636 cat >>$CONFIG_STATUS <<\_ACEOF
6637
6638 ac_cs_usage="\
6639 \`$as_me' instantiates files from templates according to the
6640 current configuration.
6641
6642 Usage: $0 [OPTIONS] [FILE]...
6643
6644 -h, --help print this help, then exit
6645 -V, --version print version number, then exit
6646 -q, --quiet do not print progress messages
6647 -d, --debug don't remove temporary files
6648 --recheck update $as_me by reconfiguring in the same conditions
6649 --file=FILE[:TEMPLATE]
6650 instantiate the configuration file FILE
6651 --header=FILE[:TEMPLATE]
6652 instantiate the configuration header FILE
6653
6654 Configuration files:
6655 $config_files
6656
6657 Configuration headers:
6658 $config_headers
6659
6660 Configuration links:
6661 $config_links
6662
6663 Configuration commands:
6664 $config_commands
6665
6666 Report bugs to <bug-autoconf@gnu.org>."
6667 _ACEOF
6668
6669 cat >>$CONFIG_STATUS <<_ACEOF
6670 ac_cs_version="\\
6671 config.status
6672 configured by $0, generated by GNU Autoconf 2.59,
6673 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6674
6675 Copyright (C) 2003 Free Software Foundation, Inc.
6676 This config.status script is free software; the Free Software Foundation
6677 gives unlimited permission to copy, distribute and modify it."
6678 srcdir=$srcdir
6679 INSTALL="$INSTALL"
6680 _ACEOF
6681
6682 cat >>$CONFIG_STATUS <<\_ACEOF
6683 # If no file are specified by the user, then we need to provide default
6684 # value. By we need to know if files were specified by the user.
6685 ac_need_defaults=:
6686 while test $# != 0
6687 do
6688 case $1 in
6689 --*=*)
6690 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6691 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6692 ac_shift=:
6693 ;;
6694 -*)
6695 ac_option=$1
6696 ac_optarg=$2
6697 ac_shift=shift
6698 ;;
6699 *) # This is not an option, so the user has probably given explicit
6700 # arguments.
6701 ac_option=$1
6702 ac_need_defaults=false;;
6703 esac
6704
6705 case $ac_option in
6706 # Handling of the options.
6707 _ACEOF
6708 cat >>$CONFIG_STATUS <<\_ACEOF
6709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6710 ac_cs_recheck=: ;;
6711 --version | --vers* | -V )
6712 echo "$ac_cs_version"; exit 0 ;;
6713 --he | --h)
6714 # Conflict between --help and --header
6715 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6716 Try \`$0 --help' for more information." >&5
6717 echo "$as_me: error: ambiguous option: $1
6718 Try \`$0 --help' for more information." >&2;}
6719 { (exit 1); exit 1; }; };;
6720 --help | --hel | -h )
6721 echo "$ac_cs_usage"; exit 0 ;;
6722 --debug | --d* | -d )
6723 debug=: ;;
6724 --file | --fil | --fi | --f )
6725 $ac_shift
6726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6727 ac_need_defaults=false;;
6728 --header | --heade | --head | --hea )
6729 $ac_shift
6730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6731 ac_need_defaults=false;;
6732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6734 ac_cs_silent=: ;;
6735
6736 # This is an error.
6737 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6738 Try \`$0 --help' for more information." >&5
6739 echo "$as_me: error: unrecognized option: $1
6740 Try \`$0 --help' for more information." >&2;}
6741 { (exit 1); exit 1; }; } ;;
6742
6743 *) ac_config_targets="$ac_config_targets $1" ;;
6744
6745 esac
6746 shift
6747 done
6748
6749 ac_configure_extra_args=
6750
6751 if $ac_cs_silent; then
6752 exec 6>/dev/null
6753 ac_configure_extra_args="$ac_configure_extra_args --silent"
6754 fi
6755
6756 _ACEOF
6757 cat >>$CONFIG_STATUS <<_ACEOF
6758 if \$ac_cs_recheck; then
6759 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6760 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6761 fi
6762
6763 _ACEOF
6764
6765
6766
6767
6768
6769 cat >>$CONFIG_STATUS <<\_ACEOF
6770 for ac_config_target in $ac_config_targets
6771 do
6772 case "$ac_config_target" in
6773 # Handling of arguments.
6774 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6775 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6776 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6777 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6778 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6779 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6780 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6781 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6782 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6783 { (exit 1); exit 1; }; };;
6784 esac
6785 done
6786
6787 # If the user did not use the arguments to specify the items to instantiate,
6788 # then the envvar interface is used. Set only those that are not.
6789 # We use the long form for the default assignment because of an extremely
6790 # bizarre bug on SunOS 4.1.3.
6791 if $ac_need_defaults; then
6792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6794 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6795 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6796 fi
6797
6798 # Have a temporary directory for convenience. Make it in the build tree
6799 # simply because there is no reason to put it here, and in addition,
6800 # creating and moving files from /tmp can sometimes cause problems.
6801 # Create a temporary directory, and hook for its removal unless debugging.
6802 $debug ||
6803 {
6804 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6805 trap '{ (exit 1); exit 1; }' 1 2 13 15
6806 }
6807
6808 # Create a (secure) tmp directory for tmp files.
6809
6810 {
6811 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6812 test -n "$tmp" && test -d "$tmp"
6813 } ||
6814 {
6815 tmp=./confstat$$-$RANDOM
6816 (umask 077 && mkdir $tmp)
6817 } ||
6818 {
6819 echo "$me: cannot create a temporary directory in ." >&2
6820 { (exit 1); exit 1; }
6821 }
6822
6823 _ACEOF
6824
6825 cat >>$CONFIG_STATUS <<_ACEOF
6826
6827 #
6828 # CONFIG_FILES section.
6829 #
6830
6831 # No need to generate the scripts if there are no CONFIG_FILES.
6832 # This happens for instance when ./config.status config.h
6833 if test -n "\$CONFIG_FILES"; then
6834 # Protect against being on the right side of a sed subst in config.status.
6835 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6836 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6837 s,@SHELL@,$SHELL,;t t
6838 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6839 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6840 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6841 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6842 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6843 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6844 s,@exec_prefix@,$exec_prefix,;t t
6845 s,@prefix@,$prefix,;t t
6846 s,@program_transform_name@,$program_transform_name,;t t
6847 s,@bindir@,$bindir,;t t
6848 s,@sbindir@,$sbindir,;t t
6849 s,@libexecdir@,$libexecdir,;t t
6850 s,@datadir@,$datadir,;t t
6851 s,@sysconfdir@,$sysconfdir,;t t
6852 s,@sharedstatedir@,$sharedstatedir,;t t
6853 s,@localstatedir@,$localstatedir,;t t
6854 s,@libdir@,$libdir,;t t
6855 s,@includedir@,$includedir,;t t
6856 s,@oldincludedir@,$oldincludedir,;t t
6857 s,@infodir@,$infodir,;t t
6858 s,@mandir@,$mandir,;t t
6859 s,@build_alias@,$build_alias,;t t
6860 s,@host_alias@,$host_alias,;t t
6861 s,@target_alias@,$target_alias,;t t
6862 s,@DEFS@,$DEFS,;t t
6863 s,@ECHO_C@,$ECHO_C,;t t
6864 s,@ECHO_N@,$ECHO_N,;t t
6865 s,@ECHO_T@,$ECHO_T,;t t
6866 s,@LIBS@,$LIBS,;t t
6867 s,@sim_environment@,$sim_environment,;t t
6868 s,@sim_alignment@,$sim_alignment,;t t
6869 s,@sim_assert@,$sim_assert,;t t
6870 s,@sim_bitsize@,$sim_bitsize,;t t
6871 s,@sim_endian@,$sim_endian,;t t
6872 s,@sim_hostendian@,$sim_hostendian,;t t
6873 s,@sim_float@,$sim_float,;t t
6874 s,@sim_scache@,$sim_scache,;t t
6875 s,@sim_default_model@,$sim_default_model,;t t
6876 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6877 s,@sim_hw_objs@,$sim_hw_objs,;t t
6878 s,@sim_hw@,$sim_hw,;t t
6879 s,@sim_inline@,$sim_inline,;t t
6880 s,@sim_packages@,$sim_packages,;t t
6881 s,@sim_regparm@,$sim_regparm,;t t
6882 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6883 s,@sim_smp@,$sim_smp,;t t
6884 s,@sim_stdcall@,$sim_stdcall,;t t
6885 s,@sim_xor_endian@,$sim_xor_endian,;t t
6886 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6887 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6888 s,@build@,$build,;t t
6889 s,@build_cpu@,$build_cpu,;t t
6890 s,@build_vendor@,$build_vendor,;t t
6891 s,@build_os@,$build_os,;t t
6892 s,@host@,$host,;t t
6893 s,@host_cpu@,$host_cpu,;t t
6894 s,@host_vendor@,$host_vendor,;t t
6895 s,@host_os@,$host_os,;t t
6896 s,@target@,$target,;t t
6897 s,@target_cpu@,$target_cpu,;t t
6898 s,@target_vendor@,$target_vendor,;t t
6899 s,@target_os@,$target_os,;t t
6900 s,@CC@,$CC,;t t
6901 s,@CFLAGS@,$CFLAGS,;t t
6902 s,@LDFLAGS@,$LDFLAGS,;t t
6903 s,@CPPFLAGS@,$CPPFLAGS,;t t
6904 s,@ac_ct_CC@,$ac_ct_CC,;t t
6905 s,@EXEEXT@,$EXEEXT,;t t
6906 s,@OBJEXT@,$OBJEXT,;t t
6907 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6908 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6909 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6910 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6911 s,@HDEFINES@,$HDEFINES,;t t
6912 s,@AR@,$AR,;t t
6913 s,@RANLIB@,$RANLIB,;t t
6914 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6915 s,@USE_NLS@,$USE_NLS,;t t
6916 s,@LIBINTL@,$LIBINTL,;t t
6917 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6918 s,@INCINTL@,$INCINTL,;t t
6919 s,@XGETTEXT@,$XGETTEXT,;t t
6920 s,@GMSGFMT@,$GMSGFMT,;t t
6921 s,@POSUB@,$POSUB,;t t
6922 s,@CATALOGS@,$CATALOGS,;t t
6923 s,@DATADIRNAME@,$DATADIRNAME,;t t
6924 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6925 s,@GENCAT@,$GENCAT,;t t
6926 s,@CATOBJEXT@,$CATOBJEXT,;t t
6927 s,@CPP@,$CPP,;t t
6928 s,@EGREP@,$EGREP,;t t
6929 s,@MAINT@,$MAINT,;t t
6930 s,@sim_bswap@,$sim_bswap,;t t
6931 s,@sim_cflags@,$sim_cflags,;t t
6932 s,@sim_debug@,$sim_debug,;t t
6933 s,@sim_stdio@,$sim_stdio,;t t
6934 s,@sim_trace@,$sim_trace,;t t
6935 s,@sim_profile@,$sim_profile,;t t
6936 s,@PKGVERSION@,$PKGVERSION,;t t
6937 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6938 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
6939 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
6940 s,@sim_igen_flags@,$sim_igen_flags,;t t
6941 s,@sim_m16_flags@,$sim_m16_flags,;t t
6942 s,@sim_gen@,$sim_gen,;t t
6943 s,@sim_multi_flags@,$sim_multi_flags,;t t
6944 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
6945 s,@sim_multi_src@,$sim_multi_src,;t t
6946 s,@sim_multi_obj@,$sim_multi_obj,;t t
6947 s,@mips_extra_objs@,$mips_extra_objs,;t t
6948 s,@mips_igen_engine@,$mips_igen_engine,;t t
6949 s,@mips_extra_libs@,$mips_extra_libs,;t t
6950 s,@cgen_breaks@,$cgen_breaks,;t t
6951 s,@LIBOBJS@,$LIBOBJS,;t t
6952 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6953 CEOF
6954
6955 _ACEOF
6956
6957 cat >>$CONFIG_STATUS <<\_ACEOF
6958 # Split the substitutions into bite-sized pieces for seds with
6959 # small command number limits, like on Digital OSF/1 and HP-UX.
6960 ac_max_sed_lines=48
6961 ac_sed_frag=1 # Number of current file.
6962 ac_beg=1 # First line for current file.
6963 ac_end=$ac_max_sed_lines # Line after last line for current file.
6964 ac_more_lines=:
6965 ac_sed_cmds=
6966 while $ac_more_lines; do
6967 if test $ac_beg -gt 1; then
6968 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6969 else
6970 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6971 fi
6972 if test ! -s $tmp/subs.frag; then
6973 ac_more_lines=false
6974 else
6975 # The purpose of the label and of the branching condition is to
6976 # speed up the sed processing (if there are no `@' at all, there
6977 # is no need to browse any of the substitutions).
6978 # These are the two extra sed commands mentioned above.
6979 (echo ':t
6980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6981 if test -z "$ac_sed_cmds"; then
6982 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6983 else
6984 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6985 fi
6986 ac_sed_frag=`expr $ac_sed_frag + 1`
6987 ac_beg=$ac_end
6988 ac_end=`expr $ac_end + $ac_max_sed_lines`
6989 fi
6990 done
6991 if test -z "$ac_sed_cmds"; then
6992 ac_sed_cmds=cat
6993 fi
6994 fi # test -n "$CONFIG_FILES"
6995
6996 _ACEOF
6997 cat >>$CONFIG_STATUS <<\_ACEOF
6998 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7000 case $ac_file in
7001 - | *:- | *:-:* ) # input from stdin
7002 cat >$tmp/stdin
7003 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7004 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7005 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7006 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7007 * ) ac_file_in=$ac_file.in ;;
7008 esac
7009
7010 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7011 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7013 X"$ac_file" : 'X\(//\)[^/]' \| \
7014 X"$ac_file" : 'X\(//\)$' \| \
7015 X"$ac_file" : 'X\(/\)' \| \
7016 . : '\(.\)' 2>/dev/null ||
7017 echo X"$ac_file" |
7018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7020 /^X\(\/\/\)$/{ s//\1/; q; }
7021 /^X\(\/\).*/{ s//\1/; q; }
7022 s/.*/./; q'`
7023 { if $as_mkdir_p; then
7024 mkdir -p "$ac_dir"
7025 else
7026 as_dir="$ac_dir"
7027 as_dirs=
7028 while test ! -d "$as_dir"; do
7029 as_dirs="$as_dir $as_dirs"
7030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7032 X"$as_dir" : 'X\(//\)[^/]' \| \
7033 X"$as_dir" : 'X\(//\)$' \| \
7034 X"$as_dir" : 'X\(/\)' \| \
7035 . : '\(.\)' 2>/dev/null ||
7036 echo X"$as_dir" |
7037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7039 /^X\(\/\/\)$/{ s//\1/; q; }
7040 /^X\(\/\).*/{ s//\1/; q; }
7041 s/.*/./; q'`
7042 done
7043 test ! -n "$as_dirs" || mkdir $as_dirs
7044 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7045 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7046 { (exit 1); exit 1; }; }; }
7047
7048 ac_builddir=.
7049
7050 if test "$ac_dir" != .; then
7051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7052 # A "../" for each directory in $ac_dir_suffix.
7053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7054 else
7055 ac_dir_suffix= ac_top_builddir=
7056 fi
7057
7058 case $srcdir in
7059 .) # No --srcdir option. We are building in place.
7060 ac_srcdir=.
7061 if test -z "$ac_top_builddir"; then
7062 ac_top_srcdir=.
7063 else
7064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7065 fi ;;
7066 [\\/]* | ?:[\\/]* ) # Absolute path.
7067 ac_srcdir=$srcdir$ac_dir_suffix;
7068 ac_top_srcdir=$srcdir ;;
7069 *) # Relative path.
7070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7072 esac
7073
7074 # Do not use `cd foo && pwd` to compute absolute paths, because
7075 # the directories may not exist.
7076 case `pwd` in
7077 .) ac_abs_builddir="$ac_dir";;
7078 *)
7079 case "$ac_dir" in
7080 .) ac_abs_builddir=`pwd`;;
7081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7083 esac;;
7084 esac
7085 case $ac_abs_builddir in
7086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7087 *)
7088 case ${ac_top_builddir}. in
7089 .) ac_abs_top_builddir=$ac_abs_builddir;;
7090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7092 esac;;
7093 esac
7094 case $ac_abs_builddir in
7095 .) ac_abs_srcdir=$ac_srcdir;;
7096 *)
7097 case $ac_srcdir in
7098 .) ac_abs_srcdir=$ac_abs_builddir;;
7099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7101 esac;;
7102 esac
7103 case $ac_abs_builddir in
7104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7105 *)
7106 case $ac_top_srcdir in
7107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7110 esac;;
7111 esac
7112
7113
7114 case $INSTALL in
7115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7116 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7117 esac
7118
7119 if test x"$ac_file" != x-; then
7120 { echo "$as_me:$LINENO: creating $ac_file" >&5
7121 echo "$as_me: creating $ac_file" >&6;}
7122 rm -f "$ac_file"
7123 fi
7124 # Let's still pretend it is `configure' which instantiates (i.e., don't
7125 # use $as_me), people would be surprised to read:
7126 # /* config.h. Generated by config.status. */
7127 if test x"$ac_file" = x-; then
7128 configure_input=
7129 else
7130 configure_input="$ac_file. "
7131 fi
7132 configure_input=$configure_input"Generated from `echo $ac_file_in |
7133 sed 's,.*/,,'` by configure."
7134
7135 # First look for the input files in the build tree, otherwise in the
7136 # src tree.
7137 ac_file_inputs=`IFS=:
7138 for f in $ac_file_in; do
7139 case $f in
7140 -) echo $tmp/stdin ;;
7141 [\\/$]*)
7142 # Absolute (can't be DOS-style, as IFS=:)
7143 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7144 echo "$as_me: error: cannot find input file: $f" >&2;}
7145 { (exit 1); exit 1; }; }
7146 echo "$f";;
7147 *) # Relative
7148 if test -f "$f"; then
7149 # Build tree
7150 echo "$f"
7151 elif test -f "$srcdir/$f"; then
7152 # Source tree
7153 echo "$srcdir/$f"
7154 else
7155 # /dev/null tree
7156 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7157 echo "$as_me: error: cannot find input file: $f" >&2;}
7158 { (exit 1); exit 1; }; }
7159 fi;;
7160 esac
7161 done` || { (exit 1); exit 1; }
7162 _ACEOF
7163 cat >>$CONFIG_STATUS <<_ACEOF
7164 sed "$ac_vpsub
7165 $extrasub
7166 _ACEOF
7167 cat >>$CONFIG_STATUS <<\_ACEOF
7168 :t
7169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7170 s,@configure_input@,$configure_input,;t t
7171 s,@srcdir@,$ac_srcdir,;t t
7172 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7173 s,@top_srcdir@,$ac_top_srcdir,;t t
7174 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7175 s,@builddir@,$ac_builddir,;t t
7176 s,@abs_builddir@,$ac_abs_builddir,;t t
7177 s,@top_builddir@,$ac_top_builddir,;t t
7178 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7179 s,@INSTALL@,$ac_INSTALL,;t t
7180 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7181 rm -f $tmp/stdin
7182 if test x"$ac_file" != x-; then
7183 mv $tmp/out $ac_file
7184 else
7185 cat $tmp/out
7186 rm -f $tmp/out
7187 fi
7188
7189 done
7190 _ACEOF
7191 cat >>$CONFIG_STATUS <<\_ACEOF
7192
7193 #
7194 # CONFIG_HEADER section.
7195 #
7196
7197 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7198 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7199 #
7200 # ac_d sets the value in "#define NAME VALUE" lines.
7201 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7202 ac_dB='[ ].*$,\1#\2'
7203 ac_dC=' '
7204 ac_dD=',;t'
7205 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7206 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7207 ac_uB='$,\1#\2define\3'
7208 ac_uC=' '
7209 ac_uD=',;t'
7210
7211 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7213 case $ac_file in
7214 - | *:- | *:-:* ) # input from stdin
7215 cat >$tmp/stdin
7216 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7218 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7219 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7220 * ) ac_file_in=$ac_file.in ;;
7221 esac
7222
7223 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7224 echo "$as_me: creating $ac_file" >&6;}
7225
7226 # First look for the input files in the build tree, otherwise in the
7227 # src tree.
7228 ac_file_inputs=`IFS=:
7229 for f in $ac_file_in; do
7230 case $f in
7231 -) echo $tmp/stdin ;;
7232 [\\/$]*)
7233 # Absolute (can't be DOS-style, as IFS=:)
7234 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7235 echo "$as_me: error: cannot find input file: $f" >&2;}
7236 { (exit 1); exit 1; }; }
7237 # Do quote $f, to prevent DOS paths from being IFS'd.
7238 echo "$f";;
7239 *) # Relative
7240 if test -f "$f"; then
7241 # Build tree
7242 echo "$f"
7243 elif test -f "$srcdir/$f"; then
7244 # Source tree
7245 echo "$srcdir/$f"
7246 else
7247 # /dev/null tree
7248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7249 echo "$as_me: error: cannot find input file: $f" >&2;}
7250 { (exit 1); exit 1; }; }
7251 fi;;
7252 esac
7253 done` || { (exit 1); exit 1; }
7254 # Remove the trailing spaces.
7255 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7256
7257 _ACEOF
7258
7259 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7260 # `conftest.undefs', that substitutes the proper values into
7261 # config.h.in to produce config.h. The first handles `#define'
7262 # templates, and the second `#undef' templates.
7263 # And first: Protect against being on the right side of a sed subst in
7264 # config.status. Protect against being in an unquoted here document
7265 # in config.status.
7266 rm -f conftest.defines conftest.undefs
7267 # Using a here document instead of a string reduces the quoting nightmare.
7268 # Putting comments in sed scripts is not portable.
7269 #
7270 # `end' is used to avoid that the second main sed command (meant for
7271 # 0-ary CPP macros) applies to n-ary macro definitions.
7272 # See the Autoconf documentation for `clear'.
7273 cat >confdef2sed.sed <<\_ACEOF
7274 s/[\\&,]/\\&/g
7275 s,[\\$`],\\&,g
7276 t clear
7277 : clear
7278 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7279 t end
7280 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7281 : end
7282 _ACEOF
7283 # If some macros were called several times there might be several times
7284 # the same #defines, which is useless. Nevertheless, we may not want to
7285 # sort them, since we want the *last* AC-DEFINE to be honored.
7286 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7287 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7288 rm -f confdef2sed.sed
7289
7290 # This sed command replaces #undef with comments. This is necessary, for
7291 # example, in the case of _POSIX_SOURCE, which is predefined and required
7292 # on some systems where configure will not decide to define it.
7293 cat >>conftest.undefs <<\_ACEOF
7294 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7295 _ACEOF
7296
7297 # Break up conftest.defines because some shells have a limit on the size
7298 # of here documents, and old seds have small limits too (100 cmds).
7299 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7300 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7301 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7302 echo ' :' >>$CONFIG_STATUS
7303 rm -f conftest.tail
7304 while grep . conftest.defines >/dev/null
7305 do
7306 # Write a limited-size here document to $tmp/defines.sed.
7307 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7308 # Speed up: don't consider the non `#define' lines.
7309 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7310 # Work around the forget-to-reset-the-flag bug.
7311 echo 't clr' >>$CONFIG_STATUS
7312 echo ': clr' >>$CONFIG_STATUS
7313 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7314 echo 'CEOF
7315 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7316 rm -f $tmp/in
7317 mv $tmp/out $tmp/in
7318 ' >>$CONFIG_STATUS
7319 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7320 rm -f conftest.defines
7321 mv conftest.tail conftest.defines
7322 done
7323 rm -f conftest.defines
7324 echo ' fi # grep' >>$CONFIG_STATUS
7325 echo >>$CONFIG_STATUS
7326
7327 # Break up conftest.undefs because some shells have a limit on the size
7328 # of here documents, and old seds have small limits too (100 cmds).
7329 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7330 rm -f conftest.tail
7331 while grep . conftest.undefs >/dev/null
7332 do
7333 # Write a limited-size here document to $tmp/undefs.sed.
7334 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7335 # Speed up: don't consider the non `#undef'
7336 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7337 # Work around the forget-to-reset-the-flag bug.
7338 echo 't clr' >>$CONFIG_STATUS
7339 echo ': clr' >>$CONFIG_STATUS
7340 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7341 echo 'CEOF
7342 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7343 rm -f $tmp/in
7344 mv $tmp/out $tmp/in
7345 ' >>$CONFIG_STATUS
7346 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7347 rm -f conftest.undefs
7348 mv conftest.tail conftest.undefs
7349 done
7350 rm -f conftest.undefs
7351
7352 cat >>$CONFIG_STATUS <<\_ACEOF
7353 # Let's still pretend it is `configure' which instantiates (i.e., don't
7354 # use $as_me), people would be surprised to read:
7355 # /* config.h. Generated by config.status. */
7356 if test x"$ac_file" = x-; then
7357 echo "/* Generated by configure. */" >$tmp/config.h
7358 else
7359 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7360 fi
7361 cat $tmp/in >>$tmp/config.h
7362 rm -f $tmp/in
7363 if test x"$ac_file" != x-; then
7364 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7365 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7366 echo "$as_me: $ac_file is unchanged" >&6;}
7367 else
7368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7370 X"$ac_file" : 'X\(//\)[^/]' \| \
7371 X"$ac_file" : 'X\(//\)$' \| \
7372 X"$ac_file" : 'X\(/\)' \| \
7373 . : '\(.\)' 2>/dev/null ||
7374 echo X"$ac_file" |
7375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7377 /^X\(\/\/\)$/{ s//\1/; q; }
7378 /^X\(\/\).*/{ s//\1/; q; }
7379 s/.*/./; q'`
7380 { if $as_mkdir_p; then
7381 mkdir -p "$ac_dir"
7382 else
7383 as_dir="$ac_dir"
7384 as_dirs=
7385 while test ! -d "$as_dir"; do
7386 as_dirs="$as_dir $as_dirs"
7387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7389 X"$as_dir" : 'X\(//\)[^/]' \| \
7390 X"$as_dir" : 'X\(//\)$' \| \
7391 X"$as_dir" : 'X\(/\)' \| \
7392 . : '\(.\)' 2>/dev/null ||
7393 echo X"$as_dir" |
7394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7396 /^X\(\/\/\)$/{ s//\1/; q; }
7397 /^X\(\/\).*/{ s//\1/; q; }
7398 s/.*/./; q'`
7399 done
7400 test ! -n "$as_dirs" || mkdir $as_dirs
7401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7402 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7403 { (exit 1); exit 1; }; }; }
7404
7405 rm -f $ac_file
7406 mv $tmp/config.h $ac_file
7407 fi
7408 else
7409 cat $tmp/config.h
7410 rm -f $tmp/config.h
7411 fi
7412 done
7413 _ACEOF
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7415
7416 #
7417 # CONFIG_LINKS section.
7418 #
7419
7420 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7421 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7422 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7423
7424 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7425 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7426
7427 if test ! -r $srcdir/$ac_source; then
7428 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7429 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7430 { (exit 1); exit 1; }; }
7431 fi
7432 rm -f $ac_dest
7433
7434 # Make relative symlinks.
7435 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7436 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7437 X"$ac_dest" : 'X\(//\)[^/]' \| \
7438 X"$ac_dest" : 'X\(//\)$' \| \
7439 X"$ac_dest" : 'X\(/\)' \| \
7440 . : '\(.\)' 2>/dev/null ||
7441 echo X"$ac_dest" |
7442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7444 /^X\(\/\/\)$/{ s//\1/; q; }
7445 /^X\(\/\).*/{ s//\1/; q; }
7446 s/.*/./; q'`
7447 { if $as_mkdir_p; then
7448 mkdir -p "$ac_dest_dir"
7449 else
7450 as_dir="$ac_dest_dir"
7451 as_dirs=
7452 while test ! -d "$as_dir"; do
7453 as_dirs="$as_dir $as_dirs"
7454 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7456 X"$as_dir" : 'X\(//\)[^/]' \| \
7457 X"$as_dir" : 'X\(//\)$' \| \
7458 X"$as_dir" : 'X\(/\)' \| \
7459 . : '\(.\)' 2>/dev/null ||
7460 echo X"$as_dir" |
7461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7463 /^X\(\/\/\)$/{ s//\1/; q; }
7464 /^X\(\/\).*/{ s//\1/; q; }
7465 s/.*/./; q'`
7466 done
7467 test ! -n "$as_dirs" || mkdir $as_dirs
7468 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7469 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7470 { (exit 1); exit 1; }; }; }
7471
7472 ac_builddir=.
7473
7474 if test "$ac_dest_dir" != .; then
7475 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7476 # A "../" for each directory in $ac_dir_suffix.
7477 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7478 else
7479 ac_dir_suffix= ac_top_builddir=
7480 fi
7481
7482 case $srcdir in
7483 .) # No --srcdir option. We are building in place.
7484 ac_srcdir=.
7485 if test -z "$ac_top_builddir"; then
7486 ac_top_srcdir=.
7487 else
7488 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7489 fi ;;
7490 [\\/]* | ?:[\\/]* ) # Absolute path.
7491 ac_srcdir=$srcdir$ac_dir_suffix;
7492 ac_top_srcdir=$srcdir ;;
7493 *) # Relative path.
7494 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7495 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7496 esac
7497
7498 # Do not use `cd foo && pwd` to compute absolute paths, because
7499 # the directories may not exist.
7500 case `pwd` in
7501 .) ac_abs_builddir="$ac_dest_dir";;
7502 *)
7503 case "$ac_dest_dir" in
7504 .) ac_abs_builddir=`pwd`;;
7505 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
7506 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
7507 esac;;
7508 esac
7509 case $ac_abs_builddir in
7510 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7511 *)
7512 case ${ac_top_builddir}. in
7513 .) ac_abs_top_builddir=$ac_abs_builddir;;
7514 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7515 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7516 esac;;
7517 esac
7518 case $ac_abs_builddir in
7519 .) ac_abs_srcdir=$ac_srcdir;;
7520 *)
7521 case $ac_srcdir in
7522 .) ac_abs_srcdir=$ac_abs_builddir;;
7523 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7524 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7525 esac;;
7526 esac
7527 case $ac_abs_builddir in
7528 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7529 *)
7530 case $ac_top_srcdir in
7531 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7532 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7533 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7534 esac;;
7535 esac
7536
7537
7538 case $srcdir in
7539 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7540 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7541 esac
7542
7543 # Try a symlink, then a hard link, then a copy.
7544 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7545 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
7546 cp -p $srcdir/$ac_source $ac_dest ||
7547 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7548 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7549 { (exit 1); exit 1; }; }
7550 done
7551 _ACEOF
7552 cat >>$CONFIG_STATUS <<\_ACEOF
7553
7554 #
7555 # CONFIG_COMMANDS section.
7556 #
7557 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7558 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7559 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7560 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7561 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7562 X"$ac_dest" : 'X\(//\)[^/]' \| \
7563 X"$ac_dest" : 'X\(//\)$' \| \
7564 X"$ac_dest" : 'X\(/\)' \| \
7565 . : '\(.\)' 2>/dev/null ||
7566 echo X"$ac_dest" |
7567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7569 /^X\(\/\/\)$/{ s//\1/; q; }
7570 /^X\(\/\).*/{ s//\1/; q; }
7571 s/.*/./; q'`
7572 { if $as_mkdir_p; then
7573 mkdir -p "$ac_dir"
7574 else
7575 as_dir="$ac_dir"
7576 as_dirs=
7577 while test ! -d "$as_dir"; do
7578 as_dirs="$as_dir $as_dirs"
7579 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7581 X"$as_dir" : 'X\(//\)[^/]' \| \
7582 X"$as_dir" : 'X\(//\)$' \| \
7583 X"$as_dir" : 'X\(/\)' \| \
7584 . : '\(.\)' 2>/dev/null ||
7585 echo X"$as_dir" |
7586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7588 /^X\(\/\/\)$/{ s//\1/; q; }
7589 /^X\(\/\).*/{ s//\1/; q; }
7590 s/.*/./; q'`
7591 done
7592 test ! -n "$as_dirs" || mkdir $as_dirs
7593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7594 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7595 { (exit 1); exit 1; }; }; }
7596
7597 ac_builddir=.
7598
7599 if test "$ac_dir" != .; then
7600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7601 # A "../" for each directory in $ac_dir_suffix.
7602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7603 else
7604 ac_dir_suffix= ac_top_builddir=
7605 fi
7606
7607 case $srcdir in
7608 .) # No --srcdir option. We are building in place.
7609 ac_srcdir=.
7610 if test -z "$ac_top_builddir"; then
7611 ac_top_srcdir=.
7612 else
7613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7614 fi ;;
7615 [\\/]* | ?:[\\/]* ) # Absolute path.
7616 ac_srcdir=$srcdir$ac_dir_suffix;
7617 ac_top_srcdir=$srcdir ;;
7618 *) # Relative path.
7619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7620 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7621 esac
7622
7623 # Do not use `cd foo && pwd` to compute absolute paths, because
7624 # the directories may not exist.
7625 case `pwd` in
7626 .) ac_abs_builddir="$ac_dir";;
7627 *)
7628 case "$ac_dir" in
7629 .) ac_abs_builddir=`pwd`;;
7630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7631 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7632 esac;;
7633 esac
7634 case $ac_abs_builddir in
7635 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7636 *)
7637 case ${ac_top_builddir}. in
7638 .) ac_abs_top_builddir=$ac_abs_builddir;;
7639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7641 esac;;
7642 esac
7643 case $ac_abs_builddir in
7644 .) ac_abs_srcdir=$ac_srcdir;;
7645 *)
7646 case $ac_srcdir in
7647 .) ac_abs_srcdir=$ac_abs_builddir;;
7648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7650 esac;;
7651 esac
7652 case $ac_abs_builddir in
7653 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7654 *)
7655 case $ac_top_srcdir in
7656 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7659 esac;;
7660 esac
7661
7662
7663 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7664 echo "$as_me: executing $ac_dest commands" >&6;}
7665 case $ac_dest in
7666 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7667 rm -f Makesim1.tmp Makesim2.tmp Makefile
7668 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7669 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7670 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7671 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7672 <Makefile.sim >Makefile
7673 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7674 ;;
7675 stamp-h ) echo > stamp-h ;;
7676 esac
7677 done
7678 _ACEOF
7679
7680 cat >>$CONFIG_STATUS <<\_ACEOF
7681
7682 { (exit 0); exit 0; }
7683 _ACEOF
7684 chmod +x $CONFIG_STATUS
7685 ac_clean_files=$ac_clean_files_save
7686
7687
7688 # configure is writing to config.log, and then calls config.status.
7689 # config.status does its own redirection, appending to config.log.
7690 # Unfortunately, on DOS this fails, as config.log is still kept open
7691 # by configure, so config.status won't be able to write to it; its
7692 # output is simply discarded. So we exec the FD to /dev/null,
7693 # effectively closing config.log, so it can be properly (re)opened and
7694 # appended to by config.status. When coming back to configure, we
7695 # need to make the FD available again.
7696 if test "$no_create" != yes; then
7697 ac_cs_success=:
7698 ac_config_status_args=
7699 test "$silent" = yes &&
7700 ac_config_status_args="$ac_config_status_args --quiet"
7701 exec 5>/dev/null
7702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7703 exec 5>>config.log
7704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7705 # would make configure fail if this is the last instruction.
7706 $ac_cs_success || { (exit 1); exit 1; }
7707 fi
7708
7709