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