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