]> sourceware.org Git - newlib-cygwin.git/blob - newlib/configure.host
* configure.host: Added entry for ms1*.
[newlib-cygwin.git] / newlib / configure.host
1 # configure.host
2
3 # This shell script handles all host based configuration for newlib.
4 # It sets various shell variables based on the the host and the
5 # configuration options. You can modify this shell script without
6 # needing to rerun autoconf.
7
8 # This shell script should be invoked as
9 # . configure.host
10 # If it encounters an error, it will exit with a message.
11
12 # FIXME: This script is too complicated. It does things in too many
13 # different ways. This was taken from the old Cygnus configure script
14 # with only minor changes. It should be cleaned up.
15
16 # FIXME: The general approach of picking and choosing which
17 # directories to configure, other than machine_dir and sys_dir, is
18 # potentially confusing.
19
20 # It uses the following shell variables:
21 # host The configuration host
22 # host_cpu The configuration host CPU
23 # newlib_mb --enable-newlib-mb ("yes", "no")
24 # target_optspace --enable-target-optspace ("yes", "no", "")
25 # newlib_multithread --enable-newlib-multithread ("yes", "no", "yes")
26 # newlib_elix_level --enable-newlib-elix-level ("1","2","3","4") ("4")
27 # newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "")
28 # newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
29
30 # It sets the following shell variables:
31 # newlib_cflags Special CFLAGS to use when building
32 # machine_dir Subdirectory of libc/machine to configure
33 # sys_dir Subdirectory of libc/sys to configure
34 # have_sys_mach_dir Is there a machine subdirectory in sys subdirectory
35 # posix_dir "posix" to build libc/posix, "" otherwise
36 # signal_dir "signal" to build libc/signal, "" otherwise
37 # stdio64_dir "stdio64" to build libc/stdio64, "" otherwise
38 # syscall_dir "syscalls" to build libc/syscalls, "" otherwise
39 # unix_dir "unix" to build libc/unix, "" otherwise
40 # use_libtool flag: use libtool to build newlib?
41 # aext library extension - needed for libtool support
42 # oext object file extension - needed for libtool support
43 # crt1 name of crt1 object if one is provided
44 # crt1_dir directory where crt1 object is found
45
46 newlib_cflags=
47 libm_machine_dir=
48 machine_dir=
49 sys_dir=
50 posix_dir=
51 signal_dir=signal
52 stdio64_dir=
53 syscall_dir=
54 unix_dir=
55 mach_add_setjmp=
56 crt1=
57 crt1_dir=
58 use_libtool=no
59 have_sys_mach_dir=no
60 default_newlib_io_long_long=no
61 default_newlib_io_long_double=no
62 default_newlib_io_pos_args=no
63 aext=a
64 oext=o
65
66 case "${target_optspace}:${host}" in
67 yes:*)
68 newlib_cflags="${newlib_cflags} -Os"
69 ;;
70 :m32r-* | :d10v-* | :d30v-* | :avr-*)
71 newlib_cflags="${newlib_cflags} -Os"
72 ;;
73 no:* | :*)
74 newlib_cflags="${newlib_cflags} -O2"
75 ;;
76 esac
77
78 # Get the source directories to use for the CPU type.
79 # machine_dir should supply CPU dependent routines, such as setjmp.
80 # newlib_cflags is passed to gcc when compiling.
81 # THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
82
83 case "${host_cpu}" in
84 a29k)
85 machine_dir=a29k
86 ;;
87 arc)
88 machine_dir=
89 ;;
90 arm)
91 machine_dir=arm
92 ;;
93 avr*)
94 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues"
95 ;;
96 cris | crisv32)
97 machine_dir=cris
98 ;;
99 crx*)
100 machine_dir=crx
101 ;;
102 d10v*)
103 machine_dir=d10v
104 ;;
105 d30v*)
106 machine_dir=d30v
107 ;;
108 ep9312)
109 machine_dir=arm
110 ;;
111 fr30)
112 machine_dir=fr30
113 ;;
114 frv)
115 machine_dir=frv
116 ;;
117 h8300)
118 machine_dir=h8300
119 ;;
120 h8500)
121 machine_dir=h8500
122 ;;
123 hppa*)
124 machine_dir=hppa
125 ;;
126 i960)
127 machine_dir=i960
128 ;;
129 i[34567]86)
130 # Don't use for these since they provide their own setjmp.
131 case ${host} in
132 *-*-sco* | *-*-cygwin*)
133 libm_machine_dir=i386
134 machine_dir=i386
135 ;;
136 *)
137 libm_machine_dir=i386
138 machine_dir=i386
139 mach_add_setjmp=true
140 ;;
141 esac
142 ;;
143 ia64*)
144 ;;
145 iq2000)
146 machine_dir=iq2000
147 ;;
148 m32r*)
149 machine_dir=m32r
150 ;;
151
152 m68hc11|m6811|m68hc12|m6812)
153 machine_dir=m68hc11
154 newlib_cflags="-DPREFER_SIZE_OVER_SPEED -Os -mrelax"
155 CFLAGS="-g -Os"
156 ;;
157
158 m68*)
159 machine_dir=m68k
160 newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
161 ;;
162 m88k)
163 machine_dir=m88k
164 newlib_cflags="${newlib_cflags} -m88000"
165 ;;
166 m88110)
167 machine_dir=m88k
168 newlib_cflags="${newlib_cflags} -m88110"
169 ;;
170 mcore)
171 ;;
172 mips*)
173 machine_dir=mips
174 ;;
175 mmix)
176 ;;
177 mn10200)
178 machine_dir=mn10200
179 ;;
180 mn10300)
181 default_newlib_io_long_long="yes"
182 machine_dir=mn10300
183 ;;
184 ms1*)
185 machine_dir=ms1
186 ;;
187 or16)
188 ;;
189 or32)
190 ;;
191 powerpc*)
192 machine_dir=powerpc
193 ;;
194 sh | sh64)
195 machine_dir=sh
196 ;;
197 sparc*)
198 machine_dir=sparc
199 # FIXME: Might wish to make MALLOC_ALIGNMENT more generic.
200 newlib_cflags="${newlib_cflags} -DMALLOC_ALIGNMENT=8"
201 ;;
202 strongarm)
203 machine_dir=arm
204 ;;
205 xscale)
206 machine_dir=xscale
207 ;;
208 thumb)
209 machine_dir=arm
210 ;;
211 tic4x|c4x)
212 machine_dir=tic4x
213 ;;
214 tic80*)
215 machine_dir=tic80
216 ;;
217 v70)
218 ;;
219 v810)
220 ;;
221 v850)
222 machine_dir=v850
223 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 "
224 ;;
225 v850e)
226 machine_dir=v850
227 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED "
228 ;;
229 w65*)
230 machine_dir=w65
231 ;;
232 xstormy16)
233 machine_dir=xstormy16
234 newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED"
235 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
236 ;;
237 z8k)
238 machine_dir=z8k
239 ;;
240 *)
241 echo '***' "Newlib does not support CPU ${host_cpu}" 1>&2
242 exit 1
243 ;;
244 esac
245
246 # Disable thread support if requested.
247
248 if [ "${newlib_multithread}" = "no" ] ; then
249 newlib_cflags="${newlib_cflags} -D__SINGLE_THREAD__"
250 fi
251
252 # Disable syscall support if requested.
253
254 if [ "${newlib_may_supply_syscalls}" = "no" ] ; then
255 newlib_cflags="${newlib_cflags} -D__NO_SYSCALLS__"
256 fi
257
258 # Enable multibyte support if requested or it is defaulted
259 # for target.
260
261 if [ "x${newlib_mb}" = "x" ]; then
262 case "${host}" in
263 i[34567]86-pc-linux-*|*-*-cygwin*)
264 newlib_mb=yes
265 ;;
266 esac
267 fi
268
269 # Disable printf/scanf floating-point support if requested.
270
271 if [ "${newlib_io_float}" = "no" ] ; then
272 newlib_cflags="${newlib_cflags} -DNO_FLOATING_POINT"
273 fi
274
275 # Verify if shared newlib support is allowed and set appropriate variables
276 # We don't want to use libtool for platforms that we are not going to
277 # support shared libraries. This is because it adds executable tests which
278 # we don't want for most embedded platforms.
279 case "${host}" in
280 i[34567]86-pc-linux-*)
281 use_libtool=yes
282 have_sys_mach_dir=yes
283 stdio64_dir=stdio64
284 oext=lo
285 aext=la ;;
286 *) ;; #shared library not supported for ${host}
287 esac
288
289 # Get the source directories to use for the host. unix_dir is set
290 # to unix to get some standard Unix routines. posix_dir is set to get some
291 # standard Posix routines. sys_dir should supply system dependent routines
292 # including crt0.
293 # THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
294
295 case "${host}" in
296 *-*-cygwin*)
297 posix_dir=posix
298 stdio64_dir=stdio64
299 ;;
300 *-*-netware*)
301 signal_dir=
302 sys_dir=netware
303 ;;
304 *-*-rtems*) # generic RTEMS support
305 sys_dir=rtems
306 # RTEMS POSIX support is all inside RTEMS
307 ;;
308 a29k-*-*)
309 sys_dir=a29khif
310 signal_dir=
311 ;;
312 arc-*-*)
313 sys_dir=arc
314 ;;
315 arm-*-*)
316 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
317 sys_dir=arm
318 fi
319 ;;
320 crx*)
321 sys_dir=
322 ;;
323 d10v*)
324 sys_dir=d10v
325 ;;
326 d30v*)
327 sys_dir=
328 ;;
329 ep9312-*-*)
330 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
331 sys_dir=arm
332 fi
333 ;;
334 frv*)
335 sys_dir=
336 ;;
337 h8300-*-hms*)
338 sys_dir=h8300hms
339 ;;
340 h8300-*-elf*)
341 sys_dir=h8300hms
342 ;;
343 h8300-*-coff*)
344 sys_dir=h8300hms
345 ;;
346 h8300-*-xray*)
347 sys_dir=h8300xray
348 ;;
349 h8500-*-hms*)
350 sys_dir=h8500hms
351 ;;
352 h8500-*-elf*)
353 sys_dir=h8500hms
354 ;;
355 i[34567]86-*-sco*)
356 sys_dir=sysvi386
357 unix_dir=unix
358 ;;
359 i[34567]86-pc-linux-*)
360 sys_dir=linux
361 unix_dir=unix
362 posix_dir=posix
363 crt1=crt1.o
364 crt1_dir=libc/sys/${sys_dir}
365 gcc_dir=`gcc -print-search-dirs | awk '/^install:/{print $2}'`
366 default_newlib_io_long_double="yes"
367 default_newlib_io_long_long="yes"
368 default_newlib_io_pos_args="yes"
369 #newlib_cflags="${newlib_cflags} -Werror" # DEBUGGING ONLY;BREAKS BUILD
370 newlib_cflags="${newlib_cflags} -Wall"
371 newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS"
372 newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
373 # --- Required when building a shared library ------------------------
374 newlib_cflags="${newlib_cflags} -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION"
375 # --- The three lines below are optional ------------------------------
376 ##newlib_cflags="${newlib_cflags} -nostdinc"
377 ##newlib_cflags="${newlib_cflags} -I`newlib-flags --kernel-dir`/include"
378 ##newlib_cflags="${newlib_cflags} -idirafter ${gcc_dir}include"
379 ;;
380
381 m68hc11-*-*|m6811-*-*|m6812-*-*|m68hc12-*-*)
382 ;;
383
384 m68k-sun-sunos*)
385 unix_dir=unix
386 ;;
387 m8*-bug-*)
388 sys_dir=m88kbug
389 ;;
390 mips*-dec-*)
391 sys_dir=decstation
392 ;;
393 mmix-knuth-mmixware)
394 sys_dir=mmixware
395 ;;
396 powerpcle-*-pe)
397 posix_dir=posix
398 ;;
399 sh*-*)
400 sys_dir=sh
401 ;;
402 sparc-sun-sunos*)
403 sys_dir=sun4
404 unix_dir=unix
405 ;;
406 sparc64*)
407 sys_dir=sparc64
408 unix_dir=unix
409 ;;
410 strongarm-*-*)
411 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
412 sys_dir=arm
413 fi
414 ;;
415 thumb-*-*)
416 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
417 sys_dir=arm
418 fi
419 ;;
420 tic80*)
421 sys_dir=tic80
422 ;;
423 v70-nec-*)
424 sys_dir=sysvnecv70
425 ;;
426 v810-*-*)
427 sys_dir=sysnec810
428 ;;
429 v850-*-*)
430 sys_dir=sysnecv850
431 ;;
432 v850e-*-*)
433 sys_dir=sysnecv850
434 ;;
435 v850ea-*-*)
436 sys_dir=sysnecv850
437 ;;
438 w65-*-*)
439 sys_dir=w65
440 ;;
441 xscale-*-*)
442 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
443 sys_dir=arm
444 fi
445 ;;
446 z8k-*-coff)
447 sys_dir=z8ksim
448 ;;
449 esac
450
451 # Host specific flag settings -- usually for features that are not
452 # general enough or broad enough to be handled above.
453 # THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
454
455 case "${host}" in
456 *-*-cygwin*)
457 test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${srcdir}/../winsup/cygwin; pwd`
458 export cygwin_srcdir
459 default_newlib_io_long_long="yes"
460 default_newlib_io_long_double="yes"
461 default_newlib_io_pos_args="yes"
462 CC="${CC} -I${cygwin_srcdir}/include"
463 newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_FCNTL -DMALLOC_PROVIDED"
464 syscall_dir=syscalls
465 ;;
466 # RTEMS supplies its own versions of some routines:
467 # malloc() (reentrant version)
468 # exit() RTEMS has a "global" reent to flush
469 # signal()/raise() RTEMS has its own including pthread signals
470 # _XYZ_r() RTEMS has its own reentrant routines
471 #
472 # NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
473 *-*-rtems*)
474 default_newlib_io_long_long="yes"
475 newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DHAVE_FCNTL"
476 ;;
477 # VxWorks supplies its own version of malloc, and the newlib one
478 # doesn't work because VxWorks does not have sbrk.
479 *-wrs-vxworks*)
480 newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -DHAVE_FCNTL"
481 ;;
482 # UDI doesn't have exec, so system() should fail the right way
483 a29k-amd-udi)
484 newlib_cflags="${newlib_cflags} -DNO_EXEC"
485 syscall_dir=syscalls
486 ;;
487 arc-*-*)
488 syscall_dir=syscalls
489 ;;
490 arm-*-pe)
491 syscall_dir=syscalls
492 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
493 ;;
494 arm-*-*)
495 syscall_dir=syscalls
496 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
497 # If newlib is supplying syscalls, select which debug protocol is being used.
498 # ARM_RDP_MONITOR selects the Demon monitor.
499 # ARM_RDI_MONITOR selects the Angel monitor.
500 # If neither are defined, then hard coded defaults will be used
501 # to create the program's environment.
502 # If --disable-newlib-supplied-syscalls is specified, then the end-user
503 # may specify the protocol via gcc spec files supplied by libgloss.
504 # See also thumb below.
505 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
506 # newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
507 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
508 fi
509 ;;
510 arc*)
511 newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED"
512 ;;
513 avr*)
514 newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
515 ;;
516 cris-*-* | crisv32-*-*)
517 default_newlib_io_long_long="yes"
518 newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_GETTIMEOFDAY -D_USE_WRITE -DCOMPACT_CTYPE"
519 syscall_dir=syscalls
520 ;;
521 crx-*-*)
522 newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DMISSING_SYSCALL_NAMES"
523 syscall_dir=
524 ;;
525 d10v*)
526 newlib_cflags="${newlib_cflags} -DSMALL_MEMORY"
527 syscall_dir=syscalls
528 ;;
529 d30v*)
530 newlib_cflags="${newlib_cflags} -DABORT_MESSAGE -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
531 syscall_dir=
532 ;;
533 ep9312-*-*)
534 syscall_dir=syscalls
535 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
536 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
537 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
538 fi
539 ;;
540 fr30-*-*)
541 syscall_dir=syscalls
542 ;;
543 frv-*-*)
544 syscall_dir=syscalls
545 default_newlib_io_long_long="yes"
546 ;;
547 h8300*-*-*)
548 syscall_dir=syscalls
549 default_newlib_io_long_long="yes"
550 newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
551 # Simulator only extensions for H8300.
552 # Uncomment the next line to enable them.
553 # newlib_cflags="${newlib_cflags} -D__SIMULATOR__"
554 ;;
555 h8500-*-*)
556 syscall_dir=syscalls
557 newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
558 ;;
559 i[34567]86-*-sco*)
560 newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED -DHAVE_FCNTL"
561 ;;
562 i[34567]86-*-netware*)
563 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DNO_EXEC -DABORT_PROVIDED -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DHAVE_FCNTL"
564 ;;
565 iq2000*)
566 syscall_dir=syscalls
567 default_newlib_io_long_long="yes"
568 ;;
569 m32r-*-*)
570 # Pass -msdata=sdata so _impure_ptr goes in .sdata.
571 # We don't generate sda relocs however for upward compatibility.
572 # FIXME: This is necessary because the default multilib doesn't
573 # use --print-multi-lib.
574 newlib_cflags="${newlib_cflags} -msdata=sdata"
575 syscall_dir=syscalls
576 ;;
577 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
578 newlib_cflags="${newlib_cflags} -DNO_EXEC -DABORT_PROVIDED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
579 ;;
580 mcore-*-*)
581 syscall_dir=syscalls
582 ;;
583 mips64vr*-*-*)
584 default_newlib_io_long_long="yes"
585 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
586 ;;
587 mips*-*-elf*)
588 default_newlib_io_long_long="yes"
589 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
590 ;;
591 mmix-*)
592 syscall_dir=syscalls
593 # We need every symbol 32-bit aligned, so the invalid
594 # construct with attribute ((alias ("_ctype_b+127"))) breaks.
595 newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
596 ;;
597 mn10?00-*-*)
598 syscall_dir=syscalls
599 ;;
600 powerpc*-*-eabialtivec*)
601 default_newlib_io_long_long="yes"
602 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
603 ;;
604 powerpc*-*-eabispe*)
605 default_newlib_io_long_long="yes"
606 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
607 ;;
608 powerpc*-*-eabi* | \
609 powerpc*-*-elf* | \
610 powerpc*-*-linux* | \
611 powerpc*-*-rtem* | \
612 powerpc*-*-sysv* | \
613 powerpc*-*-solaris*)
614 default_newlib_io_long_long="yes"
615 newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES"
616 ;;
617 powerpcle-*-pe)
618 newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL"
619 syscall_dir=syscalls
620 ;;
621 sh*-*-*)
622 default_newlib_io_long_long="yes"
623 newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
624 syscall_dir=syscalls
625 ;;
626 sparc-sun-sunos*)
627 newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED"
628 ;;
629 sparc64-*-*)
630 newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_BLKSIZE -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL"
631 # This either belongs elsewhere or nowhere. But I need *something*,
632 # so for now it's here ...
633 case "${host_os}" in
634 aoutv8 | *32p)
635 newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=32" ;;
636 *)
637 newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=64" ;;
638 esac
639 ;;
640 strongarm-*-*)
641 syscall_dir=syscalls
642 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
643 ;;
644 thumb-*-pe)
645 syscall_dir=syscalls
646 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
647 # Don't use the debugging protocols just yet.
648 ;;
649 thumb-*-*)
650 syscall_dir=syscalls
651 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
652 # If newlib is supplying syscalls, select which debug protocol is being used.
653 # ARM_RDP_MONITOR selects the Demon monitor.
654 # ARM_RDI_MONITOR selects the Angel monitor.
655 # If neither are defined, then hard coded defaults will be used
656 # to create the program's environment.
657 # If --disable-newlib-supplied-syscalls is specified, then the end-user
658 # may specify the protocol via gcc spec files supplied by libgloss.
659 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
660 # newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
661 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
662 fi
663 ;;
664 tic80*)
665 syscall_dir=syscalls
666 ;;
667 v850-*-*)
668 syscall_dir=syscalls
669 ;;
670 v850e-*-*)
671 syscall_dir=syscalls
672 ;;
673 v850ea-*-*)
674 syscall_dir=syscalls
675 ;;
676 w65-*-*)
677 syscall_dir=syscalls
678 newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
679 ;;
680 xscale-*-*)
681 syscall_dir=syscalls
682 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
683 newlib_cflags="${newlib_cflags} -DHAVE_SYSTEM -DHAVE_RENAME"
684 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
685 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
686 fi
687 ;;
688 xstormy16-*-*)
689 newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
690 syscall_dir=syscalls
691 ;;
692 z8k-*-*)
693 syscall_dir=syscalls
694 ;;
695 *)
696 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
697 syscall_dir=
698 ;;
699 esac
700
701 # Use defaults for certain settings if not specified by user
702
703 # Enable long long support in I/O routines if requested.
704 if [ "x${newlib_io_long_long}" = "x" ]; then
705 if [ ${default_newlib_io_long_long} = "yes" ]; then
706 newlib_io_long_long="yes";
707 fi
708 fi
709
710 # Enable long double support in I/O routines if requested.
711 if [ "x${newlib_io_long_double}" = "x" ]; then
712 if [ ${default_newlib_io_long_double} = "yes" ]; then
713 newlib_io_long_double="yes";
714 fi
715 fi
716
717 # Enable printf positional argument support if requested.
718 if [ "x${newlib_io_pos_args}" = "x" ]; then
719 if [ ${default_newlib_io_pos_args} = "yes" ]; then
720 newlib_io_pos_args="yes";
721 fi
722 fi
This page took 0.068402 seconds and 6 git commands to generate.