Cleanup INLINE support for simulators using common framework.
[deliverable/binutils-gdb.git] / sim / txvu / configure
CommitLineData
1e1e3b61
IC
1#! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
278bda40 45sim_inline="-DDEFAULT_INLINE=0"
1e1e3b61
IC
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
9a8e61f1
AC
75
76
77
1e1e3b61 78
1e1e3b61
IC
79
80
81# Guess values for system-dependent variables and create Makefiles.
d89fa2d8 82# Generated automatically using autoconf version 2.12.1
1e1e3b61
IC
83# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
84#
85# This configure script is free software; the Free Software Foundation
86# gives unlimited permission to copy, distribute and modify it.
87
88# Defaults:
89ac_help=
90ac_default_prefix=/usr/local
91# Any additions from configure.in:
9a8e61f1
AC
92ac_help="$ac_help
93 --enable-maintainer-mode Enable developer functionality."
1e1e3b61
IC
94ac_help="$ac_help
95 --enable-sim-bswap Use Host specific BSWAP instruction."
96ac_help="$ac_help
97 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
98ac_help="$ac_help
99 --enable-sim-debug=opts Enable debugging flags"
100ac_help="$ac_help
101 --enable-sim-stdio Specify whether to use stdio for console input/output."
102ac_help="$ac_help
103 --enable-sim-trace=opts Enable tracing flags"
104ac_help="$ac_help
105 --enable-sim-profile=opts Enable profiling flags"
106ac_help="$ac_help
107 --enable-sim-inline=inlines Specify which functions should be inlined."
108ac_help="$ac_help
109 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
110ac_help="$ac_help
111 --enable-sim-hostendian=end Specify host byte endian orientation."
112ac_help="$ac_help
113 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
114ac_help="$ac_help
115 --enable-sim-endian=endian Specify target byte endian orientation."
116ac_help="$ac_help
9a8e61f1 117 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
1e1e3b61
IC
118ac_help="$ac_help
119 --enable-sim-float Specify that the target processor has floating point hardware."
120ac_help="$ac_help
121 --enable-sim-igen=opts Enable IGEN simulator"
122
123# Initialize some variables set by options.
124# The variables have the same names as the options, with
125# dashes changed to underlines.
126build=NONE
127cache_file=./config.cache
128exec_prefix=NONE
129host=NONE
130no_create=
131nonopt=NONE
132no_recursion=
133prefix=NONE
134program_prefix=NONE
135program_suffix=NONE
136program_transform_name=s,x,x,
137silent=
138site=
139srcdir=
140target=NONE
141verbose=
142x_includes=NONE
143x_libraries=NONE
144bindir='${exec_prefix}/bin'
145sbindir='${exec_prefix}/sbin'
146libexecdir='${exec_prefix}/libexec'
147datadir='${prefix}/share'
148sysconfdir='${prefix}/etc'
149sharedstatedir='${prefix}/com'
150localstatedir='${prefix}/var'
151libdir='${exec_prefix}/lib'
152includedir='${prefix}/include'
153oldincludedir='/usr/include'
154infodir='${prefix}/info'
155mandir='${prefix}/man'
156
157# Initialize some other variables.
158subdirs=
159MFLAGS= MAKEFLAGS=
d89fa2d8 160SHELL=${CONFIG_SHELL-/bin/sh}
1e1e3b61
IC
161# Maximum number of lines to put in a shell here document.
162ac_max_here_lines=12
163
164ac_prev=
165for ac_option
166do
167
168 # If the previous option needs an argument, assign it.
169 if test -n "$ac_prev"; then
170 eval "$ac_prev=\$ac_option"
171 ac_prev=
172 continue
173 fi
174
175 case "$ac_option" in
176 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
177 *) ac_optarg= ;;
178 esac
179
180 # Accept the important Cygnus configure options, so we can diagnose typos.
181
182 case "$ac_option" in
183
184 -bindir | --bindir | --bindi | --bind | --bin | --bi)
185 ac_prev=bindir ;;
186 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
187 bindir="$ac_optarg" ;;
188
189 -build | --build | --buil | --bui | --bu)
190 ac_prev=build ;;
191 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
192 build="$ac_optarg" ;;
193
194 -cache-file | --cache-file | --cache-fil | --cache-fi \
195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
196 ac_prev=cache_file ;;
197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
199 cache_file="$ac_optarg" ;;
200
201 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
202 ac_prev=datadir ;;
203 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
204 | --da=*)
205 datadir="$ac_optarg" ;;
206
207 -disable-* | --disable-*)
208 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 fi
213 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}=no" ;;
215
216 -enable-* | --enable-*)
217 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
218 # Reject names that are not valid shell variable names.
219 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 fi
222 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
223 case "$ac_option" in
224 *=*) ;;
225 *) ac_optarg=yes ;;
226 esac
227 eval "enable_${ac_feature}='$ac_optarg'" ;;
228
229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
231 | --exec | --exe | --ex)
232 ac_prev=exec_prefix ;;
233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
235 | --exec=* | --exe=* | --ex=*)
236 exec_prefix="$ac_optarg" ;;
237
238 -gas | --gas | --ga | --g)
239 # Obsolete; use --with-gas.
240 with_gas=yes ;;
241
242 -help | --help | --hel | --he)
243 # Omit some internal or obsolete options to make the list less imposing.
244 # This message is too long to be a string in the A/UX 3.1 sh.
245 cat << EOF
246Usage: configure [options] [host]
247Options: [defaults in brackets after descriptions]
248Configuration:
249 --cache-file=FILE cache test results in FILE
250 --help print this message
251 --no-create do not create output files
252 --quiet, --silent do not print \`checking...' messages
253 --version print the version of autoconf that created configure
254Directory and file names:
255 --prefix=PREFIX install architecture-independent files in PREFIX
256 [$ac_default_prefix]
257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
258 [same as prefix]
259 --bindir=DIR user executables in DIR [EPREFIX/bin]
260 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
261 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
262 --datadir=DIR read-only architecture-independent data in DIR
263 [PREFIX/share]
264 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
265 --sharedstatedir=DIR modifiable architecture-independent data in DIR
266 [PREFIX/com]
267 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
268 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
269 --includedir=DIR C header files in DIR [PREFIX/include]
270 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
271 --infodir=DIR info documentation in DIR [PREFIX/info]
272 --mandir=DIR man documentation in DIR [PREFIX/man]
273 --srcdir=DIR find the sources in DIR [configure dir or ..]
274 --program-prefix=PREFIX prepend PREFIX to installed program names
275 --program-suffix=SUFFIX append SUFFIX to installed program names
276 --program-transform-name=PROGRAM
277 run sed PROGRAM on installed program names
278EOF
279 cat << EOF
280Host type:
281 --build=BUILD configure for building on BUILD [BUILD=HOST]
282 --host=HOST configure for HOST [guessed]
283 --target=TARGET configure for TARGET [TARGET=HOST]
284Features and packages:
285 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
286 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
287 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
288 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
289 --x-includes=DIR X include files are in DIR
290 --x-libraries=DIR X library files are in DIR
291EOF
292 if test -n "$ac_help"; then
293 echo "--enable and --with options recognized:$ac_help"
294 fi
295 exit 0 ;;
296
297 -host | --host | --hos | --ho)
298 ac_prev=host ;;
299 -host=* | --host=* | --hos=* | --ho=*)
300 host="$ac_optarg" ;;
301
302 -includedir | --includedir | --includedi | --included | --include \
303 | --includ | --inclu | --incl | --inc)
304 ac_prev=includedir ;;
305 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
306 | --includ=* | --inclu=* | --incl=* | --inc=*)
307 includedir="$ac_optarg" ;;
308
309 -infodir | --infodir | --infodi | --infod | --info | --inf)
310 ac_prev=infodir ;;
311 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
312 infodir="$ac_optarg" ;;
313
314 -libdir | --libdir | --libdi | --libd)
315 ac_prev=libdir ;;
316 -libdir=* | --libdir=* | --libdi=* | --libd=*)
317 libdir="$ac_optarg" ;;
318
319 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
320 | --libexe | --libex | --libe)
321 ac_prev=libexecdir ;;
322 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
323 | --libexe=* | --libex=* | --libe=*)
324 libexecdir="$ac_optarg" ;;
325
326 -localstatedir | --localstatedir | --localstatedi | --localstated \
327 | --localstate | --localstat | --localsta | --localst \
328 | --locals | --local | --loca | --loc | --lo)
329 ac_prev=localstatedir ;;
330 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
331 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
332 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
333 localstatedir="$ac_optarg" ;;
334
335 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
336 ac_prev=mandir ;;
337 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
338 mandir="$ac_optarg" ;;
339
340 -nfp | --nfp | --nf)
341 # Obsolete; use --without-fp.
342 with_fp=no ;;
343
344 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
345 | --no-cr | --no-c)
346 no_create=yes ;;
347
348 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
349 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 no_recursion=yes ;;
351
352 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
353 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
354 | --oldin | --oldi | --old | --ol | --o)
355 ac_prev=oldincludedir ;;
356 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
357 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
358 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
359 oldincludedir="$ac_optarg" ;;
360
361 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
362 ac_prev=prefix ;;
363 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 prefix="$ac_optarg" ;;
365
366 -program-prefix | --program-prefix | --program-prefi | --program-pref \
367 | --program-pre | --program-pr | --program-p)
368 ac_prev=program_prefix ;;
369 -program-prefix=* | --program-prefix=* | --program-prefi=* \
370 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
371 program_prefix="$ac_optarg" ;;
372
373 -program-suffix | --program-suffix | --program-suffi | --program-suff \
374 | --program-suf | --program-su | --program-s)
375 ac_prev=program_suffix ;;
376 -program-suffix=* | --program-suffix=* | --program-suffi=* \
377 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
378 program_suffix="$ac_optarg" ;;
379
380 -program-transform-name | --program-transform-name \
381 | --program-transform-nam | --program-transform-na \
382 | --program-transform-n | --program-transform- \
383 | --program-transform | --program-transfor \
384 | --program-transfo | --program-transf \
385 | --program-trans | --program-tran \
386 | --progr-tra | --program-tr | --program-t)
387 ac_prev=program_transform_name ;;
388 -program-transform-name=* | --program-transform-name=* \
389 | --program-transform-nam=* | --program-transform-na=* \
390 | --program-transform-n=* | --program-transform-=* \
391 | --program-transform=* | --program-transfor=* \
392 | --program-transfo=* | --program-transf=* \
393 | --program-trans=* | --program-tran=* \
394 | --progr-tra=* | --program-tr=* | --program-t=*)
395 program_transform_name="$ac_optarg" ;;
396
397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
398 | -silent | --silent | --silen | --sile | --sil)
399 silent=yes ;;
400
401 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
402 ac_prev=sbindir ;;
403 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
404 | --sbi=* | --sb=*)
405 sbindir="$ac_optarg" ;;
406
407 -sharedstatedir | --sharedstatedir | --sharedstatedi \
408 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
409 | --sharedst | --shareds | --shared | --share | --shar \
410 | --sha | --sh)
411 ac_prev=sharedstatedir ;;
412 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
413 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
414 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
415 | --sha=* | --sh=*)
416 sharedstatedir="$ac_optarg" ;;
417
418 -site | --site | --sit)
419 ac_prev=site ;;
420 -site=* | --site=* | --sit=*)
421 site="$ac_optarg" ;;
422
423 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
424 ac_prev=srcdir ;;
425 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 srcdir="$ac_optarg" ;;
427
428 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
429 | --syscon | --sysco | --sysc | --sys | --sy)
430 ac_prev=sysconfdir ;;
431 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
432 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
433 sysconfdir="$ac_optarg" ;;
434
435 -target | --target | --targe | --targ | --tar | --ta | --t)
436 ac_prev=target ;;
437 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
438 target="$ac_optarg" ;;
439
440 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 verbose=yes ;;
442
443 -version | --version | --versio | --versi | --vers)
d89fa2d8 444 echo "configure generated by autoconf version 2.12.1"
1e1e3b61
IC
445 exit 0 ;;
446
447 -with-* | --with-*)
448 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 fi
453 ac_package=`echo $ac_package| sed 's/-/_/g'`
454 case "$ac_option" in
455 *=*) ;;
456 *) ac_optarg=yes ;;
457 esac
458 eval "with_${ac_package}='$ac_optarg'" ;;
459
460 -without-* | --without-*)
461 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
462 # Reject names that are not valid shell variable names.
463 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
464 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 fi
466 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 eval "with_${ac_package}=no" ;;
468
469 --x)
470 # Obsolete; use --with-x.
471 with_x=yes ;;
472
473 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
474 | --x-incl | --x-inc | --x-in | --x-i)
475 ac_prev=x_includes ;;
476 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
477 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
478 x_includes="$ac_optarg" ;;
479
480 -x-libraries | --x-libraries | --x-librarie | --x-librari \
481 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
482 ac_prev=x_libraries ;;
483 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
484 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
485 x_libraries="$ac_optarg" ;;
486
487 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
488 ;;
489
490 *)
491 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
492 echo "configure: warning: $ac_option: invalid host type" 1>&2
493 fi
494 if test "x$nonopt" != xNONE; then
495 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
496 fi
497 nonopt="$ac_option"
498 ;;
499
500 esac
501done
502
503if test -n "$ac_prev"; then
504 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
505fi
506
507trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
508
509# File descriptor usage:
510# 0 standard input
511# 1 file creation
512# 2 errors and warnings
513# 3 some systems may open it to /dev/tty
514# 4 used on the Kubota Titan
515# 6 checking for... messages and results
516# 5 compiler messages saved in config.log
517if test "$silent" = yes; then
518 exec 6>/dev/null
519else
520 exec 6>&1
521fi
522exec 5>./config.log
523
524echo "\
525This file contains any messages produced by compilers while
526running configure, to aid debugging if configure makes a mistake.
527" 1>&5
528
529# Strip out --no-create and --no-recursion so they do not pile up.
530# Also quote any args containing shell metacharacters.
531ac_configure_args=
532for ac_arg
533do
534 case "$ac_arg" in
535 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
536 | --no-cr | --no-c) ;;
537 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
539 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
540 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
541 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
542 esac
543done
544
545# NLS nuisances.
546# Only set these to C if already set. These must not be set unconditionally
547# because not all systems understand e.g. LANG=C (notably SCO).
548# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
549# Non-C LC_CTYPE values break the ctype check.
550if test "${LANG+set}" = set; then LANG=C; export LANG; fi
551if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
552if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
553if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554
555# confdefs.h avoids OS command line length limits that DEFS can exceed.
556rm -rf conftest* confdefs.h
557# AIX cpp loses on an empty file, so make sure it contains at least a newline.
558echo > confdefs.h
559
560# A filename unique to this package, relative to the directory that
561# configure is in, which we can look for to find out if srcdir is correct.
562ac_unique_file=Makefile.in
563
564# Find the source files, if location was not specified.
565if test -z "$srcdir"; then
566 ac_srcdir_defaulted=yes
567 # Try the directory containing this script, then its parent.
568 ac_prog=$0
569 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
570 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
571 srcdir=$ac_confdir
572 if test ! -r $srcdir/$ac_unique_file; then
573 srcdir=..
574 fi
575else
576 ac_srcdir_defaulted=no
577fi
578if test ! -r $srcdir/$ac_unique_file; then
579 if test "$ac_srcdir_defaulted" = yes; then
580 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
581 else
582 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
583 fi
584fi
585srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
586
587# Prefer explicitly selected file to automatically selected ones.
588if test -z "$CONFIG_SITE"; then
589 if test "x$prefix" != xNONE; then
590 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
591 else
592 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
593 fi
594fi
595for ac_site_file in $CONFIG_SITE; do
596 if test -r "$ac_site_file"; then
597 echo "loading site script $ac_site_file"
598 . "$ac_site_file"
599 fi
600done
601
602if test -r "$cache_file"; then
603 echo "loading cache $cache_file"
604 . $cache_file
605else
606 echo "creating cache $cache_file"
607 > $cache_file
608fi
609
610ac_ext=c
611# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
612ac_cpp='$CPP $CPPFLAGS'
613ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
614ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
615cross_compiling=$ac_cv_prog_cc_cross
616
617if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
618 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
619 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
620 ac_n= ac_c='
621' ac_t=' '
622 else
623 ac_n=-n ac_c= ac_t=
624 fi
625else
626 ac_n= ac_c='\c' ac_t=
627fi
628
629
630
631echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
278bda40 632echo "configure:633: checking how to run the C preprocessor" >&5
1e1e3b61
IC
633# On Suns, sometimes $CPP names a directory.
634if test -n "$CPP" && test -d "$CPP"; then
635 CPP=
636fi
637if test -z "$CPP"; then
638if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
640else
641 # This must be in double quotes, not single quotes, because CPP may get
642 # substituted into the Makefile and "${CC-cc}" will confuse make.
643 CPP="${CC-cc} -E"
644 # On the NeXT, cc -E runs the code through the compiler's parser,
645 # not just through cpp.
646 cat > conftest.$ac_ext <<EOF
278bda40 647#line 648 "configure"
1e1e3b61
IC
648#include "confdefs.h"
649#include <assert.h>
650Syntax Error
651EOF
652ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278bda40 653{ (eval echo configure:654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1e1e3b61
IC
654ac_err=`grep -v '^ *+' conftest.out`
655if test -z "$ac_err"; then
656 :
657else
658 echo "$ac_err" >&5
659 echo "configure: failed program was:" >&5
660 cat conftest.$ac_ext >&5
661 rm -rf conftest*
662 CPP="${CC-cc} -E -traditional-cpp"
663 cat > conftest.$ac_ext <<EOF
278bda40 664#line 665 "configure"
1e1e3b61
IC
665#include "confdefs.h"
666#include <assert.h>
667Syntax Error
668EOF
669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278bda40 670{ (eval echo configure:671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1e1e3b61
IC
671ac_err=`grep -v '^ *+' conftest.out`
672if test -z "$ac_err"; then
673 :
674else
675 echo "$ac_err" >&5
676 echo "configure: failed program was:" >&5
677 cat conftest.$ac_ext >&5
678 rm -rf conftest*
679 CPP=/lib/cpp
680fi
681rm -f conftest*
682fi
683rm -f conftest*
684 ac_cv_prog_CPP="$CPP"
685fi
686 CPP="$ac_cv_prog_CPP"
687else
688 ac_cv_prog_CPP="$CPP"
689fi
690echo "$ac_t""$CPP" 1>&6
691
692
693# autoconf.info says this should be called right after AC_INIT.
694
695
696ac_aux_dir=
697for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
698 if test -f $ac_dir/install-sh; then
699 ac_aux_dir=$ac_dir
700 ac_install_sh="$ac_aux_dir/install-sh -c"
701 break
702 elif test -f $ac_dir/install.sh; then
703 ac_aux_dir=$ac_dir
704 ac_install_sh="$ac_aux_dir/install.sh -c"
705 break
706 fi
707done
708if test -z "$ac_aux_dir"; then
709 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
710fi
711ac_config_guess=$ac_aux_dir/config.guess
712ac_config_sub=$ac_aux_dir/config.sub
713ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
714
715
716# Do some error checking and defaulting for the host and target type.
717# The inputs are:
718# configure --host=HOST --target=TARGET --build=BUILD NONOPT
719#
720# The rules are:
721# 1. You are not allowed to specify --host, --target, and nonopt at the
722# same time.
723# 2. Host defaults to nonopt.
724# 3. If nonopt is not specified, then host defaults to the current host,
725# as determined by config.guess.
726# 4. Target and build default to nonopt.
727# 5. If nonopt is not specified, then target and build default to host.
728
729# The aliases save the names the user supplied, while $host etc.
730# will get canonicalized.
731case $host---$target---$nonopt in
732NONE---*---* | *---NONE---* | *---*---NONE) ;;
733*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
734esac
735
736
737# Make sure we can run config.sub.
d89fa2d8 738if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1e1e3b61
IC
739else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
740fi
741
742echo $ac_n "checking host system type""... $ac_c" 1>&6
278bda40 743echo "configure:744: checking host system type" >&5
1e1e3b61
IC
744
745host_alias=$host
746case "$host_alias" in
747NONE)
748 case $nonopt in
749 NONE)
d89fa2d8 750 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1e1e3b61
IC
751 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
752 fi ;;
753 *) host_alias=$nonopt ;;
754 esac ;;
755esac
756
d89fa2d8 757host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1e1e3b61
IC
758host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
759host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
760host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
761echo "$ac_t""$host" 1>&6
762
763echo $ac_n "checking target system type""... $ac_c" 1>&6
278bda40 764echo "configure:765: checking target system type" >&5
1e1e3b61
IC
765
766target_alias=$target
767case "$target_alias" in
768NONE)
769 case $nonopt in
770 NONE) target_alias=$host_alias ;;
771 *) target_alias=$nonopt ;;
772 esac ;;
773esac
774
d89fa2d8 775target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1e1e3b61
IC
776target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
777target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
778target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
779echo "$ac_t""$target" 1>&6
780
781echo $ac_n "checking build system type""... $ac_c" 1>&6
278bda40 782echo "configure:783: checking build system type" >&5
1e1e3b61
IC
783
784build_alias=$build
785case "$build_alias" in
786NONE)
787 case $nonopt in
788 NONE) build_alias=$host_alias ;;
789 *) build_alias=$nonopt ;;
790 esac ;;
791esac
792
d89fa2d8 793build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1e1e3b61
IC
794build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
795build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
796build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
797echo "$ac_t""$build" 1>&6
798
799test "$host_alias" != "$target_alias" &&
800 test "$program_prefix$program_suffix$program_transform_name" = \
801 NONENONEs,x,x, &&
802 program_prefix=${target_alias}-
803
804if test "$program_transform_name" = s,x,x,; then
805 program_transform_name=
806else
807 # Double any \ or $. echo might interpret backslashes.
808 cat <<\EOF_SED > conftestsed
809s,\\,\\\\,g; s,\$,$$,g
810EOF_SED
811 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
812 rm -f conftestsed
813fi
814test "$program_prefix" != NONE &&
815 program_transform_name="s,^,${program_prefix},; $program_transform_name"
816# Use a double $ so make ignores it.
817test "$program_suffix" != NONE &&
818 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
819
820# sed with no file args requires a program.
821test "$program_transform_name" = "" && program_transform_name="s,x,x,"
822
823# Extract the first word of "gcc", so it can be a program name with args.
824set dummy gcc; ac_word=$2
825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
278bda40 826echo "configure:827: checking for $ac_word" >&5
1e1e3b61
IC
827if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
829else
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
832else
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
834 for ac_dir in $PATH; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
837 ac_cv_prog_CC="gcc"
838 break
839 fi
840 done
841 IFS="$ac_save_ifs"
842fi
843fi
844CC="$ac_cv_prog_CC"
845if test -n "$CC"; then
846 echo "$ac_t""$CC" 1>&6
847else
848 echo "$ac_t""no" 1>&6
849fi
850
851if test -z "$CC"; then
852 # Extract the first word of "cc", so it can be a program name with args.
853set dummy cc; ac_word=$2
854echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
278bda40 855echo "configure:856: checking for $ac_word" >&5
1e1e3b61
IC
856if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858else
859 if test -n "$CC"; then
860 ac_cv_prog_CC="$CC" # Let the user override the test.
861else
862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
863 ac_prog_rejected=no
864 for ac_dir in $PATH; do
865 test -z "$ac_dir" && ac_dir=.
866 if test -f $ac_dir/$ac_word; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes
869 continue
870 fi
871 ac_cv_prog_CC="cc"
872 break
873 fi
874 done
875 IFS="$ac_save_ifs"
876if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC
879 shift
880 if test $# -gt 0; then
881 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen
883 # first if we set CC to just the basename; use the full file name.
884 shift
885 set dummy "$ac_dir/$ac_word" "$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi
889fi
890fi
891fi
892CC="$ac_cv_prog_CC"
893if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
895else
896 echo "$ac_t""no" 1>&6
897fi
898
899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
900fi
901
902echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
278bda40 903echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e1e3b61
IC
904
905ac_ext=c
906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
907ac_cpp='$CPP $CPPFLAGS'
908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910cross_compiling=$ac_cv_prog_cc_cross
911
912cat > conftest.$ac_ext <<EOF
278bda40 913#line 914 "configure"
1e1e3b61
IC
914#include "confdefs.h"
915main(){return(0);}
916EOF
278bda40 917if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1e1e3b61
IC
918 ac_cv_prog_cc_works=yes
919 # If we can't run a trivial program, we are probably using a cross compiler.
920 if (./conftest; exit) 2>/dev/null; then
921 ac_cv_prog_cc_cross=no
922 else
923 ac_cv_prog_cc_cross=yes
924 fi
925else
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 ac_cv_prog_cc_works=no
929fi
930rm -fr conftest*
931
932echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
933if test $ac_cv_prog_cc_works = no; then
934 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935fi
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
278bda40 937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1e1e3b61
IC
938echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
939cross_compiling=$ac_cv_prog_cc_cross
940
941echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
278bda40 942echo "configure:943: checking whether we are using GNU C" >&5
1e1e3b61
IC
943if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
945else
946 cat > conftest.c <<EOF
947#ifdef __GNUC__
948 yes;
949#endif
950EOF
278bda40 951if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1e1e3b61
IC
952 ac_cv_prog_gcc=yes
953else
954 ac_cv_prog_gcc=no
955fi
956fi
957
958echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959
960if test $ac_cv_prog_gcc = yes; then
961 GCC=yes
962 ac_test_CFLAGS="${CFLAGS+set}"
963 ac_save_CFLAGS="$CFLAGS"
964 CFLAGS=
965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
278bda40 966echo "configure:967: checking whether ${CC-cc} accepts -g" >&5
1e1e3b61
IC
967if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969else
970 echo 'void f(){}' > conftest.c
971if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
972 ac_cv_prog_cc_g=yes
973else
974 ac_cv_prog_cc_g=no
975fi
976rm -f conftest*
977
978fi
979
980echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
981 if test "$ac_test_CFLAGS" = set; then
982 CFLAGS="$ac_save_CFLAGS"
983 elif test $ac_cv_prog_cc_g = yes; then
984 CFLAGS="-g -O2"
985 else
986 CFLAGS="-O2"
987 fi
988else
989 GCC=
990 test "${CFLAGS+set}" = set || CFLAGS="-g"
991fi
992
993# Find a good install program. We prefer a C program (faster),
994# so one script is as good as another. But avoid the broken or
995# incompatible versions:
996# SysV /etc/install, /usr/sbin/install
997# SunOS /usr/etc/install
998# IRIX /sbin/install
999# AIX /bin/install
d89fa2d8 1000# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1e1e3b61
IC
1001# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1002# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1003# ./install, which can be erroneously created by make from ./install.sh.
1004echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
278bda40 1005echo "configure:1006: checking for a BSD compatible install" >&5
1e1e3b61
IC
1006if test -z "$INSTALL"; then
1007if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1009else
1010 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1011 for ac_dir in $PATH; do
1012 # Account for people who put trailing slashes in PATH elements.
1013 case "$ac_dir/" in
1014 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1015 *)
1016 # OSF1 and SCO ODT 3.0 have their own names for install.
d89fa2d8
AC
1017 # Don't use installbsd from OSF since it installs stuff as root
1018 # by default.
1019 for ac_prog in ginstall scoinst install; do
1e1e3b61
IC
1020 if test -f $ac_dir/$ac_prog; then
1021 if test $ac_prog = install &&
1022 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1023 # AIX install. It has an incompatible calling convention.
1024 :
1025 else
1026 ac_cv_path_install="$ac_dir/$ac_prog -c"
1027 break 2
1028 fi
1029 fi
1030 done
1031 ;;
1032 esac
1033 done
1034 IFS="$ac_save_IFS"
1035
1036fi
1037 if test "${ac_cv_path_install+set}" = set; then
1038 INSTALL="$ac_cv_path_install"
1039 else
1040 # As a last resort, use the slow shell script. We don't cache a
1041 # path for INSTALL within a source directory, because that will
1042 # break other packages using the cache if that directory is
1043 # removed, or if the path is relative.
1044 INSTALL="$ac_install_sh"
1045 fi
1046fi
1047echo "$ac_t""$INSTALL" 1>&6
1048
1049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1050# It thinks the first close brace ends the variable substitution.
1051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1052
1053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1054
1055
1056# Put a plausible default for CC_FOR_BUILD in Makefile.
1057if test "x$cross_compiling" = "xno"; then
1058 CC_FOR_BUILD='$(CC)'
1059else
1060 CC_FOR_BUILD=gcc
1061fi
1062
1063
1064
1065
1066AR=${AR-ar}
1067
1068# Extract the first word of "ranlib", so it can be a program name with args.
1069set dummy ranlib; ac_word=$2
1070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
278bda40 1071echo "configure:1072: checking for $ac_word" >&5
1e1e3b61
IC
1072if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074else
1075 if test -n "$RANLIB"; then
1076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1077else
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1079 for ac_dir in $PATH; do
1080 test -z "$ac_dir" && ac_dir=.
1081 if test -f $ac_dir/$ac_word; then
1082 ac_cv_prog_RANLIB="ranlib"
1083 break
1084 fi
1085 done
1086 IFS="$ac_save_ifs"
1087 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1088fi
1089fi
1090RANLIB="$ac_cv_prog_RANLIB"
1091if test -n "$RANLIB"; then
1092 echo "$ac_t""$RANLIB" 1>&6
1093else
1094 echo "$ac_t""no" 1>&6
1095fi
1096
1097
1098# Check for common headers.
1099# FIXME: Seems to me this can cause problems for i386-windows hosts.
1100# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
9a8e61f1 1101for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
1e1e3b61
IC
1102do
1103ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1104echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
278bda40 1105echo "configure:1106: checking for $ac_hdr" >&5
1e1e3b61
IC
1106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1108else
1109 cat > conftest.$ac_ext <<EOF
278bda40 1110#line 1111 "configure"
1e1e3b61
IC
1111#include "confdefs.h"
1112#include <$ac_hdr>
1113EOF
1114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278bda40 1115{ (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9a8e61f1
AC
1116ac_err=`grep -v '^ *+' conftest.out`
1117if test -z "$ac_err"; then
1118 rm -rf conftest*
1119 eval "ac_cv_header_$ac_safe=yes"
1120else
1121 echo "$ac_err" >&5
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1124 rm -rf conftest*
1125 eval "ac_cv_header_$ac_safe=no"
1126fi
1127rm -f conftest*
1128fi
1129if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1132 cat >> confdefs.h <<EOF
1133#define $ac_tr_hdr 1
1134EOF
1135
1136else
1137 echo "$ac_t""no" 1>&6
1138fi
1139done
1140
1141for ac_hdr in sys/time.h sys/resource.h
1142do
1143ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1144echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
278bda40 1145echo "configure:1146: checking for $ac_hdr" >&5
9a8e61f1
AC
1146if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148else
1149 cat > conftest.$ac_ext <<EOF
278bda40 1150#line 1151 "configure"
9a8e61f1
AC
1151#include "confdefs.h"
1152#include <$ac_hdr>
1153EOF
1154ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278bda40 1155{ (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9a8e61f1
AC
1156ac_err=`grep -v '^ *+' conftest.out`
1157if test -z "$ac_err"; then
1158 rm -rf conftest*
1159 eval "ac_cv_header_$ac_safe=yes"
1160else
1161 echo "$ac_err" >&5
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1164 rm -rf conftest*
1165 eval "ac_cv_header_$ac_safe=no"
1166fi
1167rm -f conftest*
1168fi
1169if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1170 echo "$ac_t""yes" 1>&6
1171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1172 cat >> confdefs.h <<EOF
1173#define $ac_tr_hdr 1
1174EOF
1175
1176else
1177 echo "$ac_t""no" 1>&6
1178fi
1179done
1180
d8f53049 1181for ac_hdr in fcntl.h fpu_control.h
9a8e61f1
AC
1182do
1183ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1184echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
278bda40 1185echo "configure:1186: checking for $ac_hdr" >&5
9a8e61f1
AC
1186if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188else
1189 cat > conftest.$ac_ext <<EOF
278bda40 1190#line 1191 "configure"
9a8e61f1
AC
1191#include "confdefs.h"
1192#include <$ac_hdr>
1193EOF
1194ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278bda40 1195{ (eval echo configure:1196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1e1e3b61
IC
1196ac_err=`grep -v '^ *+' conftest.out`
1197if test -z "$ac_err"; then
1198 rm -rf conftest*
1199 eval "ac_cv_header_$ac_safe=yes"
1200else
1201 echo "$ac_err" >&5
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_header_$ac_safe=no"
1206fi
1207rm -f conftest*
1208fi
1209if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1212 cat >> confdefs.h <<EOF
1213#define $ac_tr_hdr 1
1214EOF
1215
1216else
1217 echo "$ac_t""no" 1>&6
1218fi
1219done
1220
d8f53049 1221for ac_func in getrusage time sigaction __setfpucw
1e1e3b61
IC
1222do
1223echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
278bda40 1224echo "configure:1225: checking for $ac_func" >&5
1e1e3b61
IC
1225if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227else
1228 cat > conftest.$ac_ext <<EOF
278bda40 1229#line 1230 "configure"
1e1e3b61
IC
1230#include "confdefs.h"
1231/* System header to define __stub macros and hopefully few prototypes,
1232 which can conflict with char $ac_func(); below. */
1233#include <assert.h>
1234/* Override any gcc2 internal prototype to avoid an error. */
1235/* We use char because int might match the return type of a gcc2
1236 builtin and then its argument prototype would still apply. */
1237char $ac_func();
1238
1239int main() {
1240
1241/* The GNU C library defines this for functions which it implements
1242 to always fail with ENOSYS. Some functions are actually named
1243 something starting with __ and the normal name is an alias. */
1244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1245choke me
1246#else
1247$ac_func();
1248#endif
1249
1250; return 0; }
1251EOF
278bda40 1252if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1e1e3b61
IC
1253 rm -rf conftest*
1254 eval "ac_cv_func_$ac_func=yes"
1255else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 rm -rf conftest*
1259 eval "ac_cv_func_$ac_func=no"
1260fi
1261rm -f conftest*
1262fi
1263
1264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1267 cat >> confdefs.h <<EOF
1268#define $ac_tr_func 1
1269EOF
1270
1271else
1272 echo "$ac_t""no" 1>&6
1273fi
1274done
1275
1276
1277. ${srcdir}/../../bfd/configure.host
1278
1279
1280
9a8e61f1
AC
1281USE_MAINTAINER_MODE=no
1282# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1283if test "${enable_maintainer_mode+set}" = set; then
1284 enableval="$enable_maintainer_mode"
1285 case "${enableval}" in
1286 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
1287 no) MAINT="#" ;;
1288 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
1289esac
1290if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
1291 echo "Setting maintainer mode" 6>&1
1292fi
1293else
1294 MAINT="#"
1295fi
1296
1297
1298
1e1e3b61
IC
1299# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1300if test "${enable_sim_bswap+set}" = set; then
1301 enableval="$enable_sim_bswap"
1302 case "${enableval}" in
1303 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1304 no) sim_bswap="-DWITH_BSWAP=0";;
1305 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
1306esac
1307if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
1308 echo "Setting bswap flags = $sim_bswap" 6>&1
1309fi
1310else
1311 sim_bswap=""
1312fi
1313
1314
1315
1316# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1317if test "${enable_sim_cflags+set}" = set; then
1318 enableval="$enable_sim_cflags"
1319 case "${enableval}" in
278bda40 1320 yes) sim_cflags="-O2 -fomit-frame-pointer";;
1e1e3b61
IC
1321 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
1322 no) sim_cflags="";;
1323 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1324esac
1325if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
1326 echo "Setting sim cflags = $sim_cflags" 6>&1
1327fi
1328else
1329 sim_cflags=""
1330fi
1331
1332
1333
1334# Check whether --enable-sim-debug or --disable-sim-debug was given.
1335if test "${enable_sim_debug+set}" = set; then
1336 enableval="$enable_sim_debug"
1337 case "${enableval}" in
1338 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
1339 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
1340 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1341esac
1342if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
1343 echo "Setting sim debug = $sim_debug" 6>&1
1344fi
1345else
1346 sim_debug=""
1347fi
1348
1349
1350
1351# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1352if test "${enable_sim_stdio+set}" = set; then
1353 enableval="$enable_sim_stdio"
1354 case "${enableval}" in
1355 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
1356 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
1357 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
1358esac
1359if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
1360 echo "Setting stdio flags = $sim_stdio" 6>&1
1361fi
1362else
1363 sim_stdio=""
1364fi
1365
1366
1367
1368# Check whether --enable-sim-trace or --disable-sim-trace was given.
1369if test "${enable_sim_trace+set}" = set; then
1370 enableval="$enable_sim_trace"
1371 case "${enableval}" in
1372 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
1373 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
1374 [-0-9]*)
1375 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1376 [a-z]*)
1377 sim_trace=""
1378 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1379 if test x"$sim_trace" = x; then
1380 sim_trace="-DWITH_TRACE='(TRACE_$x"
1381 else
1382 sim_trace="${sim_trace}|TRACE_$x"
1383 fi
1384 done
1385 sim_trace="$sim_trace)'" ;;
1386esac
1387if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
1388 echo "Setting sim trace = $sim_trace" 6>&1
1389fi
1390else
1391 sim_trace=""
1392fi
1393
1394
1395
1396# Check whether --enable-sim-profile or --disable-sim-profile was given.
1397if test "${enable_sim_profile+set}" = set; then
1398 enableval="$enable_sim_profile"
1399 case "${enableval}" in
1400 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
1401 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
1402 [-0-9]*)
1403 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1404 [a-z]*)
1405 sim_profile=""
1406 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1407 if test x"$sim_profile" = x; then
1408 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
1409 else
1410 sim_profile="${sim_profile}|PROFILE_$x"
1411 fi
1412 done
1413 sim_profile="$sim_profile)'" ;;
1414esac
1415if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
1416 echo "Setting sim profile = $sim_profile" 6>&1
1417fi
1418else
1419 sim_profile=""
1420fi
1421
1422
1423
1424echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
278bda40 1425echo "configure:1426: checking return type of signal handlers" >&5
1e1e3b61
IC
1426if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428else
1429 cat > conftest.$ac_ext <<EOF
278bda40 1430#line 1431 "configure"
1e1e3b61
IC
1431#include "confdefs.h"
1432#include <sys/types.h>
1433#include <signal.h>
1434#ifdef signal
1435#undef signal
1436#endif
1437#ifdef __cplusplus
1438extern "C" void (*signal (int, void (*)(int)))(int);
1439#else
1440void (*signal ()) ();
1441#endif
1442
1443int main() {
1444int i;
1445; return 0; }
1446EOF
278bda40 1447if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1e1e3b61
IC
1448 rm -rf conftest*
1449 ac_cv_type_signal=void
1450else
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1453 rm -rf conftest*
1454 ac_cv_type_signal=int
1455fi
1456rm -f conftest*
1457fi
1458
1459echo "$ac_t""$ac_cv_type_signal" 1>&6
1460cat >> confdefs.h <<EOF
1461#define RETSIGTYPE $ac_cv_type_signal
1462EOF
1463
1464
1465
1466
1467sim_link_files=
1468sim_link_links=
1469
1470sim_link_links=tconfig.h
1471if test -f ${srcdir}/tconfig.in
1472then
1473 sim_link_files=tconfig.in
1474else
1475 sim_link_files=../common/tconfig.in
1476fi
1477
1478# targ-vals.def points to the libc macro description file.
1479case "${target}" in
1480*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
1481esac
1482sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
1483sim_link_links="${sim_link_links} targ-vals.def"
1484
1485
1486
1487
1488default_sim_inline="-DDEFAULT_INLINE=0"
1489# Check whether --enable-sim-inline or --disable-sim-inline was given.
1490if test "${enable_sim_inline+set}" = set; then
1491 enableval="$enable_sim_inline"
1492 sim_inline=""
1493case "$enableval" in
1494 no) sim_inline="-DDEFAULT_INLINE=0";;
1495 0) sim_inline="-DDEFAULT_INLINE=0";;
278bda40 1496 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
1e1e3b61
IC
1497 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
1498 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1499 new_flag=""
1500 case "$x" in
1501 *_INLINE=*) new_flag="-D$x";;
1502 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
278bda40
AC
1503 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
1504 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
1e1e3b61
IC
1505 esac
1506 if test x"$sim_inline" = x""; then
1507 sim_inline="$new_flag"
1508 else
1509 sim_inline="$sim_inline $new_flag"
1510 fi
1511 done;;
1512esac
1513if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
1514 echo "Setting inline flags = $sim_inline" 6>&1
1515fi
1516else
1517 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
1518 sim_inline="${default_sim_inline}"
1519 if test x"$silent" != x"yes"; then
1520 echo "Setting inline flags = $sim_inline" 6>&1
1521 fi
1522else
1523 sim_inline=""
1524fi
1525fi
1526
1527wire_alignment="NONSTRICT_ALIGNMENT"
1528default_alignment=""
1529
1530# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1531if test "${enable_sim_alignment+set}" = set; then
1532 enableval="$enable_sim_alignment"
1533 case "${enableval}" in
1534 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1535 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1536 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1537 yes) if test x"$wire_alignment" != x; then
1538 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
1539 else
1540 if test x"$default_alignment" != x; then
1541 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
1542 else
1543 echo "No hard-wired alignment for target $target" 1>&6
1544 sim_alignment="-DWITH_ALIGNMENT=0"
1545 fi
1546 fi;;
1547 no) if test x"$default_alignment" != x; then
1548 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1549 else
1550 if test x"$wire_alignment" != x; then
1551 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
1552 else
1553 echo "No default alignment for target $target" 1>&6
1554 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
1555 fi
1556 fi;;
1557 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
1558esac
1559if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
1560 echo "Setting alignment flags = $sim_alignment" 6>&1
1561fi
1562else
1563 if test x"$default_alignment" != x; then
1564 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1565else
1566 if test x"$wire_alignment" != x; then
1567 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
1568 else
1569 sim_alignment=
1570 fi
1571fi
1572fi
1573
1574
1575# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1576if test "${enable_sim_hostendian+set}" = set; then
1577 enableval="$enable_sim_hostendian"
1578 case "${enableval}" in
1579 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
1580 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1581 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1582 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
1583esac
1584if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
1585 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1586fi
1587else
1588
1589if test "x$cross_compiling" = "xno"; then
1590 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
278bda40 1591echo "configure:1592: checking whether byte ordering is bigendian" >&5
1e1e3b61
IC
1592if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594else
1595 ac_cv_c_bigendian=unknown
1596# See if sys/param.h defines the BYTE_ORDER macro.
1597cat > conftest.$ac_ext <<EOF
278bda40 1598#line 1599 "configure"
1e1e3b61
IC
1599#include "confdefs.h"
1600#include <sys/types.h>
1601#include <sys/param.h>
1602int main() {
1603
1604#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1605 bogus endian macros
1606#endif
1607; return 0; }
1608EOF
278bda40 1609if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1e1e3b61
IC
1610 rm -rf conftest*
1611 # It does; now see whether it defined to BIG_ENDIAN or not.
1612cat > conftest.$ac_ext <<EOF
278bda40 1613#line 1614 "configure"
1e1e3b61
IC
1614#include "confdefs.h"
1615#include <sys/types.h>
1616#include <sys/param.h>
1617int main() {
1618
1619#if BYTE_ORDER != BIG_ENDIAN
1620 not big endian
1621#endif
1622; return 0; }
1623EOF
278bda40 1624if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1e1e3b61
IC
1625 rm -rf conftest*
1626 ac_cv_c_bigendian=yes
1627else
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 rm -rf conftest*
1631 ac_cv_c_bigendian=no
1632fi
1633rm -f conftest*
1634else
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1637fi
1638rm -f conftest*
1639if test $ac_cv_c_bigendian = unknown; then
1640if test "$cross_compiling" = yes; then
1641 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1642else
1643 cat > conftest.$ac_ext <<EOF
278bda40 1644#line 1645 "configure"
1e1e3b61
IC
1645#include "confdefs.h"
1646main () {
1647 /* Are we little or big endian? From Harbison&Steele. */
1648 union
1649 {
1650 long l;
1651 char c[sizeof (long)];
1652 } u;
1653 u.l = 1;
1654 exit (u.c[sizeof (long) - 1] == 1);
1655}
1656EOF
278bda40 1657if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1e1e3b61
IC
1658then
1659 ac_cv_c_bigendian=no
1660else
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1663 rm -fr conftest*
1664 ac_cv_c_bigendian=yes
1665fi
1666rm -fr conftest*
1667fi
1668
1669fi
1670fi
1671
1672echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1673if test $ac_cv_c_bigendian = yes; then
1674 cat >> confdefs.h <<\EOF
1675#define WORDS_BIGENDIAN 1
1676EOF
1677
1678fi
1679
1680 if test $ac_cv_c_bigendian = yes; then
1681 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1682 else
1683 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1684 fi
1685else
1686 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
1687fi
1688fi
1689
1690
1691# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1692if test "${enable_sim_warnings+set}" = set; then
1693 enableval="$enable_sim_warnings"
1694 case "${enableval}" in
1695 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1696 no) sim_warnings="-w";;
1697 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1698esac
1699if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
1700 echo "Setting warning flags = $sim_warnings" 6>&1
1701fi
1702else
1703 sim_warnings=""
1704fi
1705
1706
1707
1708# Ensure a reasonable default simulator is constructed:
1709case "${target}" in
1710# start-sanitize-tx19
1711 mipstx19*-*-*) SIMCONF="-mips1 -mcpu=r1900 -mno-fp --warnings";;
1712# end-sanitize-tx19
1713# start-sanitize-tx49
1714 mips64tx49*-*-*) SIMCONF="-mips3 --warnings -mcpu=r4900";;
1715# end-sanitize-tx49
1716# start-sanitize-r5900
1717 mips64r59*-*-*) SIMCONF="-mips3 --warnings -mcpu=r5900";;
1718# end-sanitize-r5900
1719# start-sanitize-sky
1720 txvu-*-*) SIMCONF="-mips3 --warnings -mcpu=r5900";;
1721# end-sanitize-sky
1722 mips64*-*-*) SIMCONF="-mips0 --warnings";;
1723 mips16*-*-*) SIMCONF="-mips0 --warnings";;
1724 mips*-*-*) SIMCONF="-mips2 --warnings";;
1725 *) SIMCONF="-mips0 --warnings";;
1726esac
1727
1728
1729case "${target}" in
1730# start-sanitize-tx19
1731 mipstx19*-*-*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
1732# end-sanitize-tx19
1733 *) SIM_SUBTARGET="";;
1734esac
1735
1736
1737
1738#
1739# Select the byte order of the target
1740#
1741case "${target}" in
1742# start-sanitize-tx19
1743 mipstx19*-*-*) mips_endian=0 ;;
1744# end-sanitize-tx19
1745# start-sanitize-r5900
1746 mips64r59*-*-*) mips_endian=LITTLE_ENDIAN ;;
1747# end-sanitize-r5900
1748# start-sanitize-sky
1749 txvu-*-*) mips_endian=LITTLE_ENDIAN ;;
1750# end-sanitize-sky
1751 mips64*-*-*) mips_endian=0 ;;
1752 mips16*-*-*) mips_endian=0 ;;
1753 mips*-*-*) mips_endian=0 ;;
1754 *) mips_endian=0 ;;
1755esac
1756
1757wire_endian="$mips_endian"
1758default_endian=""
1759# Check whether --enable-sim-endian or --disable-sim-endian was given.
1760if test "${enable_sim_endian+set}" = set; then
1761 enableval="$enable_sim_endian"
1762 case "${enableval}" in
1763 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1764 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1765 yes) if test x"$wire_endian" != x; then
1766 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1767 else
1768 if test x"$default_endian" != x; then
1769 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
1770 else
1771 echo "No hard-wired endian for target $target" 1>&6
1772 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
1773 fi
1774 fi;;
1775 no) if test x"$default_endian" != x; then
1776 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1777 else
1778 if test x"$wire_endian" != x; then
1779 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
1780 else
1781 echo "No default endian for target $target" 1>&6
1782 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1783 fi
1784 fi;;
1785 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
1786esac
1787if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
1788 echo "Setting endian flags = $sim_endian" 6>&1
1789fi
1790else
1791 if test x"$default_endian" != x; then
1792 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1793else
1794 if test x"$wire_endian" != x; then
1795 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1796 else
1797 sim_endian=
1798 fi
1799fi
1800fi
1801
1802
1803
1804#
1805# Select the bitsize of the target
1806#
1807case "${target}" in
1808# start-sanitize-tx19
1809 mipstx19*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
1810# end-sanitize-tx19
1811# start-sanitize-r5900
1812 mips64r59*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1813# end-sanitize-r5900
1814# start-sanitize-sky
1815 txvu-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1816# end-sanitize-sky
1817 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1818 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1819 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
1820 *) mips_bitsize=64 ; mips_msb=63 ;;
1821esac
9a8e61f1
AC
1822wire_word_bitsize="$mips_bitsize"
1823wire_word_msb="$mips_msb"
1824wire_address_bitsize=""
1825wire_cell_bitsize=""
1e1e3b61
IC
1826# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
1827if test "${enable_sim_bitsize+set}" = set; then
1828 enableval="$enable_sim_bitsize"
9a8e61f1
AC
1829 sim_bitsize=
1830case "${enableval}" in
1831 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
1832 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
1833 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
1834 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
1835 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
1e1e3b61
IC
1836 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
1837 else
1838 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
1839 fi ;;
9a8e61f1 1840 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
1e1e3b61
IC
1841 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
1842 else
1843 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
1844 fi ;;
9a8e61f1
AC
1845 *) { echo "configure: error: "--enable-sim-bitsize was given $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
1846esac
1847# address bitsize
1848tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
1849case x"${tmp}" in
1850 x ) ;;
1851 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
1852 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
1853 * ) { echo "configure: error: "--enable-sim-bitsize was given address size $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
1854esac
1855# cell bitsize
1856tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
1857case x"${tmp}" in
1858 x ) ;;
1859 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
1860 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
1861 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
1e1e3b61
IC
1862esac
1863if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
1864 echo "Setting bitsize flags = $sim_bitsize" 6>&1
1865fi
1866else
1867 sim_bitsize=""
9a8e61f1
AC
1868if test x"$wire_word_bitsize" != x; then
1869 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
1870fi
1871if test x"$wire_word_msb" != x; then
1872 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
1e1e3b61 1873fi
9a8e61f1
AC
1874if test x"$wire_address_bitsize" != x; then
1875 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
1876fi
1877if test x"$wire_cell_bitsize" != x; then
1878 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
1e1e3b61
IC
1879fi
1880fi
1881
1882
1883
1884#
1885# Select the floating hardware support of the target
1886#
1887mips_fpu=HARDWARE_FLOATING_POINT
1888case "${target}" in
1889# start-sanitize-tx19
1890 mipstx19*-*-*) mips_fpu=SOFT_FLOATING_POINT ;;
1891# end-sanitize-tx19
1892# start-sanitize-r5900
1893 mips64r59*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1894# end-sanitize-r5900
1895# start-sanitize-sky
1896 txvu-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1897# end-sanitize-sky
1898 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1899 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1900 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1901 *) mips_fpu=HARD_FLOATING_POINT ;;
1902esac
1903
9a8e61f1
AC
1904default_sim_float="$mips_fpu"
1905default_sim_float_bitsize=""
1e1e3b61
IC
1906# Check whether --enable-sim-float or --disable-sim-float was given.
1907if test "${enable_sim_float+set}" = set; then
1908 enableval="$enable_sim_float"
1909 case "${enableval}" in
1910 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
1911 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
9a8e61f1
AC
1912 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
1913 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
1e1e3b61
IC
1914 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-float"" 1>&2; exit 1; }; sim_float="";;
1915esac
1916if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
1917 echo "Setting float flags = $sim_float" 6>&1
1918fi
1919else
9a8e61f1
AC
1920
1921sim_float=
1922if test x"${default_sim_float}" != x""; then
1923 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
1924fi
1925if test x"${default_sim_float_bitsize}" != x""; then
1926 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
1927fi
1928
1e1e3b61
IC
1929fi
1930
1931
1932
1933#
1934# Select the IGEN architecture
1935#
1936sim_use_gen=NO
1937sim_igen_machine="-M mipsIV"
1938sim_m16_machine="-M mips16"
1939sim_igen_filter="32,64,f"
1940sim_m16_filter="16"
1941
1942case "${target}" in
1943# start-sanitize-tx19
1944 mipstx19*-*-*) sim_default_gen=M16
1945 sim_igen_machine="-M tx19"
1946 sim_m16_machine="-M tx19"
1947 sim_igen_filter="32"
1948 sim_m16_filter="16"
1949 ;;
1950# end-sanitize-tx19
1951# start-sanitize-r5900
1952 mips64r59*-*-*) sim_default_gen=IGEN
1953 sim_igen_machine="-M r5900"
1954 ;;
1955# end-sanitize-r5900
1956# start-sanitize-sky
1957 txvu-*-*) sim_default_gen=IGEN
1958 sim_igen_machine="-M r5900"
1959 ;;
1960# end-sanitize-sky
1961# start-sanitize-vr5400
1962 mips64vr54*-*-*) sim_default_gen=IGEN
1963 sim_use_gen=IGEN
1964 sim_igen_machine="-M vr5000,vr5400 -G gen-multi-sim=vr5400"
1965 ;;
1966# end-sanitize-vr5400
1967 mips64vr5*-*-*) sim_default_gen=IGEN
1968 sim_use_gen=IGEN
1969 sim_igen_machine="-M vr5000"
1970# start-sanitize-vr5400
1971 sim_igen_machine="-M vr5000,vr5400 -G gen-multi-sim=vr5000"
1972# end-sanitize-vr5400
1973 ;;
1974 mips16*-*-*) sim_default_gen=M16
1975 ;;
1976 mips32*-*-*) sim_default_gen=IGEN
1977 sim_igen_filter="32,f"
1978 ;;
1979 *) sim_default_gen=IGEN
1980 ;;
1981esac
1982sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine}"
1983sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine}"
1984
1985
1986
1987#
1988# Enable igen
1989#
1990# Check whether --enable-sim-igen or --disable-sim-igen was given.
1991if test "${enable_sim_igen+set}" = set; then
1992 enableval="$enable_sim_igen"
1993 case "${enableval}" in
1994 yes) sim_gen="${sim_default_gen}";;
1995 no) sim_gen=NO;;
1996 16) sim_gen=M16;;
1997 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_gen="";;
1998esac
1999if test x"$silent" != x"yes" && test x"$sim_gen" != x""; then
2000 echo "Setting sim_igen = $sim_gen" 6>&1
2001fi
2002else
2003 sim_gen="${sim_use_gen}"
2004fi
2005
2006
2007
2008
2009for ac_hdr in string.h strings.h stdlib.h stdlib.h
2010do
2011ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2012echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
278bda40 2013echo "configure:2014: checking for $ac_hdr" >&5
1e1e3b61
IC
2014if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2016else
2017 cat > conftest.$ac_ext <<EOF
278bda40 2018#line 2019 "configure"
1e1e3b61
IC
2019#include "confdefs.h"
2020#include <$ac_hdr>
2021EOF
2022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
278bda40 2023{ (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1e1e3b61
IC
2024ac_err=`grep -v '^ *+' conftest.out`
2025if test -z "$ac_err"; then
2026 rm -rf conftest*
2027 eval "ac_cv_header_$ac_safe=yes"
2028else
2029 echo "$ac_err" >&5
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 eval "ac_cv_header_$ac_safe=no"
2034fi
2035rm -f conftest*
2036fi
2037if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2038 echo "$ac_t""yes" 1>&6
2039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2040 cat >> confdefs.h <<EOF
2041#define $ac_tr_hdr 1
2042EOF
2043
2044else
2045 echo "$ac_t""no" 1>&6
2046fi
2047done
2048
2049echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
278bda40 2050echo "configure:2051: checking for fabs in -lm" >&5
1e1e3b61
IC
2051ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
2052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2054else
2055 ac_save_LIBS="$LIBS"
2056LIBS="-lm $LIBS"
2057cat > conftest.$ac_ext <<EOF
278bda40 2058#line 2059 "configure"
1e1e3b61
IC
2059#include "confdefs.h"
2060/* Override any gcc2 internal prototype to avoid an error. */
2061/* We use char because int might match the return type of a gcc2
2062 builtin and then its argument prototype would still apply. */
2063char fabs();
2064
2065int main() {
2066fabs()
2067; return 0; }
2068EOF
278bda40 2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1e1e3b61
IC
2070 rm -rf conftest*
2071 eval "ac_cv_lib_$ac_lib_var=yes"
2072else
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 rm -rf conftest*
2076 eval "ac_cv_lib_$ac_lib_var=no"
2077fi
2078rm -f conftest*
2079LIBS="$ac_save_LIBS"
2080
2081fi
2082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2084 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2086 cat >> confdefs.h <<EOF
2087#define $ac_tr_lib 1
2088EOF
2089
2090 LIBS="-lm $LIBS"
2091
2092else
2093 echo "$ac_t""no" 1>&6
2094fi
2095
2096for ac_func in aint anint sqrt
2097do
2098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
278bda40 2099echo "configure:2100: checking for $ac_func" >&5
1e1e3b61
IC
2100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102else
2103 cat > conftest.$ac_ext <<EOF
278bda40 2104#line 2105 "configure"
1e1e3b61
IC
2105#include "confdefs.h"
2106/* System header to define __stub macros and hopefully few prototypes,
2107 which can conflict with char $ac_func(); below. */
2108#include <assert.h>
2109/* Override any gcc2 internal prototype to avoid an error. */
2110/* We use char because int might match the return type of a gcc2
2111 builtin and then its argument prototype would still apply. */
2112char $ac_func();
2113
2114int main() {
2115
2116/* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2120choke me
2121#else
2122$ac_func();
2123#endif
2124
2125; return 0; }
2126EOF
278bda40 2127if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1e1e3b61
IC
2128 rm -rf conftest*
2129 eval "ac_cv_func_$ac_func=yes"
2130else
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2133 rm -rf conftest*
2134 eval "ac_cv_func_$ac_func=no"
2135fi
2136rm -f conftest*
2137fi
2138
2139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2142 cat >> confdefs.h <<EOF
2143#define $ac_tr_func 1
2144EOF
2145
2146else
2147 echo "$ac_t""no" 1>&6
2148fi
2149done
2150
2151
2152
2153
2154trap '' 1 2 15
2155cat > confcache <<\EOF
2156# This file is a shell script that caches the results of configure
2157# tests run on this system so they can be shared between configure
2158# scripts and configure runs. It is not useful on other systems.
2159# If it contains results you don't want to keep, you may remove or edit it.
2160#
2161# By default, configure uses ./config.cache as the cache file,
2162# creating it if it does not exist already. You can give configure
2163# the --cache-file=FILE option to use a different cache file; that is
2164# what configure does when it calls configure scripts in
2165# subdirectories, so they share the cache.
2166# Giving --cache-file=/dev/null disables caching, for debugging configure.
2167# config.status only pays attention to the cache file if you give it the
2168# --recheck option to rerun configure.
2169#
2170EOF
2171# The following way of writing the cache mishandles newlines in values,
2172# but we know of no workaround that is simple, portable, and efficient.
2173# So, don't put newlines in cache variables' values.
2174# Ultrix sh set writes to stderr and can't be redirected directly,
2175# and sets the high bit in the cache file unless we assign to the vars.
2176(set) 2>&1 |
d89fa2d8 2177 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1e1e3b61
IC
2178 *ac_space=\ *)
2179 # `set' does not quote correctly, so add quotes (double-quote substitution
2180 # turns \\\\ into \\, and sed turns \\ into \).
2181 sed -n \
2182 -e "s/'/'\\\\''/g" \
2183 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2184 ;;
2185 *)
2186 # `set' quotes correctly as required by POSIX, so do not add quotes.
2187 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2188 ;;
2189 esac >> confcache
2190if cmp -s $cache_file confcache; then
2191 :
2192else
2193 if test -w $cache_file; then
2194 echo "updating cache $cache_file"
2195 cat confcache > $cache_file
2196 else
2197 echo "not updating unwritable cache $cache_file"
2198 fi
2199fi
2200rm -f confcache
2201
2202trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2203
2204test "x$prefix" = xNONE && prefix=$ac_default_prefix
2205# Let make expand exec_prefix.
2206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2207
2208# Any assignment to VPATH causes Sun make to only execute
2209# the first set of double-colon rules, so remove it if not needed.
2210# If there is a colon in the path, we need to keep it.
2211if test "x$srcdir" = x.; then
2212 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2213fi
2214
2215trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2216
2217DEFS=-DHAVE_CONFIG_H
2218
2219# Without the "./", some shells look in PATH for config.status.
2220: ${CONFIG_STATUS=./config.status}
2221
2222echo creating $CONFIG_STATUS
2223rm -f $CONFIG_STATUS
2224cat > $CONFIG_STATUS <<EOF
2225#! /bin/sh
2226# Generated automatically by configure.
2227# Run this file to recreate the current configuration.
2228# This directory was configured as follows,
2229# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2230#
2231# $0 $ac_configure_args
2232#
2233# Compiler output produced by configure, useful for debugging
2234# configure, is in ./config.log if it exists.
2235
2236ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2237for ac_option
2238do
2239 case "\$ac_option" in
2240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2241 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2242 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2243 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
d89fa2d8 2244 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1e1e3b61
IC
2245 exit 0 ;;
2246 -help | --help | --hel | --he | --h)
2247 echo "\$ac_cs_usage"; exit 0 ;;
2248 *) echo "\$ac_cs_usage"; exit 1 ;;
2249 esac
2250done
2251
2252ac_given_srcdir=$srcdir
2253ac_given_INSTALL="$INSTALL"
2254
2255trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2256EOF
2257cat >> $CONFIG_STATUS <<EOF
2258
2259# Protect against being on the right side of a sed subst in config.status.
2260sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2261 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2262$ac_vpsub
2263$extrasub
2264s%@sim_environment@%$sim_environment%g
2265s%@sim_alignment@%$sim_alignment%g
2266s%@sim_assert@%$sim_assert%g
2267s%@sim_bitsize@%$sim_bitsize%g
2268s%@sim_endian@%$sim_endian%g
2269s%@sim_hostendian@%$sim_hostendian%g
2270s%@sim_float@%$sim_float%g
2271s%@sim_scache@%$sim_scache%g
2272s%@sim_default_model@%$sim_default_model%g
2273s%@sim_hardware@%$sim_hardware%g
9a8e61f1 2274s%@sim_hw_obj@%$sim_hw_obj%g
d89fa2d8 2275s%@sim_hw@%$sim_hw%g
1e1e3b61
IC
2276s%@sim_inline@%$sim_inline%g
2277s%@sim_packages@%$sim_packages%g
2278s%@sim_regparm@%$sim_regparm%g
2279s%@sim_reserved_bits@%$sim_reserved_bits%g
2280s%@sim_smp@%$sim_smp%g
2281s%@sim_stdcall@%$sim_stdcall%g
2282s%@sim_xor_endian@%$sim_xor_endian%g
2283s%@sim_warnings@%$sim_warnings%g
d89fa2d8 2284s%@SHELL@%$SHELL%g
1e1e3b61
IC
2285s%@CFLAGS@%$CFLAGS%g
2286s%@CPPFLAGS@%$CPPFLAGS%g
2287s%@CXXFLAGS@%$CXXFLAGS%g
2288s%@DEFS@%$DEFS%g
2289s%@LDFLAGS@%$LDFLAGS%g
2290s%@LIBS@%$LIBS%g
2291s%@exec_prefix@%$exec_prefix%g
2292s%@prefix@%$prefix%g
2293s%@program_transform_name@%$program_transform_name%g
2294s%@bindir@%$bindir%g
2295s%@sbindir@%$sbindir%g
2296s%@libexecdir@%$libexecdir%g
2297s%@datadir@%$datadir%g
2298s%@sysconfdir@%$sysconfdir%g
2299s%@sharedstatedir@%$sharedstatedir%g
2300s%@localstatedir@%$localstatedir%g
2301s%@libdir@%$libdir%g
2302s%@includedir@%$includedir%g
2303s%@oldincludedir@%$oldincludedir%g
2304s%@infodir@%$infodir%g
2305s%@mandir@%$mandir%g
2306s%@host@%$host%g
2307s%@host_alias@%$host_alias%g
2308s%@host_cpu@%$host_cpu%g
2309s%@host_vendor@%$host_vendor%g
2310s%@host_os@%$host_os%g
2311s%@target@%$target%g
2312s%@target_alias@%$target_alias%g
2313s%@target_cpu@%$target_cpu%g
2314s%@target_vendor@%$target_vendor%g
2315s%@target_os@%$target_os%g
2316s%@build@%$build%g
2317s%@build_alias@%$build_alias%g
2318s%@build_cpu@%$build_cpu%g
2319s%@build_vendor@%$build_vendor%g
2320s%@build_os@%$build_os%g
2321s%@CC@%$CC%g
2322s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2323s%@INSTALL_DATA@%$INSTALL_DATA%g
2324s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2325s%@HDEFINES@%$HDEFINES%g
2326s%@AR@%$AR%g
2327s%@RANLIB@%$RANLIB%g
2328s%@CPP@%$CPP%g
9a8e61f1 2329s%@MAINT@%$MAINT%g
1e1e3b61
IC
2330s%@sim_bswap@%$sim_bswap%g
2331s%@sim_cflags@%$sim_cflags%g
2332s%@sim_debug@%$sim_debug%g
2333s%@sim_stdio@%$sim_stdio%g
2334s%@sim_trace@%$sim_trace%g
2335s%@sim_profile@%$sim_profile%g
2336s%@SIMCONF@%$SIMCONF%g
2337s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
2338s%@sim_igen_flags@%$sim_igen_flags%g
2339s%@sim_m16_flags@%$sim_m16_flags%g
2340s%@sim_gen@%$sim_gen%g
2341
2342CEOF
2343EOF
2344
2345cat >> $CONFIG_STATUS <<\EOF
2346
2347# Split the substitutions into bite-sized pieces for seds with
2348# small command number limits, like on Digital OSF/1 and HP-UX.
2349ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2350ac_file=1 # Number of current file.
2351ac_beg=1 # First line for current file.
2352ac_end=$ac_max_sed_cmds # Line after last line for current file.
2353ac_more_lines=:
2354ac_sed_cmds=""
2355while $ac_more_lines; do
2356 if test $ac_beg -gt 1; then
2357 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2358 else
2359 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2360 fi
2361 if test ! -s conftest.s$ac_file; then
2362 ac_more_lines=false
2363 rm -f conftest.s$ac_file
2364 else
2365 if test -z "$ac_sed_cmds"; then
2366 ac_sed_cmds="sed -f conftest.s$ac_file"
2367 else
2368 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2369 fi
2370 ac_file=`expr $ac_file + 1`
2371 ac_beg=$ac_end
2372 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2373 fi
2374done
2375if test -z "$ac_sed_cmds"; then
2376 ac_sed_cmds=cat
2377fi
2378EOF
2379
2380cat >> $CONFIG_STATUS <<EOF
2381
2382CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
2383EOF
2384cat >> $CONFIG_STATUS <<\EOF
2385for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2387 case "$ac_file" in
2388 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2389 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2390 *) ac_file_in="${ac_file}.in" ;;
2391 esac
2392
2393 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2394
2395 # Remove last slash and all that follows it. Not all systems have dirname.
2396 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2397 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2398 # The file is in a subdirectory.
2399 test ! -d "$ac_dir" && mkdir "$ac_dir"
2400 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2401 # A "../" for each directory in $ac_dir_suffix.
2402 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2403 else
2404 ac_dir_suffix= ac_dots=
2405 fi
2406
2407 case "$ac_given_srcdir" in
2408 .) srcdir=.
2409 if test -z "$ac_dots"; then top_srcdir=.
2410 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2411 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2412 *) # Relative path.
2413 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2414 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2415 esac
2416
2417 case "$ac_given_INSTALL" in
2418 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2419 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2420 esac
2421
2422 echo creating "$ac_file"
2423 rm -f "$ac_file"
2424 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2425 case "$ac_file" in
2426 *Makefile*) ac_comsub="1i\\
2427# $configure_input" ;;
2428 *) ac_comsub= ;;
2429 esac
2430
2431 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2432 sed -e "$ac_comsub
2433s%@configure_input@%$configure_input%g
2434s%@srcdir@%$srcdir%g
2435s%@top_srcdir@%$top_srcdir%g
2436s%@INSTALL@%$INSTALL%g
2437" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2438fi; done
2439rm -f conftest.s*
2440
2441# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2442# NAME is the cpp macro being defined and VALUE is the value it is being given.
2443#
2444# ac_d sets the value in "#define NAME VALUE" lines.
2445ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2446ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2447ac_dC='\3'
2448ac_dD='%g'
2449# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2450ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2451ac_uB='\([ ]\)%\1#\2define\3'
2452ac_uC=' '
2453ac_uD='\4%g'
2454# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2455ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2456ac_eB='$%\1#\2define\3'
2457ac_eC=' '
2458ac_eD='%g'
2459
2460if test "${CONFIG_HEADERS+set}" != set; then
2461EOF
2462cat >> $CONFIG_STATUS <<EOF
2463 CONFIG_HEADERS="config.h:config.in"
2464EOF
2465cat >> $CONFIG_STATUS <<\EOF
2466fi
2467for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2469 case "$ac_file" in
2470 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2471 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2472 *) ac_file_in="${ac_file}.in" ;;
2473 esac
2474
2475 echo creating $ac_file
2476
2477 rm -f conftest.frag conftest.in conftest.out
2478 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2479 cat $ac_file_inputs > conftest.in
2480
2481EOF
2482
2483# Transform confdefs.h into a sed script conftest.vals that substitutes
2484# the proper values into config.h.in to produce config.h. And first:
2485# Protect against being on the right side of a sed subst in config.status.
2486# Protect against being in an unquoted here document in config.status.
2487rm -f conftest.vals
2488cat > conftest.hdr <<\EOF
2489s/[\\&%]/\\&/g
2490s%[\\$`]%\\&%g
2491s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2492s%ac_d%ac_u%gp
2493s%ac_u%ac_e%gp
2494EOF
2495sed -n -f conftest.hdr confdefs.h > conftest.vals
2496rm -f conftest.hdr
2497
2498# This sed command replaces #undef with comments. This is necessary, for
2499# example, in the case of _POSIX_SOURCE, which is predefined and required
2500# on some systems where configure will not decide to define it.
2501cat >> conftest.vals <<\EOF
2502s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2503EOF
2504
2505# Break up conftest.vals because some shells have a limit on
2506# the size of here documents, and old seds have small limits too.
2507
2508rm -f conftest.tail
2509while :
2510do
2511 ac_lines=`grep -c . conftest.vals`
2512 # grep -c gives empty output for an empty file on some AIX systems.
2513 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2514 # Write a limited-size here document to conftest.frag.
2515 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2516 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2517 echo 'CEOF
2518 sed -f conftest.frag conftest.in > conftest.out
2519 rm -f conftest.in
2520 mv conftest.out conftest.in
2521' >> $CONFIG_STATUS
2522 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2523 rm -f conftest.vals
2524 mv conftest.tail conftest.vals
2525done
2526rm -f conftest.vals
2527
2528cat >> $CONFIG_STATUS <<\EOF
2529 rm -f conftest.frag conftest.h
2530 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2531 cat conftest.in >> conftest.h
2532 rm -f conftest.in
2533 if cmp -s $ac_file conftest.h 2>/dev/null; then
2534 echo "$ac_file is unchanged"
2535 rm -f conftest.h
2536 else
2537 # Remove last slash and all that follows it. Not all systems have dirname.
2538 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2539 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2540 # The file is in a subdirectory.
2541 test ! -d "$ac_dir" && mkdir "$ac_dir"
2542 fi
2543 rm -f $ac_file
2544 mv conftest.h $ac_file
2545 fi
2546fi; done
2547
2548EOF
2549
2550cat >> $CONFIG_STATUS <<EOF
2551ac_sources="$sim_link_files"
2552ac_dests="$sim_link_links"
2553EOF
2554
2555cat >> $CONFIG_STATUS <<\EOF
2556srcdir=$ac_given_srcdir
2557while test -n "$ac_sources"; do
2558 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2559 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2560
2561 echo "linking $srcdir/$ac_source to $ac_dest"
2562
2563 if test ! -r $srcdir/$ac_source; then
2564 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2565 fi
2566 rm -f $ac_dest
2567
2568 # Make relative symlinks.
2569 # Remove last slash and all that follows it. Not all systems have dirname.
2570 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2571 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2572 # The dest file is in a subdirectory.
2573 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2574 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2575 # A "../" for each directory in $ac_dest_dir_suffix.
2576 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2577 else
2578 ac_dest_dir_suffix= ac_dots=
2579 fi
2580
2581 case "$srcdir" in
2582 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2583 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2584 esac
2585
2586 # Make a symlink if possible; otherwise try a hard link.
2587 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2588 ln $srcdir/$ac_source $ac_dest; then :
2589 else
2590 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2591 fi
2592done
2593EOF
2594cat >> $CONFIG_STATUS <<EOF
2595
2596EOF
2597cat >> $CONFIG_STATUS <<\EOF
2598case "x$CONFIG_FILES" in
2599 xMakefile*)
2600 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2601 rm -f Makesim1.tmp Makesim2.tmp Makefile
2602 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2603 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2604 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2605 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2606 <Makefile.sim >Makefile
2607 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2608 ;;
2609 esac
2610 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2611
2612exit 0
2613EOF
2614chmod +x $CONFIG_STATUS
2615rm -fr confdefs* $ac_clean_files
2616test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2617
2618
This page took 0.132968 seconds and 4 git commands to generate.