From a6c1ed4716cf02626ea035beb6dd4a921642ba80 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 3 Jan 2018 17:39:24 -0700 Subject: Use libc from agbcc instead of standalone newlib\nYou must have AGBCC commit 80d029caec189587f8b9294b6c8a5a489b8f5f88 in order to compile pmd_red.gba --- newlib/libc/sys/Makefile.am | 35 - newlib/libc/sys/Makefile.in | 380 ---- newlib/libc/sys/a29khif/Makefile.am | 48 - newlib/libc/sys/a29khif/Makefile.in | 337 ---- newlib/libc/sys/a29khif/_alloc.s | 55 - newlib/libc/sys/a29khif/_close.s | 40 - newlib/libc/sys/a29khif/_cycles.s | 39 - newlib/libc/sys/a29khif/_exit.s | 39 - newlib/libc/sys/a29khif/_fstat.s | 79 - newlib/libc/sys/a29khif/_getpsiz.s | 38 - newlib/libc/sys/a29khif/_gettz.s | 39 - newlib/libc/sys/a29khif/_ioctl.s | 39 - newlib/libc/sys/a29khif/_iostat.s | 43 - newlib/libc/sys/a29khif/_iowait.s | 39 - newlib/libc/sys/a29khif/_isatty.s | 22 - newlib/libc/sys/a29khif/_lseek.s | 42 - newlib/libc/sys/a29khif/_open.s | 39 - newlib/libc/sys/a29khif/_query.s | 39 - newlib/libc/sys/a29khif/_read.s | 38 - newlib/libc/sys/a29khif/_sbrk.s | 30 - newlib/libc/sys/a29khif/_setim.s | 39 - newlib/libc/sys/a29khif/_settrap.s | 39 - newlib/libc/sys/a29khif/_setvec.s | 38 - newlib/libc/sys/a29khif/_tmpnam.s | 41 - newlib/libc/sys/a29khif/_write.s | 40 - newlib/libc/sys/a29khif/aclocal.m4 | 345 ---- newlib/libc/sys/a29khif/alloc.s | 64 - newlib/libc/sys/a29khif/clock.s | 41 - newlib/libc/sys/a29khif/configure | 1598 ---------------- newlib/libc/sys/a29khif/configure.in | 12 - newlib/libc/sys/a29khif/crt0.s | 226 --- newlib/libc/sys/a29khif/getargs.s | 38 - newlib/libc/sys/a29khif/getenv.s | 48 - newlib/libc/sys/a29khif/getpid.c | 12 - newlib/libc/sys/a29khif/kill.c | 21 - newlib/libc/sys/a29khif/read.s | 54 - newlib/libc/sys/a29khif/remove.s | 43 - newlib/libc/sys/a29khif/rename.s | 41 - newlib/libc/sys/a29khif/signal.s | 452 ----- newlib/libc/sys/a29khif/stubs.s | 135 -- newlib/libc/sys/a29khif/sys/cpudef.h | 270 --- newlib/libc/sys/a29khif/sys/fpsymbol.h | 2970 ----------------------------- newlib/libc/sys/a29khif/sys/intrinsi.h | 457 ----- newlib/libc/sys/a29khif/sys/macros.h | 37 - newlib/libc/sys/a29khif/sys/proreg.h | 60 - newlib/libc/sys/a29khif/sys/romdcl.h | 392 ---- newlib/libc/sys/a29khif/sys/smartmac.h | 1491 --------------- newlib/libc/sys/a29khif/sys/sysmac.h | 165 -- newlib/libc/sys/a29khif/systime.s | 44 - newlib/libc/sys/a29khif/vec.s | 35 - newlib/libc/sys/aclocal.m4 | 358 ---- newlib/libc/sys/arm/Makefile.am | 14 - newlib/libc/sys/arm/Makefile.in | 299 --- newlib/libc/sys/arm/aclocal.m4 | 345 ---- newlib/libc/sys/arm/configure | 1598 ---------------- newlib/libc/sys/arm/configure.in | 12 - newlib/libc/sys/arm/crt0.S | 243 --- newlib/libc/sys/arm/libcfunc.c | 45 - newlib/libc/sys/arm/setjmp.S | 102 - newlib/libc/sys/arm/swi.h | 65 - newlib/libc/sys/arm/sys/param.h | 10 - newlib/libc/sys/arm/syscalls.c | 504 ----- newlib/libc/sys/arm/trap.S | 93 - newlib/libc/sys/configure | 1720 ----------------- newlib/libc/sys/configure.in | 24 - newlib/libc/sys/cygwin/Makefile.am | 19 - newlib/libc/sys/cygwin/Makefile.in | 311 --- newlib/libc/sys/cygwin/aclocal.m4 | 345 ---- newlib/libc/sys/cygwin/configure | 1598 ---------------- newlib/libc/sys/cygwin/configure.in | 12 - newlib/libc/sys/cygwin/crt0.c | 49 - newlib/libc/sys/cygwin/sys/dirent.h | 55 - newlib/libc/sys/cygwin/sys/param.h | 43 - newlib/libc/sys/cygwin/sys/utime.h | 22 - newlib/libc/sys/cygwin/sys/utmp.h | 49 - newlib/libc/sys/d10v/Makefile.am | 14 - newlib/libc/sys/d10v/Makefile.in | 299 --- newlib/libc/sys/d10v/aclocal.m4 | 345 ---- newlib/libc/sys/d10v/configure | 1598 ---------------- newlib/libc/sys/d10v/configure.in | 12 - newlib/libc/sys/d10v/creat.c | 7 - newlib/libc/sys/d10v/crt0.S | 58 - newlib/libc/sys/d10v/sys/syscall.h | 38 - newlib/libc/sys/d10v/syscalls.c | 216 --- newlib/libc/sys/d10v/trap.S | 296 --- newlib/libc/sys/decstation/Makefile.am | 45 - newlib/libc/sys/decstation/Makefile.in | 332 ---- newlib/libc/sys/decstation/_main.c | 6 - newlib/libc/sys/decstation/aclocal.m4 | 345 ---- newlib/libc/sys/decstation/configure | 1598 ---------------- newlib/libc/sys/decstation/configure.in | 12 - newlib/libc/sys/decstation/sys/dirent.h | 46 - newlib/libc/sys/go32/Makefile.am | 105 - newlib/libc/sys/go32/Makefile.in | 402 ---- newlib/libc/sys/go32/_exit.s | 20 - newlib/libc/sys/go32/_main.c | 3 - newlib/libc/sys/go32/abort.c | 8 - newlib/libc/sys/go32/access.c | 34 - newlib/libc/sys/go32/aclocal.m4 | 345 ---- newlib/libc/sys/go32/bdos.c | 12 - newlib/libc/sys/go32/bdosptr.c | 12 - newlib/libc/sys/go32/brk.s | 27 - newlib/libc/sys/go32/chdir.s | 27 - newlib/libc/sys/go32/chmod.c | 15 - newlib/libc/sys/go32/chown.c | 15 - newlib/libc/sys/go32/clock.S | 45 - newlib/libc/sys/go32/close.s | 27 - newlib/libc/sys/go32/configure | 1598 ---------------- newlib/libc/sys/go32/configure.in | 12 - newlib/libc/sys/go32/copying.dj | 63 - newlib/libc/sys/go32/creat.s | 19 - newlib/libc/sys/go32/crlf2nl.c | 69 - newlib/libc/sys/go32/crt0.S | 233 --- newlib/libc/sys/go32/dir.c | 95 - newlib/libc/sys/go32/dir.h | 53 - newlib/libc/sys/go32/djtime.h | 42 - newlib/libc/sys/go32/dos.h | 107 -- newlib/libc/sys/go32/dosmem.S | 120 -- newlib/libc/sys/go32/dpmi.c | 413 ---- newlib/libc/sys/go32/dpmi.h | 151 -- newlib/libc/sys/go32/dup.s | 28 - newlib/libc/sys/go32/dup2.s | 28 - newlib/libc/sys/go32/exec.c | 509 ----- newlib/libc/sys/go32/fchmod.c | 18 - newlib/libc/sys/go32/findfirs.s | 18 - newlib/libc/sys/go32/findnext.s | 16 - newlib/libc/sys/go32/fixpath.c | 155 -- newlib/libc/sys/go32/fstat.s | 19 - newlib/libc/sys/go32/fsync.s | 27 - newlib/libc/sys/go32/ftruncat.c | 25 - newlib/libc/sys/go32/gerrno.s | 33 - newlib/libc/sys/go32/getcwd.c | 37 - newlib/libc/sys/go32/getdate.c | 11 - newlib/libc/sys/go32/getdtabl.c | 18 - newlib/libc/sys/go32/getgid.c | 9 - newlib/libc/sys/go32/getkey.s | 59 - newlib/libc/sys/go32/getpages.c | 18 - newlib/libc/sys/go32/getpid.c | 18 - newlib/libc/sys/go32/getrusag.c | 35 - newlib/libc/sys/go32/gettime.c | 12 - newlib/libc/sys/go32/gettimeo.c | 61 - newlib/libc/sys/go32/gettimeo.s | 19 - newlib/libc/sys/go32/getuid.c | 9 - newlib/libc/sys/go32/getwd.s | 31 - newlib/libc/sys/go32/go32.h | 70 - newlib/libc/sys/go32/go32func.c | 69 - newlib/libc/sys/go32/infoblk.c | 4 - newlib/libc/sys/go32/inportb.s | 21 - newlib/libc/sys/go32/inportl.s | 19 - newlib/libc/sys/go32/inportsb.s | 25 - newlib/libc/sys/go32/inportsl.s | 24 - newlib/libc/sys/go32/inportsw.s | 24 - newlib/libc/sys/go32/inportw.s | 21 - newlib/libc/sys/go32/int86x.s | 103 - newlib/libc/sys/go32/intdos.c | 7 - newlib/libc/sys/go32/intdosx.c | 6 - newlib/libc/sys/go32/isatty.s | 33 - newlib/libc/sys/go32/kbhit.s | 51 - newlib/libc/sys/go32/kill.c | 6 - newlib/libc/sys/go32/link.s | 28 - newlib/libc/sys/go32/longjmp.S | 65 - newlib/libc/sys/go32/lseek.s | 36 - newlib/libc/sys/go32/lstat.s | 19 - newlib/libc/sys/go32/mkdir.s | 27 - newlib/libc/sys/go32/open.s | 31 - newlib/libc/sys/go32/outportb.s | 21 - newlib/libc/sys/go32/outportl.s | 20 - newlib/libc/sys/go32/outportw.s | 22 - newlib/libc/sys/go32/outprtsb.s | 25 - newlib/libc/sys/go32/outprtsl.s | 25 - newlib/libc/sys/go32/outprtsw.s | 25 - newlib/libc/sys/go32/pc.h | 71 - newlib/libc/sys/go32/read.s | 30 - newlib/libc/sys/go32/readv.c | 31 - newlib/libc/sys/go32/rename.s | 31 - newlib/libc/sys/go32/rmdir.s | 27 - newlib/libc/sys/go32/sbrk.s | 27 - newlib/libc/sys/go32/screen.S | 256 --- newlib/libc/sys/go32/setjmp.S | 61 - newlib/libc/sys/go32/setmode.s | 19 - newlib/libc/sys/go32/setstack.S | 70 - newlib/libc/sys/go32/settimeo.s | 19 - newlib/libc/sys/go32/sleep.c | 27 - newlib/libc/sys/go32/stat.c | 151 -- newlib/libc/sys/go32/stat.s | 19 - newlib/libc/sys/go32/stat_ast.s | 21 - newlib/libc/sys/go32/sys/dir.h | 33 - newlib/libc/sys/go32/sys/dirent.h | 39 - newlib/libc/sys/go32/sys/dos.h | 57 - newlib/libc/sys/go32/sys/dpmi.h | 151 -- newlib/libc/sys/go32/sys/errno.h | 73 - newlib/libc/sys/go32/sys/fcntl.h | 12 - newlib/libc/sys/go32/sys/file.h | 31 - newlib/libc/sys/go32/sys/go32.h | 69 - newlib/libc/sys/go32/sys/param.h | 22 - newlib/libc/sys/go32/sys/pc.h | 56 - newlib/libc/sys/go32/sys/register.h | 28 - newlib/libc/sys/go32/sys/resource.h | 50 - newlib/libc/sys/go32/sys/setjmp.h | 44 - newlib/libc/sys/go32/sys/stdc.h | 15 - newlib/libc/sys/go32/sys/uio.h | 23 - newlib/libc/sys/go32/syserr.c | 38 - newlib/libc/sys/go32/system.s | 19 - newlib/libc/sys/go32/tell.s | 33 - newlib/libc/sys/go32/time.c | 53 - newlib/libc/sys/go32/truncate.c | 25 - newlib/libc/sys/go32/turbo.s | 30 - newlib/libc/sys/go32/umask.c | 4 - newlib/libc/sys/go32/unlink.s | 27 - newlib/libc/sys/go32/utime.c | 15 - newlib/libc/sys/go32/utimes.c | 15 - newlib/libc/sys/go32/write.s | 30 - newlib/libc/sys/go32/writestub.c | 6 - newlib/libc/sys/go32/writev.c | 31 - newlib/libc/sys/h8300hms/Makefile.am | 14 - newlib/libc/sys/h8300hms/Makefile.in | 299 --- newlib/libc/sys/h8300hms/_exit.c | 23 - newlib/libc/sys/h8300hms/aclocal.m4 | 345 ---- newlib/libc/sys/h8300hms/configure | 1598 ---------------- newlib/libc/sys/h8300hms/configure.in | 12 - newlib/libc/sys/h8300hms/crt0.S | 69 - newlib/libc/sys/h8300hms/crt1.c | 16 - newlib/libc/sys/h8300hms/misc.c | 34 - newlib/libc/sys/h8300hms/sbrk.c | 28 - newlib/libc/sys/h8300hms/sys/file.h | 30 - newlib/libc/sys/h8300hms/syscalls.c | 50 - newlib/libc/sys/h8300hms/write.c | 16 - newlib/libc/sys/h8500hms/Makefile.am | 14 - newlib/libc/sys/h8500hms/Makefile.in | 299 --- newlib/libc/sys/h8500hms/aclocal.m4 | 345 ---- newlib/libc/sys/h8500hms/configure | 1598 ---------------- newlib/libc/sys/h8500hms/configure.in | 12 - newlib/libc/sys/h8500hms/crt0.c | 32 - newlib/libc/sys/h8500hms/misc.c | 29 - newlib/libc/sys/h8500hms/syscalls.c | 129 -- newlib/libc/sys/m88kbug/Makefile.am | 14 - newlib/libc/sys/m88kbug/Makefile.in | 299 --- newlib/libc/sys/m88kbug/aclocal.m4 | 345 ---- newlib/libc/sys/m88kbug/configure | 1598 ---------------- newlib/libc/sys/m88kbug/configure.in | 12 - newlib/libc/sys/m88kbug/crt0.c | 19 - newlib/libc/sys/m88kbug/sys/systraps.h | 9 - newlib/libc/sys/m88kbug/syscalls.c | 131 -- newlib/libc/sys/netware/Makefile.am | 16 - newlib/libc/sys/netware/Makefile.in | 301 --- newlib/libc/sys/netware/aclocal.m4 | 345 ---- newlib/libc/sys/netware/configure | 1598 ---------------- newlib/libc/sys/netware/configure.in | 12 - newlib/libc/sys/netware/crt0.c | 4 - newlib/libc/sys/netware/getpid.c | 11 - newlib/libc/sys/netware/link.c | 17 - newlib/libc/sys/rtems/Makefile.am | 14 - newlib/libc/sys/rtems/Makefile.in | 299 --- newlib/libc/sys/rtems/aclocal.m4 | 345 ---- newlib/libc/sys/rtems/configure | 1598 ---------------- newlib/libc/sys/rtems/configure.in | 12 - newlib/libc/sys/rtems/crt0.c | 1 - newlib/libc/sys/rtems/dummysys.c | 1 - newlib/libc/sys/rtems/include/limits.h | 178 -- newlib/libc/sys/rtems/include/signal.h | 134 -- newlib/libc/sys/rtems/include/time.h | 218 --- newlib/libc/sys/rtems/sys/features.h | 111 -- newlib/libc/sys/rtems/sys/sched.h | 48 - newlib/libc/sys/rtems/sys/siginfo.h | 168 -- newlib/libc/sys/rtems/sys/signal.h | 6 - newlib/libc/sys/rtems/sys/time.h | 65 - newlib/libc/sys/rtems/sys/times.h | 23 - newlib/libc/sys/rtems/sys/types.h | 338 ---- newlib/libc/sys/sh/Makefile.am | 14 - newlib/libc/sys/sh/Makefile.in | 299 --- newlib/libc/sys/sh/aclocal.m4 | 345 ---- newlib/libc/sys/sh/configure | 1598 ---------------- newlib/libc/sys/sh/configure.in | 12 - newlib/libc/sys/sh/creat.c | 7 - newlib/libc/sys/sh/crt0.S | 55 - newlib/libc/sys/sh/sys/syscall.h | 31 - newlib/libc/sys/sh/syscalls.c | 170 -- newlib/libc/sys/sh/trap.S | 15 - newlib/libc/sys/sparc64/Makefile.am | 119 -- newlib/libc/sys/sparc64/Makefile.in | 412 ---- newlib/libc/sys/sparc64/_exit.S | 14 - newlib/libc/sys/sparc64/_main.c | 6 - newlib/libc/sys/sparc64/aclocal.m4 | 345 ---- newlib/libc/sys/sparc64/cerror.S | 29 - newlib/libc/sys/sparc64/closedir.c | 58 - newlib/libc/sys/sparc64/configure | 1598 ---------------- newlib/libc/sys/sparc64/configure.in | 12 - newlib/libc/sys/sparc64/creat.c | 11 - newlib/libc/sys/sparc64/crt0.S | 123 -- newlib/libc/sys/sparc64/dup2.S | 9 - newlib/libc/sys/sparc64/execve.S | 27 - newlib/libc/sys/sparc64/ieee.c | 115 -- newlib/libc/sys/sparc64/isatty.c | 17 - newlib/libc/sys/sparc64/lstat.S | 5 - newlib/libc/sys/sparc64/opendir.c | 80 - newlib/libc/sys/sparc64/readdir.c | 72 - newlib/libc/sys/sparc64/rewinddir.c | 49 - newlib/libc/sys/sparc64/sbrk.S | 78 - newlib/libc/sys/sparc64/scandir.c | 138 -- newlib/libc/sys/sparc64/seekdir.c | 52 - newlib/libc/sys/sparc64/sigsetjmp.S | 77 - newlib/libc/sys/sparc64/stat.S | 9 - newlib/libc/sys/sparc64/sys/dirent.h | 48 - newlib/libc/sys/sparc64/sys/fcntl.h | 178 -- newlib/libc/sys/sparc64/sys/file.h | 3 - newlib/libc/sys/sparc64/sys/stat.h | 131 -- newlib/libc/sys/sparc64/sys/syscall.h | 346 ---- newlib/libc/sys/sparc64/sys/syscallasm.h | 87 - newlib/libc/sys/sparc64/sys/termios.h | 122 -- newlib/libc/sys/sparc64/sys/time.h | 22 - newlib/libc/sys/sparc64/sys/utime.h | 13 - newlib/libc/sys/sparc64/sys/utmp.h | 43 - newlib/libc/sys/sparc64/sys/wait.h | 43 - newlib/libc/sys/sparc64/telldir.c | 129 -- newlib/libc/sys/sparc64/template.S | 14 - newlib/libc/sys/sparc64/template_r.S | 26 - newlib/libc/sys/sparc64/utime.S | 10 - newlib/libc/sys/sparc64/utime2.c | 26 - newlib/libc/sys/sparc64/wait.S | 35 - newlib/libc/sys/sun4/Makefile.am | 95 - newlib/libc/sys/sun4/Makefile.in | 388 ---- newlib/libc/sys/sun4/_main.c | 6 - newlib/libc/sys/sun4/aclocal.m4 | 345 ---- newlib/libc/sys/sun4/configure | 1598 ---------------- newlib/libc/sys/sun4/configure.in | 12 - newlib/libc/sys/sun4/ieee.c | 115 -- newlib/libc/sys/sun4/sys/dirent.h | 45 - newlib/libc/sys/sun4/sys/file.h | 3 - newlib/libc/sys/sun4/sys/termios.h | 122 -- newlib/libc/sys/sun4/sys/utime.h | 13 - newlib/libc/sys/sun4/sys/utmp.h | 43 - newlib/libc/sys/sun4/sys/wait.h | 43 - newlib/libc/sys/sysmec/Makefile.am | 18 - newlib/libc/sys/sysmec/Makefile.in | 306 --- newlib/libc/sys/sysmec/_exit.c | 34 - newlib/libc/sys/sysmec/access.c | 34 - newlib/libc/sys/sysmec/aclocal.m4 | 345 ---- newlib/libc/sys/sysmec/chmod.c | 16 - newlib/libc/sys/sysmec/chown.c | 17 - newlib/libc/sys/sysmec/close.c | 16 - newlib/libc/sys/sysmec/configure | 1598 ---------------- newlib/libc/sys/sysmec/configure.in | 12 - newlib/libc/sys/sysmec/creat.c | 17 - newlib/libc/sys/sysmec/crt0.S | 65 - newlib/libc/sys/sysmec/crt1.c | 16 - newlib/libc/sys/sysmec/execv.c | 16 - newlib/libc/sys/sysmec/execve.c | 16 - newlib/libc/sys/sysmec/fork.c | 16 - newlib/libc/sys/sysmec/fstat.c | 19 - newlib/libc/sys/sysmec/getpid.c | 15 - newlib/libc/sys/sysmec/gettime.c | 17 - newlib/libc/sys/sysmec/isatty.c | 16 - newlib/libc/sys/sysmec/kill.c | 16 - newlib/libc/sys/sysmec/lseek.c | 19 - newlib/libc/sys/sysmec/open.c | 17 - newlib/libc/sys/sysmec/pipe.c | 16 - newlib/libc/sys/sysmec/read.c | 17 - newlib/libc/sys/sysmec/sbrk.c | 36 - newlib/libc/sys/sysmec/stat.c | 17 - newlib/libc/sys/sysmec/sys/syscall.h | 35 - newlib/libc/sys/sysmec/time.c | 16 - newlib/libc/sys/sysmec/times.c | 17 - newlib/libc/sys/sysmec/trap.S | 13 - newlib/libc/sys/sysmec/unlink.c | 16 - newlib/libc/sys/sysmec/utime.c | 18 - newlib/libc/sys/sysmec/wait.c | 17 - newlib/libc/sys/sysmec/write.c | 18 - newlib/libc/sys/sysnec810/Makefile.am | 14 - newlib/libc/sys/sysnec810/Makefile.in | 299 --- newlib/libc/sys/sysnec810/aclocal.m4 | 345 ---- newlib/libc/sys/sysnec810/configure | 1598 ---------------- newlib/libc/sys/sysnec810/configure.in | 12 - newlib/libc/sys/sysnec810/crt0.s | 22 - newlib/libc/sys/sysnec810/io.s | 41 - newlib/libc/sys/sysnec810/misc.c | 40 - newlib/libc/sys/sysnec810/sbrk.c | 12 - newlib/libc/sys/sysnec810/write.c | 36 - newlib/libc/sys/sysnecv850/Makefile.am | 19 - newlib/libc/sys/sysnecv850/Makefile.in | 307 --- newlib/libc/sys/sysnecv850/_exit.c | 34 - newlib/libc/sys/sysnecv850/access.c | 34 - newlib/libc/sys/sysnecv850/aclocal.m4 | 345 ---- newlib/libc/sys/sysnecv850/chmod.c | 16 - newlib/libc/sys/sysnecv850/chown.c | 16 - newlib/libc/sys/sysnecv850/close.c | 16 - newlib/libc/sys/sysnecv850/configure | 1598 ---------------- newlib/libc/sys/sysnecv850/configure.in | 12 - newlib/libc/sys/sysnecv850/creat.c | 17 - newlib/libc/sys/sysnecv850/crt0.S | 77 - newlib/libc/sys/sysnecv850/crt1.c | 16 - newlib/libc/sys/sysnecv850/execv.c | 16 - newlib/libc/sys/sysnecv850/execve.c | 16 - newlib/libc/sys/sysnecv850/fork.c | 16 - newlib/libc/sys/sysnecv850/fstat.c | 18 - newlib/libc/sys/sysnecv850/getpid.c | 15 - newlib/libc/sys/sysnecv850/gettime.c | 17 - newlib/libc/sys/sysnecv850/isatty.c | 16 - newlib/libc/sys/sysnecv850/kill.c | 19 - newlib/libc/sys/sysnecv850/link.c | 16 - newlib/libc/sys/sysnecv850/lseek.c | 18 - newlib/libc/sys/sysnecv850/open.c | 17 - newlib/libc/sys/sysnecv850/pipe.c | 16 - newlib/libc/sys/sysnecv850/read.c | 17 - newlib/libc/sys/sysnecv850/sbrk.c | 36 - newlib/libc/sys/sysnecv850/stat.c | 17 - newlib/libc/sys/sysnecv850/sys/syscall.h | 35 - newlib/libc/sys/sysnecv850/time.c | 16 - newlib/libc/sys/sysnecv850/times.c | 17 - newlib/libc/sys/sysnecv850/trap.S | 10 - newlib/libc/sys/sysnecv850/unlink.c | 16 - newlib/libc/sys/sysnecv850/utime.c | 18 - newlib/libc/sys/sysnecv850/wait.c | 17 - newlib/libc/sys/sysnecv850/write.c | 18 - newlib/libc/sys/sysvi386/Makefile.am | 23 - newlib/libc/sys/sysvi386/Makefile.in | 316 --- newlib/libc/sys/sysvi386/_exit.s | 6 - newlib/libc/sys/sysvi386/_longjmp.s | 31 - newlib/libc/sys/sysvi386/_setjmp.s | 24 - newlib/libc/sys/sysvi386/access.s | 8 - newlib/libc/sys/sysvi386/aclocal.m4 | 345 ---- newlib/libc/sys/sysvi386/alarm.s | 5 - newlib/libc/sys/sysvi386/brk.s | 8 - newlib/libc/sys/sysvi386/cerror.s | 9 - newlib/libc/sys/sysvi386/chdir.s | 9 - newlib/libc/sys/sysvi386/chmod.s | 9 - newlib/libc/sys/sysvi386/close.s | 9 - newlib/libc/sys/sysvi386/closedir.c | 58 - newlib/libc/sys/sysvi386/configure | 1598 ---------------- newlib/libc/sys/sysvi386/configure.in | 12 - newlib/libc/sys/sysvi386/crt0.c | 127 -- newlib/libc/sys/sysvi386/dup.c | 6 - newlib/libc/sys/sysvi386/dup2.c | 7 - newlib/libc/sys/sysvi386/exec.c | 54 - newlib/libc/sys/sysvi386/execve.s | 7 - newlib/libc/sys/sysvi386/fcntl.s | 9 - newlib/libc/sys/sysvi386/fork.s | 12 - newlib/libc/sys/sysvi386/fpathconf.s | 6 - newlib/libc/sys/sysvi386/fps.s | 18 - newlib/libc/sys/sysvi386/fpx.c | 73 - newlib/libc/sys/sysvi386/fstat.s | 9 - newlib/libc/sys/sysvi386/getdents.s | 6 - newlib/libc/sys/sysvi386/getegid.s | 9 - newlib/libc/sys/sysvi386/geteuid.s | 9 - newlib/libc/sys/sysvi386/getgid.s | 8 - newlib/libc/sys/sysvi386/getgroups.s | 8 - newlib/libc/sys/sysvi386/getpid.s | 9 - newlib/libc/sys/sysvi386/getuid.s | 8 - newlib/libc/sys/sysvi386/ioctl.s | 9 - newlib/libc/sys/sysvi386/isatty.c | 11 - newlib/libc/sys/sysvi386/kill.s | 9 - newlib/libc/sys/sysvi386/link.s | 9 - newlib/libc/sys/sysvi386/lseek.s | 8 - newlib/libc/sys/sysvi386/mkdir.s | 9 - newlib/libc/sys/sysvi386/open.s | 9 - newlib/libc/sys/sysvi386/opendir.c | 80 - newlib/libc/sys/sysvi386/pathconf.s | 6 - newlib/libc/sys/sysvi386/pause.s | 6 - newlib/libc/sys/sysvi386/pipe.s | 12 - newlib/libc/sys/sysvi386/read.s | 8 - newlib/libc/sys/sysvi386/readdir.c | 72 - newlib/libc/sys/sysvi386/rename.s | 9 - newlib/libc/sys/sysvi386/rewinddir.c | 49 - newlib/libc/sys/sysvi386/rmdir.s | 9 - newlib/libc/sys/sysvi386/sbrk.c | 21 - newlib/libc/sys/sysvi386/scandir.c | 134 -- newlib/libc/sys/sysvi386/seekdir.c | 52 - newlib/libc/sys/sysvi386/setgid.s | 9 - newlib/libc/sys/sysvi386/setuid.s | 9 - newlib/libc/sys/sysvi386/sigaction.s | 20 - newlib/libc/sys/sysvi386/signal.s | 16 - newlib/libc/sys/sysvi386/sigprocmask.s | 12 - newlib/libc/sys/sysvi386/sleep.c | 12 - newlib/libc/sys/sysvi386/speed.c | 24 - newlib/libc/sys/sysvi386/stat.s | 9 - newlib/libc/sys/sysvi386/sys/dirent.h | 36 - newlib/libc/sys/sysvi386/sys/param.h | 8 - newlib/libc/sys/sysvi386/sys/setjmp.h | 6 - newlib/libc/sys/sysvi386/sys/termio.h | 82 - newlib/libc/sys/sysvi386/sys/termios.h | 121 -- newlib/libc/sys/sysvi386/sys/utime.h | 12 - newlib/libc/sys/sysvi386/sys/utmp.h | 43 - newlib/libc/sys/sysvi386/sys/wait.h | 42 - newlib/libc/sys/sysvi386/sysconf.s | 6 - newlib/libc/sys/sysvi386/tcgetattr.c | 6 - newlib/libc/sys/sysvi386/tcline.c | 84 - newlib/libc/sys/sysvi386/tcsetattr.c | 7 - newlib/libc/sys/sysvi386/telldir.c | 129 -- newlib/libc/sys/sysvi386/time.s | 8 - newlib/libc/sys/sysvi386/times.s | 8 - newlib/libc/sys/sysvi386/unlink.s | 9 - newlib/libc/sys/sysvi386/utime.s | 8 - newlib/libc/sys/sysvi386/wait.s | 13 - newlib/libc/sys/sysvi386/waitpid.s | 18 - newlib/libc/sys/sysvi386/write.s | 8 - newlib/libc/sys/sysvnecv70/Makefile.am | 15 - newlib/libc/sys/sysvnecv70/Makefile.in | 301 --- newlib/libc/sys/sysvnecv70/aclocal.m4 | 345 ---- newlib/libc/sys/sysvnecv70/cerror.s | 9 - newlib/libc/sys/sysvnecv70/close.s | 10 - newlib/libc/sys/sysvnecv70/configure | 1598 ---------------- newlib/libc/sys/sysvnecv70/configure.in | 12 - newlib/libc/sys/sysvnecv70/crt0.s | 28 - newlib/libc/sys/sysvnecv70/exit.s | 7 - newlib/libc/sys/sysvnecv70/fps.s | 18 - newlib/libc/sys/sysvnecv70/fpx.c | 73 - newlib/libc/sys/sysvnecv70/fstat.s | 11 - newlib/libc/sys/sysvnecv70/ioctl.s | 9 - newlib/libc/sys/sysvnecv70/isatty.s | 19 - newlib/libc/sys/sysvnecv70/lseek.s | 9 - newlib/libc/sys/sysvnecv70/open.s | 10 - newlib/libc/sys/sysvnecv70/read.s | 9 - newlib/libc/sys/sysvnecv70/sbrk.s | 34 - newlib/libc/sys/sysvnecv70/sysv60.s | 9 - newlib/libc/sys/sysvnecv70/sysvnecv70.tex | 129 -- newlib/libc/sys/sysvnecv70/write.s | 9 - newlib/libc/sys/w65/Makefile.am | 14 - newlib/libc/sys/w65/Makefile.in | 299 --- newlib/libc/sys/w65/aclocal.m4 | 345 ---- newlib/libc/sys/w65/configure | 1598 ---------------- newlib/libc/sys/w65/configure.in | 12 - newlib/libc/sys/w65/crt0.c | 16 - newlib/libc/sys/w65/sys/syscall.h | 31 - newlib/libc/sys/w65/syscalls.c | 191 -- newlib/libc/sys/w65/trap.c | 15 - newlib/libc/sys/z8ksim/Makefile.am | 14 - newlib/libc/sys/z8ksim/Makefile.in | 299 --- newlib/libc/sys/z8ksim/aclocal.m4 | 345 ---- newlib/libc/sys/z8ksim/configure | 1598 ---------------- newlib/libc/sys/z8ksim/configure.in | 12 - newlib/libc/sys/z8ksim/crt0.c | 58 - newlib/libc/sys/z8ksim/glue.c | 156 -- newlib/libc/sys/z8ksim/sys/syscall.h | 23 - 532 files changed, 75370 deletions(-) delete mode 100644 newlib/libc/sys/Makefile.am delete mode 100644 newlib/libc/sys/Makefile.in delete mode 100644 newlib/libc/sys/a29khif/Makefile.am delete mode 100644 newlib/libc/sys/a29khif/Makefile.in delete mode 100644 newlib/libc/sys/a29khif/_alloc.s delete mode 100644 newlib/libc/sys/a29khif/_close.s delete mode 100644 newlib/libc/sys/a29khif/_cycles.s delete mode 100644 newlib/libc/sys/a29khif/_exit.s delete mode 100644 newlib/libc/sys/a29khif/_fstat.s delete mode 100644 newlib/libc/sys/a29khif/_getpsiz.s delete mode 100644 newlib/libc/sys/a29khif/_gettz.s delete mode 100644 newlib/libc/sys/a29khif/_ioctl.s delete mode 100644 newlib/libc/sys/a29khif/_iostat.s delete mode 100644 newlib/libc/sys/a29khif/_iowait.s delete mode 100644 newlib/libc/sys/a29khif/_isatty.s delete mode 100644 newlib/libc/sys/a29khif/_lseek.s delete mode 100644 newlib/libc/sys/a29khif/_open.s delete mode 100644 newlib/libc/sys/a29khif/_query.s delete mode 100644 newlib/libc/sys/a29khif/_read.s delete mode 100644 newlib/libc/sys/a29khif/_sbrk.s delete mode 100644 newlib/libc/sys/a29khif/_setim.s delete mode 100644 newlib/libc/sys/a29khif/_settrap.s delete mode 100644 newlib/libc/sys/a29khif/_setvec.s delete mode 100644 newlib/libc/sys/a29khif/_tmpnam.s delete mode 100644 newlib/libc/sys/a29khif/_write.s delete mode 100644 newlib/libc/sys/a29khif/aclocal.m4 delete mode 100644 newlib/libc/sys/a29khif/alloc.s delete mode 100644 newlib/libc/sys/a29khif/clock.s delete mode 100644 newlib/libc/sys/a29khif/configure delete mode 100644 newlib/libc/sys/a29khif/configure.in delete mode 100644 newlib/libc/sys/a29khif/crt0.s delete mode 100644 newlib/libc/sys/a29khif/getargs.s delete mode 100644 newlib/libc/sys/a29khif/getenv.s delete mode 100644 newlib/libc/sys/a29khif/getpid.c delete mode 100644 newlib/libc/sys/a29khif/kill.c delete mode 100644 newlib/libc/sys/a29khif/read.s delete mode 100644 newlib/libc/sys/a29khif/remove.s delete mode 100644 newlib/libc/sys/a29khif/rename.s delete mode 100644 newlib/libc/sys/a29khif/signal.s delete mode 100644 newlib/libc/sys/a29khif/stubs.s delete mode 100644 newlib/libc/sys/a29khif/sys/cpudef.h delete mode 100644 newlib/libc/sys/a29khif/sys/fpsymbol.h delete mode 100644 newlib/libc/sys/a29khif/sys/intrinsi.h delete mode 100644 newlib/libc/sys/a29khif/sys/macros.h delete mode 100644 newlib/libc/sys/a29khif/sys/proreg.h delete mode 100644 newlib/libc/sys/a29khif/sys/romdcl.h delete mode 100644 newlib/libc/sys/a29khif/sys/smartmac.h delete mode 100644 newlib/libc/sys/a29khif/sys/sysmac.h delete mode 100644 newlib/libc/sys/a29khif/systime.s delete mode 100644 newlib/libc/sys/a29khif/vec.s delete mode 100644 newlib/libc/sys/aclocal.m4 delete mode 100644 newlib/libc/sys/arm/Makefile.am delete mode 100644 newlib/libc/sys/arm/Makefile.in delete mode 100644 newlib/libc/sys/arm/aclocal.m4 delete mode 100644 newlib/libc/sys/arm/configure delete mode 100644 newlib/libc/sys/arm/configure.in delete mode 100644 newlib/libc/sys/arm/crt0.S delete mode 100644 newlib/libc/sys/arm/libcfunc.c delete mode 100644 newlib/libc/sys/arm/setjmp.S delete mode 100644 newlib/libc/sys/arm/swi.h delete mode 100644 newlib/libc/sys/arm/sys/param.h delete mode 100644 newlib/libc/sys/arm/syscalls.c delete mode 100644 newlib/libc/sys/arm/trap.S delete mode 100644 newlib/libc/sys/configure delete mode 100644 newlib/libc/sys/configure.in delete mode 100644 newlib/libc/sys/cygwin/Makefile.am delete mode 100644 newlib/libc/sys/cygwin/Makefile.in delete mode 100644 newlib/libc/sys/cygwin/aclocal.m4 delete mode 100644 newlib/libc/sys/cygwin/configure delete mode 100644 newlib/libc/sys/cygwin/configure.in delete mode 100644 newlib/libc/sys/cygwin/crt0.c delete mode 100644 newlib/libc/sys/cygwin/sys/dirent.h delete mode 100644 newlib/libc/sys/cygwin/sys/param.h delete mode 100644 newlib/libc/sys/cygwin/sys/utime.h delete mode 100644 newlib/libc/sys/cygwin/sys/utmp.h delete mode 100644 newlib/libc/sys/d10v/Makefile.am delete mode 100644 newlib/libc/sys/d10v/Makefile.in delete mode 100644 newlib/libc/sys/d10v/aclocal.m4 delete mode 100644 newlib/libc/sys/d10v/configure delete mode 100644 newlib/libc/sys/d10v/configure.in delete mode 100644 newlib/libc/sys/d10v/creat.c delete mode 100644 newlib/libc/sys/d10v/crt0.S delete mode 100644 newlib/libc/sys/d10v/sys/syscall.h delete mode 100644 newlib/libc/sys/d10v/syscalls.c delete mode 100644 newlib/libc/sys/d10v/trap.S delete mode 100644 newlib/libc/sys/decstation/Makefile.am delete mode 100644 newlib/libc/sys/decstation/Makefile.in delete mode 100644 newlib/libc/sys/decstation/_main.c delete mode 100644 newlib/libc/sys/decstation/aclocal.m4 delete mode 100644 newlib/libc/sys/decstation/configure delete mode 100644 newlib/libc/sys/decstation/configure.in delete mode 100644 newlib/libc/sys/decstation/sys/dirent.h delete mode 100644 newlib/libc/sys/go32/Makefile.am delete mode 100644 newlib/libc/sys/go32/Makefile.in delete mode 100644 newlib/libc/sys/go32/_exit.s delete mode 100644 newlib/libc/sys/go32/_main.c delete mode 100644 newlib/libc/sys/go32/abort.c delete mode 100644 newlib/libc/sys/go32/access.c delete mode 100644 newlib/libc/sys/go32/aclocal.m4 delete mode 100644 newlib/libc/sys/go32/bdos.c delete mode 100644 newlib/libc/sys/go32/bdosptr.c delete mode 100644 newlib/libc/sys/go32/brk.s delete mode 100644 newlib/libc/sys/go32/chdir.s delete mode 100644 newlib/libc/sys/go32/chmod.c delete mode 100644 newlib/libc/sys/go32/chown.c delete mode 100644 newlib/libc/sys/go32/clock.S delete mode 100644 newlib/libc/sys/go32/close.s delete mode 100644 newlib/libc/sys/go32/configure delete mode 100644 newlib/libc/sys/go32/configure.in delete mode 100644 newlib/libc/sys/go32/copying.dj delete mode 100644 newlib/libc/sys/go32/creat.s delete mode 100644 newlib/libc/sys/go32/crlf2nl.c delete mode 100644 newlib/libc/sys/go32/crt0.S delete mode 100644 newlib/libc/sys/go32/dir.c delete mode 100644 newlib/libc/sys/go32/dir.h delete mode 100644 newlib/libc/sys/go32/djtime.h delete mode 100644 newlib/libc/sys/go32/dos.h delete mode 100644 newlib/libc/sys/go32/dosmem.S delete mode 100644 newlib/libc/sys/go32/dpmi.c delete mode 100644 newlib/libc/sys/go32/dpmi.h delete mode 100644 newlib/libc/sys/go32/dup.s delete mode 100644 newlib/libc/sys/go32/dup2.s delete mode 100644 newlib/libc/sys/go32/exec.c delete mode 100644 newlib/libc/sys/go32/fchmod.c delete mode 100644 newlib/libc/sys/go32/findfirs.s delete mode 100644 newlib/libc/sys/go32/findnext.s delete mode 100644 newlib/libc/sys/go32/fixpath.c delete mode 100644 newlib/libc/sys/go32/fstat.s delete mode 100644 newlib/libc/sys/go32/fsync.s delete mode 100644 newlib/libc/sys/go32/ftruncat.c delete mode 100644 newlib/libc/sys/go32/gerrno.s delete mode 100644 newlib/libc/sys/go32/getcwd.c delete mode 100644 newlib/libc/sys/go32/getdate.c delete mode 100644 newlib/libc/sys/go32/getdtabl.c delete mode 100644 newlib/libc/sys/go32/getgid.c delete mode 100644 newlib/libc/sys/go32/getkey.s delete mode 100644 newlib/libc/sys/go32/getpages.c delete mode 100644 newlib/libc/sys/go32/getpid.c delete mode 100644 newlib/libc/sys/go32/getrusag.c delete mode 100644 newlib/libc/sys/go32/gettime.c delete mode 100644 newlib/libc/sys/go32/gettimeo.c delete mode 100644 newlib/libc/sys/go32/gettimeo.s delete mode 100644 newlib/libc/sys/go32/getuid.c delete mode 100644 newlib/libc/sys/go32/getwd.s delete mode 100644 newlib/libc/sys/go32/go32.h delete mode 100644 newlib/libc/sys/go32/go32func.c delete mode 100644 newlib/libc/sys/go32/infoblk.c delete mode 100644 newlib/libc/sys/go32/inportb.s delete mode 100644 newlib/libc/sys/go32/inportl.s delete mode 100644 newlib/libc/sys/go32/inportsb.s delete mode 100644 newlib/libc/sys/go32/inportsl.s delete mode 100644 newlib/libc/sys/go32/inportsw.s delete mode 100644 newlib/libc/sys/go32/inportw.s delete mode 100644 newlib/libc/sys/go32/int86x.s delete mode 100644 newlib/libc/sys/go32/intdos.c delete mode 100644 newlib/libc/sys/go32/intdosx.c delete mode 100644 newlib/libc/sys/go32/isatty.s delete mode 100644 newlib/libc/sys/go32/kbhit.s delete mode 100644 newlib/libc/sys/go32/kill.c delete mode 100644 newlib/libc/sys/go32/link.s delete mode 100644 newlib/libc/sys/go32/longjmp.S delete mode 100644 newlib/libc/sys/go32/lseek.s delete mode 100644 newlib/libc/sys/go32/lstat.s delete mode 100644 newlib/libc/sys/go32/mkdir.s delete mode 100644 newlib/libc/sys/go32/open.s delete mode 100644 newlib/libc/sys/go32/outportb.s delete mode 100644 newlib/libc/sys/go32/outportl.s delete mode 100644 newlib/libc/sys/go32/outportw.s delete mode 100644 newlib/libc/sys/go32/outprtsb.s delete mode 100644 newlib/libc/sys/go32/outprtsl.s delete mode 100644 newlib/libc/sys/go32/outprtsw.s delete mode 100644 newlib/libc/sys/go32/pc.h delete mode 100644 newlib/libc/sys/go32/read.s delete mode 100644 newlib/libc/sys/go32/readv.c delete mode 100644 newlib/libc/sys/go32/rename.s delete mode 100644 newlib/libc/sys/go32/rmdir.s delete mode 100644 newlib/libc/sys/go32/sbrk.s delete mode 100644 newlib/libc/sys/go32/screen.S delete mode 100644 newlib/libc/sys/go32/setjmp.S delete mode 100644 newlib/libc/sys/go32/setmode.s delete mode 100644 newlib/libc/sys/go32/setstack.S delete mode 100644 newlib/libc/sys/go32/settimeo.s delete mode 100644 newlib/libc/sys/go32/sleep.c delete mode 100644 newlib/libc/sys/go32/stat.c delete mode 100644 newlib/libc/sys/go32/stat.s delete mode 100644 newlib/libc/sys/go32/stat_ast.s delete mode 100644 newlib/libc/sys/go32/sys/dir.h delete mode 100644 newlib/libc/sys/go32/sys/dirent.h delete mode 100644 newlib/libc/sys/go32/sys/dos.h delete mode 100644 newlib/libc/sys/go32/sys/dpmi.h delete mode 100644 newlib/libc/sys/go32/sys/errno.h delete mode 100644 newlib/libc/sys/go32/sys/fcntl.h delete mode 100644 newlib/libc/sys/go32/sys/file.h delete mode 100644 newlib/libc/sys/go32/sys/go32.h delete mode 100644 newlib/libc/sys/go32/sys/param.h delete mode 100644 newlib/libc/sys/go32/sys/pc.h delete mode 100644 newlib/libc/sys/go32/sys/register.h delete mode 100644 newlib/libc/sys/go32/sys/resource.h delete mode 100644 newlib/libc/sys/go32/sys/setjmp.h delete mode 100644 newlib/libc/sys/go32/sys/stdc.h delete mode 100644 newlib/libc/sys/go32/sys/uio.h delete mode 100644 newlib/libc/sys/go32/syserr.c delete mode 100644 newlib/libc/sys/go32/system.s delete mode 100644 newlib/libc/sys/go32/tell.s delete mode 100644 newlib/libc/sys/go32/time.c delete mode 100644 newlib/libc/sys/go32/truncate.c delete mode 100644 newlib/libc/sys/go32/turbo.s delete mode 100644 newlib/libc/sys/go32/umask.c delete mode 100644 newlib/libc/sys/go32/unlink.s delete mode 100644 newlib/libc/sys/go32/utime.c delete mode 100644 newlib/libc/sys/go32/utimes.c delete mode 100644 newlib/libc/sys/go32/write.s delete mode 100644 newlib/libc/sys/go32/writestub.c delete mode 100644 newlib/libc/sys/go32/writev.c delete mode 100644 newlib/libc/sys/h8300hms/Makefile.am delete mode 100644 newlib/libc/sys/h8300hms/Makefile.in delete mode 100644 newlib/libc/sys/h8300hms/_exit.c delete mode 100644 newlib/libc/sys/h8300hms/aclocal.m4 delete mode 100644 newlib/libc/sys/h8300hms/configure delete mode 100644 newlib/libc/sys/h8300hms/configure.in delete mode 100644 newlib/libc/sys/h8300hms/crt0.S delete mode 100644 newlib/libc/sys/h8300hms/crt1.c delete mode 100644 newlib/libc/sys/h8300hms/misc.c delete mode 100644 newlib/libc/sys/h8300hms/sbrk.c delete mode 100644 newlib/libc/sys/h8300hms/sys/file.h delete mode 100644 newlib/libc/sys/h8300hms/syscalls.c delete mode 100644 newlib/libc/sys/h8300hms/write.c delete mode 100644 newlib/libc/sys/h8500hms/Makefile.am delete mode 100644 newlib/libc/sys/h8500hms/Makefile.in delete mode 100644 newlib/libc/sys/h8500hms/aclocal.m4 delete mode 100644 newlib/libc/sys/h8500hms/configure delete mode 100644 newlib/libc/sys/h8500hms/configure.in delete mode 100644 newlib/libc/sys/h8500hms/crt0.c delete mode 100644 newlib/libc/sys/h8500hms/misc.c delete mode 100644 newlib/libc/sys/h8500hms/syscalls.c delete mode 100644 newlib/libc/sys/m88kbug/Makefile.am delete mode 100644 newlib/libc/sys/m88kbug/Makefile.in delete mode 100644 newlib/libc/sys/m88kbug/aclocal.m4 delete mode 100644 newlib/libc/sys/m88kbug/configure delete mode 100644 newlib/libc/sys/m88kbug/configure.in delete mode 100644 newlib/libc/sys/m88kbug/crt0.c delete mode 100644 newlib/libc/sys/m88kbug/sys/systraps.h delete mode 100644 newlib/libc/sys/m88kbug/syscalls.c delete mode 100644 newlib/libc/sys/netware/Makefile.am delete mode 100644 newlib/libc/sys/netware/Makefile.in delete mode 100644 newlib/libc/sys/netware/aclocal.m4 delete mode 100644 newlib/libc/sys/netware/configure delete mode 100644 newlib/libc/sys/netware/configure.in delete mode 100644 newlib/libc/sys/netware/crt0.c delete mode 100644 newlib/libc/sys/netware/getpid.c delete mode 100644 newlib/libc/sys/netware/link.c delete mode 100644 newlib/libc/sys/rtems/Makefile.am delete mode 100644 newlib/libc/sys/rtems/Makefile.in delete mode 100644 newlib/libc/sys/rtems/aclocal.m4 delete mode 100644 newlib/libc/sys/rtems/configure delete mode 100644 newlib/libc/sys/rtems/configure.in delete mode 100644 newlib/libc/sys/rtems/crt0.c delete mode 100644 newlib/libc/sys/rtems/dummysys.c delete mode 100644 newlib/libc/sys/rtems/include/limits.h delete mode 100644 newlib/libc/sys/rtems/include/signal.h delete mode 100644 newlib/libc/sys/rtems/include/time.h delete mode 100644 newlib/libc/sys/rtems/sys/features.h delete mode 100644 newlib/libc/sys/rtems/sys/sched.h delete mode 100644 newlib/libc/sys/rtems/sys/siginfo.h delete mode 100644 newlib/libc/sys/rtems/sys/signal.h delete mode 100644 newlib/libc/sys/rtems/sys/time.h delete mode 100644 newlib/libc/sys/rtems/sys/times.h delete mode 100644 newlib/libc/sys/rtems/sys/types.h delete mode 100644 newlib/libc/sys/sh/Makefile.am delete mode 100644 newlib/libc/sys/sh/Makefile.in delete mode 100644 newlib/libc/sys/sh/aclocal.m4 delete mode 100644 newlib/libc/sys/sh/configure delete mode 100644 newlib/libc/sys/sh/configure.in delete mode 100644 newlib/libc/sys/sh/creat.c delete mode 100644 newlib/libc/sys/sh/crt0.S delete mode 100644 newlib/libc/sys/sh/sys/syscall.h delete mode 100644 newlib/libc/sys/sh/syscalls.c delete mode 100644 newlib/libc/sys/sh/trap.S delete mode 100644 newlib/libc/sys/sparc64/Makefile.am delete mode 100644 newlib/libc/sys/sparc64/Makefile.in delete mode 100644 newlib/libc/sys/sparc64/_exit.S delete mode 100644 newlib/libc/sys/sparc64/_main.c delete mode 100644 newlib/libc/sys/sparc64/aclocal.m4 delete mode 100644 newlib/libc/sys/sparc64/cerror.S delete mode 100644 newlib/libc/sys/sparc64/closedir.c delete mode 100644 newlib/libc/sys/sparc64/configure delete mode 100644 newlib/libc/sys/sparc64/configure.in delete mode 100644 newlib/libc/sys/sparc64/creat.c delete mode 100644 newlib/libc/sys/sparc64/crt0.S delete mode 100644 newlib/libc/sys/sparc64/dup2.S delete mode 100644 newlib/libc/sys/sparc64/execve.S delete mode 100644 newlib/libc/sys/sparc64/ieee.c delete mode 100644 newlib/libc/sys/sparc64/isatty.c delete mode 100644 newlib/libc/sys/sparc64/lstat.S delete mode 100644 newlib/libc/sys/sparc64/opendir.c delete mode 100644 newlib/libc/sys/sparc64/readdir.c delete mode 100644 newlib/libc/sys/sparc64/rewinddir.c delete mode 100644 newlib/libc/sys/sparc64/sbrk.S delete mode 100644 newlib/libc/sys/sparc64/scandir.c delete mode 100644 newlib/libc/sys/sparc64/seekdir.c delete mode 100644 newlib/libc/sys/sparc64/sigsetjmp.S delete mode 100644 newlib/libc/sys/sparc64/stat.S delete mode 100644 newlib/libc/sys/sparc64/sys/dirent.h delete mode 100644 newlib/libc/sys/sparc64/sys/fcntl.h delete mode 100644 newlib/libc/sys/sparc64/sys/file.h delete mode 100644 newlib/libc/sys/sparc64/sys/stat.h delete mode 100644 newlib/libc/sys/sparc64/sys/syscall.h delete mode 100644 newlib/libc/sys/sparc64/sys/syscallasm.h delete mode 100644 newlib/libc/sys/sparc64/sys/termios.h delete mode 100644 newlib/libc/sys/sparc64/sys/time.h delete mode 100644 newlib/libc/sys/sparc64/sys/utime.h delete mode 100644 newlib/libc/sys/sparc64/sys/utmp.h delete mode 100644 newlib/libc/sys/sparc64/sys/wait.h delete mode 100644 newlib/libc/sys/sparc64/telldir.c delete mode 100644 newlib/libc/sys/sparc64/template.S delete mode 100644 newlib/libc/sys/sparc64/template_r.S delete mode 100644 newlib/libc/sys/sparc64/utime.S delete mode 100644 newlib/libc/sys/sparc64/utime2.c delete mode 100644 newlib/libc/sys/sparc64/wait.S delete mode 100644 newlib/libc/sys/sun4/Makefile.am delete mode 100644 newlib/libc/sys/sun4/Makefile.in delete mode 100644 newlib/libc/sys/sun4/_main.c delete mode 100644 newlib/libc/sys/sun4/aclocal.m4 delete mode 100644 newlib/libc/sys/sun4/configure delete mode 100644 newlib/libc/sys/sun4/configure.in delete mode 100644 newlib/libc/sys/sun4/ieee.c delete mode 100644 newlib/libc/sys/sun4/sys/dirent.h delete mode 100644 newlib/libc/sys/sun4/sys/file.h delete mode 100644 newlib/libc/sys/sun4/sys/termios.h delete mode 100644 newlib/libc/sys/sun4/sys/utime.h delete mode 100644 newlib/libc/sys/sun4/sys/utmp.h delete mode 100644 newlib/libc/sys/sun4/sys/wait.h delete mode 100644 newlib/libc/sys/sysmec/Makefile.am delete mode 100644 newlib/libc/sys/sysmec/Makefile.in delete mode 100644 newlib/libc/sys/sysmec/_exit.c delete mode 100644 newlib/libc/sys/sysmec/access.c delete mode 100644 newlib/libc/sys/sysmec/aclocal.m4 delete mode 100644 newlib/libc/sys/sysmec/chmod.c delete mode 100644 newlib/libc/sys/sysmec/chown.c delete mode 100644 newlib/libc/sys/sysmec/close.c delete mode 100644 newlib/libc/sys/sysmec/configure delete mode 100644 newlib/libc/sys/sysmec/configure.in delete mode 100644 newlib/libc/sys/sysmec/creat.c delete mode 100644 newlib/libc/sys/sysmec/crt0.S delete mode 100644 newlib/libc/sys/sysmec/crt1.c delete mode 100644 newlib/libc/sys/sysmec/execv.c delete mode 100644 newlib/libc/sys/sysmec/execve.c delete mode 100644 newlib/libc/sys/sysmec/fork.c delete mode 100644 newlib/libc/sys/sysmec/fstat.c delete mode 100644 newlib/libc/sys/sysmec/getpid.c delete mode 100644 newlib/libc/sys/sysmec/gettime.c delete mode 100644 newlib/libc/sys/sysmec/isatty.c delete mode 100644 newlib/libc/sys/sysmec/kill.c delete mode 100644 newlib/libc/sys/sysmec/lseek.c delete mode 100644 newlib/libc/sys/sysmec/open.c delete mode 100644 newlib/libc/sys/sysmec/pipe.c delete mode 100644 newlib/libc/sys/sysmec/read.c delete mode 100644 newlib/libc/sys/sysmec/sbrk.c delete mode 100644 newlib/libc/sys/sysmec/stat.c delete mode 100644 newlib/libc/sys/sysmec/sys/syscall.h delete mode 100644 newlib/libc/sys/sysmec/time.c delete mode 100644 newlib/libc/sys/sysmec/times.c delete mode 100644 newlib/libc/sys/sysmec/trap.S delete mode 100644 newlib/libc/sys/sysmec/unlink.c delete mode 100644 newlib/libc/sys/sysmec/utime.c delete mode 100644 newlib/libc/sys/sysmec/wait.c delete mode 100644 newlib/libc/sys/sysmec/write.c delete mode 100644 newlib/libc/sys/sysnec810/Makefile.am delete mode 100644 newlib/libc/sys/sysnec810/Makefile.in delete mode 100644 newlib/libc/sys/sysnec810/aclocal.m4 delete mode 100644 newlib/libc/sys/sysnec810/configure delete mode 100644 newlib/libc/sys/sysnec810/configure.in delete mode 100644 newlib/libc/sys/sysnec810/crt0.s delete mode 100644 newlib/libc/sys/sysnec810/io.s delete mode 100644 newlib/libc/sys/sysnec810/misc.c delete mode 100644 newlib/libc/sys/sysnec810/sbrk.c delete mode 100644 newlib/libc/sys/sysnec810/write.c delete mode 100644 newlib/libc/sys/sysnecv850/Makefile.am delete mode 100644 newlib/libc/sys/sysnecv850/Makefile.in delete mode 100644 newlib/libc/sys/sysnecv850/_exit.c delete mode 100644 newlib/libc/sys/sysnecv850/access.c delete mode 100644 newlib/libc/sys/sysnecv850/aclocal.m4 delete mode 100644 newlib/libc/sys/sysnecv850/chmod.c delete mode 100644 newlib/libc/sys/sysnecv850/chown.c delete mode 100644 newlib/libc/sys/sysnecv850/close.c delete mode 100644 newlib/libc/sys/sysnecv850/configure delete mode 100644 newlib/libc/sys/sysnecv850/configure.in delete mode 100644 newlib/libc/sys/sysnecv850/creat.c delete mode 100644 newlib/libc/sys/sysnecv850/crt0.S delete mode 100644 newlib/libc/sys/sysnecv850/crt1.c delete mode 100644 newlib/libc/sys/sysnecv850/execv.c delete mode 100644 newlib/libc/sys/sysnecv850/execve.c delete mode 100644 newlib/libc/sys/sysnecv850/fork.c delete mode 100644 newlib/libc/sys/sysnecv850/fstat.c delete mode 100644 newlib/libc/sys/sysnecv850/getpid.c delete mode 100644 newlib/libc/sys/sysnecv850/gettime.c delete mode 100644 newlib/libc/sys/sysnecv850/isatty.c delete mode 100644 newlib/libc/sys/sysnecv850/kill.c delete mode 100644 newlib/libc/sys/sysnecv850/link.c delete mode 100644 newlib/libc/sys/sysnecv850/lseek.c delete mode 100644 newlib/libc/sys/sysnecv850/open.c delete mode 100644 newlib/libc/sys/sysnecv850/pipe.c delete mode 100644 newlib/libc/sys/sysnecv850/read.c delete mode 100644 newlib/libc/sys/sysnecv850/sbrk.c delete mode 100644 newlib/libc/sys/sysnecv850/stat.c delete mode 100644 newlib/libc/sys/sysnecv850/sys/syscall.h delete mode 100644 newlib/libc/sys/sysnecv850/time.c delete mode 100644 newlib/libc/sys/sysnecv850/times.c delete mode 100644 newlib/libc/sys/sysnecv850/trap.S delete mode 100644 newlib/libc/sys/sysnecv850/unlink.c delete mode 100644 newlib/libc/sys/sysnecv850/utime.c delete mode 100644 newlib/libc/sys/sysnecv850/wait.c delete mode 100644 newlib/libc/sys/sysnecv850/write.c delete mode 100644 newlib/libc/sys/sysvi386/Makefile.am delete mode 100644 newlib/libc/sys/sysvi386/Makefile.in delete mode 100644 newlib/libc/sys/sysvi386/_exit.s delete mode 100644 newlib/libc/sys/sysvi386/_longjmp.s delete mode 100644 newlib/libc/sys/sysvi386/_setjmp.s delete mode 100644 newlib/libc/sys/sysvi386/access.s delete mode 100644 newlib/libc/sys/sysvi386/aclocal.m4 delete mode 100644 newlib/libc/sys/sysvi386/alarm.s delete mode 100644 newlib/libc/sys/sysvi386/brk.s delete mode 100644 newlib/libc/sys/sysvi386/cerror.s delete mode 100644 newlib/libc/sys/sysvi386/chdir.s delete mode 100644 newlib/libc/sys/sysvi386/chmod.s delete mode 100644 newlib/libc/sys/sysvi386/close.s delete mode 100644 newlib/libc/sys/sysvi386/closedir.c delete mode 100644 newlib/libc/sys/sysvi386/configure delete mode 100644 newlib/libc/sys/sysvi386/configure.in delete mode 100644 newlib/libc/sys/sysvi386/crt0.c delete mode 100644 newlib/libc/sys/sysvi386/dup.c delete mode 100644 newlib/libc/sys/sysvi386/dup2.c delete mode 100644 newlib/libc/sys/sysvi386/exec.c delete mode 100644 newlib/libc/sys/sysvi386/execve.s delete mode 100644 newlib/libc/sys/sysvi386/fcntl.s delete mode 100644 newlib/libc/sys/sysvi386/fork.s delete mode 100644 newlib/libc/sys/sysvi386/fpathconf.s delete mode 100644 newlib/libc/sys/sysvi386/fps.s delete mode 100644 newlib/libc/sys/sysvi386/fpx.c delete mode 100644 newlib/libc/sys/sysvi386/fstat.s delete mode 100644 newlib/libc/sys/sysvi386/getdents.s delete mode 100644 newlib/libc/sys/sysvi386/getegid.s delete mode 100644 newlib/libc/sys/sysvi386/geteuid.s delete mode 100644 newlib/libc/sys/sysvi386/getgid.s delete mode 100644 newlib/libc/sys/sysvi386/getgroups.s delete mode 100644 newlib/libc/sys/sysvi386/getpid.s delete mode 100644 newlib/libc/sys/sysvi386/getuid.s delete mode 100644 newlib/libc/sys/sysvi386/ioctl.s delete mode 100644 newlib/libc/sys/sysvi386/isatty.c delete mode 100644 newlib/libc/sys/sysvi386/kill.s delete mode 100644 newlib/libc/sys/sysvi386/link.s delete mode 100644 newlib/libc/sys/sysvi386/lseek.s delete mode 100644 newlib/libc/sys/sysvi386/mkdir.s delete mode 100644 newlib/libc/sys/sysvi386/open.s delete mode 100644 newlib/libc/sys/sysvi386/opendir.c delete mode 100644 newlib/libc/sys/sysvi386/pathconf.s delete mode 100644 newlib/libc/sys/sysvi386/pause.s delete mode 100644 newlib/libc/sys/sysvi386/pipe.s delete mode 100644 newlib/libc/sys/sysvi386/read.s delete mode 100644 newlib/libc/sys/sysvi386/readdir.c delete mode 100644 newlib/libc/sys/sysvi386/rename.s delete mode 100644 newlib/libc/sys/sysvi386/rewinddir.c delete mode 100644 newlib/libc/sys/sysvi386/rmdir.s delete mode 100644 newlib/libc/sys/sysvi386/sbrk.c delete mode 100644 newlib/libc/sys/sysvi386/scandir.c delete mode 100644 newlib/libc/sys/sysvi386/seekdir.c delete mode 100644 newlib/libc/sys/sysvi386/setgid.s delete mode 100644 newlib/libc/sys/sysvi386/setuid.s delete mode 100644 newlib/libc/sys/sysvi386/sigaction.s delete mode 100644 newlib/libc/sys/sysvi386/signal.s delete mode 100644 newlib/libc/sys/sysvi386/sigprocmask.s delete mode 100644 newlib/libc/sys/sysvi386/sleep.c delete mode 100644 newlib/libc/sys/sysvi386/speed.c delete mode 100644 newlib/libc/sys/sysvi386/stat.s delete mode 100644 newlib/libc/sys/sysvi386/sys/dirent.h delete mode 100644 newlib/libc/sys/sysvi386/sys/param.h delete mode 100644 newlib/libc/sys/sysvi386/sys/setjmp.h delete mode 100644 newlib/libc/sys/sysvi386/sys/termio.h delete mode 100644 newlib/libc/sys/sysvi386/sys/termios.h delete mode 100644 newlib/libc/sys/sysvi386/sys/utime.h delete mode 100644 newlib/libc/sys/sysvi386/sys/utmp.h delete mode 100644 newlib/libc/sys/sysvi386/sys/wait.h delete mode 100644 newlib/libc/sys/sysvi386/sysconf.s delete mode 100644 newlib/libc/sys/sysvi386/tcgetattr.c delete mode 100644 newlib/libc/sys/sysvi386/tcline.c delete mode 100644 newlib/libc/sys/sysvi386/tcsetattr.c delete mode 100644 newlib/libc/sys/sysvi386/telldir.c delete mode 100644 newlib/libc/sys/sysvi386/time.s delete mode 100644 newlib/libc/sys/sysvi386/times.s delete mode 100644 newlib/libc/sys/sysvi386/unlink.s delete mode 100644 newlib/libc/sys/sysvi386/utime.s delete mode 100644 newlib/libc/sys/sysvi386/wait.s delete mode 100644 newlib/libc/sys/sysvi386/waitpid.s delete mode 100644 newlib/libc/sys/sysvi386/write.s delete mode 100644 newlib/libc/sys/sysvnecv70/Makefile.am delete mode 100644 newlib/libc/sys/sysvnecv70/Makefile.in delete mode 100644 newlib/libc/sys/sysvnecv70/aclocal.m4 delete mode 100644 newlib/libc/sys/sysvnecv70/cerror.s delete mode 100644 newlib/libc/sys/sysvnecv70/close.s delete mode 100644 newlib/libc/sys/sysvnecv70/configure delete mode 100644 newlib/libc/sys/sysvnecv70/configure.in delete mode 100644 newlib/libc/sys/sysvnecv70/crt0.s delete mode 100644 newlib/libc/sys/sysvnecv70/exit.s delete mode 100644 newlib/libc/sys/sysvnecv70/fps.s delete mode 100644 newlib/libc/sys/sysvnecv70/fpx.c delete mode 100644 newlib/libc/sys/sysvnecv70/fstat.s delete mode 100644 newlib/libc/sys/sysvnecv70/ioctl.s delete mode 100644 newlib/libc/sys/sysvnecv70/isatty.s delete mode 100644 newlib/libc/sys/sysvnecv70/lseek.s delete mode 100644 newlib/libc/sys/sysvnecv70/open.s delete mode 100644 newlib/libc/sys/sysvnecv70/read.s delete mode 100644 newlib/libc/sys/sysvnecv70/sbrk.s delete mode 100644 newlib/libc/sys/sysvnecv70/sysv60.s delete mode 100644 newlib/libc/sys/sysvnecv70/sysvnecv70.tex delete mode 100644 newlib/libc/sys/sysvnecv70/write.s delete mode 100644 newlib/libc/sys/w65/Makefile.am delete mode 100644 newlib/libc/sys/w65/Makefile.in delete mode 100644 newlib/libc/sys/w65/aclocal.m4 delete mode 100644 newlib/libc/sys/w65/configure delete mode 100644 newlib/libc/sys/w65/configure.in delete mode 100644 newlib/libc/sys/w65/crt0.c delete mode 100644 newlib/libc/sys/w65/sys/syscall.h delete mode 100644 newlib/libc/sys/w65/syscalls.c delete mode 100644 newlib/libc/sys/w65/trap.c delete mode 100644 newlib/libc/sys/z8ksim/Makefile.am delete mode 100644 newlib/libc/sys/z8ksim/Makefile.in delete mode 100644 newlib/libc/sys/z8ksim/aclocal.m4 delete mode 100644 newlib/libc/sys/z8ksim/configure delete mode 100644 newlib/libc/sys/z8ksim/configure.in delete mode 100644 newlib/libc/sys/z8ksim/crt0.c delete mode 100644 newlib/libc/sys/z8ksim/glue.c delete mode 100644 newlib/libc/sys/z8ksim/sys/syscall.h (limited to 'newlib/libc/sys') diff --git a/newlib/libc/sys/Makefile.am b/newlib/libc/sys/Makefile.am deleted file mode 100644 index daee8a1..0000000 --- a/newlib/libc/sys/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -SUBDIRS = $(sys_dir) - -EXTRA_DATA = crt0.o - -if HAVE_SYS_DIR -SYSLIB = lib.a -endif - -noinst_LIBRARIES = $(SYSLIB) -noinst_DATA = $(CRT0) - -lib.a: $(sys_dir)/lib.a - rm -f $@ - ln $(sys_dir)/lib.a $@ >/dev/null 2>/dev/null \ - || cp $(sys_dir)/lib.a $@ - -$(sys_dir)/lib.a: all-recursive ; @true - -crt0.o: $(sys_dir)/crt0.o - rm -f $@ - ln $(sys_dir)/crt0.o $@ >/dev/null 2>/dev/null \ - || cp $(sys_dir)/crt0.o $@ - -$(sys_dir)/crt0.o: all-recursive ; @true - -CLEANFILES = crt0.o - -doc: - -ACLOCAL_AMFLAGS = -I ../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/Makefile.in b/newlib/libc/sys/Makefile.in deleted file mode 100644 index 6947055..0000000 --- a/newlib/libc/sys/Makefile.in +++ /dev/null @@ -1,380 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -CRT0 = @CRT0@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -SUBDIRS = $(sys_dir) - -EXTRA_DATA = crt0.o - -@HAVE_SYS_DIR_TRUE@SYSLIB = lib.a - -noinst_LIBRARIES = $(SYSLIB) -noinst_DATA = $(CRT0) - -CLEANFILES = crt0.o - -ACLOCAL_AMFLAGS = -I ../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -lib_a_LIBADD = -lib_a_SOURCES = lib.a.c -lib_a_OBJECTS = lib.a.o -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DATA = $(noinst_DATA) - -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = lib.a.c -OBJECTS = lib.a.o - -all: all-recursive all-am - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../acinclude.m4 ../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. - -@SET_MAKE@ - -all-recursive install-data-recursive install-exec-recursive \ -installdirs-recursive install-recursive uninstall-recursive install-info-recursive \ -check-recursive installcheck-recursive info-recursive dvi-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ - rev="$$subdir $$rev"; \ - done; \ - for subdir in $$rev; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ - done; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - for subdir in $(SUBDIRS); do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ - || exit 1; \ - done -info: info-recursive -dvi: dvi-recursive -check: - $(MAKE) $(AM_MAKEFLAGS) check-recursive -installcheck: installcheck-recursive -install-info: install-info-recursive -all-am: Makefile $(LIBRARIES) $(DATA) - -install-exec: install-exec-recursive - @$(NORMAL_INSTALL) - -install-data: install-data-recursive - @$(NORMAL_INSTALL) - -install: install-recursive - @: - -uninstall: uninstall-recursive - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: installdirs-recursive - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean-am - -distclean-am: distclean-noinstLIBRARIES distclean-compile \ - distclean-tags distclean-generic clean-am - -maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am - -mostlyclean: mostlyclean-recursive mostlyclean-am - -clean: clean-recursive clean-am - -distclean: distclean-recursive distclean-am - -rm -f config.status - -maintainer-clean: maintainer-clean-recursive maintainer-clean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile install-data-recursive \ -uninstall-data-recursive install-exec-recursive \ -uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ -all-recursive check-recursive installcheck-recursive info-recursive \ -dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ -distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ -installcheck install-info all-am install-exec install-data install \ -uninstall all installdirs mostlyclean-generic distclean-generic \ -clean-generic maintainer-clean-generic clean mostlyclean distclean \ -maintainer-clean - - -lib.a: $(sys_dir)/lib.a - rm -f $@ - ln $(sys_dir)/lib.a $@ >/dev/null 2>/dev/null \ - || cp $(sys_dir)/lib.a $@ - -$(sys_dir)/lib.a: all-recursive ; @true - -crt0.o: $(sys_dir)/crt0.o - rm -f $@ - ln $(sys_dir)/crt0.o $@ >/dev/null 2>/dev/null \ - || cp $(sys_dir)/crt0.o $@ - -$(sys_dir)/crt0.o: all-recursive ; @true - -doc: - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/a29khif/Makefile.am b/newlib/libc/sys/a29khif/Makefile.am deleted file mode 100644 index 48f3896..0000000 --- a/newlib/libc/sys/a29khif/Makefile.am +++ /dev/null @@ -1,48 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = \ - _alloc.s \ - _close.s \ - _cycles.s \ - _exit.s \ - _getpsiz.s \ - _gettz.s \ - _ioctl.s \ - _iostat.s \ - _iowait.s \ - _lseek.s \ - _open.s \ - _query.s \ - _read.s \ - _setim.s \ - _settrap.s \ - _setvec.s \ - _tmpnam.s \ - _write.s \ - alloc.s \ - clock.s \ - getargs.s \ - getenv.s \ - read.s \ - remove.s \ - rename.s \ - signal.s \ - _sbrk.s \ - _fstat.s \ - _isatty.s \ - systime.s \ - vec.s \ - kill.c \ - getpid.c \ - stubs.s - -all: crt0.o - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/a29khif/Makefile.in b/newlib/libc/sys/a29khif/Makefile.in deleted file mode 100644 index 027a830..0000000 --- a/newlib/libc/sys/a29khif/Makefile.in +++ /dev/null @@ -1,337 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = \ - _alloc.s \ - _close.s \ - _cycles.s \ - _exit.s \ - _getpsiz.s \ - _gettz.s \ - _ioctl.s \ - _iostat.s \ - _iowait.s \ - _lseek.s \ - _open.s \ - _query.s \ - _read.s \ - _setim.s \ - _settrap.s \ - _setvec.s \ - _tmpnam.s \ - _write.s \ - alloc.s \ - clock.s \ - getargs.s \ - getenv.s \ - read.s \ - remove.s \ - rename.s \ - signal.s \ - _sbrk.s \ - _fstat.s \ - _isatty.s \ - systime.s \ - vec.s \ - kill.c \ - getpid.c \ - stubs.s - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -lib_a_LIBADD = -lib_a_OBJECTS = _alloc.o _close.o _cycles.o _exit.o _getpsiz.o _gettz.o \ -_ioctl.o _iostat.o _iowait.o _lseek.o _open.o _query.o _read.o _setim.o \ -_settrap.o _setvec.o _tmpnam.o _write.o alloc.o clock.o getargs.o \ -getenv.o read.o remove.o rename.o signal.o _sbrk.o _fstat.o _isatty.o \ -systime.o vec.o kill.o getpid.o stubs.o -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = $(lib_a_SOURCES) -OBJECTS = $(lib_a_OBJECTS) - -all: Makefile $(LIBRARIES) - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../../acinclude.m4 \ - ../../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) - -rm -f lib.a - $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(RANLIB) lib.a - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done -info: -dvi: -check: - $(MAKE) $(AM_MAKEFLAGS) -installcheck: -install-info: -install-exec: - @$(NORMAL_INSTALL) - -install-data: - @$(NORMAL_INSTALL) - -install: install-exec install-data all - @: - -uninstall: - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - -distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - -maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir info dvi installcheck \ -install-info install-exec install-data install uninstall all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - -all: crt0.o - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/a29khif/_alloc.s b/newlib/libc/sys/a29khif/_alloc.s deleted file mode 100644 index ecdd1dd..0000000 --- a/newlib/libc/sys/a29khif/_alloc.s +++ /dev/null @@ -1,55 +0,0 @@ -; @(#)_alloc.s 1.4 90/10/14 21:57:19, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; 07/06/89 (JS) Replaced call to const tav,HIF_macro @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 to syscall macro, -; and deleted call to reterr macro as a NULL needs to be -; returned on failure. -; _alloc.s -; void *vp = _sysalloc( int size ); -; - .file "_alloc.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __sysalloc -__sysalloc: - const tav,HIF_alloc @ asneq V_SYSCALL,gr1,gr1 - jmpti tav, lr0 - const tpc, _errno - consth tpc, _errno - store 0, 0, tav, tpc - jmpi lr0 - const v0, 0 ; return NULL on error. - -; -; int errret = _sysfree( void *addr, int size ); -; - .global __sysfree -__sysfree: - const tav,HIF_free @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_close.s b/newlib/libc/sys/a29khif/_close.s deleted file mode 100644 index 04f52ae..0000000 --- a/newlib/libc/sys/a29khif/_close.s +++ /dev/null @@ -1,40 +0,0 @@ -; @(#)_close.s 1.4 90/10/14 21:57:20, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc.; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _close.s -; int cc = _close( int fd ); -; - .file "_close.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __close -;; syscalls used now -- .global _close - -__close: -;; syscalls used now -- _close: - const tav,HIF_close @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_cycles.s b/newlib/libc/sys/a29khif/_cycles.s deleted file mode 100644 index 94f9df3..0000000 --- a/newlib/libc/sys/a29khif/_cycles.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_cycles.s 1.2 90/10/14 21:57:21, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _cycles.s -; struct { unsigned long low_ticks, long hi_ticks } = _cycles( ); -; - .file "_cycles.s" - .include "sys/sysmac.h" - .text - .word 0x00020000 ; Debugger tag word - .global __cycles - -__cycles: - const tav,HIF_cycles @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_exit.s b/newlib/libc/sys/a29khif/_exit.s deleted file mode 100644 index 65b9b83..0000000 --- a/newlib/libc/sys/a29khif/_exit.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_exit.s 1.2 90/10/14 21:57:22, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _exit.s -; _exit( int rc ); -; - .file "_exit.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __exit - -__exit: - const tav,HIF_exit @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_fstat.s b/newlib/libc/sys/a29khif/_fstat.s deleted file mode 100644 index 0144d76..0000000 --- a/newlib/libc/sys/a29khif/_fstat.s +++ /dev/null @@ -1,79 +0,0 @@ - .file "_fstat.c" - .sect .lit,lit -gcc2_compiled.: - .text - .align 4 - .global __fstat -;; syscalls used now -- .global _fstat - .word 0x40000 -__fstat: -;; syscalls used now -- _fstat: - sub gr1,gr1,32 - asgeu V_SPILL,gr1,gr126 - add lr1,gr1,48 - sll lr5,lr10,0 - const gr116,__iostat - consth gr116,__iostat - calli lr0,gr116 - sll lr2,lr5,0 - sll lr10,gr96,0 - jmpt lr10,L8 - sll gr116,lr10,30 - jmpf gr116,L3 - add gr116,lr11,12 - add gr117,lr11,12 - const gr116,4096 - store 0,0,gr116,gr117 - add gr117,lr11,4 - const gr116,1 - jmp L4 - store 0,0,gr116,gr117 -L3: - const gr117,8192 - store 0,0,gr117,gr116 - add gr116,lr11,4 - store 0,0,gr117,gr116 -L4: - add gr117,lr11,20 - const gr116,0 - store 0,0,gr116,gr117 - store 0,0,gr116,lr11 - const gr116,_time - consth gr116,_time - calli lr0,gr116 - const lr2,0 - add gr116,lr11,16 - store 0,0,gr96,gr116 - sll lr2,lr5,0 - const lr3,0 - const lr7,__lseek - consth lr7,__lseek - calli lr0,lr7 - const lr4,1 - sll lr10,gr96,0 - constn lr6,65535 - cpneq gr116,lr10,lr6 - jmpf gr116,L7 - sll lr2,lr5,0 - const lr3,0 - calli lr0,lr7 - const lr4,2 - add gr116,lr11,8 - store 0,0,gr96,gr116 - cpneq gr96,gr96,lr6 - jmpf gr96,L7 - sll lr2,lr5,0 - sll lr3,lr10,0 - calli lr0,lr7 - const lr4,0 - cpneq gr96,gr96,lr6 - jmpt gr96,L8 - const gr96,0 -L7: - constn gr96,65535 -L8: - add gr1,gr1,32 - nop - jmpi lr0 - asleu V_FILL,lr1,gr127 - diff --git a/newlib/libc/sys/a29khif/_getpsiz.s b/newlib/libc/sys/a29khif/_getpsiz.s deleted file mode 100644 index b9949a0..0000000 --- a/newlib/libc/sys/a29khif/_getpsiz.s +++ /dev/null @@ -1,38 +0,0 @@ -; @(#)_getpsiz.s 1.2 90/10/14 21:57:23, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _getpsiz.s -; int size = _getpsiz( ); -; - .file "_getpsiz.s" - .include "sys/sysmac.h" - .text - .word 0x00020000 ; Debugger tag word - .global __getpsiz - -__getpsiz: - const tav,HIF_getpagesize @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .end diff --git a/newlib/libc/sys/a29khif/_gettz.s b/newlib/libc/sys/a29khif/_gettz.s deleted file mode 100644 index 36cf1c7..0000000 --- a/newlib/libc/sys/a29khif/_gettz.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_gettz.s 2.2 90/10/14 21:57:24, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _gettz.s -; _gettz( void ); -; - .file "_gettz.s" - .include "sys/sysmac.h" - .text - .word 0x00020000 ; Debugger tag word - .global __gettz - -__gettz: - const tav,HIF_gettz @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_ioctl.s b/newlib/libc/sys/a29khif/_ioctl.s deleted file mode 100644 index 0ca51c5..0000000 --- a/newlib/libc/sys/a29khif/_ioctl.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_ioctl.s 1.2 90/10/14 21:57:25, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _ioctl.s -; _ioctl( int fd ); -; - .file "_ioctl.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __ioctl - -__ioctl: - const tav,HIF_ioctl @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_iostat.s b/newlib/libc/sys/a29khif/_iostat.s deleted file mode 100644 index ae97c5d..0000000 --- a/newlib/libc/sys/a29khif/_iostat.s +++ /dev/null @@ -1,43 +0,0 @@ -;---------------------------------------------------------------------------- -; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _iostat.s -; _iostat( int fd ); -; - .file "_iostat.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __iostat - .global _iostat - -__iostat: -_iostat: - const tav,HIF_iostat @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end - diff --git a/newlib/libc/sys/a29khif/_iowait.s b/newlib/libc/sys/a29khif/_iowait.s deleted file mode 100644 index 3e2ad61..0000000 --- a/newlib/libc/sys/a29khif/_iowait.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_iowait.s 1.3 90/10/14 21:57:27, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _iowait.s -; _iowait( int fd ); -; - .file "_iowait.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __iowait - -__iowait: - const tav,HIF_iowait @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_isatty.s b/newlib/libc/sys/a29khif/_isatty.s deleted file mode 100644 index 55110e2..0000000 --- a/newlib/libc/sys/a29khif/_isatty.s +++ /dev/null @@ -1,22 +0,0 @@ - .file "isatty.c" - .sect .lit,lit -gcc2_compiled.: - .text - .align 4 - .global __isatty - .global _isatty - .word 0x30000 -__isatty: -_isatty: - sub gr1,gr1,16 - asgeu V_SPILL,gr1,gr126 - add lr1,gr1,28 - const gr116,__iostat - consth gr116,__iostat - calli lr0,gr116 - sll lr2,lr6,0 - sll gr96,gr96,30 - add gr1,gr1,16 - srl gr96,gr96,31 - jmpi lr0 - asleu V_FILL,lr1,gr127 diff --git a/newlib/libc/sys/a29khif/_lseek.s b/newlib/libc/sys/a29khif/_lseek.s deleted file mode 100644 index 56a7fc6..0000000 --- a/newlib/libc/sys/a29khif/_lseek.s +++ /dev/null @@ -1,42 +0,0 @@ -; @(#)_lseek.s 1.4 90/10/14 21:57:28, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _lseek.s -; int cc = _lseek( int fd, long offset, int whence ); -; - .file "_lseek.s" - .include "sys/sysmac.h" - .text - .word 0x00050000 ; Debugger tag word - .global __lseek -;; syscalls used now -- .global _lseek - - -__lseek: -;; syscalls used now -- _lseek: - const tav,HIF_lseek @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_open.s b/newlib/libc/sys/a29khif/_open.s deleted file mode 100644 index 3a9ed7e..0000000 --- a/newlib/libc/sys/a29khif/_open.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_open.s 1.4 90/10/14 21:57:30, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _open.s -; int fd = _open( char *path, int oflag [, int mode ] ); -; - .file "_open.s" - .include "sys/sysmac.h" - .text - .word 0x00050000 ; Debugger tag word - .global __open - -__open: - const tav,HIF_open @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_query.s b/newlib/libc/sys/a29khif/_query.s deleted file mode 100644 index 6887bea..0000000 --- a/newlib/libc/sys/a29khif/_query.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_query.s 2.2 90/10/14 21:57:31, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _query.s -; _query( query_code ); -; - .file "_query.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __query - -__query: - const tav,HIF_query @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_read.s b/newlib/libc/sys/a29khif/_read.s deleted file mode 100644 index 23ebbe7..0000000 --- a/newlib/libc/sys/a29khif/_read.s +++ /dev/null @@ -1,38 +0,0 @@ -; @(#)_read.s 1.4 90/10/14 21:57:32, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _read.s -; int nread = _read( int fd, char *buf, int count ); -; - .file "_read.s" - .include "sys/sysmac.h" - .text - .word 0x00050000 ; Debugger tag word - .global __read - -__read: - const tav,HIF_read @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .end diff --git a/newlib/libc/sys/a29khif/_sbrk.s b/newlib/libc/sys/a29khif/_sbrk.s deleted file mode 100644 index 33c1269..0000000 --- a/newlib/libc/sys/a29khif/_sbrk.s +++ /dev/null @@ -1,30 +0,0 @@ - .file "sbrk.c" - .sect .lit,lit -gcc2_compiled.: - .text - .align 4 - .global __sbrk - .word 0x30000 -__sbrk: - sub gr1,gr1,16 - asgeu V_SPILL,gr1,gr126 - add lr1,gr1,28 - sll lr2,lr6,0 - jmpt lr2,L4 - constn gr96,65535 - const gr116,__sysalloc - consth gr116,__sysalloc - calli lr0,gr116 - nop - sll gr117,gr96,0 - cpneq gr116,gr117,0 - jmpf gr116,L4 - constn gr96,65535 - sll gr96,gr117,0 -L4: - add gr1,gr1,16 - nop - jmpi lr0 - asleu V_FILL,lr1,gr127 - - diff --git a/newlib/libc/sys/a29khif/_setim.s b/newlib/libc/sys/a29khif/_setim.s deleted file mode 100644 index 0cf86ae..0000000 --- a/newlib/libc/sys/a29khif/_setim.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_setim.s 2.2 90/10/14 21:57:33, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _setim.s -; _setim( im, di ); -; - .file "_setim.s" - .include "sys/sysmac.h" - .text - .word 0x00040000 ; Debugger tag word - .global __setim - -__setim: - const tav,HIF_setim @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_settrap.s b/newlib/libc/sys/a29khif/_settrap.s deleted file mode 100644 index 2590972..0000000 --- a/newlib/libc/sys/a29khif/_settrap.s +++ /dev/null @@ -1,39 +0,0 @@ -; @(#)_settrap.s 2.2 90/10/14 21:57:34, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _settrap.s -; void *prevaddr = _settrap( int trapno, void *trapaddr ); -; - .file "_settrap.s" - .include "sys/sysmac.h" - .text - .word 0x00040000 ; Debugger tag word - .global __settrap - -__settrap: - const tav,HIF_settrap @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_setvec.s b/newlib/libc/sys/a29khif/_setvec.s deleted file mode 100644 index 09d4076..0000000 --- a/newlib/libc/sys/a29khif/_setvec.s +++ /dev/null @@ -1,38 +0,0 @@ -; @(#)_setvec.s 1.2 90/10/14 21:57:35, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _setvec.s -; int success = _setvec( int trap_no, void (*handler)( void ) ); -; - .file "_setvec.s" - .include "sys/sysmac.h" - .text - .word 0x00040000 ; Debugger tag word - .global __setvec - -__setvec: - const tav,HIF_setvec @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .end diff --git a/newlib/libc/sys/a29khif/_tmpnam.s b/newlib/libc/sys/a29khif/_tmpnam.s deleted file mode 100644 index c7795e2..0000000 --- a/newlib/libc/sys/a29khif/_tmpnam.s +++ /dev/null @@ -1,41 +0,0 @@ -; @(#)_tmpnam.s 1.2 90/10/14 21:57:36, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _tmpnam.s -; char *cp = _khif_tmpnam( char *bufr ); -; /* same as ANSI tmpnam(), but NULL arg is not allowed */ -; NOTE - Will not work on BSD (no tmpnam sys call) -; - .file "_tmpnam.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __khif_tmpnam - -__khif_tmpnam: - const tav,HIF_tmpnam @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/_write.s b/newlib/libc/sys/a29khif/_write.s deleted file mode 100644 index 21c0e58..0000000 --- a/newlib/libc/sys/a29khif/_write.s +++ /dev/null @@ -1,40 +0,0 @@ -; @(#)_write.s 1.4 90/10/14 21:57:37, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _write.s -; int written = _write( int fd, char *buf, int count ); -; - .file "_write.s" - .include "sys/sysmac.h" - .text - .word 0x00050000 ; Debugger tag word - .global __write -;; syscalls used now -- .global _write - -__write: -;; syscalls used now -- _write: - const tav,HIF_write @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .end diff --git a/newlib/libc/sys/a29khif/aclocal.m4 b/newlib/libc/sys/a29khif/aclocal.m4 deleted file mode 100644 index a1bb15b..0000000 --- a/newlib/libc/sys/a29khif/aclocal.m4 +++ /dev/null @@ -1,345 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - diff --git a/newlib/libc/sys/a29khif/alloc.s b/newlib/libc/sys/a29khif/alloc.s deleted file mode 100644 index cd90022..0000000 --- a/newlib/libc/sys/a29khif/alloc.s +++ /dev/null @@ -1,64 +0,0 @@ -; -;(#)_alloc.s 1.4 90/10/14 21:57:19, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; 07/06/89 (JS) Replaced call to const tav,HIF_macro -; and deleted call to reterr macro as a NULL needs to be -; returned on failure. -; _alloc.s -; void *vp = _sysalloc( int size ); -; - .file "_alloc.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global __sysalloc -__sysalloc: - const tav,HIF_alloc - asneq V_SYSCALL,gr1,gr1 - jmpti tav, lr0 - const tpc, _errno - consth tpc, _errno - store 0, 0, tav, tpc - jmpi lr0 - const v0, 0 ; return NULL on error. - -; -; int errret = _sysfree( void *addr, int size ); -; - .global __sysfree -__sysfree: - const tav,HIF_free - asneq V_SYSCALL,gr1,gr1 - jmpti tav,lr0 - const tpc,_errno - consth tpc,_errno - store 0,0,tav,tpc - jmpi lr0 - constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/clock.s b/newlib/libc/sys/a29khif/clock.s deleted file mode 100644 index 5cb26df..0000000 --- a/newlib/libc/sys/a29khif/clock.s +++ /dev/null @@ -1,41 +0,0 @@ -; @(#)clock.s 1.3 90/10/14 21:57:43, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; clock.s -; long ticks = clock( ); -; - .file "clock.s" - .include "sys/sysmac.h" - .text - .word 0x00020000 ; Debugger tag word - .global _clock - .global __clock - -_clock: -__clock: - const tav,HIF_clock @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/configure b/newlib/libc/sys/a29khif/configure deleted file mode 100644 index 2afc164..0000000 --- a/newlib/libc/sys/a29khif/configure +++ /dev/null @@ -1,1598 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=_alloc.s - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../../.. $srcdir/../../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - fi -else - newlib_basedir="${srcdir}/../../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/newlib/libc/sys/a29khif/configure.in b/newlib/libc/sys/a29khif/configure.in deleted file mode 100644 index de247d3..0000000 --- a/newlib/libc/sys/a29khif/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -dnl This is the newlib/libc/sys/a29khif configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(_alloc.s) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../../..) - -NEWLIB_CONFIGURE(../../..) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/a29khif/crt0.s b/newlib/libc/sys/a29khif/crt0.s deleted file mode 100644 index 8ae79f8..0000000 --- a/newlib/libc/sys/a29khif/crt0.s +++ /dev/null @@ -1,226 +0,0 @@ -; @(#)crt0.s 2.7 90/10/15 13:17:57, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1988, 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - .file "crt0.s" -; crt0.s version 2.1-7 -; -; This module gets control from the OS. -; It saves away the Am29027 Mode register settings and -; then sets up the pointers to the resident spill and fill -; trap handlers. It then establishes argv and argc for passing -; to main. It then calls _main. If main returns, it calls _exit. -; -; void = start( ); -; NOTE - not C callable (no lead underscore) -; - .include "sys/sysmac.h" -; -; - .extern V_SPILL, V_FILL - .comm __29027Mode, 8 ; A shadow of the mode register - .comm __LibInit, 4 - .comm __environ, 4 ; Environment variables, currently none. - .text - .extern _main, _exit - .extern _memset - - .word 0 ; Terminating tag word - .global start -start: - sub gr1, gr1, 6 * 4 - asgeu V_SPILL, gr1, rab ; better not ever happen - add lr1, gr1, 6 * 4 -; -; Initialize the .bss section to zero by using the memset library function. -; The .bss initialization section below has been commented out as it breaks -; XRAY29K that has been released. The operators sizeof and startof create -; new sections that are not recognized by XRAY29k, but will be implemented -; in the next release (2.0). -; -; const lr4, $sizeof(.bss) ; get size of .bss section to zero out -; consth lr4, $sizeof(.bss) -; const lr2, $startof(.bss) ; Get start address of .bss section -; consth lr2, $startof(.bss) -; const lr0, _memset ; address of memset function -; consth lr0, _memset -; calli lr0, lr0 ; call memset function -; const lr3, 0 - -; Save the initial value of the Am29027's Mode register -; If your const tav,HIF_does @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 not enter crt0 with value for Am29027's Mode register -; in gr96 and gr97, and also if the coprocessor is active uncomment the -; next 4 lines. -; const gr96, 0xfc00820 -; consth gr96, 0xfc00820 -; const gr97, 0x1375 -; store 1, 3, gr96, gr97 -; - const gr98, __29027Mode - consth gr98, __29027Mode - store 0, 0, gr96, gr98 - add gr98, gr98, 4 - store 0, 0, gr97, gr98 -; -; Now call the const tav,HIF_to @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 setup the spill and fill trap handlers -; - const lr3, spill - consth lr3, spill - const lr2, V_SPILL - const tav,HIF_setvec @ asneq V_SYSCALL,gr1,gr1 - const lr3, fill - consth lr3, fill - const lr2, V_FILL - const tav,HIF_setvec @ asneq V_SYSCALL,gr1,gr1 -; -; Set up dividu handler, since native one don't work?! -; Set it up by hand (FIXME) since HIF_settrap doesn't work either! -; -; const lr3,Edividu -; consth lr3,Edividu -; -; const lr2,35 -; const tav,HIF_settrap @ asneq V_SYSCALL,gr1,gr1 -; asge 0x50,gr121,0 ; check whether it failed -; const lr2,0x8000008c ; abs addr of dividu trap handler on EB -; consth lr2,0x8000008c -; store 0,0,lr3,lr2 ; Clobber vector FIXME - -; -; Get the argv base address and calculate argc. -; - const tav,HIF_getargs @ asneq V_SYSCALL,gr1,gr1 - add lr3, v0, 0 ; argv - add lr4, v0, 0 - constn lr2, -1 -argcloop: ; scan for NULL terminator - load 0, 0, gr97, lr4 - add lr4, lr4, 4 - cpeq gr97, gr97, 0 - jmpf gr97, argcloop - add lr2, lr2, 1 -; -; Now call LibInit, if there is one. To aid runtime libraries -; that need to do some startup initialization, we have created -; a bss variable called LibInit. If the library doesn't need -; any run-time initialization, the variable is still 0. If the -; library does need run-time initialization, the library will -; contain a definition like -; void (*_LibInit)(void) = LibInitFunction; -; The linker will match up our bss LibInit with this data LibInit -; and the variable will not be 0. -; - const lr0, __LibInit - consth lr0, __LibInit - load 0, 0, lr0, lr0 - cpeq gr96, lr0, 0 - jmpt gr96, NoLibInit - nop - calli lr0, lr0 - nop -NoLibInit: -; -; call main, passing it 2 arguments. main( argc, argv ) -; - const lr0, _main - consth lr0, _main - calli lr0, lr0 - nop -; -; call exit -; - const lr0, _exit - consth lr0, _exit - calli lr0, lr0 - add lr2, gr96, 0 -; -; Should never get here, but just in case -; -loop: - const tav,HIF_exit @ asneq V_SYSCALL,gr1,gr1 - jmp loop - nop - .sbttl "Spill and Fill trap handlers" - .eject -; -; SPILL, FILL trap handlers -; -; Note that these Spill and Fill trap handlers allow the OS to -; assume that the only registers of use are between gr1 and rfb. -; Therefore, if the OS desires to, it may simply preserve from -; lr0 for (rfb-gr1)/4 registers when doing a context save. -; -; -; Here is the spill handler -; -; spill registers from [*gr1..*rab) -; and move rab downto where gr1 points -; -; rab must change before rfb for signals to work -; -; On entry: rfb - rab = windowsize, gr1 < rab -; Near the end: rfb - rab > windowsize, gr1 == rab -; On exit: rfb - rab = windowsize, gr1 == rab -; - .global spill -spill: - sub tav, rab, gr1 ; tav = number of bytes to spill - srl tav, tav, 2 ; change byte count to word count - sub tav, tav, 1 ; make count zero based - mtsr cr, tav ; set Count Remaining register - sub tav, rab, gr1 - sub tav, rfb, tav ; pull down free bound and save it in rab - add rab, gr1, 0 ; first pull down allocate bound - storem 0, 0, lr0, tav ; store lr0..lr(tav) into rfb - jmpi tpc ; return... - add rfb, tav, 0 -; -; Here is the fill handler -; -; fill registers from [*rfb..*lr1) -; and move rfb upto where lr1 points. -; -; rab must change before rfb for signals to work -; -; On entry: rfb - rab = windowsize, lr1 > rfb -; Near the end: rfb - rab < windowsize, lr1 == rab + windowsize -; On exit: rfb - rab = windowsize, lr1 == rfb -; - .global fill -fill: - const tav, 0x80 << 2 - or tav, tav, rfb ; tav = ((rfb>>2) | 0x80)<<2 == [rfb]<<2 - mtsr ipa, tav ; ipa = [rfb]<<2 == 1st reg to fill - ; gr0 is now the first reg to spill - sub tav, lr1, rfb ; tav = number of bytes to spill - add rab, rab, tav ; push up allocate bound - srl tav, tav, 2 ; change byte count to word count - sub tav, tav, 1 ; make count zero based - mtsr cr, tav ; set Count Remaining register - loadm 0, 0, gr0, rfb ; load registers - jmpi tpc ; return... - add rfb, lr1, 0 ; ... first pushing up free bound - - .end diff --git a/newlib/libc/sys/a29khif/getargs.s b/newlib/libc/sys/a29khif/getargs.s deleted file mode 100644 index aa1f9c4..0000000 --- a/newlib/libc/sys/a29khif/getargs.s +++ /dev/null @@ -1,38 +0,0 @@ -; @(#)getargs.s 1.2 90/10/14 21:57:44, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _getargs.s -; void _getargs( void ); -; - .file "_getargs.s" - .include "sys/sysmac.h" - .text - .word 0x00020000 ; Debugger tag word - .global __getargs - -__getargs: - const tav,HIF_getargs @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .end diff --git a/newlib/libc/sys/a29khif/getenv.s b/newlib/libc/sys/a29khif/getenv.s deleted file mode 100644 index 4351849..0000000 --- a/newlib/libc/sys/a29khif/getenv.s +++ /dev/null @@ -1,48 +0,0 @@ -; @(#)getenv.s 1.4 90/10/14 21:57:45, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; getenv.s -; char *value = getenv( const char *name ); -; - .file "getenv.s" - - .include "sys/sysmac.h" - - .text - .word 0x00030000 ; Debugger tag word - .global _getenv - .global __getenv -_getenv: -__getenv: - const tav,HIF_getenv @ asneq V_SYSCALL,gr1,gr1 ; HIF service trap - jmpti tav, lr0 ; If tav is true, were finished, return. - const tpc, _errno - consth tpc, _errno ; Otherwise, - store 0, 0, tav, tpc ; store error code in _errno, - jmpi lr0 ; then return - const v0, 0 ; with a value of 0 (NULL pointer). - - .end diff --git a/newlib/libc/sys/a29khif/getpid.c b/newlib/libc/sys/a29khif/getpid.c deleted file mode 100644 index 99d88bd..0000000 --- a/newlib/libc/sys/a29khif/getpid.c +++ /dev/null @@ -1,12 +0,0 @@ -/* Stub for getpid. */ - -#include <_ansi.h> - -/* This should really return pid_t, but that doesn't seem to be in - . */ - -int -_DEFUN_VOID (_getpid) -{ - return 1; -} diff --git a/newlib/libc/sys/a29khif/kill.c b/newlib/libc/sys/a29khif/kill.c deleted file mode 100644 index ff9fe54..0000000 --- a/newlib/libc/sys/a29khif/kill.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Stub for kill. */ - -#include <_ansi.h> -#include - -/* The pid argument should be of type pid_t. */ - -int -_DEFUN (_kill, (pid, sig), - int pid _AND - int sig) -{ - if (pid == 1 || pid < 0) - { - if (sig == 0) - return 0; - return raise (sig); - } - errno = EINVAL; - return -1; -} diff --git a/newlib/libc/sys/a29khif/read.s b/newlib/libc/sys/a29khif/read.s deleted file mode 100644 index 1a5daf3..0000000 --- a/newlib/libc/sys/a29khif/read.s +++ /dev/null @@ -1,54 +0,0 @@ -; @(#)_read.s 1.4 90/10/14 21:57:32, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _read.s -; int nread = _read( int fd, char *buf, int count ); -; - .file "_read.s" - .include "sys/sysmac.h" - .text - .word 0x00050000 ; Debugger tag word - .global __read -;; syscalls used now -- .global _read - -__read: -;; syscalls used now -- _read: - .ifdef _BSD_OS -; BSD version - uses readv const tav,HIF_call @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - sub msp, msp, 8 - store 0, 0, lr3, msp - add tav, msp, 4 - add lr3, msp, 0 - store 0, 0, lr4, tav - const lr4, 1 - const tav,HIF_readv @ asneq V_SYSCALL,gr1,gr1 - jmpti tav, lr0 - add msp, msp, 8 - const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .else - const tav,HIF_read @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - .endif - .end diff --git a/newlib/libc/sys/a29khif/remove.s b/newlib/libc/sys/a29khif/remove.s deleted file mode 100644 index 948be04..0000000 --- a/newlib/libc/sys/a29khif/remove.s +++ /dev/null @@ -1,43 +0,0 @@ -; @(#)remove.s 1.3 90/10/14 21:57:53, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; remove.s -; int cc = remove( char *path ); -; - .file "remove.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global _remove - .global __remove - .global __unlink - -_remove: -__remove: -__unlink: - const tav,HIF_remove @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/rename.s b/newlib/libc/sys/a29khif/rename.s deleted file mode 100644 index 31da614..0000000 --- a/newlib/libc/sys/a29khif/rename.s +++ /dev/null @@ -1,41 +0,0 @@ -; @(#)rename.s 1.3 90/10/14 21:57:54, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; rename.s -; int cc = rename( char *from, char *to ); -; - .file "rename.s" - .include "sys/sysmac.h" - .text - .word 0x00040000 ; Debugger tag word - .global _rename - .global __rename - -_rename: -__rename: - const tav,HIF_rename @ asneq V_SYSCALL,gr1,gr1 @ jmpti tav,lr0 @ const tpc,_errno @ consth tpc,_errno @ store 0,0,tav,tpc @ jmpi lr0 @ constn v0,-1 - - .end diff --git a/newlib/libc/sys/a29khif/signal.s b/newlib/libc/sys/a29khif/signal.s deleted file mode 100644 index 29273a0..0000000 --- a/newlib/libc/sys/a29khif/signal.s +++ /dev/null @@ -1,452 +0,0 @@ -;@(#)signal.s 2.15 90/10/14 21:57:55, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - .file "signal.s" - -; SigEntry is the address of an array of C-level user code signal handlers. -; They must return to the top-level before doing a sigret() return function. -; Nested signals are supported. - - .extern V_SPILL, V_FILL - .extern fill ; In crt0.s - - .align 4 - .comm WindowSize, 4 - .data -SigEntry: - .word 0 ; reserved - .word 0 ; adds. of #2 SIGINT handler - .word 0 ; reserved - .word 0 ; reserved - .word 0 ; reserved - .word 0 ; reserved - .word 0 ; reserved - .word 0 ; adds. of #8 SIGFPE handler - - .text - - .reg v0, gr96 - .reg v1, gr97 - .reg v2, gr98 - .reg v3, gr99 - - .reg tav, gr121 - .reg tpc, gr122 - .reg lrp, gr123 - .reg slp, gr124 - .reg msp, gr125 - .reg rab, gr126 - .reg rfb, gr127 - -;=================================================================== setjmp() -; int -; setjmp(label_t jmpbuf) -; { -; *jmpbuf = {gr1, msp, lr0, lr1}; -; return 0; -; } -; - .global _setjmp -_setjmp: - store 0, 0, gr1, lr2 - add lr2, lr2, 4 - store 0, 0, msp, lr2 - add lr2, lr2, 4 - store 0, 0, lr0, lr2 - add lr2, lr2, 4 - store 0, 0, lr1, lr2 - jmpi lr0 - const v0, 0 -; -;==================================================================== longjmp() -; int -; longjmp(label_t jmpbuf, int value) -; { -; /* BUG: check for this -; if (msp > jmpbuf->msp || gr1 > jmpbuf->gr1) -; longjmperror(); -; */ -; -; gr1 = jmpbuf->gr1; -; lr2addr = jmpbuf->gr1 + 8; -; msp = jmpbuf->msp; -; -; /* saved lr1 is invalid if saved lr2addr > rfb */ -; if (lr2addr > rfb) { -; /* -; * None of the registers are useful. -; * Set rfb to lr2addr - 512 & rab to rfb - 512. -; * the FILL assert will take care of filling -; */ -; lr1 = jmpbuf->lr1; -; rab = lr2addr - windowsize; -; rfb = lr2addr; -; } -; -; lr0 = jmpbuf->lr0; -; if (rfb < lr1) -; raise V_FILL; -; return value; -; } -; - .global _longjmp -_longjmp: - load 0, 0, tav, lr2 ; copy in gr1 - add v1, lr2, 4 ; v1 points to msp - ; make sure we return a non-zero value - cpeq v0, lr3, 0 - srl v0, v0, 31 - or v0, lr3, v0 - - add gr1, tav, 0 ; now update gr1 - add tav, tav, 8 ; calculate lr2addr - load 0, 0, msp, v1 ; update msp from jmpbuf - cpleu v3, tav, rfb ; if (lr2addr > rfb) - jmpt v3, $1 ; { - add v1, v1, 4 ; v1 points to lr0 - add v2, v1, 4 ; v2 points to lr1 - load 0, 0, lr1, v2 ; lr1 = value from jmpbuf - sub v3, rfb, rab ; - sub rab, tav, v3 ; rab = lr2addr - windowsize - add rfb, tav, 0 ; rfb = lr2addr -$1: ; } - load 0, 0, lr0, v1 - jmpi lr0 - asgeu V_FILL, rfb, lr1 ; may fill from rfb to lr1 -; -;================================================================== sigcode -; About to deliver a signal to a user mode signal handler. -; msp+(15*4) = signal_number -; msp+(14*4) = gr1 -; msp+(13*4) = rab -; msp+(12*4) = PC0 -; msp+(11*4) = PC1 -; msp+(10*4) = PC2 -; msp+( 9*4) = CHA -; msp+( 8*4) = CHD -; msp+( 7*4) = CHC -; msp+( 6*4) = ALU -; msp+( 5*4) = OPS -; msp+( 4*4) = gr121 -; msp+( 3*4) = gr99 -; msp+( 2*4) = gr98 -; msp+( 1*4) = gr97 -; msp = gr96 -; The state of all the registers (except for msp, chc and rab) -; is the same as when the process was interrupted. -; -; We must make the stack and window consistent before calling the handler -; The orignal rab value is on the stack. The interrupt handler placed -; rfb-Windowsize in rab. This is required to support nested interrupts. -; -; Note that the window becomes incosistent only during certain -; critical sections in spill, fill, longjmp and sigcode. -; rfb - rab > windowsize => we are in spill -; rfb - rab < windowsize => we are in fill -; gr1 + 8 > rfb => we are in long-longjmp case -; In case of spill, fill and lonjmp; rab is modified first, -; so if we are in one of these critical sections, -; we set rab to rfb - WINDOWSIZE. -; - .equ SIGCTX_SIZE, (16)*4 - .equ SIGCTX_SIGNUMB, (15)*4 - .equ SIGCTX_GR1_OFFSET, (14)*4 - .equ SIGCTX_RAB_OFFSET, (13)*4 - .equ SIGCTX_PC0_OFFSET, (12)*4 - .equ SIGCTX_PC1_OFFSET, (11)*4 - .equ SIGCTX_PC2_OFFSET, (10)*4 - .equ SIGCTX_CHC_OFFSET, (7)*4 - .equ SIGCTX_OPS_OFFSET, (5)*4 - .equ SIGCTX_TAV_OFFSET, (4)*4 - .global sigcode -sigcode: -; -------------------------------------------------------- R-Stack fixup - const v0, WindowSize ; get register cache size - consth v0, WindowSize - load 0, 0, v0, v0 - add v2, msp, SIGCTX_RAB_OFFSET - load 0, 0, v2, v2 ; get interrupted rab value - sub v1, rfb, v2 ; determine if rfb-rab <= WINDOW_SIZE - cpgeu v1, v1, v0 ; - jmpt v1, nfill ; jmp if spill or 'normal' interrupt - add v1, gr1, 8 - cpgt v1, v1, rfb ; interrupted longjmp can look like fill - jmpf v1, nfill ; test for long-longjmp interruption - nop ; jmp if gr1+8 <= rfb -; Fixup signal stack to re-start interrupted fill -; backup pc1 -- this is needed for the partial fill case. -; Clear chc so an interrupted load/store does not restart. -; Reset rab to a window distance below rfb, rab shall be -; decremented again on re-starting the interrupted fill. -; The interrupt handler set rab=rfb-WindowSize. -; - add v0, msp, SIGCTX_RAB_OFFSET - store 0, 0, rab, v0 ; re-store (rfb-WindowSize) for rab - const v2, fill - consth v2, fill - add v0, msp, SIGCTX_PC1_OFFSET - store 0, 0, v2, v0 - sub v2, v2, 4 ; determine pc0 - add v0, msp, SIGCTX_PC0_OFFSET - store 0, 0, v2, v0 - const v2, 0 ; clear chc - add v0, msp, SIGCTX_CHC_OFFSET - store 0, 0, v2, v0 - -nfill: - cpgt v0, gr1, rfb ; if gr1 > rfb then gr1 = rfb - jmpt v0, lower - cplt v0, gr1, rab ; if gr1 < rab then gr1 = rab - jmpt v0, raise - nop -; -------------------------------------------------------- save_regs -sig1: sub msp, msp, (4+2+25)*4 ; reserve space for regs - mfsr gr96, ipc - mfsr gr97, ipa - mfsr gr98, ipb - mfsr gr99, q - mtsrim cr, 4-1 - storem 0, 0, gr96, msp -; "push" registers stack support - add gr96, lr1, 0 - add gr97, rfb, 0 - mtsrim cr, 2-1 - add gr99, msp, 2*4 - storem 0, 0, gr96, gr99 -; "push" remaining global registers - mtsrim cr, 25-1 ; gr100-gr124 - add gr96, msp, (4+2)*4 - storem 0, 0, gr100, gr96 -; -; -------------------------------------------------------- Dummy Call - .equ RALLOC, 4*4 ; make space for function calls - add v0, rfb, 0 ; store original rfb - sub gr1, gr1, RALLOC - asgeu V_SPILL, gr1, rab - add lr1, v0, 0 ; set lr1 = original rfb - add v1, msp, (4+2+25)*4 + SIGCTX_SIGNUMB - load 0, 0, lr2, v1 ; restore signal number - sub v1, lr2, 1 ; get handler index - sll v1, v1, 2 ; point to addresses -; -; -------------------------------------------------------- call C-level -; Handler must not use HIF services other than the _sigret() type. - const v0, SigEntry - consth v0, SigEntry - add v0, v0, v1 - load 0, 0, v0, v0 ; determine if handler registered - cpeq v1, v0, 0 - jmpt v1, NoHandler - nop - calli lr0, v0 ; call C-level signal handler - nop -; -; -------------------------------------------------------- default return -NoHandler: - jmp __sigdfl - nop - -; -------------------------------------------------------- support bits -lower: sll gr1, rfb, 0 - jmp sig1 - nop -raise: sll gr1, rab, 0 - jmp sig1 - nop -/* -; -------------------------------------------------------- repair_regs - mtsrim cr, 4-1 - loadm 0, 0, gr96, msp - mtsr ipc, gr96 - mtsr ipa, gr97 - mtsr ipb, gr98 - mtsr Q, gr99 -; "pop" registers stack support - mtsrim cr, 2-1 - add gr99, msp, 2*4 - loadm 0, 0, gr96, gr99 - add lr1, gr96, 0 - add rfb, gr97, 0 -; "pop" remaining global registers - mtsrim cr, 25-1 ; gr100-gr124 - add gr96, msp, (4+2)*4 - loadm 0, 0, gr100, gr96 - add msp, msp, (4+2+25)*4 ; repair msp to save_regs entry value -; -------------------------------------------------------- end repair -*/ - -; ======================================================== _sigret() - .global __sigret -__sigret: -; repair_regs -; -------------------------------------------------------- repair_regs - mtsrim cr, 4-1 - loadm 0, 0, gr96, msp - mtsr ipc, gr96 - mtsr ipa, gr97 - mtsr ipb, gr98 - mtsr q, gr99 -; "pop" registers stack support - mtsrim cr, 2-1 - add gr99, msp, 2*4 - loadm 0, 0, gr96, gr99 - add lr1, gr96, 0 - add rfb, gr97, 0 -; "pop" remaining global registers - mtsrim cr, 25-1 ; gr100-gr124 - add gr96, msp, (4+2)*4 - loadm 0, 0, gr100, gr96 - add msp, msp, (4+2+25)*4 ; repair msp to save_regs entry value -; -------------------------------------------------------- end repair - const tav, 323 ; HIF _sigret - asneq 69, gr1,gr1 - halt ; commit suicide if returns - -; ======================================================== _sigdfl() - .global __sigdfl -__sigdfl: -; repair_regs -; -------------------------------------------------------- repair_regs - mtsrim cr, 4-1 - loadm 0, 0, gr96, msp - mtsr ipc, gr96 - mtsr ipa, gr97 - mtsr ipb, gr98 - mtsr q, gr99 -; "pop" registers stack support - mtsrim cr, 2-1 - add gr99, msp, 2*4 - loadm 0, 0, gr96, gr99 - add lr1, gr96, 0 - add rfb, gr97, 0 -; "pop" remaining global registers - mtsrim cr, 25-1 ; gr100-gr124 - add gr96, msp, (4+2)*4 - loadm 0, 0, gr100, gr96 - add msp, msp, (4+2+25)*4 ; repair msp to save_regs entry value -; -------------------------------------------------------- end repair - const tav, 322 ; HIF _sigdfl - asneq 69, gr1,gr1 - halt ; commit suicide if returns - -; ======================================================== _sigrep() -__sigrep: - .global __sigrep -; repair_regs -; -------------------------------------------------------- repair_regs - mtsrim cr, 4-1 - loadm 0, 0, gr96, msp - mtsr ipc, gr96 - mtsr ipa, gr97 - mtsr ipb, gr98 - mtsr q, gr99 -; "pop" registers stack support - mtsrim cr, 2-1 - add gr99, msp, 2*4 - loadm 0, 0, gr96, gr99 - add lr1, gr96, 0 - add rfb, gr97, 0 -; "pop" remaining global registers - mtsrim cr, 25-1 ; gr100-gr124 - add gr96, msp, (4+2)*4 - loadm 0, 0, gr100, gr96 - add msp, msp, (4+2+25)*4 ; repair msp to save_regs entry value -; -------------------------------------------------------- end repair - const tav, 324 ; HIF _sigrep - asneq 69, gr1,gr1 - halt ; commit suicide if returns - -; ======================================================== _sigskp() - .global __sigskp -__sigskp: -; repair_regs -; -------------------------------------------------------- repair_regs - mtsrim cr, 4-1 - loadm 0, 0, gr96, msp - mtsr ipc, gr96 - mtsr ipa, gr97 - mtsr ipb, gr98 - mtsr q, gr99 -; "pop" registers stack support - mtsrim cr, 2-1 - add gr99, msp, 2*4 - loadm 0, 0, gr96, gr99 - add lr1, gr96, 0 - add rfb, gr97, 0 -; "pop" remaining global registers - mtsrim cr, 25-1 ; gr100-gr124 - add gr96, msp, (4+2)*4 - loadm 0, 0, gr100, gr96 - add msp, msp, (4+2+25)*4 ; repair msp to save_regs entry value -; -------------------------------------------------------- end repair - const tav, 325 ; HIF _sigskp - asneq 69, gr1,gr1 - halt ; commit suicide if returns - -; ======================================================== _sendsig() -; lr2 = signal number - .global _raise - .global __sendsig -_raise: -__sendsig: - const tav, 326 ; HIF sendsig - asneq 69, gr1,gr1 - jmpi lr0 - nop - -; -; ======================================================== signal() -; lr2 = signal number -; lr3 = handler address - .global _signal -_signal: -; the memory variable WindowSize must be initalised at the -; start when rfb and rab are a window size apart. - const v0, WindowSize ; get register cache size - consth v0, WindowSize - load 0, 0, v1, v0 - cpeq v1, v1, 0 - jmpf v1, WindowSizeOK - sub v1, rfb, rab ; rfb-rab = WINDOW_SIZE - store 0, 0, v1, v0 -WindowSizeOK: - const v1, SigEntry - consth v1, SigEntry - sub v3, lr2, 1 ; get handler index - sll v3, v3, 2 ; pointer to addresses - add v1, v1, v3 - store 0,0, lr3, v1 ; save new handler - - const lr2, sigcode - consth lr2, sigcode - ;Fall through to __signal -; ======================================================== _signal() - .global __signal -__signal: - const tav, 321 ; HIF signal - asneq 69, gr1,gr1 - jmpi lr0 - nop diff --git a/newlib/libc/sys/a29khif/stubs.s b/newlib/libc/sys/a29khif/stubs.s deleted file mode 100644 index e0b29bc..0000000 --- a/newlib/libc/sys/a29khif/stubs.s +++ /dev/null @@ -1,135 +0,0 @@ -; -; -; File of stubs so that unix applications can link into a HIF monitor -; -; sac@cygnus.com - - .text - - .global _sysalloc -_sysalloc: - const gr121,__sysalloc - consth gr121,__sysalloc - jmpi gr121 - - .global _sysfree -_sysfree: - const gr121,__sysfree - consth gr121,__sysfree - jmpi gr121 - - - .global _cycles -_cycles: - const gr121,__cycles - consth gr121,__cycles - jmpi gr121 - -; .global _exit -;_exit: -; const gr121,__exit -; consth gr121,__exit -; jmpi gr121 - - .global _getpsiz -_getpsiz: - const gr121,__getpsiz - consth gr121,__getpsiz - jmpi gr121 - - .global _gettz -_gettz: - const gr121,__gettz - consth gr121,__gettz - jmpi gr121 - - .global _ioctl -_ioctl: - const gr121,__ioctl - consth gr121,__ioctl - jmpi gr121 - - - .global _iowait -_iowait: - const gr121,__iowait - consth gr121,__iowait - jmpi gr121 - - -;; syscalls used now -- .global _open -;; syscalls used now -- _open: -;; syscalls used now -- const gr121,__open -;; syscalls used now -- consth gr121,__open -;; syscalls used now -- jmpi gr121 - - .global _query -_query: - const gr121,__query - consth gr121,__query - jmpi gr121 - - - .global _setim -_setim: - const gr121,__setim - consth gr121,__setim - jmpi gr121 - - .global _settrap -_settrap: - const gr121,__settrap - consth gr121,__settrap - jmpi gr121 - - .global _setvec -_setvec: - const gr121,__setvec - consth gr121,__setvec - jmpi gr121 - - .global _getargs -_getargs: - const gr121,__getargs - consth gr121,__getargs - jmpi gr121 - -;; syscalls used now -- .global _unlink -;; syscalls used now -- _unlink: -;; syscalls used now -- const gr121,__unlink -;; syscalls used now -- consth gr121,__unlink -;; syscalls used now -- jmpi gr121 - - .global _sigret -_sigret: - const gr121,__sigret - consth gr121,__sigret - jmpi gr121 - - .global _sigdfl -_sigdfl: - const gr121,__sigdfl - consth gr121,__sigdfl - jmpi gr121 - - .global _sigrep -_sigrep: - const gr121,__sigrep - consth gr121,__sigrep - jmpi gr121 - - .global _sigskp -_sigskp: - const gr121,__sigskp - consth gr121,__sigskp - jmpi gr121 - - .global _sendsig -_sendsig: - const gr121,__sendsig - consth gr121,__sendsig - jmpi gr121 - - ; fill this jmpi delay slot - ; the others are not done since they do not matter - constn lr0,-1 diff --git a/newlib/libc/sys/a29khif/sys/cpudef.h b/newlib/libc/sys/a29khif/sys/cpudef.h deleted file mode 100644 index 4ec6ed3..0000000 --- a/newlib/libc/sys/a29khif/sys/cpudef.h +++ /dev/null @@ -1,270 +0,0 @@ -; @(#)cpudef.h 2.3 90/10/14 20:55:56, Copyright 1989, 1990 AMD -;----------------------------------------------------------------------- -; Useful equates -;----------------------------------------------------------------------- -; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - - ; Processor status registers OPS (sr1) and CPS (sr2) - .equ CA,0x8000 ; Coprocessor active - .equ IP,0x4000 ; Interrupt pending - .equ TE,0x2000 ; Trace enable - .equ TP,0x1000 ; Trace pending - .equ TU,0x0800 ; Trap unaligned access - .equ FZ,0x0400 ; Freeze - .equ LK,0x0200 ; Lock - .equ RE,0x0100 ; ROM enable - .equ WM,0x0080 ; Wait mode - .equ PD,0x0040 ; No translation for Data - .equ PI,0x0020 ; No translation for Instr - .equ SM,0x0010 ; Supervisor mode - .equ IM,0x000C ; Interrupt mask - .equ IM1,0x0100 ; enable INTR0-1 - .equ IM2,0x1000 ; enable INTR0-2 - .equ IM3,0x1100 ; enable INTR0-3 - .equ DI,0x0002 ; Disable ints - .equ DA,0x0001 ; Disable ints and traps - - ; Configuration register CFG (sr3) - .equ PRL,0xFF000000 ; Processor release level - .equ VF,0x10 ; Vector fetch - .equ RV,0x08 ; ROM Vector area - .equ BO,0x04 ; Byte order - .equ CP,0x02 ; Coprocessor present - .equ CD,0x01 ; BTC disable - - ; Channel control register CHC (sr6) - .equ LS,0x8000 ; Load store - .equ ML,0x4000 ; Multiple operation - .equ ST,0x2000 ; Set - .equ LA,0x1000 ; Lock active - .equ TF,0x0400 ; Transaction faulted - .equ TR,0x03FC ; Target register - .equ NN,0x0002 ; Not needed - .equ CV,0x0001 ; Contents valid - - ; Timer reload register TMR (sr9) - .equ IE,0x01000000 ; timer int enable - .equ IN,0x02000000 ; timer int pending - .equ OV,0x04000000 ; timer Overflow - - ; MMU configuration register MMU (sr13) - .equ PS,0x300 ; Page size - .equ PID,0xFF ; Process identifier - - ; ALU status register ALU (sr132) - .equ DF,0x800 ; Divide flag - .equ V,0x400 ; Overflow - .equ N,0x200 ; Negative - .equ Z,0x100 ; Zero - .equ C,0x080 ; Carry - - ; TLB entry - .equ VTAG,0xFFFF8000 ; Virtual tag - .equ VE,0x4000 ; Valid entry - .equ SR,0x2000 ; Supervisor read - .equ SW,0x1000 ; Supervisor write - .equ SE,0x0800 ; Supervisor execute - .equ UR,0x0400 ; User read - .equ UW,0x0200 ; User write - .equ UE,0x0100 ; User execute - .equ TID,0x00FF ; Task identifier - .equ RPN,0xFFFFFC00 ; Real page number - .equ PGM,0x00C0 ; User programmable - .equ U,0x0002 ; Usage - .equ F,0x0001 ; Flag - -;----------------------------------------------------------------------- -;Global registers -;----------------------------------------------------------------------- - - .reg rsp, gr1 ; local register stack pointer - - ; System-wide statics - .reg s0, gr64 - .reg spillreg, s0 ; pointer to user spill handler - .reg s1, gr65 - .reg fillreg, s1 ; pointer to user fill handler - .reg s2, gr66 - .reg heapptr, s2 ; pointer to heap area - .reg s3, gr67 - .reg s4, gr68 - .reg s5, gr69 - .reg s6, gr70 - .reg s7, gr71 - .reg s8, gr72 - .reg s9, gr73 - .reg s10, gr74 - .reg s11, gr75 - .reg s12, gr76 - .reg s13, gr77 - .reg s14, gr78 - .reg s15, gr79 - - ; Interrupt handler temporaries - .reg i0, gr80 - .reg i1, gr81 - .reg i2, gr82 - .reg i3, gr83 - .reg i4, gr84 - .reg i5, gr85 - .reg i6, gr86 - .reg i7, gr87 - .reg i8, gr88 - .reg i9, gr89 - .reg i10, gr90 - .reg i11, gr91 - .reg i12, gr92 - .reg i13, gr93 - .reg i14, gr94 - .reg i15, gr95 - - ; Subroutine/function temporaries - ; also used for function return values - .reg t0, gr96 - .reg rtn, t0 - .reg t1, gr97 - .reg t2, gr98 - .reg t3, gr99 - .reg t4, gr100 - .reg t5, gr101 - .reg t6, gr102 - .reg t7, gr103 - .reg t8, gr104 - .reg t9, gr105 - .reg t10, gr106 - .reg t11, gr107 - .reg t12, gr108 - .reg t13, gr109 - .reg t14, gr110 - .reg t15, gr111 - - ; User process statics - .reg u0, gr112 - .reg u1, gr113 - .reg u2, gr114 - .reg u3, gr115 - - ; More subroutine/function temporaries - .reg t16, gr116 - .reg t17, gr117 - .reg t18, gr118 - .reg t19, gr119 - .reg t20, gr120 - - ; Older names for the same registers - .reg tmp0, gr116 - .reg tmp1, gr117 - .reg tmp2, gr118 - .reg tmp3, gr119 - .reg tmp4, gr120 - - ; Trap handler temporaries - .reg tav, gr121 ; arg/temp - .reg tpc, gr122 ; rtn/temp - - ; Linkage pointers - .reg lrp, gr123 ; large rtn ptr - .reg slp, gr124 ; static link ptr - .reg msp, gr125 ; memory stack ptr - .reg rab, gr126 ; register allocate bound - .reg rfb, gr127 ; register free bound - -;----------------------------------------------------------------------- -;Local compiler registers -; (only valid if frame has been established) -;----------------------------------------------------------------------- - - .reg p15, lr17 ; outgoing arg 16 - .reg p14, lr16 ; outgoing arg 15 - .reg p13, lr15 ; outgoing arg 14 - .reg p12, lr14 ; outgoing arg 13 - .reg p11, lr13 ; outgoing arg 12 - .reg p10, lr12 ; outgoing arg 11 - .reg p9, lr11 ; outgoing arg 10 - .reg p8, lr10 ; outgoing arg 9 - .reg p7, lr9 ; outgoing arg 8 - .reg p6, lr8 ; outgoing arg 7 - .reg p5, lr7 ; outgoing arg 6 - .reg p4, lr6 ; outgoing arg 5 - .reg p3, lr5 ; outgoing arg 4 - .reg p2, lr4 ; outgoing arg 3 - .reg p1, lr3 ; outgoing arg 2 - .reg p0, lr2 ; outgoing arg 1 - .reg fp, lr1 ; frame pointer - .reg raddr, lr0 ; return address - -;----------------------------------------------------------------------- -; Vectors -;----------------------------------------------------------------------- - - .equ V_ILLEG, 0 ; Illegal opcode - .equ V_ALIGN, 1 ; Unaligned access - .equ V_RANGE, 2 ; Out of range - .equ V_COPRE, 3 ; Coprocessor not present - .equ V_COEXC, 4 ; Coprocessor exception - .equ V_PROT, 5 ; Protection violation - .equ V_INSTR, 6 ; Instruction access exception - .equ V_DATA, 7 ; Data access exception - .equ V_UITLB, 8 ; User-mode instruction TLB miss - .equ V_UDTLB, 9 ; User-mode data TLB miss - .equ V_SITLB, 10 ; Supervisor-mode instr TLB miss - .equ V_SDTLB, 11 ; Supervisor-mode data TLB miss - .equ V_ITLB, 12 ; Instruction TLB violation - .equ V_DTLB, 13 ; Data TLB violation - .equ V_TIMER, 14 ; Timer - .equ V_TRACE, 15 ; Trace - .equ V_INTR0, 16 ; Interrupt 0 - .equ V_INTR1, 17 ; Interrupt 1 - .equ V_INTR2, 18 ; Interrupt 2 - .equ V_INTR3, 19 ; Interrupt 3 - .equ V_TRAP0, 20 ; Trap 0 - .equ V_TRAP1, 21 ; Trap 1 - -;----------------------------------------------------------------------- -;constants for LOAD and STORE operations -;----------------------------------------------------------------------- - -; CE operand values - .equ CE, 0b1 ;coprocessor enable - .equ ME, 0b0 ; memory enable - -; CNTL operand values - .equ IO, 0b1000000 ;set for I/O - .equ PA, 0b0100000 ;force physical addr - .equ SB, 0b0010000 ;set for set BP - .equ UA, 0b0001000 ;force user mode access - .equ ROM, 0b0000100 ;ROM access - .equ HWORD, 0b0000010 ;Half word access - .equ BYTE, 0b0000001 ;Byte access - .equ WORD, 0b0000000 ;Word access - -;----------------------------------------------------------------------- -; stack alignment value -;----------------------------------------------------------------------- - .equ STKALIGN, 8 ; double word align - diff --git a/newlib/libc/sys/a29khif/sys/fpsymbol.h b/newlib/libc/sys/a29khif/sys/fpsymbol.h deleted file mode 100644 index 3fc6ac8..0000000 --- a/newlib/libc/sys/a29khif/sys/fpsymbol.h +++ /dev/null @@ -1,2970 +0,0 @@ -; @(#)fpsymbol.h 1.4 90/10/14 20:55:59, Copyright 1989, 1990 AMD -; start of fpsymbol.h file -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; ______________________________________________________________________ -;|______________________________________________________________________| -;| | -;| SYMBOLS FOR DEFINING THE INSTRUCTION WORD | -;| | -;|______________________________________________________________________| -;|______________________________________________________________________| -; -; -; Revision Information: -;------------------------------------------------------------------------ -; Date: March 31, 1989 -; Author: Roy Carlson per Bob Perlman and Richard Relph -; -; The symbols section describing transactions was modified to contain -; several new symbol values. The reason for the change was to force the -; CA bit to be set--and remain set--once code accesses the coprocessor. -; -; Future operating systems will use the Coprocessor Active (CA) bit in -; the Old Processor Status Register to determine whether or not to save -; coprocessor state, etc.. This means that the instruction control field -; Set Coprocessor Active (SA) bit should be used as follows: -; -; (1) any coprocessor STORE must have its SA bit set to 1, -; so as to set CA, -; -; and (2) any coprocessor LOAD must have its SA bit set to 0, -; so as to prevent clearing CA. -;------------------------------------------------------------------------ -; Date: 89/01/30 12:32:13; author: jim; lines added/del: 5/4 -; Corrected CP_IEEE_GRADUAL_UFLOW_MODE and CP_RMS_MASK. -; Added CP_EXCPS_POSITION, the ls bit of the CP_XXX_EXCP ensemble. -; fixed a few typos in comments. -;------------------------------------------------------------------------ -; Date: 89/01/23 18:00:26; author: jim; lines added/del: 488/468 -; Richard O. Parker -; January 5, 1989 -; -; 1) The _cp_prec_field in the "cp_build_inst", "cp_build_inst_h" -; and "cp_build_inst_l" macros was not being defined in the case -; of Am29K-supported floating-point instructions (e.g., FADD, FSUB, -; DADD, etc.). -; -; 2) The multiplexor select codes in the opcode table entries -; associated with the "cp_build_inst", "cp_build_inst_h" and -; "cp_build_inst_l" macros, pertaining to the CONVERT_F_TO_D -; and CONVERT_D_TO_F instructions were incorrect. -;------------------------------------------------------------------------ -; Date: 88/12/20 14:28:26; author: jim; lines added/del: 1/1 -; Larry Westerman corrected definition of CP_MOVE_P. -; Version required for Release 1.1 of the Intrinsics shipped 12/12/88. -;------------------------------------------------------------------------ -; Date: 88/11/18 15:44:45; author: law; -; Initial revision -; -; -;======================================================================== -; -; The following mnemonics are used to specify the 14 LSBs of the -; instruction word (fields SIP, SIQ, SIT, SIF, IF, and CO). -; -;======================================================================== -; -; floating point operation codes. -; - .equ CP_PASS_P, 0x00000000 ; pass P - .equ CP_MINUSP, 0x00000040 ; -P - .equ CP_ABSP, 0x00000080 ; |P| - .equ CP_SIGNT_TIMES_ABSP, 0x00000C00 ; SIGN(T) * |P| -; - .equ CP_P_PLUS_T, 0x00000001 ; P + T - .equ CP_P_MINUS_T, 0x00000101 ; P - T - .equ CP_MINUSP_PLUS_T, 0x00001001 ; -P + T - .equ CP_MINUSP_MINUS_T, 0x00001101 ; -P - T - .equ CP_ABS_P_PLUS_T, 0x00000081 ; |P + T| - .equ CP_ABS_P_MINUS_T, 0x00000181 ; |P - T| - .equ CP_ABSP_PLUS_ABST, 0x00002201 ; |P| + |T| - .equ CP_ABSP_MINUS_ABST, 0x00002301 ; |P| - |T| - .equ CP_ABS_ABSP_MINUS_ABST, 0x00002381 ; ||P| - |T|| -; - .equ CP_P_TIMES_Q, 0x00000002 ; P * Q - .equ CP_MINUSP_TIMES_Q, 0x00001002 ; -P * Q - .equ CP_ABS_P_TIMES_Q, 0x00000082 ; |P * Q| -; - .equ CP_COMPARE_P_AND_T, 0x00000103 ; compare P and T -; - .equ CP_MAX_P_AND_T, 0x00000104 ; max P,T - .equ CP_MAX_ABSP_AND_ABST, 0x00002304 ; max |P|, |T| -; - .equ CP_MIN_P_AND_T, 0x00001005 ; min P,T - .equ CP_MIN_ABSP_AND_ABST, 0x00003205 ; min |P|,|T| - .equ CP_LIMIT_P_TO_MAGT, 0x00003A05 ; limit P to magnitude of T -; - .equ CP_CONVERT_T_TO_INT, 0x00000006 ; convert T to integer -; - .equ CP_SCALE_T_TO_INT_BY_Q, 0x00000007 ; scale T to integer by Q -; - .equ CP_PQ_PLUS_T, 0x00000008 ; (P * Q) + T - .equ CP_MINUSPQ_PLUS_T, 0x00001008 ; (-P * Q) + T - .equ CP_PQ_MINUS_T, 0x00000108 ; (P * Q) - T - .equ CP_MINUSPQ_MINUS_T, 0x00001108 ; (-P * Q) - T - .equ CP_ABSPQ_PLUS_ABST, 0x00002A08 ; |(P * Q)| + T - .equ CP_MINUSABSPQ_PLUS_ABST, 0x00003A08 ;-|(P * Q)| + T - .equ CP_ABSPQ_MINUS_ABST, 0x00002B08 ; |(P * Q)| - |T| -; - .equ CP_ROUND_T_TO_INT, 0x00000009 ; round T to integral value -; - .equ CP_RECIPROCAL_OF_P, 0x0000000A ; reciprocal of P -; - .equ CP_CONVERT_T_TO_ALT, 0x0000000B ; convert T to alt. f.p. format - .equ CP_CONVERT_T_FROM_ALT, 0x0000000C ; convert T to alt. f.p. format -; -; -; integer operation codes. -; - .equ CP_I_PASS_P, 0x00000020 ; integer pass P - .equ CP_I_MINUSP, 0x00000060 ; integer -P - .equ CP_I_ABSP, 0x000000A0 ; integer |P| - .equ CP_I_SIGNT_TIMES_ABSP, 0x00000C20 ; integer SIGN(T) * |P| -; - .equ CP_I_P_PLUS_T, 0x00000021 ; integer P + T - .equ CP_I_P_MINUS_T, 0x00000121 ; integer P - T - .equ CP_I_MINUSP_PLUS_T, 0x00001021 ; integer -P + T - .equ CP_I_ABS_P_PLUS_T, 0x000000A1 ; integer |P + T| - .equ CP_I_ABS_P_MINUS_T, 0x000001A1 ; integer |P - T| -; - .equ CP_I_P_TIMES_Q, 0x00000022 ; integer P * Q -; - .equ CP_I_COMPARE_P_AND_T, 0x00000123 ; integer compare P and T -; - .equ CP_I_MAX_P_AND_T, 0x00000124 ; integer max P,T -; - .equ CP_I_MIN_P_AND_T, 0x00001025 ; integer min P,T -; - .equ CP_I_CONVERT_T_TO_FLOAT, 0x00000026 ; integer convert T to f.p. -; - .equ CP_I_SCALE_T_TO_FLOAT_BY_Q, 0x00000027 ; integer scale T to f.p. by Q -; - .equ CP_I_P_OR_T, 0x00000030 ; integer P OR T -; - .equ CP_I_P_AND_T, 0x00000031 ; integer P AND T -; - .equ CP_I_P_XOR_T, 0x00000032 ; integer P XOR T -; - .equ CP_I_NOT_T, 0x00000032 ; integer NOT T -; - .equ CP_I_LSHIFT_P_BY_Q, 0x00000033 ; integer logical shift P by Q -; places -; - .equ CP_I_ASHIFT_P_BY_Q, 0x00000034 ; integer arith. shift P by Q -; places -; - .equ CP_I_FSHIFT_PT_BY_Q, 0x00000035 ; integer funnel shift PT by Q -; places -; -; -; move instruction (f.p. or integer) -; - .equ CP_MOVE_P, 0x00000018 ; move operand P -; -; -;======================================================================== -; -; precision codes for the the operands in registers R and S, and for -; the result (instruction word fields IPR, RPR). -; -;======================================================================== -; -; - .equ CP_D_S, 0x00008000 ;Double result, single input(s) - .equ CP_S_D, 0x00004000 ;Single result, double input(s) - .equ CP_D_D, 0x00000000 ;Double result, double input(s) - .equ CP_S_S, 0x0000C000 ;Single result, single input(s) -; -;======================================================================== -; -; The following mnemonics are used to specify the 16 LSBs of an Am29027 -; instruction word for floating-point instructions supported by the -; Am29000 instruction set. -; -;======================================================================== -; - .equ CP_FADD, 0x0000C001 - .equ CP_DADD, 0x00000001 - .equ CP_FSUB, 0x0000C101 - .equ CP_DSUB, 0x00000101 - .equ CP_FMUL, 0x0000C002 - .equ CP_DMUL, 0x00000002 - .equ CP_FEQ, 0x0000C103 - .equ CP_DEQ, 0x00000103 - .equ CP_FGE, 0x0000C103 - .equ CP_DGE, 0x00000103 - .equ CP_FGT, 0x0000C103 - .equ CP_DGT, 0x00000103 - .equ CP_CONVERT_I_TO_F, 0x0000C026 ; CONVERT (int -> s.p.) - .equ CP_CONVERT_I_TO_D, 0x00008026 ; CONVERT (int -> d.p.) - .equ CP_CONVERT_F_TO_I, 0x0000C006 ; CONVERT (s.p.-> int) - .equ CP_CONVERT_D_TO_I, 0x00004006 ; CONVERT (d.p.-> int) - .equ CP_CONVERT_F_TO_D, 0x00008000 ; CONVERT (s.p.-> d.p.) - .equ CP_CONVERT_D_TO_F, 0x00004000 ; CONVERT (d.p.-> s.p.) -; -; -;======================================================================== -; -; operand select codes (instruction word fields PMS, QMS, TMS). -; -;======================================================================== -; -; - .equ CP_P_EQ_R, 0x00000000 - .equ CP_P_EQ_S, 0x01000000 - .equ CP_P_EQ_0, 0x02000000 - .equ CP_P_EQ_ONE_HALF, 0x03000000 - .equ CP_P_EQ_IMINUS1, 0x03000000 - .equ CP_P_EQ_1, 0x04000000 - .equ CP_P_EQ_2, 0x05000000 - .equ CP_P_EQ_3, 0x06000000 - .equ CP_P_EQ_PI, 0x07000000 - .equ CP_P_EQ_IMINUSMAX, 0x07000000 - .equ CP_P_EQ_RF0, 0x08000000 - .equ CP_P_EQ_RF1, 0x09000000 - .equ CP_P_EQ_RF2, 0x0A000000 - .equ CP_P_EQ_RF3, 0x0B000000 - .equ CP_P_EQ_RF4, 0x0C000000 - .equ CP_P_EQ_RF5, 0x0D000000 - .equ CP_P_EQ_RF6, 0x0E000000 - .equ CP_P_EQ_RF7, 0x0F000000 -; - .equ CP_Q_EQ_R, 0x00000000 - .equ CP_Q_EQ_S, 0x00100000 - .equ CP_Q_EQ_0, 0x00200000 - .equ CP_Q_EQ_ONE_HALF, 0x00300000 - .equ CP_Q_EQ_IMINUS1, 0x00300000 - .equ CP_Q_EQ_1, 0x00400000 - .equ CP_Q_EQ_2, 0x00500000 - .equ CP_Q_EQ_3, 0x00600000 - .equ CP_Q_EQ_PI, 0x00700000 - .equ CP_Q_EQ_IMINUSMAX, 0x00700000 - .equ CP_Q_EQ_RF0, 0x00800000 - .equ CP_Q_EQ_RF1, 0x00900000 - .equ CP_Q_EQ_RF2, 0x00A00000 - .equ CP_Q_EQ_RF3, 0x00B00000 - .equ CP_Q_EQ_RF4, 0x00C00000 - .equ CP_Q_EQ_RF5, 0x00D00000 - .equ CP_Q_EQ_RF6, 0x00E00000 - .equ CP_Q_EQ_RF7, 0x00F00000 -; - .equ CP_T_EQ_R, 0x00000000 - .equ CP_T_EQ_S, 0x00010000 - .equ CP_T_EQ_0, 0x00020000 - .equ CP_T_EQ_ONE_HALF, 0x00030000 - .equ CP_T_EQ_IMINUS1, 0x00030000 - .equ CP_T_EQ_1, 0x00040000 - .equ CP_T_EQ_2, 0x00050000 - .equ CP_T_EQ_3, 0x00060000 - .equ CP_T_EQ_PI, 0x00070000 - .equ CP_T_EQ_IMINUSMAX, 0x00070000 - .equ CP_T_EQ_RF0, 0x00080000 - .equ CP_T_EQ_RF1, 0x00090000 - .equ CP_T_EQ_RF2, 0x000A0000 - .equ CP_T_EQ_RF3, 0x000B0000 - .equ CP_T_EQ_RF4, 0x000C0000 - .equ CP_T_EQ_RF5, 0x000D0000 - .equ CP_T_EQ_RF6, 0x000E0000 - .equ CP_T_EQ_RF7, 0x000F0000 -; -; -;======================================================================== -; -; destination select codes (instruction word fields RF, RFS) -; -;======================================================================== -; -; - .equ CP_DEST_EQ_GP, 0x00000000 - .equ CP_DEST_EQ_RF0, 0x80000000 - .equ CP_DEST_EQ_RF1, 0x90000000 - .equ CP_DEST_EQ_RF2, 0xA0000000 - .equ CP_DEST_EQ_RF3, 0xB0000000 - .equ CP_DEST_EQ_RF4, 0xC0000000 - .equ CP_DEST_EQ_RF5, 0xD0000000 - .equ CP_DEST_EQ_RF6, 0xE0000000 - .equ CP_DEST_EQ_RF7, 0xF0000000 -; -; -; ______________________________________________________________________ -;|______________________________________________________________________| -;| | -;| SYMBOLS FOR DEFINING THE MODE REGISTER DOUBLE WORD | -;| | -;|______________________________________________________________________| -;|______________________________________________________________________| -; -; -; - .equ CP_PFF_MASK, 0x00000003 ; primary f.p. format mask - .equ CP_PFF_EQ_IEEE, 0x00000000 ; primary f.p. format = IEEE - .equ CP_PFF_EQ_DECD, 0x00000001 ; primary f.p. format = DEC D - .equ CP_PFF_EQ_DECG, 0x00000002 ; primary f.p. format = DEC G - .equ CP_PFF_EQ_IBM, 0x00000003 ; primary f.p. format = IBM - .equ CP_PFF_POSITION, 0 -; - .equ CP_AFF_MASK, 0x0000000C ; alternate f.p. format mask - .equ CP_AFF_EQ_IEEE, 0x00000000 ; alternate f.p. format = IEEE - .equ CP_AFF_EQ_DECD, 0x00000004 ; alternate f.p. format = DEC D - .equ CP_AFF_EQ_DECG, 0x00000008 ; alternate f.p. format = DEC G - .equ CP_AFF_EQ_IBM, 0x0000000C ; alternate f.p. format = IBM - .equ CP_AFF_POSITION, 2 -; - .equ CP_SAT_MASK, 0x00000010 ; saturate mode (SAT) mask - .equ CP_SATURATE_MODE, 0x00000010 ; enable saturate mode (SAT=1) - .equ CP_SAT_POSITION, 4 -; - .equ CP_AP_MASK, 0x00000020 ; affine/proj. mode (AP) mask - .equ CP_AFFINE_MODE, 0x00000020 ; enable affine mode (AP=1) - .equ CP_PROJECTIVE_MODE, 0x00000000 ; enable projective mode (AP=0) - .equ CP_AP_POSITION, 5 -; - .equ CP_TRP_MASK, 0x00000040 ; IEEE trap mode (TRP) mask - .equ CP_IEEE_TRAPS_ENABLED, 0x00000040 ; IEEE trap mode enabled (TRP=1) - .equ CP_IEEE_TRAPS_DISABLED, 0x00000000 ; IEEE trap mode disabled (TRP=0) - .equ CP_TRP_POSITION, 6 -; - .equ CP_SU_MASK, 0x00000080 ; IEEE sud. uflow (SU) mask - .equ CP_IEEE_SUDDEN_UFLOW_MODE, 0x00000080 ; IEEE sud. uflow mode (SU=1) - .equ CP_IEEE_GRADUAL_UFLOW_MODE,0x00000000 ; IEEE grad uflow mode (SU=0) - .equ CP_SU_POSITION, 7 -; - .equ CP_BS_MASK, 0x00000100 ; IBM sig. mask (BS) - .equ CP_BS_POSITION, 8 -; - .equ CP_BU_MASK, 0x00000200 ; IBM underflow mask (BU) - .equ CP_BU_POSITION, 9 -; - .equ CP_MS_MASK, 0x00000800 ; signed int. mpy (MS) mask - .equ CP_SIGNED_INT_MPY_MODE, 0x00000800 ; signed int. mpy mode (MS=1) - .equ CP_UNSIGNED_INT_MPY_MODE, 0x00000000 ; unsigned int. mpy mode (MS=0) - .equ CP_MS_POSITION, 11 -; - .equ CP_MF_MASK, 0x00003000 ; int. mult. fmt. mode (MF) mask - .equ CP_MF_EQ_LSBS, 0x00000000 ; int. mult. fmt. = LSBs - .equ CP_MF_EQ_LSBSFA, 0x00001000 ; int. mult. fmt. = LSBs,fmt. adj. - .equ CP_MF_EQ_MSBS, 0x00002000 ; int. mult. fmt. = MSBs - .equ CP_MF_EQ_MSBSFA, 0x00003000 ; int. mult. fmt. = MSBs,fmt. adj. - .equ CP_MF_POSITION, 12 -; - .equ CP_RMS_MASK, 0x0001C000 ; round mode (RMS) mask - .equ CP_RMS_EQ_NEAREST, 0x00000000 ; round mode = to nearest - .equ CP_RMS_EQ_MINUS_INF, 0x00004000 ; round mode = toward -oo - .equ CP_RMS_EQ_PLUS_INF, 0x00008000 ; round mode = toward +oo - .equ CP_RMS_EQ_ZERO, 0x0000C000 ; round mode = toward zero - .equ CP_RMS_POSITION, 14 -; - .equ CP_PL_MASK, 0x00100000 ; pipeline mode (PL) mask - .equ CP_FLOWTHROUGH_MODE, 0x00000000 ; select flow-through mode - .equ CP_PIPELINE_MODE, 0x00100000 ; select pipeline mode - .equ CP_PL_POSITION, 20 -; - .equ CP_INVALID_OP_EXCP_MASK, 0x00400000 ; invalid operation excp. mask(IM) - .equ CP_RESERVED_OP_EXCP_MASK,0x00800000 ; reserved operand excp. mask(RM) - .equ CP_OVERFLOW_EXCP_MASK, 0x01000000 ; overflow exception mask (VM) - .equ CP_UNDERFLOW_EXCP_MASK, 0x02000000 ; underflow exception mask(UM) - .equ CP_INEXACT_EXCP_MASK, 0x04000000 ; inexact result excp. mask(XM) - .equ CP_ZERO_EXCP_MASK, 0x08000000 ; zero result exception mask (ZM) - .equ CP_EXCPS_POSITION, 22 -; - .equ CP_PLTC_MASK, 0x0000000F ; pipeline timer count (PLTC) mask - .equ CP_PLTC_EQ_2, 0x00000002 ; pipeline timer count = 2 - .equ CP_PLTC_EQ_3, 0x00000003 ; pipeline timer count = 3 - .equ CP_PLTC_EQ_4, 0x00000004 ; pipeline timer count = 4 - .equ CP_PLTC_EQ_5, 0x00000005 ; pipeline timer count = 5 - .equ CP_PLTC_EQ_6, 0x00000006 ; pipeline timer count = 6 - .equ CP_PLTC_EQ_7, 0x00000007 ; pipeline timer count = 7 - .equ CP_PLTC_EQ_8, 0x00000008 ; pipeline timer count = 8 - .equ CP_PLTC_EQ_9, 0x00000009 ; pipeline timer count = 9 - .equ CP_PLTC_EQ_10, 0x0000000A ; pipeline timer count = 10 - .equ CP_PLTC_EQ_11, 0x0000000B ; pipeline timer count = 11 - .equ CP_PLTC_EQ_12, 0x0000000C ; pipeline timer count = 12 - .equ CP_PLTC_EQ_13, 0x0000000D ; pipeline timer count = 13 - .equ CP_PLTC_EQ_14, 0x0000000E ; pipeline timer count = 14 - .equ CP_PLTC_EQ_15, 0x0000000F ; pipeline timer count = 15 - .equ CP_PLTC_POSITION, 0 -; - .equ CP_MATC_MASK, 0x000000F0 ; mpy-acc timer count (MATC) mask - .equ CP_MATC_EQ_2, 0x00000020 ; mpy-acc timer count = 2 - .equ CP_MATC_EQ_3, 0x00000030 ; mpy-acc timer count = 3 - .equ CP_MATC_EQ_4, 0x00000040 ; mpy-acc timer count = 4 - .equ CP_MATC_EQ_5, 0x00000050 ; mpy-acc timer count = 5 - .equ CP_MATC_EQ_6, 0x00000060 ; mpy-acc timer count = 6 - .equ CP_MATC_EQ_7, 0x00000070 ; mpy-acc timer count = 7 - .equ CP_MATC_EQ_8, 0x00000080 ; mpy-acc timer count = 8 - .equ CP_MATC_EQ_9, 0x00000090 ; mpy-acc timer count = 9 - .equ CP_MATC_EQ_10, 0x000000A0 ; mpy-acc timer count = 10 - .equ CP_MATC_EQ_11, 0x000000B0 ; mpy-acc timer count = 11 - .equ CP_MATC_EQ_12, 0x000000C0 ; mpy-acc timer count = 12 - .equ CP_MATC_EQ_13, 0x000000D0 ; mpy-acc timer count = 13 - .equ CP_MATC_EQ_14, 0x000000E0 ; mpy-acc timer count = 14 - .equ CP_MATC_EQ_15, 0x000000F0 ; mpy-acc timer count = 15 - .equ CP_MATC_POSITION, 4 -; - .equ CP_MVTC_MASK, 0x00000F00 ; MOVE P timer count (MVTC) mask - .equ CP_MVTC_EQ_2, 0x00000200 ; MOVE P timer count = 2 - .equ CP_MVTC_EQ_3, 0x00000300 ; MOVE P timer count = 3 - .equ CP_MVTC_EQ_4, 0x00000400 ; MOVE P timer count = 4 - .equ CP_MVTC_EQ_5, 0x00000500 ; MOVE P timer count = 5 - .equ CP_MVTC_EQ_6, 0x00000600 ; MOVE P timer count = 6 - .equ CP_MVTC_EQ_7, 0x00000700 ; MOVE P timer count = 7 - .equ CP_MVTC_EQ_8, 0x00000800 ; MOVE P timer count = 8 - .equ CP_MVTC_EQ_9, 0x00000900 ; MOVE P timer count = 9 - .equ CP_MVTC_EQ_10, 0x00000A00 ; MOVE P timer count = 10 - .equ CP_MVTC_EQ_11, 0x00000B00 ; MOVE P timer count = 11 - .equ CP_MVTC_EQ_12, 0x00000C00 ; MOVE P timer count = 12 - .equ CP_MVTC_EQ_13, 0x00000D00 ; MOVE P timer count = 13 - .equ CP_MVTC_EQ_14, 0x00000E00 ; MOVE P timer count = 14 - .equ CP_MVTC_EQ_15, 0x00000F00 ; MOVE P timer count = 15 - .equ CP_MVTC_POSITION, 8 -; - .equ CP_AD_MASK, 0x00001000 ; - .equ CP_ADVANCE_DRDY_MODE, 0x00001000 ; - .equ CP_NORMAL_DRDY_MODE, 0x00000000 ; - .equ CP_AD_POSITION, 12 -; - .equ CP_HE_MASK, 0x00002000 ; Halt-on-error mask (HE) - .equ CP_HALT_ON_ERROR_ENABLED, 0x00002000 ; Halt-on-error enabled (HE=1) - .equ CP_HALT_ON_ERROR_DISABLED,0x00000000 ; Halt-on-error disabled (HE=0) - .equ CP_HE_POSITION, 13 -; - .equ CP_EX_MASK, 0x00004000 ; EXCP enable mask (EX) - .equ CP_EXCP_ENABLED, 0x00004000 ; EXCP enabled (EX=1) - .equ CP_EXCP_DISABLED, 0x00000000 ; EXCP disabled (EX=0) - .equ CP_EX_POSITION, 14 -; -; -; -; ______________________________________________________________________ -;|______________________________________________________________________| -;| | -;| SYMBOLS FOR DEFINING THE STATUS REGISTER WORD | -;| | -;|______________________________________________________________________| -;|______________________________________________________________________| -; -; - .equ CP_INVALID_OP_EXCP, 0x00000001 - .equ CP_INVALID_OP_EXCP_POSITION, 0 -; - .equ CP_RESERVED_OP_EXCP, 0x00000002 - .equ CP_RESERVED_OP_EXCP_POSITION, 1 -; - .equ CP_OVERFLOW_EXCP, 0x00000004 - .equ CP_OVERFLOW_EXCP_POSITION, 2 -; - .equ CP_UNDERFLOW_EXCP, 0x00000008 - .equ CP_UNDERFLOW_EXCP_POSITION, 3 -; - .equ CP_INEXACT_EXCP, 0x00000010 - .equ CP_INEXACT_EXCP_POSITION, 4 -; - .equ CP_ZERO_EXCP, 0x00000020 - .equ CP_ZERO_EXCP_POSITION, 5 -; - .equ CP_EXCP_STATUS_MASK, 0x00000040 - .equ CP_EXCP_STATUS_FLAG_POSITION, 6 -; - .equ CP_R_TEMP_VALID_MASK, 0x00000080 - .equ R_TEMP_VALID_POSITION, 7 -; - .equ CP_S_TEMP_VALID_MASK, 0x00000100 - .equ CP_S_TEMP_VALID_POSITION, 8 -; - .equ CP_I_TEMP_VALID_FLAG, 0x00000200 - .equ CP_I_TEMP_VALID_POSITION, 9 -; - .equ CP_OPERATION_PENDING_MASK, 0x00000400 - .equ CP_OPERATION_PENDING_POSITION,10 -; -; -; ______________________________________________________________________ -;|______________________________________________________________________| -;| | -;| SYMBOLS FOR DEFINING THE FLAG REGISTER WORD | -;| | -;|______________________________________________________________________| -;|______________________________________________________________________| -; -; - .equ CP_INVALID_OP_FLAG, 0x00000001 - .equ CP_INVALID_OP_FLAG_POSITION, 0 -; - .equ CP_CARRY_FLAG, 0x00000001 - .equ CP_CARRY_FLAG_POSITION, 0 -; - .equ CP_RESERVED_OP_FLAG, 0x00000002 - .equ CP_RESERVED_OP_FLAG_POSITION, 1 -; - .equ CP_OVERFLOW_FLAG, 0x00000004 - .equ CP_OVERFLOW_FLAG_POSITION, 2 -; - .equ CP_UNORDERED_FLAG, 0x00000004 - .equ CP_UNORDERED_FLAG_POSITION, 2 -; - .equ CP_UNDERFLOW_FLAG, 0x00000008 - .equ CP_UNDERFLOW_FLAG_POSITION, 3 -; - .equ CP_LESS_THAN_FLAG, 0x00000008 - .equ CP_LESS_THAN_POSITION, 3 -; - .equ CP_WINNER_FLAG, 0x00000008 - .equ CP_WINNER_FLAG_POSITION, 3 -; - .equ CP_INEXACT_FLAG, 0x00000010 - .equ CP_INEXACT_FLAG_POSITION, 4 -; - .equ CP_GREATER_THAN_FLAG, 0x00000010 - .equ CP_GREATER_THAN_FLAG_POSITION,4 -; - .equ CP_ZERO_FLAG, 0x00000020 - .equ CP_ZERO_FLAG_POSITION, 5 -; - .equ CP_EQUAL_FLAG, 0x00000020 - .equ CP_EQUAL_FLAG_POSITION, 5 -; - .equ CP_SIGN_FLAG, 0x00000040 - .equ CP_SIGN_FLAG_POSITION, 6 -; -; -; ______________________________________________________________________ -;|______________________________________________________________________| -;| | -;| SYMBOLS FOR TRANSACTION REQUEST TYPES | -;| | -;|______________________________________________________________________| -;|______________________________________________________________________| -; -; -; write requests -; -; Note: Each WRITE_* transaction request, plus ADV_TEMPS sets the CA -; (Coprocessor Active) bit in the 29000 Current Processor Status Register. -; - .equ CP_WRITE_R, 0x20 ;write sing or doub to R register - .equ CP_WRITE_S, 0x21 ;write sing or doub to S register - .equ CP_WRITE_RS, 0x22 ;write sing operands to R and S - .equ CP_WRITE_MODE, 0x23 ;write mode double word to 29027 - .equ CP_WRITE_STATUS, 0x24 ;write status word to 29027 - .equ CP_WRITE_PREC, 0x25 ;write reg. file precision word - ; to 29027 - .equ CP_WRITE_INST, 0x26 ;write instruction to 29027 - .equ CP_ADV_TEMPS, 0x27 ;move R-Temp, S-Temp into R,S -; -; read requests -; - .equ CP_READ_MSBS, 0x00 ;read sing result or MSB of doub - .equ CP_READ_LSBS, 0x01 ;read LSB of doub result - .equ CP_READ_FLAGS, 0x02 ;read 29027 flag register - .equ CP_READ_STATUS, 0x03 ;read 29027 status register - .equ CP_SAVE_STATE, 0x04 ;read one word of 29027 state -; -; "start operation" symbol; this is "OR"ed with a WRITE_R, WRITE_S, -; WRITE_RS, or WRITE_INST symbol. -; - - .equ CP_START, 0b1000000 ;bit to start 29027 operation -; -; "suppress exceptions reporting" symbol; this is "OR"ed with a ed -; -; - - .equ CP_NO_ERR, 0b1000000 ;suppress exception reporting -; ; during load. -; cp_write_r - transfers 32- or 64-bit operand to Am29027 -; register R -; cp_write_s - transfers 32- or 64-bit operand to Am29027 -; register S -; cp_write_rs - transfers two 32-bit floating-point operands to -; Am29027 registers R and S -; cp_write_prec - transfers a word to the Am29027 precision register -; cp_write_status - transfers a word to the Am29027 status register -; cp_write_inst - transfers an instruction to the Am29027 -; instruction register -; cp_advance_temps - transfers the contents of the Am29027 temporary -; registers to the corresponding working registers -; cp_write_mode - transfers a mode specification the the Am29027 -; mode register -; cp_read_dp - read a double-precision floating-point result -; from the Am29027 -; cp_read_sp - read a single-precision floating-point result -; from the Am29027 -; cp_read_int - read an integer result from the Am29027 -; cp_read_flags - read the contents of the Am29027 flag register -; cp_read_status - read the contents of the Am29027 status register -; cp_read_state_wd - read a single Am29027 state word -; cp_save_state - save Am29027 state -; cp_restore_state - restore Am29027 state -; cp_build_inst - build an Am29027 instruction -; cp_build_inst_h - build 16 MSBs of an Am29027 instruction -; cp_build_inst_l - build 16 LSBs of an Am29027 instruction -; -; -; -;============================================================================ -; MACRO NAME: cp_write_r -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 16, 1988 -; -; FUNCTION: Transfers a 32- or 64-bit operand to Am29027 input register R -; -; PARAMETERS: -; reg - the Am29000 g.p. register containing the 32-bit operand to be -; transferred, or the 32 MSBs of the 64-bit operand to be -; transferred. -; -; LSB_reg - the Am29000 g.p. register containing the 32 LSBs of the -; 64-bit operand to be transferred -; -; INT - indicates that the operand to be transferred is a 32-bit -; integer -; -; START - indicates that a new Am29027 operation is to be started -; once the operand has been transferred -; -; -; USAGE: -; -; cp_write_r reg [,LSB_reg] [,START] for floating-point operands -; or cp_write_r reg, INT [,START] for integer operands -; -; Transferring double-precision floating-point operands - Either of -; two forms is acceptable: -; -; cp_write_r reg -; or cp_write_r reg, LSB_reg -; -; If LSB_reg is omitted, the LSBs are taken from the next g.p. -; register. -; -; Ex: cp_write_r lr2 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register R, and the contents of lr3 -; to the least-significant half. -; -; cp_write_r lr2,lr5 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register R, and the contents of lr5 -; to the least-significant half. -; -; -; Transferring single-precision floating-point operands - Use the -; form: -; -; cp_write_r reg -; -; -; Ex: cp_write_r lr2 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register R, (the contents of lr3 -; will be transferred to the least- -; significant half of register R, but -; these bits are don't cares). -; -; -; Transferring integer operands - Use the form: -; -; cp_write_r reg,INT -; -; -; Ex: cp_write_r lr2,INT Transfers the contents of lr2 to -; the least-significant half of Am29027 -; register R, (the contents of lr2 -; will also be transferred to the most- -; significant half of register R, but -; these bits are don't cares). -; -; -; Starting an Am29027 operation - Any of the forms above may be -; appended with parameter START, e.g.: -; -; cp_write_r lr2,START -; -; cp_write_r lr2,lr5,START -; -; cp_write_r lr2,INT,START -; -; -;============================================================================ -; - .macro cp_write_r,p1,p2,p3 -; - .if $narg==0 - .err - .print "cp_WRITE_R: missing parameter(s)" - .endif -; -; - .if $narg==1 - store 1,CP_WRITE_R,p1,%%((&p1)+1) - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","INT" - store 1,CP_WRITE_R,p1,p1 - .exitm - .endif -; - .ifeqs "@p2@","START" - store 1,CP_WRITE_R|CP_START,p1,%%((&p1)+1) - .exitm - .endif -; - store 1,CP_WRITE_R,p1,p2 - .exitm -; - .endif -; -; - .if $narg==3 -; - .ifeqs "@p2@","START" - .ifeqs "@p3@","INT" - store 1,CP_WRITE_R|CP_START,p1,p1 - .else - .err - .print "cp_write_r: bad parameter list" - .endif - .exitm - .endif -; - .ifeqs "@p2@","INT" - .ifeqs "@p3@","START" - store 1,CP_WRITE_R|CP_START,p1,p1 - .else - .err - .print "cp_write_r: bad parameter list" - .endif - .exitm - .endif -; - .ifeqs "@p3@","START" - store 1,CP_WRITE_R|CP_START,p1,p2 - .else - .err - .print "cp_write_r: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=4 - .err - .print "cp_write_r: too many parameters" - .endif -; - .endm -; -; -; -; -; -;============================================================================ -; MACRO NAME: cp_write_s -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 16, 1988 -; -; FUNCTION: Transfers a 32- or 64-bit operand to Am29027 input register S -; -; PARAMETERS: -; reg - the Am29000 g.p. register containing the 32-bit operand to be -; transferred, or the 32 MSBs of the 64-bit operand to be -; transferred. -; -; LSB_reg - the Am29000 g.p. register containing the 32 LSBs of the -; 64-bit operand to be transferred -; -; INT - indicates that the operand to be transferred is a 32-bit -; integer -; -; START - indicates that a new Am29027 operation is to be started -; once the operand has been transferred -; -; -; USAGE: -; -; cp_write_s reg [,LSB_reg] [,START] for floating-point operands -; or cp_write_s reg, INT [,START] for integer operands -; -; Transferring double-precision floating-point operands - Either of -; two forms is acceptable: -; -; cp_write_s reg -; or cp_write_s reg, LSB_reg -; -; If LSB_reg is omitted, the LSBs are taken from the next g.p. -; register. -; -; Ex: cp_write_s lr2 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register S, and the contents of lr3 -; to the least-significant half. -; -; cp_write_s lr2,lr5 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register S, and the contents of lr5 -; to the least-significant half. -; -; -; Transferring single-precision floating-point operands - Use the -; form: -; -; cp_write_s reg -; -; -; Ex: cp_write_s lr2 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register S, (the contents of lr3 -; will be transferred to the least- -; significant half of register S, but -; these bits are don't cares). -; -; -; Transferring integer operands - Use the form: -; -; cp_write_s reg,INT -; -; -; Ex: cp_write_s lr2,INT Transfers the contents of lr2 to -; the least-significant half of Am29027 -; register S, (the contents of lr2 -; will also be transferred to the most- -; significant half of register S, but -; these bits are don't cares). -; -; -; Starting an Am29027 operation - Any of the forms above may be -; appended with parameter START, e.g.: -; -; cp_write_s lr2,START -; -; cp_write_s lr2,lr5,START -; -; cp_write_s lr2,INT,START -; -; -;============================================================================ -; - .macro cp_write_s,p1,p2,p3 -; - .if $narg==0 - .err - .print "cp_write_s: missing parameter(s)" - .endif -; -; - .if $narg==1 - store 1,CP_WRITE_S,p1,%%((&p1)+1) - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","INT" - store 1,CP_WRITE_S,p1,p1 - .exitm - .endif -; - .ifeqs "@p2@","START" - store 1,CP_WRITE_S|CP_START,p1,%%((&p1)+1) - .exitm - .endif -; - store 1,CP_WRITE_S,p1,p2 - .exitm -; - .endif -; -; - .if $narg==3 -; - .ifeqs "@p2@","START" - .ifeqs "@p3@","INT" - store 1,CP_WRITE_S|CP_START,p1,p1 - .else - .err - .print "cp_write_s: bad parameter list" - .endif - .exitm - .endif -; - .ifeqs "@p2@","INT" - .ifeqs "@p3@","START" - store 1,CP_WRITE_S|CP_START,p1,p1 - .else - .err - .print "cp_write_s: bad parameter list" - .endif - .exitm - .endif -; - .ifeqs "@p3@","START" - store 1,CP_WRITE_S|CP_START,p1,p2 - .else - .err - .print "cp_write_s: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=4 - .err - .print "cp_write_s: too many parameters" - .endif -; - .endm -; -; -; -; -;============================================================================ -; MACRO NAME: cp_write_rs -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 16, 1988 -; -; FUNCTION: Transfers two 32-bit floating-point operands to Am29027 -; input registers R and S -; -; PARAMETERS: -; reg1 - the Am29000 g.p. register containing the 32-bit operand to be -; transferred to register R -; -; reg2 - the Am29000 g.p. register containing the 32-bit operand to be -; transferred to register S -; -; START - indicates that a new Am29027 operation is to be started -; once the operands have been transferred -; -; -; USAGE: -; -; cp_write_rs reg1, reg2 [,START] -; -; Ex: cp_write_rs lr2,lr5 Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register R, and the contents of lr5 -; to the most-significant half of Am29027 -; register S. -; -; cp_write_rs lr2,lr5,START Transfers the contents of lr2 to -; the most-significant half of Am29027 -; register R, and the contents of lr5 -; to the most-significant half of Am29027 -; register S; a new operation is started -; once the transfer is complete. -; -; -; -;============================================================================ -; - .macro cp_write_rs,p1,p2,p3 -; -; - .if $narg<=1 - .err - .print "cp_write_rs: missing parameter(s)" - .exitm - .endif -; -; - .if $narg==2 - .ifeqs "@p2@","START" - .err - .print "cp_write_rs: bad parameter list" - .else - store 1,CP_WRITE_RS,p1,p2 - .endif - .exitm - .endif -; -; - .if $narg==3 - .ifeqs "@p3@","START" - store 1,CP_WRITE_RS|CP_START,p1,p2 - .else - .err - .print "cp_write_rs: bad parameter list" - .endif - .exitm - .endif -; -; - .if $narg>=4 - .err - .print "cp_write_rs: too many parameters" - .exitm - .endif -; - .endm -; -; -; -; -; -; -;============================================================================ -; MACRO NAME: cp_write_prec -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 16, 1988 -; -; FUNCTION: Transfers a word to the Am29027 precision register -; -; PARAMETERS: -; reg - the Am29000 g.p. register containing the word to be -; transferred to the Am29027 precision register -; -; USAGE: -; -; cp_write_prec reg -; -; Ex: cp_write_prec lr2 Transfers the contents of lr2 to -; the Am29027 precision register. -; -; -;============================================================================ -; - .macro cp_write_prec,p1 -; -; - .if $narg!=1 - .err - .print "cp_write_prec: bad parameter list" - .else - store 1,CP_WRITE_PREC,p1,0 - .endif -; - .endm -; -; -; -; -; -; -;============================================================================ -; MACRO NAME: cp_write_status -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 16, 1988 -; -; FUNCTION: Transfers a word to the Am29027 precision register -; -; PARAMETERS: -; reg - the Am29000 g.p. register containing the word to be -; transferred to the Am29027 status register -; -; RESTORE - indicates that this is the last step of a state restoration -; sequence (flow-through mode only) -; -; INVALIDATE - indicates that the current contents of the ALU pipeline -; register are to be invalidated (pipeline mode only) -; -; USAGE: -; -; cp_write_status reg [,RESTORE|INVALIDATE] -; -; Ex: cp_write_status lr2 Transfers the contents of lr2 to -; the Am29027 status register. -; -; -; cp_write_status lr2,RESTORE Transfers the contents of lr2 to -; the Am29027 status register, and -; completes the state restore -; sequence -; -; cp_write_status lr2,INVALIDATE Transfers the contents of lr2 to -; the Am29027 status register, and -; invalidates the contents of the -; ALU pipeline. -; -; -;============================================================================ -; - .macro cp_write_status,p1,p2 -; - .if $narg==0 - .err - .print "cp_write_status: missing parameter(s)" - .endif -; -; - .if $narg==1 - store 1,CP_WRITE_STATUS,p1,0 - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","RESTORE" - store 1,CP_WRITE_STATUS|CP_START,p1,0 - .exitm - .endif -; - .ifeqs "@p2@","INVALIDATE" - store 1,CP_WRITE_STATUS|CP_START,p1,0 - .exitm - .endif -; - .err - .print "cp_write_status: bad parameter list" - .exitm -; - .endif -; -; - .if $narg >=3 - .err - .print "cp_write_status: too many parameters" - .exitm - .endif -; - .endm -; -; -; -; -; -;============================================================================ -; MACRO NAME: cp_write_inst -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 16, 1988 -; -; FUNCTION: Transfers an instruction word to the Am29027 instruction -; register -; -; PARAMETERS: -; reg - the Am29000 g.p. register containing the word to be -; transferred to the Am29027 instruction register -; -; START - indicates that a new Am29027 operation is to be started -; once the instruction word has been transferred -; -; USAGE: -; -; cp_write_inst reg [,START] -; -; Ex: cp_write_inst lr2 Transfers the contents of lr2 to -; the Am29027 instruction register. -; -; -; cp_write_inst lr2,START Transfers the contents of lr2 to -; the Am29027 status register; a -; new operation is started once the -; transfer is complete. -; -; -;============================================================================ -; - .macro cp_write_inst,p1,p2 -; - .if $narg==0 - .err - .print "cp_write_inst: missing parameter(s)" - .endif -; -; - .if $narg==1 - store 1,CP_WRITE_INST,p1,p1 - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","START" - store 1,CP_WRITE_INST|CP_START,p1,p1 - .else - .err - .print "cp_write_inst: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg >=3 - .err - .print "cp_write_inst: too many parameters" - .exitm - .endif -; - .endm -; -; -; -; -; -; -;============================================================================ -; MACRO NAME: cp_advance_temps -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 17, 1988 -; -; FUNCTION: Transfers the contents of Am29027 registers R-Temp, S-Temp, -; and I-Temp to register R, register S, and the instruction -; register, respectively. -; -; PARAMETERS: none -; -; USAGE: -; -; cp_advance_temps -; -; -; -;============================================================================ -; - .macro cp_advance_temps -; -; - .if $narg!=0 - .err - .print "cp_advance_temp: takes no parameters" - .else - store 1,CP_ADV_TEMPS,gr1,0 ; use gr1 because it's never protected - .endif -; - .endm -; -; -; -; -;============================================================================ -; MACRO NAME: cp_write_mode -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 17, 1988 -; -; FUNCTION: Transfers a 64-bit mode specification to the Am29027 mode -; register -; -; PARAMETERS: -; reg - the Am29000 g.p. register containing the 32 MSBs of the -; 64-bit mode specification to be transferred. -; -; LSB_reg - the Am29000 g.p. register containing the 32 LSBs of the -; 64-bit mode specification to be transferred. -; -; USAGE: -; -; cp_write_mode reg [,LSB_reg] -; -; Either of two forms is acceptable: -; -; cp_write_mode reg -; or cp_write_mode reg, LSB_reg -; -; If LSB_reg is omitted, the LSBs are taken from the next g.p. -; register. -; -; Ex: cp_write_mode lr2 Transfers the contents of lr2 to -; the most-significant half of the Am29027 -; mode register, and the contents of lr3 -; to the least-significant half. -; -; cp_write_mode lr2,lr5 Transfers the contents of lr2 to -; the most-significant half of the Am29027 -; mode register, and the contents of lr5 -; to the least-significant half. -; -; -; -;============================================================================ -; - .macro cp_write_mode,p1,p2 -; - .if $narg==0 - .err - .print "cp_write_mode: missing parameter(s)" - .endif -; -; - .if $narg==1 - store 1,CP_WRITE_MODE,%%((&p1)+1),p1 - .exitm - .endif -; -; - .if $narg==2 - store 1,CP_WRITE_MODE,p2,p1 - .exitm - .endif -; -; - .if $narg>=3 - .err - .print "cp_write_mode: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_read_dp -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 17, 1988 -; -; FUNCTION: Transfers the current Am29027 double-precison floating-point -; result to the Am29000 -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the 32 MSBs of the -; current Am29027 result are to be written. -; -; LSB_reg - the Am29000 g.p. register into which the 32 LSBs of the -; current Am29027 result are to be written. -; -; NO_ERR - indicates that exception reporting is to be suppressed for this -; transfer. -; -; USAGE: -; -; cp_read_dp reg [,LSB_reg] [,START] -; -; Either of two forms is acceptable: -; -; cp_read_dp reg -; or cp_read_dp reg, LSB_reg -; -; If LSB_reg is omitted, the LSBs are written to the next g.p. register. -; -; Ex: cp_read_dp lr2 Transfers the 32 MSBs of the current -; Am29027 result to lr2, and the 32 LSBs -; to lr3. -; -; cp_read_dp lr2,lr5 Transfers the 32 MSBs of the current -; Am29027 result to lr2, and the 32 LSBs -; to lr5. -; -; Exception reporting can be suppressed by appending NO_ERR to either -; of the above, e.g.: -; -; cp_read_dp lr2,NO_ERR -; cp_read_dp lr2,lr5,NO_ERR -; -; -;============================================================================ -; - .macro cp_read_dp,p1,p2,p3 -; - .if $narg==0 - .err - .print "cp_read_dp: missing parameter(s)" - .endif -; -; - .if $narg==1 - load 1,CP_READ_LSBS,%%((&p1)+1),0 - load 1,CP_READ_MSBS,p1,0 - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","NO_ERR" - load 1,CP_READ_LSBS|CP_NO_ERR,%%((&p1)+1),0 - load 1,CP_READ_MSBS|CP_NO_ERR,p1,0 - .exitm - .endif -; - load 1,CP_READ_LSBS,p2,0 - load 1,CP_READ_MSBS,p1,0 - .exitm -; - .endif -; -; - .if $narg==3 -; - .ifeqs "@p3@","NO_ERR" - load 1,CP_READ_LSBS|CP_NO_ERR,p2,0 - load 1,CP_READ_MSBS|CP_NO_ERR,p1,0 - .else - .err - .print "cp_read_dp: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=4 - .err - .print "cp_read_dp: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_read_sp -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 17, 1988 -; -; FUNCTION: Transfers the current Am29027 single-precison floating-point -; result to the Am29000 -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the current Am29027 -; result is to be written. -; -; NO_ERR - indicates that exception reporting is to be suppressed for this -; transfer. -; -; USAGE: -; -; cp_read_sp reg [,START] -; -; Ex: cp_read_sp lr2 Transfers the current Am29027 result -; to lr2. -; -; cp_read_sp lr2,NO_ERR Transfers the current Am29027 result -; to lr2, and suppresses exception -; reporting for this transfer. -; -; -;============================================================================ -; - .macro cp_read_sp,p1,p2 -; - .if $narg==0 - .err - .print "cp_read_sp: missing parameter(s)" - .endif -; -; - .if $narg==1 - load 1,CP_READ_MSBS,p1,0 - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","NO_ERR" - load 1,CP_READ_MSBS|CP_NO_ERR,p1,0 - .else - .err - .print "cp_read_sp: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=3 - .err - .print "cp_read_sp: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_read_int -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 17, 1988 -; -; FUNCTION: Transfers the current Am29027 integer result to the Am29000 -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the current Am29027 -; result is to be written. -; -; NO_ERR - indicates that exception reporting is to be suppressed for this -; transfer. -; -; USAGE: -; -; cp_read_int reg [,START] -; -; Ex: cp_read_int lr2 Transfers the current Am29027 result -; to lr2. -; -; cp_read_int lr2,NO_ERR Transfers the current Am29027 result -; to lr2, and suppresses exception -; reporting for this transfer. -; -; -;============================================================================ -; - .macro cp_read_int,p1,p2 -; - .if $narg==0 - .err - .print "cp_read_int: missing parameter(s)" - .endif -; -; - .if $narg==1 - load 1,CP_READ_LSBS,p1,0 - nop ; leave a cycle for the MSBs to come out - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","NO_ERR" - load 1,CP_READ_LSBS|CP_NO_ERR,p1,0 - nop ; leave a cycle for the MSBs to come out - .else - .err - .print "cp_read_int: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=3 - .err - .print "cp_read_int: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_read_flags -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 17, 1988 -; -; FUNCTION: Transfers the contents of the Am29027 flag register -; to the Am29000 -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the current Am29027 -; flag register contents are to be written. -; -; NO_ERR - indicates that exception reporting is to be suppressed for this -; transfer. -; -; USAGE: -; -; cp_read_flags reg [,START] -; -; Ex: cp_read_flags lr2 Transfers the Am29027 flag register -; contents to lr2. -; -; cp_read_flags lr2,NO_ERR Transfers the Am29027 flag register -; contents to lr2, and suppresses -; exception reporting for this -; transfer. -; -; -;============================================================================ -; - .macro cp_read_flags,p1,p2 -; - .if $narg==0 - .err - .print "cp_read_flags: missing parameter(s)" - .endif -; -; - .if $narg==1 - load 1,CP_READ_FLAGS,p1,0 - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","NO_ERR" - load 1,CP_READ_FLAGS|CP_NO_ERR,p1,0 - .else - .err - .print "cp_read_flags: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=3 - .err - .print "cp_read_flags: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_read_status -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 18, 1988 -; -; FUNCTION: Transfers the contents of the Am29027 status register -; to the Am29000 -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the current Am29027 -; status register contents are to be written. -; -; NO_ERR - indicates that exception reporting is to be suppressed for this -; transfer. -; -; USAGE: -; -; cp_read_status reg [,START] -; -; Ex: cp_read_status lr2 Transfers the Am29027 status register -; contents to lr2. -; -; cp_read_status lr2,NO_ERR Transfers the Am29027 status register -; contents to lr2, and suppresses -; exception reporting for this -; transfer. -; -; -;============================================================================ -; - .macro cp_read_status,p1,p2 -; - .if $narg==0 - .err - .print "cp_read_status: missing parameter(s)" - .endif -; -; - .if $narg==1 - load 1,CP_READ_STATUS,p1,0 - .exitm - .endif -; -; - .if $narg==2 -; - .ifeqs "@p2@","NO_ERR" - load 1,CP_READ_STATUS|CP_NO_ERR,p1,0 - .else - .err - .print "cp_read_status: bad parameter list" - .endif - .exitm -; - .endif -; -; - .if $narg>=3 - .err - .print "cp_read_status: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_read_state_wd -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 18, 1988 -; -; FUNCTION: Transfers the next Am29027 state word to the Am29000 -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the next Am29027 -; state word contents are to be written. -; -; USAGE: -; -; cp_read_state_wd reg -; -; Ex: cp_read_state_wd lr2 Transfers the next Am29027 state word -; to lr2. -; -;============================================================================ -; - .macro cp_read_state_wd,p1 -; - .if $narg==0 - .err - .print "cp_read_state_wd: missing parameter" - .endif -; -; - .if $narg==1 - load 1,CP_SAVE_STATE,p1,0 - .exitm - .endif -; -; - .if $narg>=2 - .err - .print "cp_read_state_wd: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_save_state -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 18, 1988 -; -; FUNCTION: Transfers the current Am29027 state to the Am29000 -; -; PARAMETERS: -; reg - the first of 30 Am29000 g.p. registers in which Am29027 state -; is saved. -; -; USAGE: -; -; cp_save_state reg -; -; This macro transfers the current Am29027 state to a block of 30 Am29000 -; registers. State is stored in the following order: -; -; reg instruction register -; reg+1 I-Temp -; reg+2 R MSBs -; reg+3 R LSBs -; reg+4 S MSBs -; reg+5 S LSBs -; reg+6 R-Temp MSBs -; reg+7 R-Temp LSBs -; reg+8 S-Temp MSBs -; reg+9 S-Temp LSBs -; reg+10 status -; reg+11 precision -; reg+12 RF0 MSBs -; reg+13 RF0 LSBs -; . . -; . . -; . . -; reg+26 RF7 MSBs -; reg+27 RF7 LSBs -; reg+28 mode MSBs -; reg+29 mode LSBs -; -; -; Ex: cp_save_state lr2 Transfers the current Am29027 state to -; the Am29000, starting at lr2. -; -; NOTES: -; 1) This macro stores all 64-bit quantities in "big-endian" order, -; i.e. MSBs first. For example, the 32 MSBs of register R are -; stored in reg+2, and the 32 LSBs are stored in reg+3. The Am29027 -; transfers these quantites in "little-endian" order; the macro -; is responsible for swapping MS and LS words. -; -;============================================================================ -; - .macro cp_save_state,p1 -; - .if $narg==0 - .err - .print "cp_save_state: missing parameter" - .endif -; -; - .if $narg==1 - cp_read_sp p1,NO_ERR - ;guarantee that we're at beginning of - ; save state sequence - cp_read_state_wd %%((&p1)+ 0) ; instruction - cp_read_state_wd %%((&p1)+ 1) ; I-Temp - cp_read_state_wd %%((&p1)+ 3) ; R MSBs - cp_read_state_wd %%((&p1)+ 2) ; R LSBs - cp_read_state_wd %%((&p1)+ 5) ; S MSBs - cp_read_state_wd %%((&p1)+ 4) ; S LSBs - cp_read_state_wd %%((&p1)+ 7) ; R-Temp MSBs - cp_read_state_wd %%((&p1)+ 6) ; R-Temp LSBs - cp_read_state_wd %%((&p1)+ 9) ; S-Temp MSBs - cp_read_state_wd %%((&p1)+ 8) ; S-Temp LSBs - cp_read_state_wd %%((&p1)+10) ; status - cp_read_state_wd %%((&p1)+11) ; precision - cp_read_state_wd %%((&p1)+13) ; RF0 MSBs - cp_read_state_wd %%((&p1)+12) ; RF0 LSBs - cp_read_state_wd %%((&p1)+15) ; RF1 MSBs - cp_read_state_wd %%((&p1)+14) ; RF1 LSBs - cp_read_state_wd %%((&p1)+17) ; RF2 MSBs - cp_read_state_wd %%((&p1)+16) ; RF2 LSBs - cp_read_state_wd %%((&p1)+19) ; RF3 MSBs - cp_read_state_wd %%((&p1)+18) ; RF3 LSBs - cp_read_state_wd %%((&p1)+21) ; RF4 MSBs - cp_read_state_wd %%((&p1)+20) ; RF4 LSBs - cp_read_state_wd %%((&p1)+23) ; RF5 MSBs - cp_read_state_wd %%((&p1)+22) ; RF5 LSBs - cp_read_state_wd %%((&p1)+25) ; RF6 MSBs - cp_read_state_wd %%((&p1)+24) ; RF6 LSBs - cp_read_state_wd %%((&p1)+27) ; RF7 MSBs - cp_read_state_wd %%((&p1)+26) ; RF7 LSBs - cp_read_state_wd %%((&p1)+29) ; mode MSBs - cp_read_state_wd %%((&p1)+28) ; mode LSBs - .exitm - .endif -; -; - .if $narg>=2 - .err - .print "cp_save_state: too many parameters" - .endif -; - .endm -; -; -; -; -; -;============================================================================ -; MACRO NAME: cp_restore_state -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 18, 1988 -; -; FUNCTION: Restores Am29027 state -; -; PARAMETERS: -; reg - the first of 30 Am29000 g.p. registers containing Am29027 -; state. -; -; temp - a scratch register used by cp_restore_state -; -; USAGE: -; -; cp_restore_state reg,temp -; -; This macro restores Am29027 state by transferring 30 words to the -; Am29027; these words are taken from a block of Am29000 g.p. registers -; starting at "reg." The words are assumed to be stored in the following -; order: -; -; reg instruction register -; reg+1 I-Temp -; reg+2 R MSBs -; reg+3 R LSBs -; reg+4 S MSBs -; reg+5 S LSBs -; reg+6 R-Temp MSBs -; reg+7 R-Temp LSBs -; reg+8 S-Temp MSBs -; reg+9 S-Temp LSBs -; reg+10 status -; reg+11 precision -; reg+12 RF0 MSBs -; reg+13 RF0 LSBs -; . . -; . . -; . . -; reg+26 RF7 MSBs -; reg+27 RF7 LSBs -; reg+28 mode MSBs -; reg+29 mode LSBs -; -; -; Ex: cp_restore_state lr2,gr70 Restores Am29027 state by -; transferring a block of 30 words -; that begins at lr2. Register gr70 -; is used as scratch storage by this -; macro. -; -; -;============================================================================ -; - .macro cp_restore_state,p1,p2 -; - .if $narg<=1 - .err - .print "cp_restore_state: missing parameter(s)" - .endif -; -; - .if $narg==2 - - const p2,0 ;clear the status register - cp_write_status p2 -; - cp_write_mode %%((&p1)+28) ;restore the mode register -; - const p2,0x80000018 ; restore RF0 - consth p2,0x80000018 - cp_write_inst p2 - cp_write_r %%((&p1)+12),START -; - consth p2,0x90000018 ; restore RF1 - cp_write_inst p2 - cp_write_r %%((&p1)+14),START -; - consth p2,0xA0000018 ; restore RF2 - cp_write_inst p2 - cp_write_r %%((&p1)+16),START -; - consth p2,0xB0000018 ; restore RF3 - cp_write_inst p2 - cp_write_r %%((&p1)+18),START -; - consth p2,0xC0000018 ; restore RF4 - cp_write_inst p2 - cp_write_r %%((&p1)+20),START -; - consth p2,0xD0000018 ; restore RF5 - cp_write_inst p2 - cp_write_r %%((&p1)+22),START -; - consth p2,0xE0000018 ; restore RF6 - cp_write_inst p2 - cp_write_r %%((&p1)+24),START -; - consth p2,0xF0000018 ; restore RF7 - cp_write_inst p2 - cp_write_r %%((&p1)+26),START -; - cp_read_sp p2 ; do a dummy read, to guarantee that - ; the last operation is complete -; - cp_write_prec %%((&p1)+11) ; restore precision -; - cp_write_r %%((&p1)+2) ; restore R - cp_write_s %%((&p1)+4) ; restore S - cp_write_inst %%((&p1)+0) ; restore instruction - cp_advance_temps ; move R,S, and inst. to working registers -; - cp_write_r %%((&p1)+6) ; restore R-Temp - cp_write_s %%((&p1)+8) ; restore S-Temp - cp_write_inst %%((&p1)+1) ; restore I-Temp -; -; restore the status register, retime last operation -; - cp_write_status %%((&p1)+10),RESTORE -; - .exitm - .endif -; -; - .if $narg>=3 - .err - .print "cp_restore_state: too many parameters" - .endif -; - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_build_inst -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 24, 1988 -; : January 4, 1989 Rich Parker -; -; FUNCTION: Builds a 32-bit Am29027 instruction in an Am29000 g.p. -; register. -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the instruction word -; is to be written -; -; op_code - mnemonic specifying the operation to be performed -; (e.g. FADD, P_TIMES_Q) -; -; precision - precision specification for destination, source operands: -; D_S - double-prec. result, single-prec. input(s) -; D_D - double-prec. result, double-prec. input(s) -; S_S - single-prec. result, single-prec. input(s) -; S_D - single-prec. result, double-prec. input(s) -; -; dest - destination for the operation result: -; RF0 - store result in Am29027 register file location RF0 -; RF1 - store result in Am29027 register file location RF1 -; RF2 - store result in Am29027 register file location RF2 -; RF3 - store result in Am29027 register file location RF3 -; RF4 - store result in Am29027 register file location RF4 -; RF5 - store result in Am29027 register file location RF5 -; RF6 - store result in Am29027 register file location RF6 -; RF7 - store result in Am29027 register file location RF7 -; GP - result is to be stored in an Am29000 g.p. register -; with a read_dp, read_sp, or read_int macro. -; -; source1, -; source2, -; source3 - source operand specifications: -; R - take source from Am29027 register R -; S - take source from Am29027 register S -; RF0 - take source from Am29027 register file location RF0 -; RF1 - take source from Am29027 register file location RF1 -; RF2 - take source from Am29027 register file location RF2 -; RF3 - take source from Am29027 register file location RF3 -; RF4 - take source from Am29027 register file location RF4 -; RF5 - take source from Am29027 register file location RF5 -; RF6 - take source from Am29027 register file location RF6 -; RF7 - take source from Am29027 register file location RF7 -; 0 - source is 0 -; ONE_HALF - source is constant .5 (f.p. operations only) -; IMINUS1 - source is constant -1 (integer operations only) -; 1 - source is constant 1 -; 2 - source is constant 2 -; 3 - source is constant 3 -; PI - source is constant pi (f.p. operations only) -; IMINUSMAX - source is -(2**63) (integer operations only) -; -; -; USAGE: -; -; cp_build_inst reg,op_code,[precision,]dest,source1[,source2][,source3] -; -; Op-codes fall into two categories: those that correspond to Am29000 -; floating-point op-codes, and for which the precision is implicit (e.g. -; FADD, DMUL); and those that correspond to Am29027 base operations -; (e.g. P_PLUS_T, P_TIMES_Q), and which require an explicit precision -; specification. -; -; Every operation specified must have a destination; if the operation -; does not write a result to the Am29027 register file, destination GP -; must be specified. The number of source operands specified must agree -; with the number of source operands required by the operation specified. -; -; Ex: -; -; cp_build_inst lr2,FADD,RF7,R,S -; Builds an instruction word to -; perform the operation: -; RF7 <- R + S -; where R, S, and RF7 are single- -; precision f.p. operands. The -; instruction word is placed in lr2. -; -; cp_build_inst gr119,DMUL,GP,R,ONE_HALF -; Builds an instruction word to -; perform the operation: -; R * .5 -; where R, .5, and the result -; are double-precision f.p. operands. -; The result is not written to the -; Am29027 register file. The -; instruction word is written to -; gr119. -; -; -; cp_build_inst lr3,MIN_P_AND_T,S_D,RF7,R,S -; Builds an instruction word to -; perform the operation: -; RF7 <- smaller of(R,S) -; where R and S are double-precision -; f.p. operands, and RF7 is a single- -; precison f.p. operand. The -; instruction word is written to -; lr3. -; -; -; cp_build_inst gr97,I_P_TIMES_Q,S_S,GP,R,2 -; Builds an instruction word to -; perform the operation: -; R * 2 -; where R, .5, and the result -; are single-precision integer operands. -; The result is not written to the -; Am29027 register file. The -; instruction word is written to -; gr97 -; -; -; cp_build_inst lr7,ABS_P,D_D,RF6,S -; Builds an instruction word to -; perform the operation: -; RF6 <- |S| -; where S and RF7 are double-precision -; f.p. operands. The instruction -; word is written to gr7. -; -; -; cp_build_inst gr127,PQ_PLUS_T,D_D,RF6,R,S,RF6 -; Builds an instruction word to -; perform the operation: -; RF6 <- (R * S) + RF6 -; where R, S and the result are -; double-precision f.p. operands. -; The instruction word is written -; to gr127. -; -; -; -;============================================================================ -; - .macro cp_build_inst,p1,p2,p3,p4,p5,p6,p7 -; - .if $narg<=3 - .err - .print "cp_build_inst: missing parameter(s)" - .exitm - .endif -; -; classify operation type -; - .set _cp_op_type,255 - - _cp_set_op_params p2,FADD,1,5,4,0,5 - _cp_set_op_params p2,DADD,1,5,4,0,5 - _cp_set_op_params p2,FSUB,1,5,4,0,5 - _cp_set_op_params p2,DSUB,1,5,4,0,5 - _cp_set_op_params p2,FMUL,1,5,4,5,0 - _cp_set_op_params p2,DMUL,1,5,4,5,0 - _cp_set_op_params p2,FEQ,1,5,4,0,5 - _cp_set_op_params p2,DEQ,1,5,4,0,5 - _cp_set_op_params p2,FGE,1,5,4,0,5 - _cp_set_op_params p2,DGE,1,5,4,0,5 - _cp_set_op_params p2,FGT,1,5,4,0,5 - _cp_set_op_params p2,DGT,1,5,4,0,5 - _cp_set_op_params p2,CONVERT_I_TO_F,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_I_TO_D,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_F_TO_I,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_D_TO_I,1,4,0,0,4 -; -; The next two lines were corrected on 1-4-89, Rich Parker -; - _cp_set_op_params p2,CONVERT_F_TO_D,1,4,4,0,0 - _cp_set_op_params p2,CONVERT_D_TO_F,1,4,4,0,0 -; - _cp_set_op_params p2,PASS_P,0,5,5,0,0 - _cp_set_op_params p2,MINUSP,0,5,5,0,0 - _cp_set_op_params p2,ABSP,0,5,5,0,0 - _cp_set_op_params p2,SIGNT_TIMES_ABSP,0,6,6,0,5 - _cp_set_op_params p2,P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,MINUSP_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,MINUSP_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABS_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABS_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABSP_PLUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,ABSP_MINUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,ABS_ABSP_MINUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,MINUSP_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,ABS_P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,COMPARE_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MAX_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MAX_ABSP_AND_ABST,0,6,5,0,6 - _cp_set_op_params p2,MIN_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MIN_ABSP_AND_ABST,0,6,5,0,6 - _cp_set_op_params p2,LIMIT_P_TO_MAGT,0,6,5,0,6 - _cp_set_op_params p2,CONVERT_T_TO_INT,0,5,0,0,5 - _cp_set_op_params p2,SCALE_T_TO_INT_BY_Q,0,6,0,6,5 - _cp_set_op_params p2,PQ_PLUS_T,0,7,5,6,7 - _cp_set_op_params p2,MINUSPQ_PLUS_T,0,7,5,6,7 - _cp_set_op_params p2,PQ_MINUS_T,0,7,5,6,7 - _cp_set_op_params p2,MINUSPQ_MINUS_T,0,7,5,6,7 - _cp_set_op_params p2,ABSPQ_PLUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,MINUSABSPQ_PLUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,ABSPQ_MINUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,ROUND_T_TO_INT,0,5,0,0,5 - _cp_set_op_params p2,RECIPROCAL_OF_P,0,5,5,0,0 - _cp_set_op_params p2,CONVERT_T_TO_ALT,0,5,0,0,5 - _cp_set_op_params p2,CONVERT_T_FROM_ALT,0,5,0,0,5 - _cp_set_op_params p2,I_PASS_P,0,5,5,0,0 - _cp_set_op_params p2,I_MINUSP,0,5,5,0,0 - _cp_set_op_params p2,I_ABSP,0,5,5,0,0 - _cp_set_op_params p2,I_SIGNT_TIMES_ABSP,0,6,6,0,5 - _cp_set_op_params p2,I_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_MINUSP_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_ABS_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_ABS_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,I_COMPARE_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_MAX_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_MIN_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_CONVERT_T_TO_FLOAT,0,5,0,0,5 - _cp_set_op_params p2,I_SCALE_T_TO_FLOAT_BY_Q,0,6,0,6,5 - _cp_set_op_params p2,I_P_OR_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_XOR_T,0,6,5,0,6 - _cp_set_op_params p2,I_NOT_T,0,5,0,0,5 - _cp_set_op_params p2,I_LSHIFT_P_BY_Q,0,6,5,6,0 - _cp_set_op_params p2,I_ASHIFT_P_BY_Q,0,6,5,6,0 - _cp_set_op_params p2,I_FSHIFT_PT_BY_Q,0,7,5,7,6 - _cp_set_op_params p2,MOVE_P,0,5,5,0,0 -; -; -; if we couldn't find the op_code, flag an error -; - .if _cp_op_type>=2 - .err - .print "cp_build_inst: invalid Am29027 instruction mnemonic" - .exitm - .endif -; -; if number of parameters is incorrect, flag error -; - .if $narg!=_cp_no_params - .err - .print "cp_build_inst: incorrect number of parameters" - .exitm - .endif -; -; find correct value for precision field, if appropriate -; - .set _cp_prec_field,0 ; ** CORRECTION (1/4/89 ROP) - .if _cp_op_type==0 ; need to look for precision - .set _cp_found_precision,0 - .ifeqs "@p3@","D_D" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","D_S" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","S_D" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","S_S" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .if _cp_found_precision==0 - .err - .print "cp_build_inst: missing precision field" - .exitm - .endif - .endif -; -; find value for destination field -; - .if _cp_op_type==0 - .set _cp_dest_field_val,CP_DEST_EQ_@p4 - .else - .set _cp_dest_field_val,CP_DEST_EQ_@p3 - .endif -; -; find correct value for p select field -; - .if _cp_p_paramno==0 - .set _cp_p_field_val,0x00000000 - .endif - .if _cp_p_paramno==4 - .set _cp_p_field_val,CP_P_EQ_@p4 - .endif - .if _cp_p_paramno==5 - .set _cp_p_field_val,CP_P_EQ_@p5 - .endif - .if _cp_p_paramno==6 - .set _cp_p_field_val,CP_P_EQ_@p6 - .endif - .if _cp_p_paramno==7 - .set _cp_p_field_val,CP_P_EQ_@p7 - .endif - .ifeqs "@p2@","I_NOT_T" - .set _cp_p_field_val,CP_P_EQ_IMINUS1 - .endif -; -; find correct value for q select field -; - .if _cp_q_paramno==0 - .set _cp_q_field_val,0x00000000 - .endif - .if _cp_q_paramno==4 - .set _cp_q_field_val,CP_Q_EQ_@p4 - .endif - .if _cp_q_paramno==5 - .set _cp_q_field_val,CP_Q_EQ_@p5 - .endif - .if _cp_q_paramno==6 - .set _cp_q_field_val,CP_Q_EQ_@p6 - .endif - .if _cp_q_paramno==7 - .set _cp_q_field_val,CP_Q_EQ_@p7 - .endif -; -; find correct value for t select field -; - .if _cp_t_paramno==0 - .set _cp_t_field_val,0x00000000 - .endif - .if _cp_t_paramno==4 - .set _cp_t_field_val,CP_T_EQ_@p4 - .endif - .if _cp_t_paramno==5 - .set _cp_t_field_val,CP_T_EQ_@p5 - .endif - .if _cp_t_paramno==6 - .set _cp_t_field_val,CP_T_EQ_@p6 - .endif - .if _cp_t_paramno==7 - .set _cp_t_field_val,CP_T_EQ_@p7 - .endif -; -; - .set _cp_inst_word,CP_@p2@|_cp_prec_field|_cp_dest_field_val - .set _cp_inst_word,_cp_inst_word|_cp_p_field_val - .set _cp_inst_word,_cp_inst_word|_cp_q_field_val - .set _cp_inst_word,_cp_inst_word|_cp_t_field_val - - const p1,_cp_inst_word - consth p1,_cp_inst_word -; - .endm -; -; -; - .macro _cp_set_op_params,par1,par2,par3,par4,par5,par6,par7 - .ifeqs "@par1@","@par2@" - .set _cp_op_type,par3 - .set _cp_no_params,par4 - .set _cp_p_paramno,par5 - .set _cp_q_paramno,par6 - .set _cp_t_paramno,par7 - .endif - .endm -; -; -; -;============================================================================ -; MACRO NAME: cp_build_inst_h -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 24, 1988 -; : January 4, 1989 Rich Parker -; -; FUNCTION: Builds a 16 MSBs of a 32-bit Am29027 instruction in an -; Am29000 g.p. register. -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the instruction word -; is to be written -; -; op_code - mnemonic specifying the operation to be performed -; (e.g. FADD, P_TIMES_Q) -; -; precision - precision specification for destination, source operands: -; D_S - double-prec. result, single-prec. input(s) -; D_D - double-prec. result, double-prec. input(s) -; S_S - single-prec. result, single-prec. input(s) -; S_D - single-prec. result, double-prec. input(s) -; -; dest - destination for the operation result: -; RF0 - store result in Am29027 register file location RF0 -; RF1 - store result in Am29027 register file location RF1 -; RF2 - store result in Am29027 register file location RF2 -; RF3 - store result in Am29027 register file location RF3 -; RF4 - store result in Am29027 register file location RF4 -; RF5 - store result in Am29027 register file location RF5 -; RF6 - store result in Am29027 register file location RF6 -; RF7 - store result in Am29027 register file location RF7 -; GP - result is to be stored in an Am29000 g.p. register -; with a read_dp, read_sp, or read_int macro. -; -; source1, -; source2, -; source3 - source operand specifications: -; R - take source from Am29027 register R -; S - take source from Am29027 register S -; RF0 - take source from Am29027 register file location RF0 -; RF1 - take source from Am29027 register file location RF1 -; RF2 - take source from Am29027 register file location RF2 -; RF3 - take source from Am29027 register file location RF3 -; RF4 - take source from Am29027 register file location RF4 -; RF5 - take source from Am29027 register file location RF5 -; RF6 - take source from Am29027 register file location RF6 -; RF7 - take source from Am29027 register file location RF7 -; 0 - source is 0 -; ONE_HALF - source is constant .5 (f.p. operations only) -; IMINUS1 - source is constant -1 (integer operations only) -; 1 - source is constant 1 -; 2 - source is constant 2 -; 3 - source is constant 3 -; PI - source is constant pi (f.p. operations only) -; IMINUSMAX - source is -(2**63) (integer operations only) -; -; -; USAGE: -; -; cp_build_inst_h reg,op_code,[precision,]dest,source1[,source2][,source3] -; -; This macro is similar to cp_build_inst, but creates only the 16 MSBs -; of the 32-bit Am29027 instruction word. This macro is useful in cases -; where the 16 LSBs of instruction word, which specify the operation -; to be performed, already exist in an Am29000 g.p. register, but where -; the 16 MSBs, which specify operand sources and destination, must be -; changed. In such cases, one Am29000 instruction can be saved by using -; cp_build_inst_h instead of cp_build_inst. -; -; Syntax and usage are identical to that of cp_build_inst. -; -; NOTE: This macro references macro _cp_set_op_params, which appears -; in the assembly listing for macro _cp_build_inst. -; -; -; -; -;============================================================================ -; - .macro cp_build_inst_h,p1,p2,p3,p4,p5,p6,p7 -; - .if $narg<=3 - .err - .print "cp_build_inst_h: missing parameter(s)" - .exitm - .endif -; -; classify operation type -; - .set _cp_op_type,255 - - _cp_set_op_params p2,FADD,1,5,4,0,5 - _cp_set_op_params p2,DADD,1,5,4,0,5 - _cp_set_op_params p2,FSUB,1,5,4,0,5 - _cp_set_op_params p2,DSUB,1,5,4,0,5 - _cp_set_op_params p2,FMUL,1,5,4,5,0 - _cp_set_op_params p2,DMUL,1,5,4,5,0 - _cp_set_op_params p2,FEQ,1,5,4,0,5 - _cp_set_op_params p2,DEQ,1,5,4,0,5 - _cp_set_op_params p2,FGE,1,5,4,0,5 - _cp_set_op_params p2,DGE,1,5,4,0,5 - _cp_set_op_params p2,FGT,1,5,4,0,5 - _cp_set_op_params p2,DGT,1,5,4,0,5 - _cp_set_op_params p2,CONVERT_I_TO_F,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_I_TO_D,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_F_TO_I,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_D_TO_I,1,4,0,0,4 -; -; The next two lines were corrected on 1-4-89, Rich Parker -; - _cp_set_op_params p2,CONVERT_F_TO_D,1,4,4,0,0 - _cp_set_op_params p2,CONVERT_D_TO_F,1,4,4,0,0 -; - _cp_set_op_params p2,PASS_P,0,5,5,0,0 - _cp_set_op_params p2,MINUSP,0,5,5,0,0 - _cp_set_op_params p2,ABSP,0,5,5,0,0 - _cp_set_op_params p2,SIGNT_TIMES_ABSP,0,6,6,0,5 - _cp_set_op_params p2,P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,MINUSP_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,MINUSP_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABS_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABS_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABSP_PLUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,ABSP_MINUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,ABS_ABSP_MINUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,MINUSP_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,ABS_P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,COMPARE_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MAX_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MAX_ABSP_AND_ABST,0,6,5,0,6 - _cp_set_op_params p2,MIN_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MIN_ABSP_AND_ABST,0,6,5,0,6 - _cp_set_op_params p2,LIMIT_P_TO_MAGT,0,6,5,0,6 - _cp_set_op_params p2,CONVERT_T_TO_INT,0,5,0,0,5 - _cp_set_op_params p2,SCALE_T_TO_INT_BY_Q,0,6,0,6,5 - _cp_set_op_params p2,PQ_PLUS_T,0,7,5,6,7 - _cp_set_op_params p2,MINUSPQ_PLUS_T,0,7,5,6,7 - _cp_set_op_params p2,PQ_MINUS_T,0,7,5,6,7 - _cp_set_op_params p2,MINUSPQ_MINUS_T,0,7,5,6,7 - _cp_set_op_params p2,ABSPQ_PLUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,MINUSABSPQ_PLUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,ABSPQ_MINUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,ROUND_T_TO_INT,0,5,0,0,5 - _cp_set_op_params p2,RECIPROCAL_OF_P,0,5,5,0,0 - _cp_set_op_params p2,CONVERT_T_TO_ALT,0,5,0,0,5 - _cp_set_op_params p2,CONVERT_T_FROM_ALT,0,5,0,0,5 - _cp_set_op_params p2,I_PASS_P,0,5,5,0,0 - _cp_set_op_params p2,I_MINUSP,0,5,5,0,0 - _cp_set_op_params p2,I_ABSP,0,5,5,0,0 - _cp_set_op_params p2,I_SIGNT_TIMES_ABSP,0,6,6,0,5 - _cp_set_op_params p2,I_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_MINUSP_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_ABS_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_ABS_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,I_COMPARE_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_MAX_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_MIN_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_CONVERT_T_TO_FLOAT,0,5,0,0,5 - _cp_set_op_params p2,I_SCALE_T_TO_FLOAT_BY_Q,0,6,0,6,5 - _cp_set_op_params p2,I_P_OR_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_XOR_T,0,6,5,0,6 - _cp_set_op_params p2,I_NOT_T,0,5,0,0,5 - _cp_set_op_params p2,I_LSHIFT_P_BY_Q,0,6,5,6,0 - _cp_set_op_params p2,I_ASHIFT_P_BY_Q,0,6,5,6,0 - _cp_set_op_params p2,I_FSHIFT_PT_BY_Q,0,7,5,7,6 - _cp_set_op_params p2,MOVE_P,0,5,5,0,0 -; -; -; if we couldn't find the op_code, flag an error -; - .if _cp_op_type>=2 - .err - .print "cp_build_inst_h: invalid Am29027 instruction mnemonic" - .exitm - .endif -; -; if number of parameters is incorrect, flag error -; - .if $narg!=_cp_no_params - .err - .print "cp_build_inst_h: incorrect number of parameters" - .exitm - .endif -; -; find correct value for precision field, if appropriate -; - .set _cp_prec_field,0 ; ** CORRECTION (1-4-89 Rich Parker) - .if _cp_op_type==0 ; need to look for precision - .set _cp_found_precision,0 - .ifeqs "@p3@","D_D" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","D_S" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","S_D" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","S_S" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .if _cp_found_precision==0 - .err - .print "cp_build_inst_h: missing precision field" - .exitm - .endif - .endif -; -; find value for destination field -; - .if _cp_op_type==0 - .set _cp_dest_field_val,CP_DEST_EQ_@p4 - .else - .set _cp_dest_field_val,CP_DEST_EQ_@p3 - .endif -; -; find correct value for p select field -; - .if _cp_p_paramno==0 - .set _cp_p_field_val,0x00000000 - .endif - .if _cp_p_paramno==4 - .set _cp_p_field_val,CP_P_EQ_@p4 - .endif - .if _cp_p_paramno==5 - .set _cp_p_field_val,CP_P_EQ_@p5 - .endif - .if _cp_p_paramno==6 - .set _cp_p_field_val,CP_P_EQ_@p6 - .endif - .if _cp_p_paramno==7 - .set _cp_p_field_val,CP_P_EQ_@p7 - .endif - .ifeqs "@p2@","I_NOT_T" - .set _cp_p_field_val,CP_P_EQ_IMINUS1 - .endif -; -; find correct value for q select field -; - .if _cp_q_paramno==0 - .set _cp_q_field_val,0x00000000 - .endif - .if _cp_q_paramno==4 - .set _cp_q_field_val,CP_Q_EQ_@p4 - .endif - .if _cp_q_paramno==5 - .set _cp_q_field_val,CP_Q_EQ_@p5 - .endif - .if _cp_q_paramno==6 - .set _cp_q_field_val,CP_Q_EQ_@p6 - .endif - .if _cp_q_paramno==7 - .set _cp_q_field_val,CP_Q_EQ_@p7 - .endif -; -; find correct value for t select field -; - .if _cp_t_paramno==0 - .set _cp_t_field_val,0x00000000 - .endif - .if _cp_t_paramno==4 - .set _cp_t_field_val,CP_T_EQ_@p4 - .endif - .if _cp_t_paramno==5 - .set _cp_t_field_val,CP_T_EQ_@p5 - .endif - .if _cp_t_paramno==6 - .set _cp_t_field_val,CP_T_EQ_@p6 - .endif - .if _cp_t_paramno==7 - .set _cp_t_field_val,CP_T_EQ_@p7 - .endif -; -; - .set _cp_inst_word,CP_@p2@|_cp_prec_field|_cp_dest_field_val - .set _cp_inst_word,_cp_inst_word|_cp_p_field_val - .set _cp_inst_word,_cp_inst_word|_cp_q_field_val - .set _cp_inst_word,_cp_inst_word|_cp_t_field_val -; - consth p1,_cp_inst_word -; - .endm -; -; -; -; -;============================================================================ -; MACRO NAME: cp_build_inst_l -; -; WRITTEN BY: Bob Perlman -; -; MOST RECENT UPDATE: April 24, 1988 -; : January 4, 1989 Rich Parker -; -; FUNCTION: Builds a 16 LSBs of a 32-bit Am29027 instruction in an -; Am29000 g.p. register; the 16 MSBs of the register are -; set to 0.. -; -; PARAMETERS: -; reg - the Am29000 g.p. register into which the instruction word -; is to be written -; -; op_code - mnemonic specifying the operation to be performed -; (e.g. FADD, P_TIMES_Q) -; -; precision - precision specification for destination, source operands: -; D_S - double-prec. result, single-prec. input(s) -; D_D - double-prec. result, double-prec. input(s) -; S_S - single-prec. result, single-prec. input(s) -; S_D - single-prec. result, double-prec. input(s) -; -; dest - destination for the operation result: -; RF0 - store result in Am29027 register file location RF0 -; RF1 - store result in Am29027 register file location RF1 -; RF2 - store result in Am29027 register file location RF2 -; RF3 - store result in Am29027 register file location RF3 -; RF4 - store result in Am29027 register file location RF4 -; RF5 - store result in Am29027 register file location RF5 -; RF6 - store result in Am29027 register file location RF6 -; RF7 - store result in Am29027 register file location RF7 -; GP - result is to be stored in an Am29000 g.p. register -; with a read_dp, read_sp, or read_int macro. -; -; source1, -; source2, -; source3 - source operand specifications: -; R - take source from Am29027 register R -; S - take source from Am29027 register S -; RF0 - take source from Am29027 register file location RF0 -; RF1 - take source from Am29027 register file location RF1 -; RF2 - take source from Am29027 register file location RF2 -; RF3 - take source from Am29027 register file location RF3 -; RF4 - take source from Am29027 register file location RF4 -; RF5 - take source from Am29027 register file location RF5 -; RF6 - take source from Am29027 register file location RF6 -; RF7 - take source from Am29027 register file location RF7 -; 0 - source is 0 -; ONE_HALF - source is constant .5 (f.p. operations only) -; IMINUS1 - source is constant -1 (integer operations only) -; 1 - source is constant 1 -; 2 - source is constant 2 -; 3 - source is constant 3 -; PI - source is constant pi (f.p. operations only) -; IMINUSMAX - source is -(2**63) (integer operations only) -; -; -; USAGE: -; -; cp_build_inst_l reg,op_code,[precision,]dest,source1[,source2][,source3] -; -; This macro is similar to cp_build_inst, but creates only the 16 LSBs -; of the 32-bit Am29027 instruction word; the 16 MSBs of the target -; register are set to 0. This macro is useful in cases -; where it is helpful to specify instruction LSBs and MSBs separately, -; to improve instruction scheduling. -; -; Syntax and usage are identical to that of cp_build_inst. -; -; NOTE: This macro references macro _cp_set_op_params, which appears -; in the assembly listing for macro _cp_build_inst. -; -; -;============================================================================ -; - .macro cp_build_inst_l,p1,p2,p3,p4,p5,p6,p7 -; - .if $narg<=3 - .err - .print "cp_build_inst_h: missing parameter(s)" - .exitm - .endif -; -; classify operation type -; - .set _cp_op_type,255 - - _cp_set_op_params p2,FADD,1,5,4,0,5 - _cp_set_op_params p2,DADD,1,5,4,0,5 - _cp_set_op_params p2,FSUB,1,5,4,0,5 - _cp_set_op_params p2,DSUB,1,5,4,0,5 - _cp_set_op_params p2,FMUL,1,5,4,5,0 - _cp_set_op_params p2,DMUL,1,5,4,5,0 - _cp_set_op_params p2,FEQ,1,5,4,0,5 - _cp_set_op_params p2,DEQ,1,5,4,0,5 - _cp_set_op_params p2,FGE,1,5,4,0,5 - _cp_set_op_params p2,DGE,1,5,4,0,5 - _cp_set_op_params p2,FGT,1,5,4,0,5 - _cp_set_op_params p2,DGT,1,5,4,0,5 - _cp_set_op_params p2,CONVERT_I_TO_F,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_I_TO_D,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_F_TO_I,1,4,0,0,4 - _cp_set_op_params p2,CONVERT_D_TO_I,1,4,0,0,4 -; -; The next two lines were corrected on 1-4-89, Rich Parker -; - _cp_set_op_params p2,CONVERT_F_TO_D,1,4,4,0,0 - _cp_set_op_params p2,CONVERT_D_TO_F,1,4,4,0,0 -; - _cp_set_op_params p2,PASS_P,0,5,5,0,0 - _cp_set_op_params p2,MINUSP,0,5,5,0,0 - _cp_set_op_params p2,ABSP,0,5,5,0,0 - _cp_set_op_params p2,SIGNT_TIMES_ABSP,0,6,6,0,5 - _cp_set_op_params p2,P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,MINUSP_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,MINUSP_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABS_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABS_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,ABSP_PLUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,ABSP_MINUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,ABS_ABSP_MINUS_ABST,0,6,5,0,6 - _cp_set_op_params p2,P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,MINUSP_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,ABS_P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,COMPARE_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MAX_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MAX_ABSP_AND_ABST,0,6,5,0,6 - _cp_set_op_params p2,MIN_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,MIN_ABSP_AND_ABST,0,6,5,0,6 - _cp_set_op_params p2,LIMIT_P_TO_MAGT,0,6,5,0,6 - _cp_set_op_params p2,CONVERT_T_TO_INT,0,5,0,0,5 - _cp_set_op_params p2,SCALE_T_TO_INT_BY_Q,0,6,0,6,5 - _cp_set_op_params p2,PQ_PLUS_T,0,7,5,6,7 - _cp_set_op_params p2,MINUSPQ_PLUS_T,0,7,5,6,7 - _cp_set_op_params p2,PQ_MINUS_T,0,7,5,6,7 - _cp_set_op_params p2,MINUSPQ_MINUS_T,0,7,5,6,7 - _cp_set_op_params p2,ABSPQ_PLUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,MINUSABSPQ_PLUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,ABSPQ_MINUS_ABST,0,7,5,6,7 - _cp_set_op_params p2,ROUND_T_TO_INT,0,5,0,0,5 - _cp_set_op_params p2,RECIPROCAL_OF_P,0,5,5,0,0 - _cp_set_op_params p2,CONVERT_T_TO_ALT,0,5,0,0,5 - _cp_set_op_params p2,CONVERT_T_FROM_ALT,0,5,0,0,5 - _cp_set_op_params p2,I_PASS_P,0,5,5,0,0 - _cp_set_op_params p2,I_MINUSP,0,5,5,0,0 - _cp_set_op_params p2,I_ABSP,0,5,5,0,0 - _cp_set_op_params p2,I_SIGNT_TIMES_ABSP,0,6,6,0,5 - _cp_set_op_params p2,I_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_MINUSP_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_ABS_P_PLUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_ABS_P_MINUS_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_TIMES_Q,0,6,5,6,0 - _cp_set_op_params p2,I_COMPARE_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_MAX_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_MIN_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_CONVERT_T_TO_FLOAT,0,5,0,0,5 - _cp_set_op_params p2,I_SCALE_T_TO_FLOAT_BY_Q,0,6,0,6,5 - _cp_set_op_params p2,I_P_OR_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_AND_T,0,6,5,0,6 - _cp_set_op_params p2,I_P_XOR_T,0,6,5,0,6 - _cp_set_op_params p2,I_NOT_T,0,5,0,0,5 - _cp_set_op_params p2,I_LSHIFT_P_BY_Q,0,6,5,6,0 - _cp_set_op_params p2,I_ASHIFT_P_BY_Q,0,6,5,6,0 - _cp_set_op_params p2,I_FSHIFT_PT_BY_Q,0,7,5,7,6 - _cp_set_op_params p2,MOVE_P,0,5,5,0,0 -; -; -; if we couldn't find the op_code, flag an error -; - .if _cp_op_type>=2 - .err - .print "cp_build_inst_h: invalid Am29027 instruction mnemonic" - .exitm - .endif -; -; if number of parameters is incorrect, flag error -; - .if $narg!=_cp_no_params - .err - .print "cp_build_inst_h: incorrect number of parameters" - .exitm - .endif -; -; find correct value for precision field, if appropriate -; - .set _cp_prec_field,0 ; CORRECTION (1-4-89 Rich Parker) - .if _cp_op_type==0 ; need to look for precision - .set _cp_found_precision,0 - .ifeqs "@p3@","D_D" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","D_S" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","S_D" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .ifeqs "@p3@","S_S" - .set _cp_prec_field,CP_@p3 - .set _cp_found_precision,1 - .endif - .if _cp_found_precision==0 - .err - .print "cp_build_inst_h: missing precision field" - .exitm - .endif - .endif -; -; find value for destination field -; - .if _cp_op_type==0 - .set _cp_dest_field_val,CP_DEST_EQ_@p4 - .else - .set _cp_dest_field_val,CP_DEST_EQ_@p3 - .endif -; -; find correct value for p select field -; - .if _cp_p_paramno==0 - .set _cp_p_field_val,0x00000000 - .endif - .if _cp_p_paramno==4 - .set _cp_p_field_val,CP_P_EQ_@p4 - .endif - .if _cp_p_paramno==5 - .set _cp_p_field_val,CP_P_EQ_@p5 - .endif - .if _cp_p_paramno==6 - .set _cp_p_field_val,CP_P_EQ_@p6 - .endif - .if _cp_p_paramno==7 - .set _cp_p_field_val,CP_P_EQ_@p7 - .endif - .ifeqs "@p2@","I_NOT_T" - .set _cp_p_field_val,CP_P_EQ_IMINUS1 - .endif -; -; find correct value for q select field -; - .if _cp_q_paramno==0 - .set _cp_q_field_val,0x00000000 - .endif - .if _cp_q_paramno==4 - .set _cp_q_field_val,CP_Q_EQ_@p4 - .endif - .if _cp_q_paramno==5 - .set _cp_q_field_val,CP_Q_EQ_@p5 - .endif - .if _cp_q_paramno==6 - .set _cp_q_field_val,CP_Q_EQ_@p6 - .endif - .if _cp_q_paramno==7 - .set _cp_q_field_val,CP_Q_EQ_@p7 - .endif -; -; find correct value for t select field -; - .if _cp_t_paramno==0 - .set _cp_t_field_val,0x00000000 - .endif - .if _cp_t_paramno==4 - .set _cp_t_field_val,CP_T_EQ_@p4 - .endif - .if _cp_t_paramno==5 - .set _cp_t_field_val,CP_T_EQ_@p5 - .endif - .if _cp_t_paramno==6 - .set _cp_t_field_val,CP_T_EQ_@p6 - .endif - .if _cp_t_paramno==7 - .set _cp_t_field_val,CP_T_EQ_@p7 - .endif -; -; - .set _cp_inst_word,CP_@p2@|_cp_prec_field|_cp_dest_field_val - .set _cp_inst_word,_cp_inst_word|_cp_p_field_val - .set _cp_inst_word,_cp_inst_word|_cp_q_field_val - .set _cp_inst_word,_cp_inst_word|_cp_t_field_val -; - const p1,_cp_inst_word -; - .endm -; -; end of file fpsymbol.h diff --git a/newlib/libc/sys/a29khif/sys/intrinsi.h b/newlib/libc/sys/a29khif/sys/intrinsi.h deleted file mode 100644 index 1ae3a8b..0000000 --- a/newlib/libc/sys/a29khif/sys/intrinsi.h +++ /dev/null @@ -1,457 +0,0 @@ -; @(#)intrinsi.h 1.4 90/10/14 20:56:06, Copyright 1988, 1989, 1990 AMD -; start of file intrinsi.h -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; - .title "QTC Intrinsics Header file" -; -; Floating point library package for AMD 29000 family -; -; Copyright 1988 Advanced Micro Devices, Inc. -; -; All rights reserved -; -; Developed for AMD by Quantitative Technology Corporation -; 8700 SW Creekside Place Suite D -; Beaverton OR 97005 -; (503) 626-3081 -; -; Version information : -; -; Revision 1.6 89/06/29 16:08:51 jimh -; Fixed two bugs regarding compatiblility with the fpsymbol file. The -; definitions of ROUND_TO_PLUS/MINUS_INFINITY were reversed. Set_Rounding -; _Mode was fixed to set the local copy (29000 resident) of rounding mode -; in 29027 mode. -; -; -; Revision 1.5 89/04/17 11:20:49 jim -; replaced emfsr and emtsr macro calls with mfsr and mtsr instructions. -; -; Revision 1.4 89/02/24 15:18:04 jimh -; Added the definitions of FP_ENV_MODE_1_DEFAULT, FP_ENV_MODE_2_DEFAULT, -; FP_FLAGS_DEFAULT. -; Added macro clear_Flags. -; Changed the operation of set_Invalid_Op_flag, set_Reserved_Op_flag. -; -; Revision 1.3 89/02/01 18:30:12 jimh -; Changed the way set_Rounding_Mode, extract_Rounding_Mode, set_Invalid_Op_flag -; and set_Reserved_Op_flag are done. Changed save_FP_regs. -; -; Revision 1.2 89/01/31 10:01:54 jimh -; Updated to the new standard. This includes moving in register -; definitions, changing old symbols to reflect those in fpsymbol.h, -; and changing the include file to smartmac.h. -; -; - .include "../traps/fpenv.h" ; RPD 8/21/89 - .include "sys/smartmac.h" - - .equ DOUBLE_EXP_WIDTH, 11 - .equ DOUBLE_EXTENDED_WIDTH, 56 - - .equ SIGNED, 0 - .equ UNSIGNED, 1 - - .equ ROUND_TO_NEAREST, 0 - .equ ROUND_TO_MINUS_INFINITY, 1 - .equ ROUND_TO_PLUS_INFINITY, 2 - .equ ROUND_TO_ZERO, 3 - .equ ROUNDING_MODE_POSITION, 14 - - .equ FORMAT_INTEGER, 0 - .equ FORMAT_SINGLE, 1 - .equ FORMAT_DOUBLE, 2 - - .equ DOUBLE_MSB_MASK,0x00080000 -; -; The following are definitions used in the smart macro package, defining -; the 29000 shadow registers for the floating-point register file, and -; some temporary registers used during the library routines -; - .reg FP0, gr96 - .reg FP1, gr98 - .reg FP2, gr100 - .reg FP3, gr102 - .reg FP4, gr104 - .reg FP5, gr106 - .reg FP6, gr108 - .reg FP7, gr110 -; -; GR60 through GR6F are used to return the value of a function -; - .reg rtn0, gr96 - .reg rtn1, gr97 - .reg rtn2, gr98 - .reg rtn3, gr99 - .reg rtn4, gr100 - .reg rtn5, gr101 - .reg rtn6, gr102 - .reg rtn7, gr103 - .reg rtn8, gr104 - .reg rtn9, gr105 - .reg rtn10, gr106 - .reg rtn11, gr107 - .reg rtn12, gr108 - .reg rtn13, gr109 - .reg rtn14, gr110 - .reg rtn15, gr111 -; -; GR74..GR78 (116-120) - temporaries -; - .reg t0, gr116 - .reg t1, gr117 - .reg t2, gr118 - .reg t3, gr119 - .reg t4, gr120 -; -; FP_ENV_MODE_1 and FP_ENV_MODE_2 are based on 64-bit 29027 Mode register, -; and thus the fpsymbol.h CP_ constants may be used directly. -; -; FP_ENV_MODE_1 (Bits 0-31) -; -; 0-3 - floating-point format select, always 0 -; 4 - Saturate enable -; 5 - IEEE Affine/Projective mode (ignored by traps code) -; 6 - IEEE Trap enable -; 7 - IEEE Sudden underflow / FP Environment Fast Float Select -; 8-10 - ignored -; 11 - Integer multiplication signed/unsigned select -; 12-13 - Integer multiplication format adjust -; 14-16 - Rounding mode select -; 17-19 - ignored -; 20 - Pipeline mode select -; 21 - ignored -; 22 - Invalid operation mask bit -; 23 - Reserved operand mask bit -; 24 - Overflow mask bit -; 25 - Underflow mask bit -; 26 - Inexact result mask bit -; 27 - Zero mask bit -; 28-31 - ignored -; -; FP_ENV_MODE_2 (Bits 32-63) [Hardware configuration register, rarely modified] -; -; 32-35 - Pipeline timer count -; 36-39 - Timer count for multiply-accumulate operation -; 40-43 - Timer count for save state transaction request -; 44-63 - ignored -; -; FP_ENV_MODE_1 definitions -; - .set FP_ENV_MODE_1_DEFAULT, CP_PFF_EQ_IEEE - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_AFF_EQ_IEEE - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_AFFINE_MODE - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_IEEE_TRAPS_DISABLED - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_IEEE_GRADUAL_UFLOW_MODE - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_UNSIGNED_INT_MPY_MODE - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_MF_EQ_LSBS - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_RMS_EQ_NEAREST - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_FLOWTHROUGH_MODE - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_INVALID_OP_EXCP_MASK - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_RESERVED_OP_EXCP_MASK - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_OVERFLOW_EXCP_MASK - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_UNDERFLOW_EXCP_MASK - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_INEXACT_EXCP_MASK - .set FP_ENV_MODE_1_DEFAULT,FP_ENV_MODE_1_DEFAULT|CP_ZERO_EXCP_MASK -; -; FP_ENV_MODE_2 definitions -; - .set FP_ENV_MODE_2_DEFAULT, CP_PLTC_EQ_6 - .set FP_ENV_MODE_2_DEFAULT,FP_ENV_MODE_2_DEFAULT|CP_MATC_EQ_9 - .set FP_ENV_MODE_2_DEFAULT,FP_ENV_MODE_2_DEFAULT|CP_MVTC_EQ_3 - .set FP_ENV_MODE_2_DEFAULT,FP_ENV_MODE_2_DEFAULT|CP_NORMAL_DRDY_MODE - .set FP_ENV_MODE_2_DEFAULT,FP_ENV_MODE_2_DEFAULT|CP_HALT_ON_ERROR_DISABLED - .set FP_ENV_MODE_2_DEFAULT,FP_ENV_MODE_2_DEFAULT|CP_EXCP_DISABLED -; -; FP_FLAGS_DEFAULT definitions -; - .equ FP_FLAGS_DEFAULT, 0x00000000 ; No flags set -; -; The following macros are used by transcendentals to access the environment. -; -; MACRO NAME: clear_Flags -; -; FUNCTION: to clear the flags on entry to a transcendental routine. -; -; INPUT PARAMETERS: reg - temporary working register -; reg2 - temporary working register -; - .macro clear_Flags,reg,reg2 - .endm -; -; MACRO NAME: set_Invalid_Op_flag -; -; FUNCTION: to set the Invalid operation flag in the floating-point status -; register -; -; INPUT PARAMETERS: reg - temporary working register -; reg2 - 2nd temporary working register -; - .macro set_Invalid_Op_flag,reg,reg2 - .endm - -; -; MACRO NAME: set_Reserved_Op_flag -; -; FUNCTION: to set the Reserved Op flag in the floating-point status register -; -; INPUT PARAMETERS: reg - temporary working register -; reg2 - 2nd temporary working register -; - .macro set_Reserved_Op_flag,reg,reg2 - .endm - -; -; MACRO NAME: extract_Rounding_Mode -; -; FUNCTION: to extract the Rounding Mode portion of the floating-point -; invironment mode register, shift the value to the range of -; 0-7, and leave it in a register -; -; INPUT PARAMETERS: reg - destination for the mode -; - .macro extract_Rounding_Mode,reg - .ifdef _29027_MODE - .extern __29027Mode - const reg,__29027Mode - consth reg,__29027Mode - load 0,0,reg,reg - srl reg,reg,CP_RMS_POSITION - and reg,reg,CP_RMS_MASK >> CP_RMS_POSITION - .else - mfsr reg,FPE - and reg,reg,FPE_FPRND_MASK - srl reg,reg,FPE_FPRND_POSITION - .endif - .endm - -; -; MACRO NAME: set_Rounding_Mode -; -; FUNCTION: to set the 29027 Rounding Mode to a given value -; -; INPUT PARAMETERS: reg - working register -; reg2 - second working register -; rounding_mode - value of the rounding mode -; 0 - round to nearest -; 1 - round to minus infinity -; 2 - round to plus infinity -; 3 - round to zero -; -; NOTES: rounding_mode value is not checked -; 29027 Mode register is NOT written by this macro -; - .macro set_Rounding_Mode,reg,reg2,mode - .ifdef _29027_MODE - .extern __29027Mode - const reg2,__29027Mode - consth reg2,__29027Mode - load 0,0,reg,reg2 - const reg2,CP_RMS_MASK - consth reg2,CP_RMS_MASK - andn reg,reg,reg2 - const reg2,mode - sll reg2,reg2,CP_RMS_POSITION - or reg,reg,reg2 - const reg2,__29027Mode - consth reg2,__29027Mode - store 0,0,reg,reg2 - add reg2,reg2,4 - load 0,0,reg2,reg2 - cp_write_mode reg2,reg - .else - mfsr reg,FPE - andn reg,reg,FPE_FPRND_MASK - const reg2,mode - sll reg2,reg2,FPE_FPRND_POSITION - or reg,reg,reg2 - mtsr FPE,reg - .endif - .endm -; -; -; NOTE: The 29027 is the floating point coprocessor for the 29000. -; It contains 8 floating point registers FP0 to FP7. Three of -; these, FP0, FP1, and FP2, are currently designated as scratch, -; that is, they will not be preserved across calls. The other -; five contain values that must be saved whenever they are used -; in code, and restored before the exit of the routine. The 29027 -; registers are tagged with a single bit indicating the precision -; of the current value. When numbers are read into the 29027, -; they are always stored in double precision, so that single -; precision values are converted on input. Only the MOVE instruction -; fails to do this automatic widening. If the result from calculations -; in the 29027 ALU (determined by the result precision bit in the -; instruction word) is to be single precision and the result saved in -; an FP reg, the result precision bit from the instruction gets copied -; into the precision bit for the register. If a single precision -; SNaN is saved from the 29027, it will be converted to a double -; precision QNaN. Along the way it will cause an unmasked exception -; when read off the chip and cause changes to the status register. -; So the preservation routine will need to modify the mode register to -; mask off the exceptions, save the state of the status register before -; saving the FP regs, and restore the status and mode registers to their -; original settings when the save is complete. -; -; REFERENCE: The instructions to drive the Am29027 are described in the -; Am29027 manual beginning on page 17. Table 4 describes the -; operation codes and table 3 the multiplexer codes. Communication -; with the 29000 is described on pages 11 and 12 of the Am29027 -; manual and chapters 6 and 8 of the Am29000 User's Manual -; -; MACRO NAME: save_FP_regs -; -; FUNCTION: to save the AMD 29027 floating point register values in the -; 29000 general purpose registers -; -; INPUT PARAMETERS: fp_register, one of the 29027 registers FP3 - FP7 -; -; REGISTER USAGE: the following registers are used in save_FP_regs -; -; rtn0 this register is used in setting the mode and status registers -; rtn1 this register is used in setting the mode and status registers -; rtn6 this register is used to store the MSW when FP3 is saved -; rtn7 this register is used to store the LSW when FP3 is saved -; rtn8 this register is used to store the MSW when FP4 is saved -; rtn9 this register is used to store the LSW when FP4 is saved -; - - .macro save_FP_regs,fp_register - .ifdef _29027_MODE - ; - ; For 29027 mode, expand the macro into 29027 code to preserve FP register - ; - .ifeqs "@fp_register@","FP3" - const rtn6,__29027Mode ; Load the address of FP mode - consth rtn6,__29027Mode - load 0,0,rtn0,rtn6 ; Load MSW of FP mode into rtn0 - add rtn6,rtn6,4 ; Increment rtn6 + 4 - load 0,0,rtn1,rtn6 ; Load LSW of FP mode into rtn1 - const rtn6,CP_RESERVED_OP_EXCP_MASK ; Load mask to disable exception - consth rtn6,CP_RESERVED_OP_EXCP_MASK - or rtn0,rtn0,rtn6 ; OR in disable of exception mask - cp_write_mode rtn1, rtn0 ; Reset mode w/exception disabled - cp_read_status rtn0 ; Read status and save in rtn1 - const rtn6,CP_PASS_P | CP_P_EQ_RF3 ; Instruction is PASS_P from RF3 - consth rtn6,CP_PASS_P | CP_P_EQ_RF3 - ; Load & execute the instruction - ; - store 1,CP_WRITE_INST | CP_START,rtn6,rtn6 - load 1,CP_READ_MSBS,rtn6,rtn6 ; Read the MSW to first register - load 1,CP_READ_LSBS,rtn7,rtn7 ; Read the LSW to second register - cp_write_status rtn0 ; Restore the original status - const rtn1,__29027Mode ; Load the address of FP mode - consth rtn1,__29027Mode - load 0,0,rtn0,rtn1 ; Load MSW of FP mode into rtn0 - add rtn1,rtn1,4 ; Increment rtn6 to __29027Mode+4 - load 0,0,rtn1,rtn1 ; Load LSW of FP mode into rtn1 - cp_write_mode rtn1, rtn0 ; Restore the original write mode - .endif - .ifeqs "@fp_register@","FP4" - const rtn8,__29027Mode ; Load the address of FP mode - consth rtn8,__29027Mode - load 0,0,rtn0,rtn8 ; Load MSW of FP mode into rtn0 - add rtn8,rtn8,4 ; Increment rtn6 + 4 - load 0,0,rtn1,rtn8 ; Load LSW of FP mode into rtn1 - const rtn8,CP_RESERVED_OP_EXCP_MASK ; Load mask to disable exception - consth rtn8,CP_RESERVED_OP_EXCP_MASK - or rtn0,rtn0,rtn8 ; OR in disable of exception mask - cp_write_mode rtn1, rtn0 ; Reset mode w/exception disabled - cp_read_status rtn0 ; Read status and save in rtn1 - const rtn8,CP_PASS_P | CP_P_EQ_RF4 ; Instruction is PASS_P from RF4 - consth rtn8,CP_PASS_P | CP_P_EQ_RF4 - ; Load & execute the instruction - ; - store 1,CP_WRITE_INST | CP_START,rtn8,rtn8 - load 1,CP_READ_MSBS,rtn8,rtn8 ; Read the MSW to first register - load 1,CP_READ_LSBS,rtn9,rtn9 ; Read the LSW to second register - cp_write_status rtn0 ; Restore the original status - const rtn1,__29027Mode ; Load the address of FP mode - consth rtn1,__29027Mode - load 0,0,rtn0,rtn1 ; Load MSW of FP mode into rtn0 - add rtn1,rtn1,4 ; Increment rtn6 + 4 - load 0,0,rtn1,rtn1 ; Load LSW of FP mode into rtn1 - cp_write_mode rtn1, rtn0 ; Restore the original write mode - .endif - .else - ; - ; For 29000 mode, do nothing - ; - .endif - .endm -; -; MACRO NAME: restore_FP_regs -; -; FUNCTION: to restore the AMD 29027 floating point register values from the -; 29000 general purpose registers -; -; INPUT PARAMETERS: fp_register, one of the 29027 registers FP3 - FP7 -; -; REGISTER USAGE: the following registers are used in restore_FP_regs -; -; rtn0 this register is used in setting the mode and status registers -; rtn6 the value in this register is stored as the MSW of FP3 -; rtn7 the value in this register is stored as the LSW of FP3 -; rtn8 the value in this register is stored as the MSW of FP4 -; rtn9 the value in this register is stored as the LSW of FP4 -; - .macro restore_FP_regs,fp_register - .ifdef _29027_MODE - ; - ; For 29027 mode, move data from return registers to the correct FP register - ; - .ifeqs "@fp_register@","FP3" - store 1,CP_WRITE_R ,rtn6,rtn7 ; Move the data to the R register - ; Then create the instruction - ; - const rtn0,CP_MOVE_P|CP_D_D|CP_P_EQ_R|CP_DEST_EQ_RF3 - consth rtn0,CP_MOVE_P|CP_D_D|CP_P_EQ_R|CP_DEST_EQ_RF3 - ; - ; Perform the write - ; - store 1,(CP_WRITE_INST | CP_START),rtn0,0 - .endif - .ifeqs "@fp_register@","FP4" - store 1,CP_WRITE_R ,rtn8,rtn9 ; Move the data to the R register - ; Then create the instruction - ; - const rtn0,CP_MOVE_P|CP_D_D|CP_P_EQ_R|CP_DEST_EQ_RF4 - consth rtn0,CP_MOVE_P|CP_D_D|CP_P_EQ_R|CP_DEST_EQ_RF4 - ; - ; Perform the write - ; - store 1,(CP_WRITE_INST | CP_START),rtn0,0 - .endif - .else - ; - ; For 29000 mode, do nothing. - ; - .endif - .endm -; -; end of file intrinsi.h diff --git a/newlib/libc/sys/a29khif/sys/macros.h b/newlib/libc/sys/a29khif/sys/macros.h deleted file mode 100644 index 3c832f0..0000000 --- a/newlib/libc/sys/a29khif/sys/macros.h +++ /dev/null @@ -1,37 +0,0 @@ -; @(#)macros.h 1.3 90/10/14 20:56:10, Copyright 1989, 1990 AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; macros.h -; Short macros of general utility - - .macro mov, dest,src - add dest, src, 0 - .endm - - .macro not, dest,src - nand dest, src, src - .endm diff --git a/newlib/libc/sys/a29khif/sys/proreg.h b/newlib/libc/sys/a29khif/sys/proreg.h deleted file mode 100644 index ca16b70..0000000 --- a/newlib/libc/sys/a29khif/sys/proreg.h +++ /dev/null @@ -1,60 +0,0 @@ -; @(#)proreg.h 1.3 90/10/14 20:56:11, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; proreg.h -; - ; 16 function value return regs - .reg v0, gr96 - .reg v1, gr97 - .reg v2, gr98 - .reg v3, gr99 - .reg v4, gr100 - .reg v5, gr101 - .reg v6, gr102 - .reg v7, gr103 - .reg v8, gr104 - .reg v9, gr105 - .reg v10, gr106 - .reg v11, gr107 - .reg v12, gr108 - .reg v13, gr109 - .reg v14, gr110 - .reg v15, gr111 -; - .reg rsp, gr1 ; Register Stack Pointer - .reg ret, gr96 ; First word of return value - .reg rp0, gr112 ; Reserved for Programmer, #0 - .reg rp1, gr113 ; Reserved for Programmer, #1 - .reg rp2, gr114 ; Reserved for Programmer, #2 - .reg rp3, gr115 ; Reserved for Programmer, #3 - .reg tav, gr121 ; Temporary, Argument for Trap Handlers - .reg tpc, gr122 ; Temporary, Return PC for Trap Handlers - .reg lrp, gr123 ; Large Return Pointer - .reg slp, gr124 ; Static Link Pointer - .reg msp, gr125 ; Memory Stack Pointer - .reg rab, gr126 ; Register Allocate Bound - .reg rfb, gr127 ; Register Free Bound diff --git a/newlib/libc/sys/a29khif/sys/romdcl.h b/newlib/libc/sys/a29khif/sys/romdcl.h deleted file mode 100644 index d52ca05..0000000 --- a/newlib/libc/sys/a29khif/sys/romdcl.h +++ /dev/null @@ -1,392 +0,0 @@ -; @(#)romdcl.h 1.4 90/10/14 20:56:12, Copyright 1988, 1989, 1990 AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - - .sbttl "Register, Constant and Macro Declarations - v1.4" - -; Copyright 1988, Advanced Micro Devices -; Written by Gibbons and Associates, Inc. - -;v1.4 JG correct FUNCTION macro - fault in register padding to even - -;----------------------------------------------------------------------- -;Global registers -;----------------------------------------------------------------------- - .reg rsp, gr1 ;local reg. var. stack pointer - - .equ SYS_TEMP, 64 ;system temp registers - - .reg st0, gr64 - .reg st1, gr65 - .reg st2, gr66 - .reg st3, gr67 - .reg st4, gr68 - .reg st5, gr69 - .reg st6, gr70 - .reg st7, gr71 - .reg st8, gr72 - .reg st9, gr73 - .reg st10, gr74 - .reg st11, gr75 - .reg st12, gr76 - .reg st13, gr77 - .reg st14, gr78 - .reg st15, gr79 - - .equ SYS_STAT, 80 ;system static registers - - .reg ss0, gr80 - .reg ss1, gr81 - .reg ss2, gr82 - .reg ss3, gr83 - .reg ss4, gr84 - .reg ss5, gr85 - .reg ss6, gr86 - .reg ss7, gr87 - .reg ss8, gr88 - .reg ss9, gr89 - .reg ss10, gr90 - .reg ss11, gr91 - .reg ss12, gr92 - .reg ss13, gr93 - .reg ss14, gr94 - .reg ss15, gr95 - - .equ RET_VAL, 96 ;return registers - - .reg v0, gr96 - .reg v1, gr97 - .reg v2, gr98 - .reg v3, gr99 - .reg v4, gr100 - .reg v5, gr101 - .reg v6, gr102 - .reg v7, gr103 - .reg v8, gr104 - .reg v9, gr105 - .reg v10, gr106 - .reg v11, gr107 - .reg v12, gr108 - .reg v13, gr109 - .reg v14, gr110 - .reg v15, gr111 - - .equ TEMP_REG, 96 ;temp registers - - .reg t0, gr96 - .reg t1, gr97 - .reg t2, gr98 - .reg t3, gr99 - .reg t4, gr100 - .reg t5, gr101 - .reg t6, gr102 - .reg t7, gr103 - .reg t8, gr104 - .reg t9, gr105 - .reg t10, gr106 - .reg t11, gr107 - .reg t12, gr108 - .reg t13, gr109 - .reg t14, gr110 - .reg t15, gr111 - - .equ RES_REG, 112 ;reserved (for user) - - .reg r0, gr112 - .reg r1, gr113 - .reg r2, gr114 - .reg r3, gr115 - - .equ TEMP_EXT, 116 ;temp extension (and shared) - - .reg x0, gr116 - .reg x1, gr117 - .reg x2, gr118 - .reg x3, gr119 - .reg x4, gr120 - .reg x5, gr121 - .reg x6, gr122 - .reg x7, gr123 - .reg x8, gr124 - -;----------------------------------------------------------------------- -;Global registers with special calling convention uses -;----------------------------------------------------------------------- - - .reg tav, gr121 ;trap handler argument (also x6) - .reg tpc, gr122 ;trap handler return (also x7) - .reg lsrp, gr123 ;large return pointer (also x8) - .reg slp, gr124 ;static link pointer (also x9) - .reg msp, gr125 ;memory stack pointer - .reg rab, gr126 ;register alloc bound - .reg rfb, gr127 ;register frame bound - -;----------------------------------------------------------------------- -;Local compiler registers - output parameters, etc. -; (only valid if frame has been established) -;----------------------------------------------------------------------- - - .reg p15, lr17 ;parameter registers - .reg p14, lr16 - .reg p13, lr15 - .reg p12, lr14 - .reg p11, lr13 - .reg p10, lr12 - .reg p9, lr11 - .reg p8, lr10 - .reg p7, lr9 - .reg p6, lr8 - .reg p5, lr7 - .reg p4, lr6 - .reg p3, lr5 - .reg p2, lr4 - .reg p1, lr3 - .reg p0, lr2 - - -;----------------------------------------------------------------------- -;TLB register count -;----------------------------------------------------------------------- - - .equ TLB_CNT, 128 - - .eject - -;----------------------------------------------------------------------- -;constants for general use -;----------------------------------------------------------------------- - .equ WRD_SIZ, 4 ;word size - .equ TRUE, 0x80000000 ;logical true -- bit 31 - .equ FALSE, 0x00000000 ;logical false -- 0 - .equ CHKPAT_a5, 0xa5a5a5a5 ;check pattern - -;----------------------------------------------------------------------- -;constants for data access control -;----------------------------------------------------------------------- - .equ CE, 0b1 ;coprocessor enable - .equ CD, 0b0 ;coprocessor disable - - .equ AS, 0b1000000 ;set for I/O - .equ PA, 0b0100000 ;set for physical ad - .equ SB, 0b0010000 ;set for set BP - .equ UA, 0b0001000 ;set for user access - - .equ ROM_OPT, 0b100 ;OPT values for acc - .equ DATA_OPT, 0b000 - .equ INST_OPT, 0b000 - - .equ ROM_CTL, (PA + ROM_OPT) ;control field - .equ DATA_CTL, (PA + DATA_OPT) - .equ INST_CTL, (PA + INST_OPT) - .equ IO_CTL, (AS + PA + DATA_OPT) - - - .eject - -;----------------------------------------------------------------------- -;defined vectors -;----------------------------------------------------------------------- - - .equ V_IllegalOp, 0 - .equ V_Unaligned, 1 - .equ V_OutOfRange, 2 - .equ V_NoCoProc, 3 - .equ V_CoProcExcept, 4 - .equ V_ProtViol, 5 - .equ V_InstAccExcept, 6 - .equ V_DataAccExcept, 7 - .equ V_UserInstTLB, 8 - .equ V_UserDataTLB, 9 - .equ V_SupInstTLB, 10 - .equ V_SupDataTLB, 11 - .equ V_InstTLBProt, 12 - .equ V_DataTLBProt, 13 - .equ V_Timer, 14 - .equ V_Trace, 15 - .equ V_INTR0, 16 - .equ V_INTR1, 17 - .equ V_INTR2, 18 - .equ V_INTR3, 19 - .equ V_TRAP0, 20 - .equ V_TRAP1, 21 - - ; 22 - 31 reserved - - .equ V_MULTIPLY, 32 - .equ V_DIVIDE, 33 - .equ V_MULTIPLU, 34 - .equ V_DIVIDU, 35 - .equ V_CONVERT, 36 - - ; 37 - 41 reserved - - .equ V_FEQ, 42 - .equ V_DEQ, 43 - .equ V_FGT, 44 - .equ V_DGT, 45 - .equ V_FGE, 46 - .equ V_DGE, 47 - .equ V_FADD, 48 - .equ V_DADD, 49 - .equ V_FSUB, 50 - .equ V_DSUB, 51 - .equ V_FMUL, 52 - .equ V_DMUL, 53 - .equ V_FDIV, 54 - .equ V_DDIV, 55 - - ; 56 - 63 reserved - - .equ V_SPILL, 64 - .equ V_FILL, 65 - .equ V_BSDCALL, 66 - .equ V_SYSVCALL, 67 - .equ V_BRKPNT, 68 - .equ V_EPI_OS, 69 - - .eject - - .macro R_LEFT,REGVAR - - ;Rotate left - ; - ; Parameters: REGVAR register to rotate - - add REGVAR, REGVAR, REGVAR ;shift left by 1 bit, C = MSB - addc REGVAR, REGVAR, 0 ;add C to LSB - - .endm -;---------------------------------------------------------------------- - - - .macro FUNCTION,NAME,INCNT,LOCCNT,OUTCNT - - ;Introduces a non-leaf routine. - ; - ;This macro defines the standard tag word before the function, - ;then establishes the statement label with the function's name - ;and finally allocates a register stack frame. It may not be used - ;if a memory stack frame is required. - ; - ;Note also that the size of the register stack frame is limited. - ;Neither this nor the lack of a memory frame is considered to be - ;a severe restriction in an assembly language environment. The - ;assembler will report errors if the requested frame is too large - ;for this macro. - ; - ;It may be good practice to allocate an even number of both output - ;registers and local registers. This will help in maintaining - ;double word alignment within these groups. The macro will assure - ;double word alignment of the stack frame as a whole as required - ;for correct linkage. - ; - ; Paramters: NAME the function name - ; INCNT input parameter count - ; LOCCNT local register count - ; OUTCNT output parameter count - - .set ALLOC_CNT, ((2 + OUTCNT + LOCCNT) << 2) - .set PAD_CNT, (ALLOC_CNT & 4) - .set ALLOC_CNT, (ALLOC_CNT + PAD_CNT) - .set REG_PAD, (PAD_CNT >> 2) - .if (INCNT) - .set IN_PRM, (4 + OUTCNT + REG_PAD + LOCCNT + 0x80) - .endif - .if (LOCCNT) - .set LOC_REG, (2 + OUTCNT + REG_PAD + 0x80) - .endif - .if (OUTCNT) - .set OUT_PRM, (2 + 0x80) - .endif - - .word ((2 + OUTCNT + LOCCNT) << 16) -NAME: - sub rsp, rsp, ALLOC_CNT - asgeu V_SPILL, rsp, rab - add lr1, rsp, ((4 + OUTCNT + LOCCNT + REG_PAD + INCNT) << 2) - - .endm -;---------------------------------------------------------------------- - - - .macro LEAF,NAME,INCNT - - ;Introduces a leaf routine - ; - ;This macro defines the standard tag word before the function, - ;then establishes the statement label with the function's name. - ; - ; Paramters: NAME the function name - ; INCNT input parameter count - - .if (INCNT) - .set IN_PRM, (2 + 0x80) - .endif - .set ALLOC_CNT, 0 - - .word 0 -NAME: - - .endm -;---------------------------------------------------------------------- - - - .macro EPILOGUE - - ;De-allocates register stack frame (only and only if necessary). - - .if (ALLOC_CNT) - - add rsp, rsp, ALLOC_CNT - nop - jmpi lr0 - asleu V_FILL, lr1, rfb - - .else - - jmpi lr0 - nop - - .endif - - .set IN_PRM, (1024) ;illegal, to cause err on ref - .set LOC_REG, (1024) ;illegal, to cause err on ref - .set OUT_PRM, (1024) ;illegal, to cause err on ref - .set ALLOC_CNT, (1024) ;illegal, to cause err on ref - - .endm -;---------------------------------------------------------------------- - - -;Initial values for macro set variables to guard against misuse - - .set IN_PRM, (1024) ;illegal, to cause err on ref - .set LOC_REG, (1024) ;illegal, to cause err on ref - .set OUT_PRM, (1024) ;illegal, to cause err on ref - .set ALLOC_CNT, (1024) ;illegal, to cause err on ref - -;...................................................................... -; end of romdcl.h diff --git a/newlib/libc/sys/a29khif/sys/smartmac.h b/newlib/libc/sys/a29khif/sys/smartmac.h deleted file mode 100644 index 2c870fa..0000000 --- a/newlib/libc/sys/a29khif/sys/smartmac.h +++ /dev/null @@ -1,1491 +0,0 @@ -; @(#)smartmac.h 1.2 90/10/14 20:56:14, AMD -; start of smartmac.h file -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1988, 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; - .title "AM29000 Smart Macro Package" -; -; Floating point package for AMD 29000 family -; -; Copyright 1988 Advanced Micro Devices, Inc. -; -; All rights reserved -; -; Developed for AMD by Quantitative Technology Corporation -; 8700 SW Creekside Place Suite D -; Beaverton OR 97005 -; (503) 626-3081 -; -; Version information : -; -; Version 1.0 - 1 June 1988 - Larry Westerman (smart_macros.h) -; -; Revision 1.4 89/02/01 18:26:03 jimh -; Changed to relect the new symbols from Bob Perlman, and the new include file.s -; -; Revision 1.3 89/01/31 10:13:34 jimh -; Updated to use symbols from Bob Perlmans fpsymbol.h file. This is -; an extensive change. -; -; Revision 1.2 89/01/26 09:23:50 jimh -; This version checked in previous to substituting Bob Perlman's floating -; point symbols. -; -; Revision 1.1 89/01/24 13:23:29 jim -; Initial revision -; Replaces smart_macros.h ver 1.11. -; -; -; -; -; NOTES: -; -; This package makes the following assumptions about the use of these -; smart macros: -; -; 1. These macros will be after the entry code for a transcendental -; routine. This entry code will move the original function arguments -; (by value, if the target language is FORTRAN) into the global -; registers t0/t1 and t2/t3 (t0 and t2 for single precision -; routines). -; 2. The sources of all operands will be one register from the -; following list: -; t0 or t2 - the source is one of the original input operands -; rtn0 - the source is rtn0, which should be used as the -; source for all constant values to be sent to the -; AM29027 (when used) -; FP0 - FP7 - the source is one of the fp registers -; 3. The destination of all operations will be a register from the -; following list: -; rtn0 - the destination is the function return value -; FP0 - FP7 - the destination is one of the fp registers -; 4. The additional registers available for temporary use are -; t4, lrp, and slp. -; -; These register definitions are all taken from the file "proregs.a" -; which was supplied by AMD. NOTE that the FP0-FP7 registers, for the -; Am29000 version of the file, overlap with the rtn0-rtn15 registers, so -; that FP0 corresponds to rtn0/rtn1, FP1 to rtn2/rtn3, and so forth. -; - .equ ERROR,0 - .equ NO_ERROR,1 - - .equ DOUBLE_FUNCTION,0 - .equ SINGLE_FUNCTION,1 - - .equ T_OPERATION,0 - .equ Q_OPERATION,1 - - .equ R_SOURCE_29000,0 - .equ R_SOURCE_29027,1 - - .equ S_SOURCE_29000,0 - .equ S_SOURCE_29027,1 - - .equ DESTINATION_29000, 0 - .equ DESTINATION_29027, 1 - -; -; SMART MACRO : mfadd -; -; FUNCTION : single-precision floating point addition -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mfadd,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mfadd: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; For 29027 mode, perform full suite of checking - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_S_S | CP_P_PLUS_T - .set OPERATION_TYPE, T_OPERATION - perform_single_operation destination,operand1,operand2 - read_single_result destination - ; - ; Save the instruction for the next macro invocation - ; - .set PREVIOUS_INSTRUCTION, CURRENT_INSTRUCTION - - .else - ; - ; For 29000 mode, simply produce equivalent trap-inducing instruction - ; - fadd destination,operand1,operand2 - - .endif - - .endm ; end of mfadd macro definition - -; -; SMART MACRO : mfsub -; -; FUNCTION : single-precision floating point subtraction -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mfsub,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mfsub: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; For 29027 mode, perform full suite of checking - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_S_S | CP_P_MINUS_T - .set OPERATION_TYPE, T_OPERATION - perform_single_operation destination,operand1,operand2 - read_single_result destination - ; - ; Save the instruction for the next macro invocation - ; - .set PREVIOUS_INSTRUCTION, CURRENT_INSTRUCTION - - .else - ; - ; For 29000 mode, simply produce equivalent trap-inducing instruction - ; - fsub destination,operand1,operand2 - - .endif - - .endm ; end of mfsub macro definition - -; -; SMART MACRO : mfmul -; -; FUNCTION : single-precision floating point multiplication -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mfmul,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mfmul: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; For 29027 mode, perform full suite of checking - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_S_S | CP_P_TIMES_Q - .set OPERATION_TYPE, Q_OPERATION - perform_single_operation destination,operand1,operand2 - read_single_result destination - ; - ; Save the instruction for the next macro invocation - ; - .set PREVIOUS_INSTRUCTION, CURRENT_INSTRUCTION - - .else - ; - ; For 29000 mode, simply produce equivalent trap-inducing instruction - ; - fmul destination,operand1,operand2 - - .endif - - .endm ; end of mfmul macro definition - -; -; SMART MACRO : mfdiv -; -; FUNCTION : single-precision floating point divide -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mfdiv,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mfdiv: missing parameter(s)" - .exitm - .endif - - ; - ; Generate the trap instruction in all cases - ; - fdiv destination, operand1, operand2 - - .endm ; end of mfdiv macro definition - - -; -; SMART MACRO : mdadd -; -; FUNCTION : double-precision floating point addition -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mdadd,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mdadd: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; For 29027 mode, perform full suite of checking - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_D_D | CP_P_PLUS_T - .set OPERATION_TYPE, T_OPERATION - perform_double_operation destination,operand1,operand2 - read_double_result destination - ; - ; Save the instruction for the next macro invocation - ; - .set PREVIOUS_INSTRUCTION, CURRENT_INSTRUCTION - - .else - ; - ; For 29000 mode, simply produce equivalent trap-inducing instruction - ; - dadd destination,operand1,operand2 - - .endif - - .endm ; end of mdadd macro definition - -; -; SMART MACRO : mdsub -; -; FUNCTION : double-precision floating point subtraction -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mdsub,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mdsub: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; For 29027 mode, perform full suite of checking - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_D_D | CP_P_MINUS_T - .set OPERATION_TYPE, T_OPERATION - perform_double_operation destination,operand1,operand2 - read_double_result destination - ; - ; Save the instruction for the next macro invocation - ; - .set PREVIOUS_INSTRUCTION, CURRENT_INSTRUCTION - - .else - ; - ; For 29000 mode, simply produce equivalent trap-inducing instruction - ; - dsub destination,operand1,operand2 - - .endif - - .endm ; end of mdsub macro definition - -; -; SMART MACRO : mdmul -; -; FUNCTION : double-precision floating point multiplication -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mdmul,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mdmul: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; For 29027 mode, perform full suite of checking - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_D_D | CP_P_TIMES_Q - .set OPERATION_TYPE, Q_OPERATION - perform_double_operation destination,operand1,operand2 - read_double_result destination - ; - ; Save the instruction for the next macro invocation - ; - .set PREVIOUS_INSTRUCTION, CURRENT_INSTRUCTION - - .else - ; - ; For 29000 mode, simply produce equivalent trap-inducing instruction - ; - dmul destination,operand1,operand2 - - .endif - - .endm ; end of mdmul macro definition - -; -; SMART MACRO : mddiv -; -; FUNCTION : double-precision floating point divide -; -; Required arguments : destination - one of possible destinations -; operand1 - one of possible sources -; operand2 - one of possible sources -; - .macro mddiv,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "mddiv: missing parameter(s)" - .exitm - .endif - - ; - ; Generate the trap instruction in all cases - ; - ddiv destination, operand1, operand2 - - .endm ; end of mfdiv macro definition - -; -; SMART MACRO: mconvert -; -; FUNCTION: Floating point/integer conversion -; -; PARAMETERS: destination - one of the possible destinations -; source - one of the possible sources -; sign_flag - one of SIGNED or UNSIGNED -; rounding_mode - one of ROUND_TO_NEAREST, ROUND_TO_PLUS, -; ROUND_TO_MINUS, ROUND_TO_ZERO -; destination_precision - one of FORMAT_INTEGER, FORMAT_DOUBLE, -; or FORMAT_SINGLE -; source_precision - one of FORMAT_INTEGER, FORMAT_DOUBLE, -; or FORMAT_SINGLE -; - .macro mconvert, destination, source, sign_flag, rounding_mode, destination_precision, source_precision - - .if $narg!=6 - .err - .print "mconvert: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .if ( destination_precision == FORMAT_INTEGER ) - .set CURRENT_INSTRUCTION, CP_CONVERT_T_TO_INT - select_T_operand source - .if ( source_precision == FORMAT_DOUBLE ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_S_D - .else - .if ( source_precision == FORMAT_SINGLE ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_S_S - .else - .err - .print "mconvert: invalid source type" - .exitm - .endif - .endif - .else - .if ( destination_precision == FORMAT_DOUBLE ) - .if ( source_precision == FORMAT_SINGLE ) - .set CURRENT_INSTRUCTION, CP_PASS_P | CP_P_EQ_R | CP_D_S - select_P_operand source - .else - .if ( source_precision == FORMAT_INTEGER ) - .set CURRENT_INSTRUCTION, CP_I_CONVERT_T_TO_FLOAT | CP_D_S - select_T_operand source - .else - .err - .print "mconvert: invalid source type" - .exitm - .endif - .endif - .else - .if ( destination_precision == FORMAT_SINGLE ) - .if ( source_precision == FORMAT_DOUBLE ) - .set CURRENT_INSTRUCTION, CP_PASS_P | CP_P_EQ_R | CP_S_D - select_P_operand source - .else - .if ( source_precision == FORMAT_INTEGER ) - .set CURRENT_INSTRUCTION, CP_I_CONVERT_T_TO_FLOAT | CP_S_S - select_T_operand source - .else - .err - .print "mconvert: invalid source type" - .exitm - .endif - .endif - .else - .err - .print "mconvert: invalid destination type " - .exitm - .endif - .endif - .endif - ; - ; Perform the operation, using a 29027 dummy register as the second - ; source operand, to avoid writing any data inappropriately to the - ; 29027 - ; - select_destination destination - .set S_SOURCE, S_SOURCE_29027 - .if ( source_precision == FORMAT_DOUBLE ) - write_and_execute_double_operation source, FP0 - .else - write_and_execute_single_operation source, FP0 - .endif - .if ( destination_precision == FORMAT_DOUBLE ) - read_double_result destination - .else - .if ( destination_precision == FORMAT_SINGLE ) - read_single_result destination - .else - read_integer_result destination - .endif - .endif - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - convert destination,source,sign_flag,rounding_mode,destination_precision,source_precision - - .endif - - .endm ; end of mfeq macro definition - -; -; SMART MACRO: mfeq -; -; FUNCTION: Single precision, floating point compare -; -; PARAMETERS: destination - one of the possible destinations -; operand1 - one of the possible sources -; operand2 - one of the possible sources -; - .macro mfeq, destination, operand1, operand2 - - .if $narg!=3 - .err - .print "mfeq: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_S_S | CP_COMPARE_P_AND_T - .set OPERATION_TYPE, T_OPERATION - select_destination destination - ; - ; 29027 registers are not valid destinations for compare operations - ; If the destination is a 29000 register, write the appropriate - ; Boolean value to that register. - ; - .if ( DESTINATION == DESTINATION_29027 ) - .err - .print "29027 destinations invalid for compares - @destination@" - .exitm - .else - perform_single_operation destination, operand1, operand2 - cp_read_flags destination - srl destination, destination, CP_EQUAL_FLAG_POSITION - sll destination, destination, 31 - .endif - - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - feq destination,operand1,operand2 - - .endif - - .endm ; end of mfeq macro definition - -; -; SMART MACRO: mfge -; -; FUNCTION: Single precision, floating point compare -; -; PARAMETERS: destination - one of the possible destinations -; operand1 - one of the possible sources -; operand2 - one of the possible sources -; - .macro mfge, destination, operand1, operand2 - - .if $narg!=3 - .err - .print "mfge: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_S_S | CP_COMPARE_P_AND_T - .set OPERATION_TYPE, T_OPERATION - select_destination destination - ; - ; 29027 registers are not valid destinations for compare operations - ; If the destination is a 29000 register, write the appropriate - ; Boolean value to that register. - ; - .if ( DESTINATION == DESTINATION_29027 ) - .err - .print "29027 destinations invalid for compares - @destination@" - .exitm - .else - perform_single_operation destination, operand1, operand2 - cp_read_flags destination - and destination, destination, CP_EQUAL_FLAG | CP_GREATER_THAN_FLAG - cpneq destination, destination, 0x0 - .endif - - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - fge destination,operand1,operand2 - - .endif - - .endm ; end of mfge macro definition - -; -; SMART MACRO: mfgt -; -; FUNCTION: Single precision, floating point compare -; -; PARAMETERS: destination - one of the possible destinations -; operand1 - one of the possible sources -; operand2 - one of the possible sources -; - .macro mfgt, destination, operand1, operand2 - - .if $narg!=3 - .err - .print "mfgt: missing parameter(s)" - .exitm - .endif - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_S_S | CP_COMPARE_P_AND_T - .set OPERATION_TYPE, T_OPERATION - select_destination destination - ; - ; 29027 registers are not valid destinations for compare operations - ; If the destination is a 29000 register, write the appropriate - ; Boolean value to that register. - ; - .if ( DESTINATION == DESTINATION_29027 ) - .err - .print "29027 destinations invalid for compares - @destination@" - .exitm - .else - perform_single_operation destination, operand1, operand2 - cp_read_flags destination - srl destination, destination, CP_GREATER_THAN_FLAG_POSITION - sll destination, destination, 31 - .endif - - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - fgt destination,operand1,operand2 - - .endif - - .endm ; end of mfgt macro definition - -; -; SMART MACRO: mdeq -; -; FUNCTION: Double precision, floating point compare -; -; PARAMETERS: destination - one of the possible destinations -; operand1 - one of the possible sources -; operand2 - one of the possible sources -; - .macro mdeq, destination, operand1, operand2 - - .if $narg!=3 - .err - .print "mdeq: missing parameter(s)" - .exitm - .endif - - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_D_D | CP_COMPARE_P_AND_T - .set OPERATION_TYPE, T_OPERATION - select_destination destination - ; - ; 29027 registers are not valid destinations for compare operations - ; If the destination is a 29000 register, write the appropriate - ; Boolean value to that register. - ; - .if ( DESTINATION == DESTINATION_29027 ) - .err - .print "29027 destinations invalid for compare - @destination@" - .exitm - .else - perform_double_operation destination, operand1, operand2 - cp_read_flags destination - srl destination, destination, CP_EQUAL_FLAG_POSITION - sll destination, destination, 31 - .endif - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - deq destination,operand1,operand2 - - .endif - - .endm ; end of mdeq macro definition - -; -; SMART MACRO: mdge -; -; FUNCTION: Double precision, floating point compare -; -; PARAMETERS: destination - one of the possible destinations -; operand1 - one of the possible sources -; operand2 - one of the possible sources -; - .macro mdge, destination, operand1, operand2 - - .if $narg!=3 - .err - .print "mdge: missing parameter(s)" - .exitm - .endif - - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_D_D | CP_COMPARE_P_AND_T - .set OPERATION_TYPE, T_OPERATION - select_destination destination - ; - ; 29027 registers are not valid destinations for compare operations - ; If the destination is a 29000 register, write the appropriate - ; Boolean value to that register. - ; - .if ( DESTINATION == DESTINATION_29027 ) - .err - .print "29027 destinations invalid for compare - @destination@" - .exitm - .else - perform_double_operation destination, operand1, operand2 - cp_read_flags destination - and destination, destination, CP_EQUAL_FLAG | CP_GREATER_THAN_FLAG - cpneq destination, destination, 0x0 - .endif - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - dge destination,operand1,operand2 - - .endif - - .endm ; end of mdge macro definition - -; -; SMART MACRO: mdgt -; -; FUNCTION: Double precision, floating point compare -; -; PARAMETERS: destination - one of the possible destinations -; operand1 - one of the possible sources -; operand2 - one of the possible sources -; - .macro mdgt, destination, operand1, operand2 - - .if $narg!=3 - .err - .print "mdgt: missing parameter(s)" - .exitm - .endif - - - .ifdef _29027_MODE - ; - ; Generate in line 29027 code - ; - initialize_previous_instruction - .set CURRENT_INSTRUCTION, CP_D_D | CP_COMPARE_P_AND_T - .set OPERATION_TYPE, T_OPERATION - select_destination destination - ; - ; 29027 registers are not valid destinations for compare operations - ; If the destination is a 29000 register, write the appropriate - ; Boolean value to that register. - ; - .if ( DESTINATION == DESTINATION_29027 ) - .err - .print "29027 destinations invalid for compare - @destination@" - .exitm - .else - perform_double_operation destination, operand1, operand2 - cp_read_flags destination - srl destination, destination, CP_GREATER_THAN_FLAG_POSITION - sll destination, destination, 31 - .endif - .else - ; - ; For 29000 mode (the default) just invoke the trap-inducing instruction - ; - dgt destination,operand1,operand2 - - .endif - - .endm ; end of mdgt macro definition - -; -; MACRO NAME : perform_double_operation -; -; FUNCTION : After the instruction base is set up, do the appropriate checking -; to send the instruction if necessary, send the double-precision -; operands if necessary, and start the operation -; -; PARAMETERS : destination - one of possible destination operands -; operand1 - one of possible source operands -; operand2 - one of possible source operands -; - .macro perform_double_operation,destination,operand1,operand2 - - .if $narg!=3 - .err - .print "perform_double_operation: missing parameter(s)" - .exitm - .endif - - ; - ; Start defining the instruction - ; - select_destination destination - select_P_operand operand1 - select_S_operand operand2 - - write_and_execute_double_operation operand1, operand2 - - .endm ; End of perform_double_operation macro definition - -; -; MACRO NAME : perform_single_operation -; -; FUNCTION : After the instruction base is set up, do the appropriate checking -; to send the instruction if necessary, send the single-precision -; operands if necessary and start the operation -; -; PARAMETERS : destination - one of possible destination operands -; operand1 - one of possible source operands -; operand2 - one of possible source operands -; - .macro perform_single_operation,destination,operand1,operand2 - - ; - ; Start defining the instruction - ; - select_destination destination - select_P_operand operand1 - select_S_operand operand2 - write_and_execute_single_operation operand1,operand2 - - .endm ; End of perform_single_operation macro definition - -; -; MACRO NAME : write_and_execute_double_operation -; -; FUNCTION : Write the instruction and operands for a double-precision -; operation, and start the operation -; -; PARAMETER : operand1 - first operand of double-precision operation -; operand2 - second operand of operation -; - .macro write_and_execute_double_operation,operand1,operand2 - .if ( ( R_SOURCE == R_SOURCE_29027 ) && ( S_SOURCE == S_SOURCE_29027 ) ) - ; - ; If both sources are within the 29027, write the instruction - ; and start the operation - ; - const t4, CURRENT_INSTRUCTION - consth t4, CURRENT_INSTRUCTION - cp_write_inst t4, START - .else - ; - ; One or both of the sources must be written first, so check the - ; previous instruction - ; - const t4, CURRENT_INSTRUCTION - consth t4, CURRENT_INSTRUCTION - cp_write_inst t4 - .if ( R_SOURCE == R_SOURCE_29000 ) && ( S_SOURCE == S_SOURCE_29027 ) - .ifeqs "@operand1@","t0" - cp_write_r t0, t1, START - .else - .ifeqs "@operand1@","t2" - cp_write_r t2, t3, START - .else - .ifeqs "@operand1@","rtn0" - cp_write_r rtn0, rtn1, START - .else - .err - .print "Invalid source for double operation - @operand1@" - .exitm - .endif - .endif - .endif - .endif - .if ( R_SOURCE == R_SOURCE_29027 ) && ( S_SOURCE == S_SOURCE_29000 ) - .ifeqs "@operand2@","t0" - cp_write_s t0, t1, START - .else - .ifeqs "@operand2@","t2" - cp_write_s t2, t3, START - .else - .ifeqs "@operand2@","rtn0" - cp_write_s rtn0, rtn1, START - .else - .err - .print "Invalid source for double operation - @operand1@" - .exitm - .endif - .endif - .endif - .endif - .if ( R_SOURCE == R_SOURCE_29000 ) && ( S_SOURCE == S_SOURCE_29000 ) - .ifeqs "@operand1@","t0" - cp_write_r t0, t1 - .else - .ifeqs "@operand1@","t2" - cp_write_r t2, t3 - .else - .ifeqs "@operand1@","rtn0" - cp_write_r rtn0, rtn1 - .else - .err - .print "Invalid source for double operation - @operand1@" - .exitm - .endif - .endif - .endif - .ifeqs "@operand2@","t0" - cp_write_s t0, t1, START - .else - .ifeqs "@operand2@","t2" - cp_write_s t2, t3, START - .else - .ifeqs "@operand2@","rtn0" - cp_write_s rtn0, rtn1, START - .else - .err - .print "Invalid source for double operation - @operand1@" - .exitm - .endif - .endif - .endif - .endif - .endif - - .endm ; end of write_and_execute_double_operation macro definition - -; -; MACRO NAME : write_and_execute_single_operation -; -; FUNCTION : If necessary, read the result from the 29027 into a -; register on the 29000 -; -; PARAMETER : operand1 - first source for single-precision operation -; operand2 - second source for operation -; - .macro write_and_execute_single_operation,operand1,operand2 - - .if ( ( R_SOURCE == R_SOURCE_29027 ) && ( S_SOURCE == S_SOURCE_29027 ) ) - ; - ; If both sources are within the 29027, write the instruction - ; and start the operation - ; - const t4, CURRENT_INSTRUCTION - consth t4, CURRENT_INSTRUCTION - cp_write_inst t4, START - .else - ; - ; One or both of the sources must be written first, so check the - ; previous instruction - ; - const t4,CURRENT_INSTRUCTION - consth t4,CURRENT_INSTRUCTION - cp_write_inst t4, START - .if ( R_SOURCE == R_SOURCE_29000 ) && ( S_SOURCE == S_SOURCE_29027 ) - cp_write_r operand1, operand1, START - .endif - .if ( R_SOURCE == R_SOURCE_29027 ) && ( S_SOURCE == S_SOURCE_29000 ) - cp_write_s operand2, operand2, START - .endif - .if ( R_SOURCE == R_SOURCE_29000 ) && ( S_SOURCE == S_SOURCE_29000 ) - cp_write_rs operand1, operand2, START - .endif - .endif - - .endm ; End of write_and_execute_single_operation macro definition - -; -; MACRO NAME : read_double_result -; -; FUNCTION : If necessary, read the result from the 29027 into a -; register on the 29000 -; -; PARAMETER : destination - one of the possible destination registers -; - .macro read_double_result,destination - .if ( DESTINATION == DESTINATION_29000 ) - ; - ; If the destination is not within the 29027 register file, read - ; the result and store it into the correct register in the 29000 - ; - .ifeqs "@destination@","rtn0" - cp_read_dp rtn0, rtn1 - .else - .err - .print "Invalid destination for double result - @destination@" - .exitm - .endif - .endif - - .endm ; End of read_double_result macro definition - -; -; MACRO NAME : read_single_result -; -; FUNCTION : If necessary, read the result from the 29027 into a -; register on the 29000 -; -; PARAMETER : destination -; - .macro read_single_result,destination - - .if ( DESTINATION == DESTINATION_29000 ) - ; - ; If the destination is not within the 29027 register file, read - ; the result and store it into the correct register in the 29000 - ; - .ifeqs "@destination@","rtn0" - cp_read_sp rtn0 - .else - .err - .print "Invalid destination for single result - @destination@" - .exitm - .endif - .endif - - .endm ; End of read_single_result macro definition - -; -; MACRO NAME : read_integer_result -; -; FUNCTION : If necessary, read the result from the 29027 into a -; register on the 29000 -; -; PARAMETER : destination -; - .macro read_integer_result,destination - - .if ( DESTINATION == DESTINATION_29000 ) - ; - ; If the destination is not within the 29027 register file, read - ; the result and store it into the correct register in the 29000 - ; - .ifeqs "@destination@","rtn0" - cp_read_int rtn0 - .else - .err - .print "Invalid destination for single result - @destination@" - .exitm - .endif - .endif - - .endm ; End of read_integer_result macro definition - -; -; MACRO NAME : select_P_operand -; -; FUNCTION : Given an operand, determine if the operand is from the -; register file, and if so, set the appropriate bits in -; the current instruction word. In addition, set the -; variable R_SOURCE to 0 for local register file, or 1 for -; floating-point register file. -; -; PARAMETER : operand1 - one of the possible source operands -; - .macro select_P_operand,operand1 - .ifeqs "@operand1@","t0" - .set R_SOURCE,R_SOURCE_29000 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_R - .exitm - .endif - .ifeqs "@operand1@","t2" - .set R_SOURCE,R_SOURCE_29000 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_R - .exitm - .endif - .ifeqs "@operand1@","rtn0" - .set R_SOURCE,R_SOURCE_29000 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_R - .exitm - .endif - .ifeqs "@operand1@","FP0" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF0 - .exitm - .endif - .ifeqs "@operand1@","FP1" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF1 - .exitm - .endif - .ifeqs "@operand1@","FP2" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF2 - .exitm - .endif - .ifeqs "@operand1@","FP3" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF3 - .exitm - .endif - .ifeqs "@operand1@","FP4" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF4 - .exitm - .endif - .ifeqs "@operand1@","FP5" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF5 - .exitm - .endif - .ifeqs "@operand1@","FP6" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF6 - .exitm - .endif - .ifeqs "@operand1@","FP7" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_P_EQ_RF7 - .exitm - .endif - .err - .print "@operand1@ - Invalid operand" - - .endm ; end of select_P_operand macro definition - -; -; MACRO NAME : select_S_operand -; -; FUNCTION : Given an operand, determine if the operand is from the -; register file, and if so, set the appropriate bits in -; the current instruction word. In addition, set the -; variable S_SOURCE to S_SOURCE_29000 or S_SOURCE_29027 -; as appropriate -; -; PARAMETER : operand2 - one of the possible source operands -; - .macro select_S_operand,operand2 - .ifeqs "@operand2@","t0" - .set S_SOURCE,S_SOURCE_29000 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_S - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_S - .endif - .exitm - .endif - .ifeqs "@operand2@","t2" - .set S_SOURCE,S_SOURCE_29000 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_S - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_S - .endif - .exitm - .endif - .ifeqs "@operand2@","rtn0" - .set S_SOURCE,S_SOURCE_29000 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_S - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_S - .endif - .exitm - .endif - .ifeqs "@operand2@","FP0" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF0 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF0 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP1" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF1 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF1 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP2" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF2 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF2 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP3" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF3 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF3 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP4" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF4 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF4 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP5" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF5 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF5 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP6" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF6 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF6 - .endif - .exitm - .endif - .ifeqs "@operand2@","FP7" - .set S_SOURCE,S_SOURCE_29027 - .if ( OPERATION_TYPE == T_OPERATION ) - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF7 - .else - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_Q_EQ_RF7 - .endif - .exitm - .endif - .err - .print "@operand2@ - Invalid operand" - - .endm ; end of select_S_operand macro definition - -; -; MACRO NAME : select_T_operand -; -; FUNCTION : Given an operand, determine if the operand is from the -; register file, and if so, set the appropriate bits in -; the current instruction word, to read the corresponding -; source into the T operand. In addition, set the -; variable R_SOURCE to 0 for local register file, or 1 for -; floating-point register file. -; -; PARAMETER : operand1 - one of the possible source operands -; - .macro select_T_operand,operand1 - .ifeqs "@operand1@","t0" - .set R_SOURCE,R_SOURCE_29000 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_R - .exitm - .endif - .ifeqs "@operand1@","t2" - .set R_SOURCE,R_SOURCE_29000 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_R - .exitm - .endif - .ifeqs "@operand1@","rtn0" - .set R_SOURCE,R_SOURCE_29000 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_R - .exitm - .endif - .ifeqs "@operand1@","FP0" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF0 - .exitm - .endif - .ifeqs "@operand1@","FP1" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF1 - .exitm - .endif - .ifeqs "@operand1@","FP2" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF2 - .exitm - .endif - .ifeqs "@operand1@","FP3" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF3 - .exitm - .endif - .ifeqs "@operand1@","FP4" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF4 - .exitm - .endif - .ifeqs "@operand1@","FP5" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF5 - .exitm - .endif - .ifeqs "@operand1@","FP6" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF6 - .exitm - .endif - .ifeqs "@operand1@","FP7" - .set R_SOURCE,R_SOURCE_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_T_EQ_RF7 - .exitm - .endif - .err - .print "@operand1@ - Invalid operand" - - .endm ; end of select_T_operand macro definition - -; -; MACRO NAME : select_destination -; -; FUNCTION : Given a destination, determine if the operand is from the -; register file, and if so, set the appropriate bits in -; the current instruction word. In addition, set the -; variable DESTINATION to DESTINATION_29000 or -; DESTINATION_29027 as appropriate -; -; PARAMETER : destination - one of the possible destination operands -; - .macro select_destination,destination - .ifeqs "@destination@","rtn0" - .set DESTINATION,DESTINATION_29000 - .exitm - .endif - .ifeqs "@destination@","FP0" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF0 - .exitm - .endif - .ifeqs "@destination@","FP1" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF1 - .exitm - .endif - .ifeqs "@destination@","FP2" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF2 - .exitm - .endif - .ifeqs "@destination@","FP3" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF3 - .exitm - .endif - .ifeqs "@destination@","FP4" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF4 - .exitm - .endif - .ifeqs "@destination@","FP5" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF5 - .exitm - .endif - .ifeqs "@destination@","FP6" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF6 - .exitm - .endif - .ifeqs "@destination@","FP7" - .set DESTINATION,DESTINATION_29027 - .set CURRENT_INSTRUCTION, CURRENT_INSTRUCTION | CP_DEST_EQ_RF7 - .exitm - .endif - .err - .print "@destination@ - Invalid operand" - - .endm ; end of select_destination macro definition - -; MACRO NAME : initialize_previous_instruction -; -; FUNCTION : Make sure the previous instruction is defined and set to zero -; - .macro initialize_previous_instruction - - .ifndef PREVIOUS_INSTRUCTION - ; - ; Make sure that the previous instruction variable is initialized - ; - .set PREVIOUS_INSTRUCTION,0 - .endif - - .endm ; end of initialize_previous_instruction macro definition - - -; MACRO NAME : prepare_function_parameters -; -; FUNCTION : To place the input parameters into the correct position for -; use by the function body. When the target language is -; FORTRAN, the values of the input arguments are read from the -; supplied addresses and moved to the t0-t3 temporary area. -; When the target language is C or Pascal, the values of the -; input arguments are simply moved to the t0-t3 temporary area. -; - .macro prepare_function_parameters,arg1,arg2 - - .if $narg==0 - .err - .print "Missing function argument(s)" - .exitm - .endif - - .if $narg>2 - .err - .print "Too many function arguments - .exitm - .endif - - .if $narg>=1 - .if $isreg(@arg1) - .ifdef FORTRAN - load 0,0,t0,arg1 - .if ( FUNCTION_TYPE == DOUBLE_FUNCTION ) - add t1,arg1,4 - load 0,0,t1,t1 - .endif - .else - add t0,arg1,0 - .if ( FUNCTION_TYPE == DOUBLE_FUNCTION ) - add t1,%%(&arg1+1),0 - .endif - .endif - .else - .err - .print "Function argument not register - @arg1@" - .endif - .endif - .if $narg==2 - .if $isreg (@arg2) - .ifdef FORTRAN - load 0,0,t2,arg2 - .if ( FUNCTION_TYPE == DOUBLE_FUNCTION ) - add t3,arg2,4 - load 0,0,t3,t3 - .endif - .else - add t2,arg2,0 - .if ( FUNCTION_TYPE == DOUBLE_FUNCTION ) - add t3,%%(&arg2+1),0 - .endif - .endif - .else - .err - .print "Function argument not register - @arg2@" - .endif - .endif - - .endm ; end of prepare_function_parameters macro definition - -; end of smartmac.h file diff --git a/newlib/libc/sys/a29khif/sys/sysmac.h b/newlib/libc/sys/a29khif/sys/sysmac.h deleted file mode 100644 index 01ff9ee..0000000 --- a/newlib/libc/sys/a29khif/sys/sysmac.h +++ /dev/null @@ -1,165 +0,0 @@ -; @(#)sysmac.h 1.7 90/10/14 20:56:17, Copyright 1988, 1989, 1990 AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1988, 1989, 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; -; sysmac.h -; - .include "sys/proreg.h" - -; Supported system call function numbers - BSD emulation - - .equ BSD_exit, 1 - .equ BSD_open, 5 - .equ BSD_close, 6 - .equ BSD_remove, 10 - .equ BSD_lseek, 19 - .equ BSD_sbrk, 69 - .equ BSD_readv, 120 - .equ BSD_writev, 121 - .equ BSD_rename, 128 -; Functions above 0x100 are handled by Am29000 code - .equ BSD_alloc, 0x101 - .equ BSD_free, 0x102 - .equ BSD_getpagesize, 0x103 - - .equ BSD_clock, 0x111 - -; Supported system call function numbers - HIF version 2.0 - - .equ HIF_exit, 0x01 - - .equ HIF_open, 0x11 - .equ HIF_close, 0x12 - .equ HIF_read, 0x13 - .equ HIF_write, 0x14 - .equ HIF_lseek, 0x15 - .equ HIF_remove, 0x16 - .equ HIF_rename, 0x17 - .equ HIF_ioctl, 0x18 - .equ HIF_iowait, 0x19 - .equ HIF_iostat, 0x1a - - .equ HIF_tmpnam, 0x21 - - .equ HIF_time, 0x31 - - .equ HIF_getenv, 0x41 - .equ HIF_gettz, 0x43 - - .equ HIF_sysalloc, 0x101 - .equ HIF_alloc, HIF_sysalloc ;Synonym. - .equ HIF_sysfree, 0x102 - .equ HIF_free, HIF_sysfree ;Synonym. - .equ HIF_getpsize, 0x103 - .equ HIF_getpagesize,HIF_getpsize ;Synonym. - .equ HIF_getargs, 0x104 - - .equ HIF_clock, 0x111 - .equ HIF_cycles, 0x112 - - .equ HIF_setvec, 0x121 - .equ HIF_settrap, 0x122 - .equ HIF_setim, 0x123 - - .equ HIF_query, 0x131 - - .equ HIF_signal, 0x141 - .equ HIF_sigdfl, 0x142 - .equ HIF_sigret, 0x143 - .equ HIF_sigrep, 0x144 - .equ HIF_sigskp, 0x145 - .equ HIF_sendsig, 0x146 - -;Maintain compatibility with HIF 1.0 code. - - .equ EPI_exit, HIF_exit - - .equ EPI_open, HIF_open - .equ EPI_close, HIF_close - .equ EPI_read, HIF_read - .equ EPI_write, HIF_write - .equ EPI_lseek, HIF_lseek - .equ EPI_remove, HIF_remove - .equ EPI_rename, HIF_rename - - .equ EPI_tmpnam, HIF_tmpnam - - .equ EPI_time, HIF_time - - .equ EPI_getenv, HIF_getenv - .equ EPI_gettz, HIF_gettz - .equ EPI_alloc, HIF_sysalloc - .equ EPI_free, HIF_sysfree - .equ EPI_getpagesize, HIF_getpsize - .equ EPI_getargs, HIF_getargs - - .equ EPI_clock, HIF_clock - .equ EPI_cycles, HIF_cycles - - .equ EPI_setvec, HIF_setvec - - .equ V_SYSCALL, 69 - -; System call macros -/* Now that source files have been sed'd to avoid these macros, they - are just commented out. -- gnu@cygnus.com Oct 90 - - .ifdef _BSD_OS - .equ V_SYSCALL, 66 - .else - .equ V_SYSCALL, 69 - .endif - - .macro syscall, name - .ifdef _BSD_OS - const tav, SYS_@name - .else - const tav, HIF_@name - .endif - asneq V_SYSCALL, gr1, gr1 - .endm - -; error return -; set errno to the error value in tav. -; return -1 -; - .macro returnerr -;; .extern _errno ; rather have undef'd sym than multiple def's - const tpc, _errno - consth tpc, _errno - store 0, 0, tav, tpc - jmpi lr0 - constn v0, -1 - .endm - -; package the most common case in one macro -; - .macro system, name - syscall name - jmpti tav, lr0 - returnerr - .endm - */ diff --git a/newlib/libc/sys/a29khif/systime.s b/newlib/libc/sys/a29khif/systime.s deleted file mode 100644 index 95b1933..0000000 --- a/newlib/libc/sys/a29khif/systime.s +++ /dev/null @@ -1,44 +0,0 @@ -; @(#)systime.s 1.2 90/10/14 21:57:59, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; _time.s -; time_t secs = time( time_t *secs ); -; -; NOTE - Will not work on BSD (no time sys call) -; - .file "systime.s" - .include "sys/sysmac.h" - .text - .word 0x00030000 ; Debugger tag word - .global _time -_time: - const tav,HIF_time @ asneq V_SYSCALL,gr1,gr1 - cpeq gr97, lr2, 0 - jmpti gr97, lr0 - nop - jmpi lr0 - store 0, 0, gr96, lr2 - .end diff --git a/newlib/libc/sys/a29khif/vec.s b/newlib/libc/sys/a29khif/vec.s deleted file mode 100644 index 5a7083a..0000000 --- a/newlib/libc/sys/a29khif/vec.s +++ /dev/null @@ -1,35 +0,0 @@ -; @(#)vec.s 1.2 90/10/14 21:58:01, AMD -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; Copyright 1990 Advanced Micro Devices, Inc. -; -; This software is the property of Advanced Micro Devices, Inc (AMD) which -; specifically grants the user the right to modify, use and distribute this -; software provided this notice is not removed or altered. All other rights -; are reserved by AMD. -; -; AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS -; SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL -; DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR -; USE OF THIS SOFTWARE. -; -; So that all may benefit from your experience, please report any problems -; or suggestions about this software to the 29K Technical Support Center at -; 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or -; 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118. -; -; Advanced Micro Devices, Inc. -; 29K Support Products -; Mail Stop 573 -; 5900 E. Ben White Blvd. -; Austin, TX 78741 -; 800-292-9263 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - .global V_SPILL, V_FILL - .global V_EPI_OS, V_BSD_OS - - .equ V_SPILL, 64 - .equ V_FILL, 65 - - .equ V_BSD_OS, 66 - .equ V_EPI_OS, 69 - .end diff --git a/newlib/libc/sys/aclocal.m4 b/newlib/libc/sys/aclocal.m4 deleted file mode 100644 index 5e10579..0000000 --- a/newlib/libc/sys/aclocal.m4 +++ /dev/null @@ -1,358 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - -# Define a conditional. - -AC_DEFUN(AM_CONDITIONAL, -[AC_SUBST($1_TRUE) -AC_SUBST($1_FALSE) -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi]) - diff --git a/newlib/libc/sys/arm/Makefile.am b/newlib/libc/sys/arm/Makefile.am deleted file mode 100644 index 1af0f8d..0000000 --- a/newlib/libc/sys/arm/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = syscalls.c libcfunc.c trap.S setjmp.S - -all: crt0.o - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/arm/Makefile.in b/newlib/libc/sys/arm/Makefile.in deleted file mode 100644 index 70d9003..0000000 --- a/newlib/libc/sys/arm/Makefile.in +++ /dev/null @@ -1,299 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = syscalls.c libcfunc.c trap.S setjmp.S - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -lib_a_LIBADD = -lib_a_OBJECTS = syscalls.o libcfunc.o trap.o setjmp.o -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = $(lib_a_SOURCES) -OBJECTS = $(lib_a_OBJECTS) - -all: Makefile $(LIBRARIES) - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../../acinclude.m4 \ - ../../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) - -rm -f lib.a - $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(RANLIB) lib.a - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done -info: -dvi: -check: - $(MAKE) $(AM_MAKEFLAGS) -installcheck: -install-info: -install-exec: - @$(NORMAL_INSTALL) - -install-data: - @$(NORMAL_INSTALL) - -install: install-exec install-data all - @: - -uninstall: - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - -distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - -maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir info dvi installcheck \ -install-info install-exec install-data install uninstall all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - -all: crt0.o - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/arm/aclocal.m4 b/newlib/libc/sys/arm/aclocal.m4 deleted file mode 100644 index a1bb15b..0000000 --- a/newlib/libc/sys/arm/aclocal.m4 +++ /dev/null @@ -1,345 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - diff --git a/newlib/libc/sys/arm/configure b/newlib/libc/sys/arm/configure deleted file mode 100644 index fce3693..0000000 --- a/newlib/libc/sys/arm/configure +++ /dev/null @@ -1,1598 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=trap.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../../.. $srcdir/../../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - fi -else - newlib_basedir="${srcdir}/../../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/newlib/libc/sys/arm/configure.in b/newlib/libc/sys/arm/configure.in deleted file mode 100644 index eeac488..0000000 --- a/newlib/libc/sys/arm/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -dnl This is the newlib/libc/sys/arm configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(trap.S) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../../..) - -NEWLIB_CONFIGURE(../../..) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S deleted file mode 100644 index cee49e6..0000000 --- a/newlib/libc/sys/arm/crt0.S +++ /dev/null @@ -1,243 +0,0 @@ -#include "swi.h" - -/* ANSI concatenation macros. */ -#define CONCAT(a, b) CONCAT2(a, b) -#define CONCAT2(a, b) a ## b - -#ifdef __USER_LABEL_PREFIX__ -#define FUNCTION( name ) CONCAT (__USER_LABEL_PREFIX__, name) -#else -#error __USER_LABEL_PREFIX is not defined -#endif - -/* .text is used instead of .section .text so it works with arm-aout too. */ - .text - .code 32 - .align 0 - - .global _mainCRTStartup - .global _start - .global start -start: -_start: -_mainCRTStartup: - -/* Start by setting up a stack */ -#ifdef ARM_RDP_MONITOR - /* Issue Demon SWI to read stack info */ - swi SWI_GetEnv /* Returns command line in r0 */ - mov sp,r1 /* and the highest memory address in r1 */ - ldr sl, .LC2 /* stack limit is at end of data */ - add sl, sl, #256 /* allow slop for stack overflow handling */ - /* and small frames */ -#else -#ifdef ARM_RDI_MONITOR - /* Issue Angel SWI to read stack info */ - mov r0, #AngelSWI_Reason_HeapInfo - adr r1, .LC0 /* point at ptr to 4 words to receive data */ - swi AngelSWI_ARM /* We are always in ARM mode for startup */ - ldr r0, .LC0 /* point at values read */ - ldr sp, [r0, #8] - ldr sl, [r0, #12] - add sl, sl, #256 /* allow slop for stack overflow handling */ - /* and small frames */ -#else - /* Set up the stack pointer to a fixed value */ - ldr r3, .LC0 - mov sp, r3 - /* Setup a default stack-limit in-case the code has been - compiled with "-mapcs-stack-check". Hard-wiring this value - is not ideal, since there is currently no support for - checking that the heap and stack have not collided, or that - this default 64k is enough for the program being executed. - However, it ensures that this simple crt0 world will not - immediately cause an overflow event: */ - sub sl, sp, #64 << 10 /* Still assumes 256bytes below sl */ -#endif -#endif - mov a2, #0 /* Second arg: fill value */ - mov fp, a2 /* Null frame pointer */ - mov r7, a2 /* Null frame pointer for Thumb */ - - ldr a1, .LC1 /* First arg: start of memory block */ - ldr a3, .LC2 - sub a3, a3, a1 /* Third arg: length of block */ - - -#ifdef __thumb__ /* Enter Thumb mode.... */ - - add a4, pc, #1 /* Get the address of the Thumb block */ - bx a4 /* Go there and start Thumb decoding */ - - .code 16 - .global change_mode -change_mode: -#endif - - bl FUNCTION (memset) -#if !defined (ARM_RDP_MONITOR) && !defined (ARM_RDI_MONITOR) - mov r0, #0 /* no arguments */ - mov r1, #0 /* no argv either */ -#else - /* Need to set up standard file handles */ - bl FUNCTION (initialise_monitor_handles) - -#ifdef ARM_RDP_MONITOR - swi SWI_GetEnv /* sets r0 to point to the command line */ - mov r1, r0 -#else - mov r0, #AngelSWI_Reason_GetCmdLine - adr r1, .LC30 /* Space for command line */ - swi AngelSWI - ldr r1, .LC30 -#endif - /* Parse string at r1 */ - mov r0, #0 /* count of arguments so far */ -.LC10: -/* Skip leading blanks */ -#ifdef __thumb__ - ldrb r3, [r1] - add r1, #1 -#else - ldrb r3, [r1], #1 -#endif - cmp r3, #0 - beq .LC12 - cmp r3, #' ' - beq .LC10 - -/* See whether we are scanning a string */ - cmp r3, #'"' -#ifdef __thumb__ - beq .LC20 - cmp r3, #'\'' - bne .LC21 -.LC20: - mov r2, r3 - b .LC22 - -.LC21: - mov r2, #' ' /* terminator type */ - sub r1, r1, #1 /* adjust back to point at start char */ -.LC22: -#else - cmpne r3, #'\'' - moveq r2, r3 - movne r2, #' ' /* terminator type */ - subne r1, r1, #1 /* adjust back to point at start char */ -#endif - -/* Stack a pointer to the current argument */ -#ifdef __thumb__ - push {r1} -#else - stmfd sp!, {r1} -#endif - add r0, r0, #1 -.LC11: -#ifdef __thumb__ - ldrb r3, [r1] - add r1, #1 -#else - ldrb r3, [r1], #1 -#endif - cmp r3, #0 - beq .LC12 - cmp r2, r3 /* reached terminator? */ - bne .LC11 - mov r2, #0 - sub r3, r1, #1 - strb r2, [r3] /* terminate the arg string */ - b .LC10 - -.LC12: - mov r1, sp /* point at stacked arg pointers */ - /* We've now got the stacked args in order reverse the */ -#ifdef __thumb__ - mov r2, r0 - lsl r2, #2 - add r2, sp - mov r3, sp -.LC15: cmp r2, r3 - bls .LC14 - sub r2, #4 - ldr r4, [r2] - ldr r5, [r3] - str r5, [r2] - str r4, [r3] - add r3, #4 - b .LC15 -.LC14: -#else - add r2, sp, r0, LSL #2 /* End of args */ - mov r3, sp /* Start of args */ -.LC13: cmp r2, r3 - ldrhi r4,[r2, #-4] /* Reverse ends of list */ - ldrhi r5, [r3] - strhi r5, [r2, #-4]! - strhi r4, [r3], #4 - bhi .LC13 -#endif - -#endif - bl FUNCTION (main) - - bl FUNCTION (exit) /* Should not return */ - -#ifdef __thumb__ - /* Come out of Thumb mode... This code should be redundant... */ - - mov a4, pc - bx a4 - - .code 32 - .global change_back -change_back: - /* Halt the execution. This code should never be executed. */ - /* - ** With no debug monitor, this probably aborts (eventually). - ** With a Demon debug monitor, this halts cleanly. - ** With an Angel debug monitor, this will report 'Unknown SWI'. - */ - swi SWI_Exit -#endif - - /* For Thumb, constants must be after the code since only - positive offsets are supported for PC relative addresses. */ - - .align 0 -.LC0: -#ifdef ARM_RDI_MONITOR - .word HeapBase -#else -#ifndef ARM_RDP_MONITOR -#ifdef __pe__ - .word 0x800000 -#else -/* .word 0x80000 */ /* Top of RAM on the PIE board */ -#endif -#endif -#endif -.LC1: - .word __bss_start__ -.LC2: - .word __bss_end__ - -#ifdef ARM_RDI_MONITOR -.LC30: .word CommandLine - -/* Workspace for Angel calls. */ - .data -/* Data returned by monitor SWI */ -HeapBase: .word 0 -HeapLimit: .word 0 -StackBase: .word 0 -StackLimit: .word 0 -CommandLine: .space 256,0 /* Maximum length of 255 chars handled */ -#endif - -#ifdef __pe__ - .section .idata$3 - .long 0,0,0,0,0,0,0,0 -#endif - diff --git a/newlib/libc/sys/arm/libcfunc.c b/newlib/libc/sys/arm/libcfunc.c deleted file mode 100644 index 9825ccc..0000000 --- a/newlib/libc/sys/arm/libcfunc.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Support files for GNU libc. Files in the C namespace go here. - Files in the system namespace (ie those that start with an underscore) - go in syscalls.c. - - Note: These functions are in a seperate file so that OS providers can - overrride the system call stubs (defined in syscalls.c) without having - to provide libc funcitons as well. */ -#include "swi.h" - -#ifdef ARM_RDI_MONITOR - -static inline int -do_AngelSWI (int reason, void * arg) -{ - int value; - asm volatile ("mov r0, %1; mov r1, %2; swi %a3; mov %0, r0" - : "=r" (value) /* Outputs */ - : "r" (reason), "r" (arg), "i" (AngelSWI) /* Inputs */ - : "r0", "r1", "lr" - /* Clobbers r0 and r1, and lr if in supervisor mode */); - return value; -} -#endif /* ARM_RDI_MONITOR */ - - -void -abort (void) -{ -#ifdef ARM_RDI_MONITOR - do_AngelSWI (AngelSWI_Reason_ReportException, - (void *) ADP_Stopped_RunTimeError); -#else - asm ("mov r0,#17\nswi %a0" :: "i" (SWI_Exit)); -#endif -} - -isatty (int fd) -{ - return 1; -} - -void -alarm (void) -{ -} diff --git a/newlib/libc/sys/arm/setjmp.S b/newlib/libc/sys/arm/setjmp.S deleted file mode 100644 index eab8e21..0000000 --- a/newlib/libc/sys/arm/setjmp.S +++ /dev/null @@ -1,102 +0,0 @@ -/* This is a simple version of setjmp and longjmp. - - Nick Clifton, Cygnus Solutions, 13 June 1997. */ - -/* ANSI concatenation macros. */ -#define CONCAT(a, b) CONCAT2(a, b) -#define CONCAT2(a, b) a ## b - -#ifdef __USER_LABEL_PREFIX__ -#define FUNCTION( name ) CONCAT (__USER_LABEL_PREFIX__, name) -#else -#error __USER_LABEL_PREFIX__ is not defined -#endif - - - .text - .code 32 - .align 2 - -/* int setjmp (jmp_buf); */ - .globl FUNCTION(setjmp) -FUNCTION(setjmp): - - /* Save all the callee-preserved registers into the jump buffer. */ - stmea a1!, { v1-v7, fp, ip, sp, lr } - -#if 0 /* Simulator does not cope with FP instructions yet.... */ -#ifndef __SOFTFP__ - /* Save the floating point registers */ - sfmea f4, 4, [a1] -#endif -#endif - /* When setting up the jump buffer return 0. */ - mov a1, #0 - - /* Return to caller, see comment in longjmp below */ -#ifdef __APCS_26__ - movs pc, lr -#else - tst lr, #1 - moveq pc, lr -.word 0xe12fff1e /* bx lr */ -#endif - - -/* volatile void longjmp (jmp_buf, int); */ - .globl FUNCTION(longjmp) -FUNCTION(longjmp): - - /* If we have stack extension code it ought to be handled here. */ - - /* Restore the registers, retrieving the state when setjmp() was called. */ - ldmfd a1!, { v1-v7, fp, ip, sp, lr } - -#if 0 /* Simulator does not cope with FP instructions yet.... */ -#ifndef __SOFTFP__ - /* Restore floating point registers as well */ - lfmfd f4, 4, [a1] -#endif -#endif - /* Put the return value into the integer result register. - But if it is zero then return 1 instead. */ - movs a1, a2 - moveq a1, #1 - - /* Arm/Thumb interworking support: - - The interworking scheme expects functions to use a BX instruction - to return control to their parent. Since we need this code to work - in both interworked and non-interworked environments as well as with - older processors which do not have the BX instruction we do the - following: - Test the return address. - If the bottom bit is clear perform an "old style" function exit. - (We know that we are in ARM mode and returning to an ARM mode caller). - Otherwise use the BX instruction to perform the function exit. - - We know that we will never attempt to perform the BX instruction on - an older processor, because that kind of processor will never be - interworked, and a return address with the bottom bit set will never - be generated. - - In addition, we do not actually assemble the BX instruction as this would - require us to tell the assembler that the processor is an ARM7TDMI and - it would store this information in the binary. We want this binary to be - able to be linked with binaries compiled for older processors however, so - we do not want such information stored there. - - If we are running using the APCS-26 convention however, then we never - test the bottom bit, because this is part of the processor status. - Instead we just do a normal return, since we know that we cannot be - returning to a Thumb caller - the Thumb doe snot support APCS-26 - */ - -#ifdef __APCS_26__ - movs pc, lr -#else - tst lr, #1 - moveq pc, lr -.word 0xe12fff1e /* bx lr */ -#endif - diff --git a/newlib/libc/sys/arm/swi.h b/newlib/libc/sys/arm/swi.h deleted file mode 100644 index 91fad59..0000000 --- a/newlib/libc/sys/arm/swi.h +++ /dev/null @@ -1,65 +0,0 @@ - -/***************************************************************************\ -* SWI numbers * -\***************************************************************************/ - -/* SWI numbers for RDP (Demon) monitor */ -#define SWI_WriteC 0x0 -#define SWI_Write0 0x2 -#define SWI_ReadC 0x4 -#define SWI_CLI 0x5 -#define SWI_GetEnv 0x10 -#define SWI_Exit 0x11 -#define SWI_EnterOS 0x16 - -#define SWI_GetErrno 0x60 -#define SWI_Clock 0x61 -#define SWI_Time 0x63 -#define SWI_Remove 0x64 -#define SWI_Rename 0x65 -#define SWI_Open 0x66 - -#define SWI_Close 0x68 -#define SWI_Write 0x69 -#define SWI_Read 0x6a -#define SWI_Seek 0x6b -#define SWI_Flen 0x6c - -#define SWI_IsTTY 0x6e -#define SWI_TmpNam 0x6f -#define SWI_InstallHandler 0x70 -#define SWI_GenerateError 0x71 - - -/* Now the SWI numbers and reason codes for RDI (Angel) monitors */ -#define AngelSWI_ARM (0x123456) -#ifdef __thumb__ -#define AngelSWI (0xAB) -#else -#define AngelSWI AngelSWI_ARM -#endif - -/* The reason codes: */ -#define AngelSWI_Reason_Open (0x01) -#define AngelSWI_Reason_Close (0x02) -#define AngelSWI_Reason_WriteC (0x03) -#define AngelSWI_Reason_Write0 (0x04) -#define AngelSWI_Reason_Write (0x05) -#define AngelSWI_Reason_Read (0x06) -#define AngelSWI_Reason_ReadC (0x07) -#define AngelSWI_Reason_IsTTY (0x09) -#define AngelSWI_Reason_Seek (0x0A) -#define AngelSWI_Reason_FLen (0x0C) -#define AngelSWI_Reason_TmpNam (0x0D) -#define AngelSWI_Reason_Remove (0x0E) -#define AngelSWI_Reason_Rename (0x0F) -#define AngelSWI_Reason_Clock (0x10) -#define AngelSWI_Reason_Time (0x11) -#define AngelSWI_Reason_System (0x12) -#define AngelSWI_Reason_Errno (0x13) -#define AngelSWI_Reason_GetCmdLine (0x15) -#define AngelSWI_Reason_HeapInfo (0x16) -#define AngelSWI_Reason_EnterSVC (0x17) -#define AngelSWI_Reason_ReportException (0x18) -#define ADP_Stopped_ApplicationExit ((2 << 16) + 38) -#define ADP_Stopped_RunTimeError ((2 << 16) + 34) diff --git a/newlib/libc/sys/arm/sys/param.h b/newlib/libc/sys/arm/sys/param.h deleted file mode 100644 index 968c8ef..0000000 --- a/newlib/libc/sys/arm/sys/param.h +++ /dev/null @@ -1,10 +0,0 @@ -/* ARM configuration file; HZ is 100 rather than the default 60 */ - -#ifndef _SYS_PARAM_H -# define _SYS_PARAM_H - -# define HZ (100) -# define NOFILE (60) -# define PATHSIZE (1024) - -#endif diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c deleted file mode 100644 index f9dc4d9..0000000 --- a/newlib/libc/sys/arm/syscalls.c +++ /dev/null @@ -1,504 +0,0 @@ -/* Support files for GNU libc. Files in the system namespace go here. - Files in the C namespace (ie those that do not start with an - underscore) go in .c. */ - -#include <_ansi.h> -#include -#include -#include -#include -#include -#include -#include -#include -#include "swi.h" - -/* Adjust our internal handles to stay away from std* handles */ -#define FILE_HANDLE_OFFSET (0x20) - -static int monitor_stdin; -static int monitor_stdout; -static int monitor_stderr; - -/* Struct used to keep track of the file position, just so we - can implement fseek(fh,x,SEEK_CUR). */ -typedef struct -{ - int handle; - int pos; -} -poslog; - -#define MAX_OPEN_FILES 20 -static poslog openfiles [MAX_OPEN_FILES]; - -static int -findslot (int fh) -{ - int i; - for (i = 0; i < MAX_OPEN_FILES; i ++) - if (openfiles[i].handle == fh) - break; - return i; -} - -#ifdef ARM_RDI_MONITOR - -static inline int -do_AngelSWI (int reason, void * arg) -{ - int value; - asm volatile ("mov r0, %1; mov r1, %2; swi %a3; mov %0, r0" - : "=r" (value) /* Outputs */ - : "r" (reason), "r" (arg), "i" (AngelSWI) /* Inputs */ - : "r0", "r1", "lr" - /* Clobbers r0 and r1, and lr if in supervisor mode */); - return value; -} -#endif /* ARM_RDI_MONITOR */ - -/* Function to convert std(in|out|err) handles to internal versions */ -static int -remap_handle (int fh) -{ - if (fh == __sfileno (stdin)) - return monitor_stdin; - if (fh == __sfileno (stdout)) - return monitor_stdout; - if (fh == __sfileno (stderr)) - return monitor_stderr; - - return fh - FILE_HANDLE_OFFSET; -} - -void -initialise_monitor_handles (void) -{ - int i; - -#ifdef ARM_RDI_MONITOR - int block[3]; - - block[0] = (int) ":tt"; - block[2] = 3; /* length of filename */ - block[1] = 0; /* mode "r" */ - monitor_stdin = do_AngelSWI (AngelSWI_Reason_Open, block); - - block[0] = (int) ":tt"; - block[2] = 3; /* length of filename */ - block[1] = 4; /* mode "w" */ - monitor_stdout = monitor_stderr = do_AngelSWI (AngelSWI_Reason_Open, block); -#else - int fh; - const char * name; - - name = ":tt"; - asm ("mov r0,%2; mov r1, #0; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(name) - : "r0","r1"); - monitor_stdin = fh; - - name = ":tt"; - asm ("mov r0,%2; mov r1, #4; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(name) - : "r0","r1"); - monitor_stdout = monitor_stderr = fh; -#endif - - for (i = 0; i < MAX_OPEN_FILES; i ++) - openfiles[i].handle = -1; - - openfiles[0].handle = monitor_stdin; - openfiles[0].pos = 0; - openfiles[1].handle = monitor_stdout; - openfiles[1].pos = 0; -} - -static int -get_errno () -{ -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_Errno, NULL); -#else - asm ("swi %a0" :: "i" (SWI_GetErrno)); -#endif -} - -static int -error (int result) -{ - errno = get_errno (); - return result; -} - -static int -wrap (int result) -{ - if (result == -1) - return error (-1); - return result; -} - -/* Returns # chars not! written */ - -int -_swiread (int file, - char * ptr, - int len) -{ - int fh = remap_handle (file); -#ifdef ARM_RDI_MONITOR - int block[3]; - - block[0] = fh; - block[1] = (int) ptr; - block[2] = len; - - return do_AngelSWI (AngelSWI_Reason_Read, block); -#else - asm ("mov r0, %1; mov r1, %2;mov r2, %3; swi %a0" - : /* No outputs */ - : "i"(SWI_Read), "r"(fh), "r"(ptr), "r"(len) - : "r0","r1","r2"); -#endif -} - -int -_read (int file, - char * ptr, - int len) -{ - int slot = findslot (remap_handle (file)); - int x = _swiread (file, ptr, len); - - if (x < 0) - return error (-1); - - if (slot != MAX_OPEN_FILES) - openfiles [slot].pos += len - x; - - /* x == len is not an error, at least if we want feof() to work */ - return len - x; -} - -int -_swilseek (int file, - int ptr, - int dir) -{ - int res; - int fh = remap_handle (file); - int slot = findslot (fh); -#ifdef ARM_RDI_MONITOR - int block[2]; -#endif - - if (dir == SEEK_CUR) - { - if (slot == MAX_OPEN_FILES) - return -1; - ptr = openfiles[slot].pos + ptr; - dir = SEEK_SET; - } - -#ifdef ARM_RDI_MONITOR - if (dir == SEEK_END) - { - block[0] = fh; - ptr += do_AngelSWI (AngelSWI_Reason_FLen, block); - } - - /* This code only does absolute seeks */ - block[0] = remap_handle (file); - block[1] = ptr; - res = do_AngelSWI (AngelSWI_Reason_Seek, block); -#else - if (dir == SEEK_END) - { - asm ("mov r0, %2; swi %a1; mov %0, r0" - : "=r" (res) - : "i" (SWI_Flen), "r" (fh) - : "r0"); - ptr += res; - } - - /* This code only does absolute seeks */ - asm ("mov r0, %2; mov r1, %3; swi %a1; mov %0, r0" - : "=r" (res) - : "i" (SWI_Seek), "r" (fh), "r" (ptr) - : "r0", "r1"); -#endif - - if (slot != MAX_OPEN_FILES && res == 0) - openfiles[slot].pos = ptr; - - /* This is expected to return the position in the file */ - return res == 0 ? ptr : -1; -} - -int -_lseek (int file, - int ptr, - int dir) -{ - return wrap (_swilseek (file, ptr, dir)); -} - -/* Returns #chars not! written */ -int -_swiwrite ( - int file, - char * ptr, - int len) -{ - int fh = remap_handle (file); -#ifdef ARM_RDI_MONITOR - int block[3]; - - block[0] = fh; - block[1] = (int) ptr; - block[2] = len; - - return do_AngelSWI (AngelSWI_Reason_Write, block); -#else - asm ("mov r0, %1; mov r1, %2;mov r2, %3; swi %a0" - : /* No outputs */ - : "i"(SWI_Write), "r"(fh), "r"(ptr), "r"(len) - : "r0","r1","r2"); -#endif -} - -int -_write (int file, - char * ptr, - int len) -{ - int slot = findslot (remap_handle (file)); - int x = _swiwrite (file, ptr,len); - - if (x == -1 || x == len) - return error (-1); - - if (slot != MAX_OPEN_FILES) - openfiles[slot].pos += len - x; - - return len - x; -} - -int -_swiopen (const char * path, - int flags) -{ - int aflags = 0, fh; -#ifdef ARM_RDI_MONITOR - int block[3]; -#endif - - int i = findslot (-1); - - if (i == MAX_OPEN_FILES) - return -1; - - /* The flags are Unix-style, so we need to convert them */ -#ifdef O_BINARY - if (flags & O_BINARY) - aflags |= 1; -#endif - - if (flags & O_RDWR) - aflags |= 2; - - if (flags & O_CREAT) - aflags |= 4; - - if (flags & O_TRUNC) - aflags |= 4; - - if (flags & O_APPEND) - { - aflags &= ~4; /* Can't ask for w AND a; means just 'a' */ - aflags |= 8; - } - -#ifdef ARM_RDI_MONITOR - block[0] = (int) path; - block[2] = strlen (path); - block[1] = aflags; - - fh = do_AngelSWI (AngelSWI_Reason_Open, block); - -#else - asm ("mov r0,%2; mov r1, %3; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(path),"r"(aflags) - : "r0","r1"); -#endif - - if (fh >= 0) - { - openfiles[i].handle = fh; - openfiles[i].pos = 0; - } - - return fh >= 0 ? fh + FILE_HANDLE_OFFSET : error (fh); -} - -int -_open (const char * path, - int flags, - ...) -{ - return wrap (_swiopen (path, flags)); -} - -int -_swiclose (int file) -{ - int myhan = remap_handle (file); - int slot = findslot (myhan); - - if (slot != MAX_OPEN_FILES) - openfiles[slot].handle = -1; - -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_Close, & myhan); -#else - asm ("mov r0, %1; swi %a0" :: "i" (SWI_Close),"r"(myhan):"r0"); -#endif -} - -int -_close (int file) -{ - return wrap (_swiclose (file)); -} - -void -_exit (int n) -{ - /* FIXME: return code is thrown away */ - -#ifdef ARM_RDI_MONITOR - do_AngelSWI (AngelSWI_Reason_ReportException, - (void *) ADP_Stopped_ApplicationExit); -#else - asm ("swi %a0" :: "i" (SWI_Exit)); -#endif -} - -int -_kill (int n, int m) -{ -#ifdef ARM_RDI_MONITOR - do_AngelSWI (AngelSWI_Reason_ReportException, - (void *) ADP_Stopped_ApplicationExit); -#else - asm ("swi %a0" :: "i" (SWI_Exit)); -#endif -} - -int -_getpid (int n) -{ - return 1; -} - -register char * stack_ptr asm ("sp"); - -caddr_t -_sbrk (int incr) -{ - extern char end asm ("end"); /* Defined by the linker */ - static char * heap_end; - char * prev_heap_end; - - if (heap_end == NULL) - heap_end = & end; - - prev_heap_end = heap_end; - - if (heap_end + incr > stack_ptr) - { - _write (1, "_sbrk: Heap and stack collision\n", 32); - abort (); - } - - heap_end += incr; - - return (caddr_t) prev_heap_end; -} - -int -_fstat (int file, - struct stat * st) -{ - st->st_mode = S_IFCHR; - return 0; -} - -int -_unlink (void) -{ - return -1; -} - -void -_raise (void) -{ -} - -int -_gettimeofday (struct timeval * tp, struct timezone * tzp) -{ - - if (tp) - { - /* Ask the host for the seconds since the Unix epoch */ -#ifdef ARM_RDI_MONITOR - tp->tv_sec = do_AngelSWI (AngelSWI_Reason_Time,NULL); -#else - { - int value; - asm ("swi %a1; mov %0, r0" : "=r" (value): "i" (SWI_Time) : "r0"); - tp->tv_sec = value; - } -#endif - tp->tv_usec = 0; - } - - /* Return fixed data for the timezone */ - if (tzp) - { - tzp->tz_minuteswest = 0; - tzp->tz_dsttime = 0; - } - - return 0; -} - -/* Return a clock that ticks at 100Hz. */ -clock_t -_times(struct tms * tp) -{ - clock_t timeval; - -#ifdef ARM_RDI_MONITOR - timeval = do_AngelSWI (AngelSWI_Reason_Clock,NULL); -#else - asm ("swi %a1; mov %0, r0" : "=r" (timeval): "i" (SWI_Clock) : "r0"); -#endif - - if (tp) - { - tp->tms_utime = timeval; /* user time */ - tp->tms_stime = 0; /* system time */ - tp->tms_cutime = 0; /* user time, children */ - tp->tms_cstime = 0; /* system time, children */ - } - - return timeval; -}; - - diff --git a/newlib/libc/sys/arm/trap.S b/newlib/libc/sys/arm/trap.S deleted file mode 100644 index 328fabc..0000000 --- a/newlib/libc/sys/arm/trap.S +++ /dev/null @@ -1,93 +0,0 @@ - /* Run-time exception support */ -#include "swi.h" - -/* .text is used instead of .section .text so it works with arm-aout too. */ - .text - .align 0 - .global __rt_stkovf_split_big - .global __rt_stkovf_split_small - -/* The following functions are provided for software stack checking. - If hardware stack-checking is being used then the code can be - compiled without the PCS entry checks, and simply rely on VM - management to extend the stack for a thread. - - The stack extension event occurs when the PCS function entry code - would result in a stack-pointer beneath the stack-limit register - value. The system relies on the following map: - - +-----------------------------------+ <-- end of stack block - | ... | - | ... | - | active stack | - | ... | <-- sp (stack-pointer) somewhere in here - | ... | - +-----------------------------------+ <-- sl (stack-limit) - | stack-extension handler workspace | - +-----------------------------------+ <-- base of stack block - - The "stack-extension handler workspace" is an amount of memory in - which the stack overflow support code must execute. It must be - large enough to deal with the worst case path through the extension - code. At the moment the compiler expects this to be AT LEAST - 256bytes. It uses this fact to code functions with small local - data usage within the overflow space. - - In a true target environment We may need to increase the space - between sl and the true limit to allow for the stack extension - code, SWI handlers and for undefined instruction handlers of the - target environment. */ - -__rt_stkovf_split_small: - mov ip,sp @ Ensure we can calculate the stack required - @ and fall through to... -__rt_stkovf_split_big: - @ in: sp = current stack-pointer (beneath stack-limit) - @ sl = current stack-limit - @ ip = low stack point we require for the current function - @ lr = return address into the current function - @ fp = frame-pointer - @ original sp --> +----------------------------------+ - @ | pc (12 ahead of PCS entry store) | - @ current fp ---> +----------------------------------+ - @ | lr (on entry) pc (on exit) | - @ +----------------------------------+ - @ | sp ("original sp" on entry) | - @ +----------------------------------+ - @ | fp (on entry to function) | - @ +----------------------------------+ - @ | | - @ | ..argument and work registers.. | - @ | | - @ current sp ---> +----------------------------------+ - @ - @ The "current sl" is somewhere between "original sp" and "current sp" - @ but above "true sl". The "current sl" should be at least 256bytes - @ above the "true sl". The 256byte stack guard should be large enough - @ to deal with the worst case function entry stacking (160bytes) plus - @ the stack overflow handler stacking requirements, plus the stack - @ required for the memory allocation routines. - @ - @ Normal PCS entry (before stack overflow check) can stack 16 - @ standard registers (64bytes) and 8 floating point registers - @ (96bytes). This gives a minimum stack guard of 160bytes (excluding - @ the stack required for the code). (Actually only a maximum of - @ 14standard registers are ever stacked on entry to a function). - @ - @ NOTE: Structure returns are performed by the caller allocating a - @ dummy space on the stack and passing in a "phantom" arg1 into - @ the function. This means that we do not need to worry about - @ preserving the stack under "sp" even on function return. - @ - @ Code should never poke values beneath sp. The sp register - @ should always be "dropped" first to cover the data. This - @ protects the data against any events that may try and use - @ the stack. - - SUB ip, sp, ip @ extra stack required for function - @ Add stack extension code here. If desired a new stack chunk - @ can be allocated, and the register state updated suitably. - - @ We now know how much extra stack the function requires. - @ Terminate the program for the moment: - swi SWI_Exit diff --git a/newlib/libc/sys/configure b/newlib/libc/sys/configure deleted file mode 100644 index 9c9aaa5..0000000 --- a/newlib/libc/sys/configure +++ /dev/null @@ -1,1720 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=a29khif - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../.. $srcdir/../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../.." - fi -else - newlib_basedir="${srcdir}/../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -if test -n "${sys_dir}"; then - subdirs="${sys_dir}" - -fi - -CRT0= -if test -n "${sys_dir}"; then - CRT0=crt0.o -fi - - - - -if test x${sys_dir} != x; then - HAVE_SYS_DIR_TRUE= - HAVE_SYS_DIR_FALSE='#' -else - HAVE_SYS_DIR_TRUE='#' - HAVE_SYS_DIR_FALSE= -fi - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g -s%@subdirs@%$subdirs%g -s%@CRT0@%$CRT0%g -s%@HAVE_SYS_DIR_TRUE@%$HAVE_SYS_DIR_TRUE%g -s%@HAVE_SYS_DIR_FALSE@%$HAVE_SYS_DIR_FALSE%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - -if test "$no_recursion" != yes; then - - # Remove --cache-file and --srcdir arguments so they do not pile up. - ac_sub_configure_args= - ac_prev= - for ac_arg in $ac_configure_args; do - if test -n "$ac_prev"; then - ac_prev= - continue - fi - case "$ac_arg" in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - ;; - *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; - esac - done - - for ac_config_dir in ${sys_dir}; do - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - if test ! -d $srcdir/$ac_config_dir; then - continue - fi - - echo configuring in $ac_config_dir - - case "$srcdir" in - .) ;; - *) - if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; - else - { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } - fi - ;; - esac - - ac_popdir=`pwd` - cd $ac_config_dir - - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` - - case "$srcdir" in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - /*) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_config_dir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure; then - ac_sub_configure=$ac_sub_srcdir/configure - elif test -f $ac_sub_srcdir/configure.in; then - ac_sub_configure=$ac_configure - else - echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 - ac_sub_configure= - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - - # Make the cache file name correct relative to the subdirectory. - case "$cache_file" in - /*) ac_sub_cache_file=$cache_file ;; - *) # Relative path. - ac_sub_cache_file="$ac_dots$cache_file" ;; - esac - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" - # The eval makes quoting arguments work. - if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir - then : - else - { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } - fi - fi - - cd $ac_popdir - done -fi - diff --git a/newlib/libc/sys/configure.in b/newlib/libc/sys/configure.in deleted file mode 100644 index ea67490..0000000 --- a/newlib/libc/sys/configure.in +++ /dev/null @@ -1,24 +0,0 @@ -dnl This is the newlib/libc/sys configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(a29khif) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../..) - -NEWLIB_CONFIGURE(../..) - -if test -n "${sys_dir}"; then - AC_CONFIG_SUBDIRS(${sys_dir}) -fi - -CRT0= -if test -n "${sys_dir}"; then - CRT0=crt0.o -fi -AC_SUBST(CRT0) - -AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} != x) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/cygwin/Makefile.am b/newlib/libc/sys/cygwin/Makefile.am deleted file mode 100644 index f55a90a..0000000 --- a/newlib/libc/sys/cygwin/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = - -# This is a hack to force automake to include a definition for -# COMPILE. -EXTRA_LIBRARIES = libfoo.a -libfoo_a_SOURCES = crt0.c - -all: crt0.o - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/cygwin/Makefile.in b/newlib/libc/sys/cygwin/Makefile.in deleted file mode 100644 index 21f4afa..0000000 --- a/newlib/libc/sys/cygwin/Makefile.in +++ /dev/null @@ -1,311 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = - -# This is a hack to force automake to include a definition for -# COMPILE. -EXTRA_LIBRARIES = libfoo.a -libfoo_a_SOURCES = crt0.c - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -libfoo_a_LIBADD = -libfoo_a_OBJECTS = crt0.o -lib_a_LIBADD = -lib_a_OBJECTS = -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = $(libfoo_a_SOURCES) $(lib_a_SOURCES) -OBJECTS = $(libfoo_a_OBJECTS) $(lib_a_OBJECTS) - -all: Makefile $(LIBRARIES) - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../../acinclude.m4 \ - ../../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -libfoo.a: $(libfoo_a_OBJECTS) $(libfoo_a_DEPENDENCIES) - -rm -f libfoo.a - $(AR) cru libfoo.a $(libfoo_a_OBJECTS) $(libfoo_a_LIBADD) - $(RANLIB) libfoo.a - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) - -rm -f lib.a - $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(RANLIB) lib.a - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done -info: -dvi: -check: - $(MAKE) $(AM_MAKEFLAGS) -installcheck: -install-info: -install-exec: - @$(NORMAL_INSTALL) - -install-data: - @$(NORMAL_INSTALL) - -install: install-exec install-data all - @: - -uninstall: - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - -distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - -maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir info dvi installcheck \ -install-info install-exec install-data install uninstall all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - -all: crt0.o - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/cygwin/aclocal.m4 b/newlib/libc/sys/cygwin/aclocal.m4 deleted file mode 100644 index a1bb15b..0000000 --- a/newlib/libc/sys/cygwin/aclocal.m4 +++ /dev/null @@ -1,345 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - diff --git a/newlib/libc/sys/cygwin/configure b/newlib/libc/sys/cygwin/configure deleted file mode 100644 index b385057..0000000 --- a/newlib/libc/sys/cygwin/configure +++ /dev/null @@ -1,1598 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=crt0.c - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../../.. $srcdir/../../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - fi -else - newlib_basedir="${srcdir}/../../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/newlib/libc/sys/cygwin/configure.in b/newlib/libc/sys/cygwin/configure.in deleted file mode 100644 index a7179a2..0000000 --- a/newlib/libc/sys/cygwin/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -dnl This is the newlib/libc/sys/cygwin32 configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(crt0.c) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../../..) - -NEWLIB_CONFIGURE(../../..) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/cygwin/crt0.c b/newlib/libc/sys/cygwin/crt0.c deleted file mode 100644 index d6bdd5a..0000000 --- a/newlib/libc/sys/cygwin/crt0.c +++ /dev/null @@ -1,49 +0,0 @@ - -#ifdef __PPC__ -/* For the PowerPC, we want to make this function have its structured - exception table exception function point to something we control. */ - -extern void __cygwin_exception_handler(); -extern void mainCRTStartup(void) __attribute__((__exception__(__cygwin_exception_handler))); -#endif - -/* In the following ifdef'd i386 code, the FPU precision is set to 80 bits - and all FPU exceptions are masked. The former is needed to make long - doubles work correctly. The latter causes the FPU to generate NaNs and - Infinities instead of signals for certain operations. -*/ - -#ifdef __i386__ -#define FPU_RESERVED 0xF0C0 -#define FPU_DEFAULT 0x033f - -/* For debugging on *#!$@ windbg. bp for breakpoint. */ -int __cygwin_crt0_bp = 0; -#endif - -extern int main (int argc, char **argv); - -void -mainCRTStartup () -{ -#ifdef __i386__ - if (__cygwin_crt0_bp) - asm volatile ("int3"); - - { - volatile unsigned short cw; - - /* Get Control Word */ - __asm__ volatile ("fnstcw %0" : "=m" (cw) : ); - - /* mask in */ - cw &= FPU_RESERVED; - cw |= FPU_DEFAULT; - - /* set cw */ - __asm__ volatile ("fldcw %0" :: "m" (cw)); - } -#endif - - cygwin_crt0 (main); -} diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h deleted file mode 100644 index a825d77..0000000 --- a/newlib/libc/sys/cygwin/sys/dirent.h +++ /dev/null @@ -1,55 +0,0 @@ -/* Posix dirent.h for WIN32. */ - -/* Including this file should not require any Windows headers. */ - -#ifndef _SYS_DIRENT_H -#define _SYS_DIRENT_H - -#include - -struct dirent -{ - long __d_reserved[4]; - ino_t d_ino; /* Just for compatibility, it's junk */ - char d_name[256]; /* FIXME: use NAME_MAX? */ -}; - -#define __DIRENT_COOKIE 0xdede4242 - -typedef struct -{ - /* This is first to set alignment in non _COMPILING_NEWLIB case. */ - unsigned long __d_cookie; - struct dirent *__d_dirent; - char *__d_dirname; /* directory name with trailing '*' */ - int __d_find_first_called; /* non-zero if FindFirstFile called */ - unsigned long __d_dirhash; /* hash of directory name for use by - readdir */ - union - { -#ifdef _COMPILING_NEWLIB - struct - { - HANDLE __handle; - char __open_p; - } __d_data; -#endif - char __d_filler[16]; - } __d_u; -} DIR; - -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -void rewinddir (DIR *); -int closedir (DIR *); - -#ifndef _POSIX_SOURCE -int scandir (const char *__dir, - struct dirent ***__namelist, - int (*select) (const struct dirent *), - int (*compar) (const struct dirent **, const struct dirent **)); - -int alphasort (const struct dirent **__a, const struct dirent **__b); -#endif /* _POSIX_SOURCE */ - -#endif diff --git a/newlib/libc/sys/cygwin/sys/param.h b/newlib/libc/sys/cygwin/sys/param.h deleted file mode 100644 index a197db6..0000000 --- a/newlib/libc/sys/cygwin/sys/param.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef _SYS_PARAM_H -#define _SYS_PARAM_H - -#include -/* Linux includes limits.h, but this is not universally done. */ -#include - -/* Max number of open files. The Posix version is OPEN_MAX. */ -/* Number of fds is virtually unlimited in cygwin, but we must provide - some reasonable value for Posix conformance */ -#define NOFILE 8192 - -/* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */ -#define NGROUPS 1 - -/* Ticks/second for system calls such as times() */ -/* FIXME: is this the appropriate value? */ -#define HZ 1000 - -/* Max hostname size that can be dealt with */ -/* FIXME: is this the appropriate value? */ -#define MAXHOSTNAMELEN 64 - -/* This is defined to be the same as MAX_PATH which is used internally. - The Posix version is PATH_MAX. */ -#define MAXPATHLEN (260 - 1 /*NUL*/) - -/* Some autoconf'd packages check for endianness. When cross-building we - can't run programs on the target. Fortunately, autoconf supports the - definition of byte order in sys/param.h (that's us!). - The values here are the same as used in gdb/defs.h (are the more - appropriate values?). */ -#define BIG_ENDIAN 4321 -#define LITTLE_ENDIAN 1234 - -/* All known win32 systems are little endian. */ -#define BYTE_ORDER LITTLE_ENDIAN - -#ifndef NULL -#define NULL 0L -#endif - -#endif diff --git a/newlib/libc/sys/cygwin/sys/utime.h b/newlib/libc/sys/cygwin/sys/utime.h deleted file mode 100644 index 196b089..0000000 --- a/newlib/libc/sys/cygwin/sys/utime.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef _SYS_UTIME_H -#define _SYS_UTIME_H - -#ifdef __cplusplus -extern "C" { -#endif -#include <_ansi.h> -#include - -struct utimbuf -{ - time_t actime; - time_t modtime; -}; - -int _EXFUN(utime, (const char *__path, struct utimbuf *__buf)); - -#ifdef __cplusplus -}; -#endif - -#endif /* _SYS_UTIME_H */ diff --git a/newlib/libc/sys/cygwin/sys/utmp.h b/newlib/libc/sys/cygwin/sys/utmp.h deleted file mode 100644 index 1c1c9aa..0000000 --- a/newlib/libc/sys/cygwin/sys/utmp.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef UTMP_H -#define UTMP_H - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define UT_LINESIZE 16 -#define UT_NAMESIZE 16 -#define UT_HOSTSIZE 256 -#define ut_name ut_user - -struct utmp -{ - short ut_type; - pid_t ut_pid; - char ut_line[UT_LINESIZE]; - char ut_id[2]; - time_t ut_time; - char ut_user[UT_NAMESIZE]; - char ut_host[UT_HOSTSIZE]; - long ut_addr; -}; - -#define INIT_PROCESS 5 -#define LOGIN_PROCESS 6 -#define USER_PROCESS 7 -#define DEAD_PROCESS 8 - -extern struct utmp *_getutline (struct utmp *); -extern struct utmp *getutent (void); -extern struct utmp *getutid (struct utmp *); -extern struct utmp *getutline (struct utmp *); -extern void endutent (void); -extern void pututline (struct utmp *); -extern void setutent (void); -extern void utmpname (const char *); - -void login (struct utmp *); -int logout (char *); - -#ifdef __cplusplus -} -#endif -#endif /* UTMP_H */ diff --git a/newlib/libc/sys/d10v/Makefile.am b/newlib/libc/sys/d10v/Makefile.am deleted file mode 100644 index da89f11..0000000 --- a/newlib/libc/sys/d10v/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = syscalls.c trap.S creat.c - -all: crt0.o - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/d10v/Makefile.in b/newlib/libc/sys/d10v/Makefile.in deleted file mode 100644 index e4e37ec..0000000 --- a/newlib/libc/sys/d10v/Makefile.in +++ /dev/null @@ -1,299 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = syscalls.c trap.S creat.c - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -lib_a_LIBADD = -lib_a_OBJECTS = syscalls.o trap.o creat.o -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = $(lib_a_SOURCES) -OBJECTS = $(lib_a_OBJECTS) - -all: Makefile $(LIBRARIES) - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../../acinclude.m4 \ - ../../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) - -rm -f lib.a - $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(RANLIB) lib.a - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done -info: -dvi: -check: - $(MAKE) $(AM_MAKEFLAGS) -installcheck: -install-info: -install-exec: - @$(NORMAL_INSTALL) - -install-data: - @$(NORMAL_INSTALL) - -install: install-exec install-data all - @: - -uninstall: - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - -distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - -maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir info dvi installcheck \ -install-info install-exec install-data install uninstall all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - -all: crt0.o - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/d10v/aclocal.m4 b/newlib/libc/sys/d10v/aclocal.m4 deleted file mode 100644 index a1bb15b..0000000 --- a/newlib/libc/sys/d10v/aclocal.m4 +++ /dev/null @@ -1,345 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - diff --git a/newlib/libc/sys/d10v/configure b/newlib/libc/sys/d10v/configure deleted file mode 100644 index 2afbfd8..0000000 --- a/newlib/libc/sys/d10v/configure +++ /dev/null @@ -1,1598 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=creat.c - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../../.. $srcdir/../../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - fi -else - newlib_basedir="${srcdir}/../../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/newlib/libc/sys/d10v/configure.in b/newlib/libc/sys/d10v/configure.in deleted file mode 100644 index 5559c87..0000000 --- a/newlib/libc/sys/d10v/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -dnl This is the newlib/libc/sys/d10v configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(creat.c) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../../..) - -NEWLIB_CONFIGURE(../../..) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/d10v/creat.c b/newlib/libc/sys/d10v/creat.c deleted file mode 100644 index 62ec5ea..0000000 --- a/newlib/libc/sys/d10v/creat.c +++ /dev/null @@ -1,7 +0,0 @@ -int -creat(path, mode) - const char *path; - int mode; -{ - return _creat (path, mode); -} diff --git a/newlib/libc/sys/d10v/crt0.S b/newlib/libc/sys/d10v/crt0.S deleted file mode 100644 index e17f0a4..0000000 --- a/newlib/libc/sys/d10v/crt0.S +++ /dev/null @@ -1,58 +0,0 @@ - .text - .global _start - .type _start,@function - .stabs "crt0.S",100,0,0,_start - .stabs "int:t(0,1)=r(0,1);-32768;32767;",128,0,0,0 - .stabs "_start:F(0,1)",36,0,1,_start - -_start: - -; R14 always contains memory base address (0) - - ldi r14,0 - -; Set the USER stack pointer. - - ldi sp, 0x8000 ; SW - mvtc sp, psw ; psw <- SW - ldi sp, _stack - ldi r0,0 ; zero arguments - ldi r1,0 - -; Clear the BSS. Do it in two parts for efficiency: longwords first -; for most of it, then the remaining 0 to 3 bytes. - - ldi r2, __bss_start ; R2 = start of BSS - ldi r3, _end ; R3 = end of BSS + 1 - sub r3, r2 ; R3 = BSS size in bytes - mv r4, r3 - srli r4, 2 ; R4 = BSS size in longwords (rounded down) -loop1: - cmpeqi r4, 0 ; more longords to zero out? - brf0t.s endloop1 ; nope - st2w r0, @r2+ ; yep, zero out another longword - subi r4, 1 ; decrement count - bra.l loop1 ; go do some more - -endloop1: - and3 r4, r3, 3 ; get no. of remaining BSS bytes to clear -loop2: - cmpeqi r4, 0 ; more bytes to zero out? - brf0t.s endloop2 ; nope - stb r0, @r2 ; yep, zero out another byte - addi r2, 1 ; bump address - subi r4, 1 ; decrement count - bra.s loop2 ; go do some more -endloop2: - -; Call main, then stop simulator - - bl main - bl exit - stop -.Lstart: - .size _start,.Lstart-_start - .stabs "",36,0,0,.Lstart-_start - - .section .stack -_stack: .long 1 diff --git a/newlib/libc/sys/d10v/sys/syscall.h b/newlib/libc/sys/d10v/sys/syscall.h deleted file mode 100644 index 64e53a3..0000000 --- a/newlib/libc/sys/d10v/sys/syscall.h +++ /dev/null @@ -1,38 +0,0 @@ -/* syscall.h - definitions of system calls for D10V. - * - * This file must contain only pre-processor directives, and no C code, - * because it's included by assembly language sources as well as C. - */ - -#define SYS_exit 1 -#define SYS_fork 2 - -#define SYS_read 3 -#define SYS_write 4 -#define SYS_open 5 -#define SYS_close 6 -#define SYS_wait4 7 -#define SYS_creat 8 -#define SYS_link 9 -#define SYS_unlink 10 -#define SYS_execv 11 -#define SYS_chdir 12 -#define SYS_mknod 14 -#define SYS_chmod 15 -#define SYS_chown 16 -#define SYS_lseek 19 -#define SYS_getpid 20 -#define SYS_isatty 21 -#define SYS_fstat 22 -#define SYS_time 23 - - -#define SYS_ARG 24 -#define SYS_stat 38 - -#define SYS_pipe 42 -#define SYS_execve 59 -#define SYS_kill 60 - -#define SYS_utime 201 /* not really a system call */ -#define SYS_wait 202 /* nor is this */ diff --git a/newlib/libc/sys/d10v/syscalls.c b/newlib/libc/sys/d10v/syscalls.c deleted file mode 100644 index 1119207..0000000 --- a/newlib/libc/sys/d10v/syscalls.c +++ /dev/null @@ -1,216 +0,0 @@ -/* syscalls.c - non-trap system calls for D10V - * - * This file contains system calls that cannot be implemented with - * a simple "trap 15" instruction. The ones that can are in trap.S. - */ - -#include <_ansi.h> -#include -#include -#include -#undef errno - -void _exit (int n); /* in trap.S */ - -extern int _write (int fd, const void *ptr, size_t len); - -int errno; - -register char *stack_ptr asm ("sp"); - -caddr_t -_sbrk (int incr) -{ - extern char end; /* Defined by the linker */ - static char *heap_end; - char *prev_heap_end; - char *sp = (char *)stack_ptr; - - if (heap_end == 0) - { - heap_end = (char *)((((unsigned short) &end) + 7) & ~7); - } - prev_heap_end = heap_end; - if (heap_end + incr > sp) - { - _write (2, "Heap and stack collision\n", sizeof ("Heap and stack collision\n")-1); - abort (); - } - heap_end += incr; - if ((unsigned short)heap_end > 0xbfff - || (heap_end < prev_heap_end && incr > 0) - || (heap_end < (char *)((((unsigned short) &end) + 7) & ~7))) - { - _write (2, "Too much memory was allocated\n", sizeof ("Too much memory was allocated\n")-1); - abort (); - } - - return (caddr_t) prev_heap_end; -} - -int -_fstat (int file, - struct stat *st) -{ - st->st_mode = S_IFCHR; - return 0; -} - -int -_unlink () -{ - errno = ENOSYS; - return -1; -} - -int -isatty (int fd) -{ - return 1; -} - -void -_raise () -{ -} - -/* If this library is compiled with -mint32, provide conversion functions for - the system call traps. */ - -#if __INT__==32 -extern short _read16 (short fd, void *ptr, short len); -int -_read (int fd, void *ptr, size_t len) -{ - return _read16 ((short)fd, ptr, (short)len); -} - -extern short _write16 (short fd, const void *ptr, short len); -int -_write (int fd, const void *ptr, size_t len) -{ - return _write16 ((short)fd, ptr, (short)len); -} - -extern short _lseek16 (short fd, long offset, short whence); -int -_lseek (int fd, off_t offset, int whence) -{ - return _lseek16 ((short)fd, offset, (short)whence); -} - -extern short _close16 (short fd); -int -_close (int fd) -{ - return _close16 ((short)fd); -} - -extern short _open16 (const char *name, short flags, short mode); -int -_open (const char *name, int flags, mode_t mode) -{ - return _open16 (name, (short)flags, (short)mode); -} - -extern short _creat16 (const char *name, mode_t mode); -int -_creat (const char *name, mode_t mode) -{ - return _creat16 (name, mode); -} - -extern void _exit16 (short status); -void -_exit (int status) -{ - _exit16 ((short)status); -} - -extern short _stat16 (const char *name, struct stat *stat_pkt); -int -_stat (const char *name, struct stat *stat_pkt) -{ - return _stat16 (name, stat_pkt); -} - -extern short _chmod16 (const char *name, short mode); -int -_chmod (const char *name, mode_t mode) -{ - return _chmod16 (name, (short)mode); -} - -extern short _chown16 (const char *name, short uid, short gid); -int -_chown (const char *name, uid_t uid, gid_t gid) -{ - return _chown16 (name, (short)uid, (short)gid); -} - -extern short _fork16 (void); -int -_fork (void) -{ - return _fork16 (); -} - -extern short _wait16 (short *status); -int -_wait (int *status) -{ - if (status) - { - short status16; - short ret = _wait16 (&status16); - if (ret >= 0) - *status = status16; - return ret; - } - else - return _wait16 ((short *)0); -} - -extern short _execve16 (const char *filename, const char *argv [], const char *envp[]); -int -_execve (const char *filename, const char *argv [], const char *envp[]) -{ - return _execve16 (filename, argv, envp); -} - -extern short _execv16 (const char *filename, const char *argv []); -int -_execv (const char *filename, const char *argv []) -{ - return _execv16 (filename, argv); -} - -extern short _pipe16 (short fds[]); -int -_pipe (int fds[]) -{ - short fds16[2]; - short ret = _pipe16 (fds16); - if (ret >= 0) - { - fds[0] = fds16[0]; - fds[1] = fds16[1]; - } - - return ret; -} - -extern short _getpid16 (void); -int -_getpid (void) -{ - return _getpid16 (); -} - -extern short _kill16 (short pid, short sig); -int -_kill (int pid, int sig) -{ - return _kill16 ((short)pid, (short)sig); -} -#endif diff --git a/newlib/libc/sys/d10v/trap.S b/newlib/libc/sys/d10v/trap.S deleted file mode 100644 index 9aca429..0000000 --- a/newlib/libc/sys/d10v/trap.S +++ /dev/null @@ -1,296 +0,0 @@ -#include "sys/syscall.h" - -#define SYSCALL(name) \ - .global name ; \ -name: ; \ - ldi r4, SYS ## name ; \ - bra __trap0 - - .text - .stabs "trap.S",100,0,0,__trap0 - .stabs "int:t(0,1)=r(0,1);-65536;65535;",128,0,0,0 - .stabs "long int:t(0,2)=r(0,1);0020000000000;0017777777777;",128,0,0,0 - .stabs "_trap0:F(0,1)",36,0,1,__trap0 - .stabs "arg1:P(0,1)",64,0,1,0 - .stabs "arg2:P(0,1)",64,0,1,1 - .stabs "arg3:P(0,1)",64,0,1,2 - .stabs "arg4:P(0,1)",64,0,1,3 - .stabs "number:P(0,1)",64,0,1,4 - .global __trap0 - .type __trap0,@function -__trap0: - trap 15 /* trap 15 returns result in r0, error code in r4 */ - cmpeqi r4,0 /* is error code zero? */ - brf0t ret /* yes, skip setting errno */ -#if __INT__==32 - st r4,@(errno+2,r14) /* no, set errno */ - srai r4,15 /* sign extend high word */ - st r4,@(errno,r14) -#else - st r4,@(errno,r14) /* no, set errno */ -#endif - -ret: - jmp r13 /* return to caller */ -.Ltrap0: - .size __trap0,.Ltrap0-__trap0 - .stabs "",36,0,0,.Ltrap0-__trap0 - -#define CONCAT(a,b) a ## b -#define STRING(a) #a -#define XSTRING(a) STRING(a) -#define XSTRING2(a,b) XSTRING(CONCAT(a,b)) - -#if __INT__==32 -#define _read _read16 -#define _lseek _lseek16 -#define _write _write16 -#define _close _close16 -#define _open _open16 -#define _creat _creat16 -#define _exit _exit16 -#define _stat _stat16 -#define _chmod _chmod16 -#define _chown _chown16 -#define _fork _fork16 -#define _wait _wait16 -#define _execve _execve16 -#define _execv _execv16 -#define _pipe _pipe16 -#define _kill _kill16 -#define _getpid _getpid16 -#endif - -/* Until the assembler allows semicolon as a statement separator, */ -/* we cannot use the SYSCALL macro. So expand it manually for now. */ - -/* #SYSCALL(_read) */ -/* #SYSCALL(_lseek) */ -/* #SYSCALL(_write) */ -/* #SYSCALL(_close) */ -/* #SYSCALL(_open) */ -/* #SYSCALL(_creat) */ -/* #SYSCALL(_exit) */ -/* #SYSCALL(_stat) */ -/* #SYSCALL(_chmod) */ -/* #SYSCALL(_chown) */ -/* #SYSCALL(_fork) */ -/* #SYSCALL(_wait) */ -/* #SYSCALL(_execve) */ -/* #SYSCALL(_execv) */ -/* #SYSCALL(_pipe) */ -/* #SYSCALL(_getpid) */ -/* #SYSCALL(_kill) */ - - .global _read - .type _read,@function - .stabs XSTRING2(_read,:F(0,1)),36,0,2,_read - .stabs "fd:P(0,1)",64,0,1,0 - .stabs "ptr:P(0,1)",64,0,1,1 - .stabs "len:P(0,1)",64,0,1,2 -_read: - ldi r4, SYS_read - bra __trap0 -.Lread: - .size _read,.-_read - .stabs "",36,0,0,.Lread-_read - - .global _lseek - .type _lseek,@function - .stabs XSTRING2(_lseek,:F(0,1)),36,0,3,_lseek - .stabs "fd:P(0,1)",64,0,1,0 - .stabs "offset:P(0,1)",64,0,1,2 - .stabs "whence:p(0,1)",160,0,1,0 -_lseek: - ldi r4, SYS_lseek - bra __trap0 -.Llseek: - .size _lseek,.Llseek-_lseek - .stabs "",36,0,0,.Llseek-_lseek - - .global _write - .type _write,@function - .stabs XSTRING2(_write,:F(0,1)),36,0,4,_write - .stabs "fd:P(0,1)",64,0,1,0 - .stabs "ptr:P(0,1)",64,0,1,1 - .stabs "len:P(0,1)",64,0,1,2 -_write: - ldi r4, SYS_write - bra __trap0 -.Lwrite: - .size _write,.Lwrite-_write - .stabs "",36,0,0,.Lwrite-_write - - .global _close - .type _close,@function - .stabs XSTRING2(_close,:F(0,1)),36,0,5,_close - .stabs "fd:P(0,1)",64,0,1,0 -_close: - ldi r4, SYS_close - bra __trap0 -.Lclose: - .size _close,.Lclose-_close - .stabs "",36,0,0,.Lclose-_close - - .global _open - .type _open,@function - .stabs XSTRING2(_open,:F(0,1)),36,0,6,_open - .stabs "name:P(0,1)",64,0,1,0 - .stabs "flags:P(0,1)",64,0,1,1 - .stabs "mode:P(0,1)",64,0,1,2 -_open: - ldi r4, SYS_open - bra __trap0 -.Lopen: - .size _open,.Lopen-_open - .stabs "",36,0,0,.Lopen-_open - - .global _creat - .type _creat,@function - .stabs XSTRING2(_creat,:F(0,1)),36,0,7,_creat - .stabs "name:P(0,1)",64,0,1,0 - .stabs "mode:P(0,1)",64,0,1,1 -_creat: - ldi r4, SYS_creat - bra __trap0 -.Lcreat: - .size _creat,.Lcreat-_creat - .stabs "",36,0,0,.Lcreat-_creat - - .global _exit - .type _exit,@function - .stabs XSTRING2(_exit,:F(0,1)),36,0,8,_exit - .stabs "status:P(0,1)",64,0,1,0 -_exit: - ldi r4, SYS_exit - bra __trap0 -.Lexit: - .size _exit,.Lexit-_exit - .stabs "",36,0,0,.Lexit-_exit - - .global _stat - .type _stat,@function - .stabs XSTRING2(_stat,:F(0,1)),36,0,9,_stat - .stabs "name:P(0,1)",64,0,1,0 - .stabs "packet:P(0,1)",64,0,1,1 -_stat: - ldi r4, SYS_stat - bra __trap0 -.Lstat: - .size _stat,.Lstat-_stat - .stabs "",36,0,0,.Lstat-_stat - - .global _chmod - .type _chmod,@function - .stabs XSTRING2(_chmod,:F(0,1)),36,0,10,_chmod - .stabs "name:P(0,1)",64,0,1,0 - .stabs "mode:P(0,1)",64,0,1,1 -_chmod: - ldi r4, SYS_chmod - bra __trap0 -.Lchmod: - .size _chmod,.Lchmod-_chmod - .stabs "",36,0,0,.Lchmod-_chmod - - .global _chown - .type _chown,@function - .stabs XSTRING2(_chown,:F(0,1)),36,0,11,_chown - .stabs "name:P(0,1)",64,0,1,0 - .stabs "uid:P(0,1)",64,0,1,1 - .stabs "gid:P(0,1)",64,0,1,2 -_chown: - ldi r4, SYS_chown - bra __trap0 -.Lchown: - .size _chown,.Lchown-_chown - .stabs "",36,0,0,.Lchown-_chown - - .global _fork - .type _fork,@function - .stabs XSTRING2(_fork,:F(0,1)),36,0,12,_fork -_fork: - ldi r4, SYS_fork - bra __trap0 -.Lfork: - .size _fork,.Lfork-_fork - .stabs "",36,0,0,.Lfork-_fork - - .global _wait - .type _wait,@function - .stabs "status:P(0,1)",64,0,1,0 - .stabs XSTRING2(_wait,:F(0,1)),36,0,13,_wait -_wait: - ldi r4, SYS_wait - bra __trap0 -.Lwait: - .size _wait,.Lwait-_wait - .stabs "",36,0,0,.Lwait-_wait - - .global _execve - .type _execve,@function - .stabs "name:P(0,1)",64,0,1,0 - .stabs "argv:P(0,1)",64,0,1,1 - .stabs "envp:P(0,1)",64,0,1,2 - .stabs XSTRING2(_execve,:F(0,1)),36,0,14,_execve -_execve: - ldi r4, SYS_execve - bra __trap0 -.Lexecve: - .size _execve,.Lexecve-_execve - .stabs "",36,0,0,.Lexecve-_execve - - .global _execv - .type _execv,@function - .stabs XSTRING2(_execv,:F(0,1)),36,0,15,_execv - .stabs "name:P(0,1)",64,0,1,0 - .stabs "argv:P(0,1)",64,0,1,1 -_execv: - ldi r4, SYS_execv - bra __trap0 -.Lexecv: - .size _execv,.Lexecv-_execv - .stabs "",36,0,0,.Lexecv-_execv - - .global _pipe - .type _pipe,@function - .stabs XSTRING2(_pipe,:F(0,1)),36,0,16,_pipe - .stabs "fds:P(0,1)",64,0,1,0 -_pipe: - ldi r4, SYS_pipe - bra __trap0 -.Lpipe: - .size _pipe,.Lpipe-_pipe - .stabs "",36,0,0,.Lpipe-_pipe - - .global time - .type time,@function - .stabs XSTRING2(time,:F(0,1)),36,0,17,time - .stabs "ptr:P(0,1)",64,0,1,0 -time: - ldi r4, SYS_time - bra __trap0 -.Ltime: - .size time,.Ltime-time - .stabs "",36,0,0,.Ltime-time - - .global _kill - .type _kill,@function - .stabs XSTRING2(_kill,:F(0,1)),36,0,18,_kill - .stabs "pid:P(0,1)",64,0,1,0 - .stabs "sig:P(0,1)",64,0,1,1 -_kill: - ldi r4, SYS_kill - bra __trap0 -.Lkill: - .size _kill,.Lkill-_kill - .stabs "",36,0,0,.Lkill-_kill - - .global _getpid - .type _getpid,@function - .stabs XSTRING2(_getpid,:F(0,1)),36,0,19,_getpid -_getpid: - ldi r4, SYS_getpid - bra __trap0 -.Lgetpid: - .size _getpid,.Lgetpid-_getpid - .stabs "",36,0,0,.Lgetpid-_getpid diff --git a/newlib/libc/sys/decstation/Makefile.am b/newlib/libc/sys/decstation/Makefile.am deleted file mode 100644 index ad28997..0000000 --- a/newlib/libc/sys/decstation/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -COPYOFILES = \ - read.o \ - open.o \ - _exit.o \ - write.o \ - lseek.o \ - close.o \ - sbrk.o \ - cerror.o \ - fork.o \ - isatty.o \ - ioctl.o \ - getpid.o \ - time.o \ - kill.o \ - wait.o \ - execve.o \ - gettimeofday.o \ - link.o \ - unlink.o \ - fstat.o \ - times.o \ - getrusage.o - -lib_a_SOURCES = _main.c -lib_a_LIBADD = $(COPYOFILES) - -$(COPYOFILES): - ar x /lib/libc.a $(COPYOFILES) - -all: crt0.o - -crt0.o: - cp /lib/crt0.o crt0.o - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/decstation/Makefile.in b/newlib/libc/sys/decstation/Makefile.in deleted file mode 100644 index 8fc5c67..0000000 --- a/newlib/libc/sys/decstation/Makefile.in +++ /dev/null @@ -1,332 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -COPYOFILES = \ - read.o \ - open.o \ - _exit.o \ - write.o \ - lseek.o \ - close.o \ - sbrk.o \ - cerror.o \ - fork.o \ - isatty.o \ - ioctl.o \ - getpid.o \ - time.o \ - kill.o \ - wait.o \ - execve.o \ - gettimeofday.o \ - link.o \ - unlink.o \ - fstat.o \ - times.o \ - getrusage.o - -lib_a_SOURCES = _main.c -lib_a_LIBADD = $(COPYOFILES) - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -lib_a_DEPENDENCIES = read.o open.o _exit.o write.o lseek.o close.o \ -sbrk.o cerror.o fork.o isatty.o ioctl.o getpid.o time.o kill.o wait.o \ -execve.o gettimeofday.o link.o unlink.o fstat.o times.o getrusage.o -lib_a_OBJECTS = _main.o -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = $(lib_a_SOURCES) -OBJECTS = $(lib_a_OBJECTS) - -all: Makefile $(LIBRARIES) - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../../acinclude.m4 \ - ../../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) - -rm -f lib.a - $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(RANLIB) lib.a - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done -info: -dvi: -check: - $(MAKE) $(AM_MAKEFLAGS) -installcheck: -install-info: -install-exec: - @$(NORMAL_INSTALL) - -install-data: - @$(NORMAL_INSTALL) - -install: install-exec install-data all - @: - -uninstall: - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - -distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - -maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir info dvi installcheck \ -install-info install-exec install-data install uninstall all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - -$(COPYOFILES): - ar x /lib/libc.a $(COPYOFILES) - -all: crt0.o - -crt0.o: - cp /lib/crt0.o crt0.o - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/decstation/_main.c b/newlib/libc/sys/decstation/_main.c deleted file mode 100644 index 6487808..0000000 --- a/newlib/libc/sys/decstation/_main.c +++ /dev/null @@ -1,6 +0,0 @@ - -__main() -{ - - -} diff --git a/newlib/libc/sys/decstation/aclocal.m4 b/newlib/libc/sys/decstation/aclocal.m4 deleted file mode 100644 index a1bb15b..0000000 --- a/newlib/libc/sys/decstation/aclocal.m4 +++ /dev/null @@ -1,345 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - diff --git a/newlib/libc/sys/decstation/configure b/newlib/libc/sys/decstation/configure deleted file mode 100644 index 5dd0d1b..0000000 --- a/newlib/libc/sys/decstation/configure +++ /dev/null @@ -1,1598 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=_main.c - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../../.. $srcdir/../../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - fi -else - newlib_basedir="${srcdir}/../../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/newlib/libc/sys/decstation/configure.in b/newlib/libc/sys/decstation/configure.in deleted file mode 100644 index e2e2738..0000000 --- a/newlib/libc/sys/decstation/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -dnl This is the newlib/libc/sys/decstation configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(_main.c) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../../..) - -NEWLIB_CONFIGURE(../../..) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/decstation/sys/dirent.h b/newlib/libc/sys/decstation/sys/dirent.h deleted file mode 100644 index c5a90e9..0000000 --- a/newlib/libc/sys/decstation/sys/dirent.h +++ /dev/null @@ -1,46 +0,0 @@ -/* FIXME: From sys/sysvi386/sys */ -#ifndef _SYS_DIRENT_H -# define _SYS_DIRENT_H - -/* - * This file was written to be compatible with the BSD directory - * routines, so it looks like it. But it was written from scratch. - * Sean Eric Fagan, sef@Kithrup.COM - * - * Modified by dje@cygnus.com for sun. - * Modified by eichin@cygnus.com for decstation (ultrix 4.2) - */ - -typedef struct __dirdesc { - int dd_fd; - long dd_loc; - long dd_size; - long dd_bbase; - long dd_entno; - long dd_bsize; - char *dd_buf; -} DIR; - -# define __dirfd(dp) ((dp)->dd_fd) - -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -void rewinddir (DIR *); -int closedir (DIR *); - -#include - -#define MAXNAMLEN 255 - -#define d_ino d_fileno /* compatibility */ - -struct dirent { - unsigned long d_fileno; - unsigned short d_reclen; - unsigned short d_namlen; - char d_name[MAXNAMLEN + 1]; -}; - -/* FIXME: include definition of DIRSIZ() ? */ - -#endif diff --git a/newlib/libc/sys/go32/Makefile.am b/newlib/libc/sys/go32/Makefile.am deleted file mode 100644 index 4ccd669..0000000 --- a/newlib/libc/sys/go32/Makefile.am +++ /dev/null @@ -1,105 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = \ - _exit.s \ - _main.c \ - abort.c \ - access.c \ - bdos.c \ - bdosptr.c \ - brk.s \ - chdir.s \ - chmod.c \ - chown.c \ - clock.S \ - close.s \ - creat.s \ - crlf2nl.c \ - dir.c \ - dosmem.S \ - dpmi.c \ - dup.s \ - dup2.s \ - exec.c \ - fchmod.c \ - findfirs.s \ - findnext.s \ - fixpath.c \ - fstat.s \ - fsync.s \ - ftruncat.c \ - gerrno.s \ - getcwd.c \ - getdate.c \ - getdtabl.c \ - getgid.c \ - getkey.s \ - getpages.c \ - getpid.c \ - getrusag.c \ - gettime.c \ - gettimeo.c \ - getuid.c \ - getwd.s \ - go32func.c \ - infoblk.c \ - inportb.s \ - inportl.s \ - inportsb.s \ - inportsl.s \ - inportsw.s \ - inportw.s \ - int86x.s \ - intdos.c \ - intdosx.c \ - isatty.s \ - kbhit.s \ - kill.c \ - link.s \ - longjmp.S \ - lseek.s \ - lstat.s \ - mkdir.s \ - open.s \ - outportb.s \ - outportl.s \ - outportw.s \ - outprtsb.s \ - outprtsl.s \ - outprtsw.s \ - read.s \ - readv.c \ - rename.s \ - rmdir.s \ - sbrk.s \ - screen.S \ - setjmp.S \ - setmode.s \ - setstack.S \ - settimeo.s \ - sleep.c \ - stat.c \ - stat_ast.s \ - syserr.c \ - system.s \ - tell.s \ - time.c \ - truncate.c \ - turbo.s \ - umask.c \ - unlink.s \ - utime.c \ - utimes.c \ - write.s \ - writev.c - -all: crt0.o - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/sys/go32/Makefile.in b/newlib/libc/sys/go32/Makefile.in deleted file mode 100644 index eb0fb8f..0000000 --- a/newlib/libc/sys/go32/Makefile.in +++ /dev/null @@ -1,402 +0,0 @@ -# Makefile.in generated automatically by automake 1.3 from Makefile.am - -# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -SHELL = @SHELL@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include - -DISTDIR = - -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ - -top_builddir = . - -ACLOCAL = @ACLOCAL@ -AUTOCONF = @AUTOCONF@ -AUTOMAKE = @AUTOMAKE@ -AUTOHEADER = @AUTOHEADER@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -transform = @program_transform_name@ - -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -host_alias = @host_alias@ -host_triplet = @host@ -AR = @AR@ -AS = @AS@ -CC = @CC@ -CPP = @CPP@ -EXEEXT = @EXEEXT@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -PACKAGE = @PACKAGE@ -RANLIB = @RANLIB@ -VERSION = @VERSION@ -machine_dir = @machine_dir@ -newlib_basedir = @newlib_basedir@ -sys_dir = @sys_dir@ - -AUTOMAKE_OPTIONS = cygnus - -INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -noinst_LIBRARIES = lib.a - -lib_a_SOURCES = \ - _exit.s \ - _main.c \ - abort.c \ - access.c \ - bdos.c \ - bdosptr.c \ - brk.s \ - chdir.s \ - chmod.c \ - chown.c \ - clock.S \ - close.s \ - creat.s \ - crlf2nl.c \ - dir.c \ - dosmem.S \ - dpmi.c \ - dup.s \ - dup2.s \ - exec.c \ - fchmod.c \ - findfirs.s \ - findnext.s \ - fixpath.c \ - fstat.s \ - fsync.s \ - ftruncat.c \ - gerrno.s \ - getcwd.c \ - getdate.c \ - getdtabl.c \ - getgid.c \ - getkey.s \ - getpages.c \ - getpid.c \ - getrusag.c \ - gettime.c \ - gettimeo.c \ - getuid.c \ - getwd.s \ - go32func.c \ - infoblk.c \ - inportb.s \ - inportl.s \ - inportsb.s \ - inportsl.s \ - inportsw.s \ - inportw.s \ - int86x.s \ - intdos.c \ - intdosx.c \ - isatty.s \ - kbhit.s \ - kill.c \ - link.s \ - longjmp.S \ - lseek.s \ - lstat.s \ - mkdir.s \ - open.s \ - outportb.s \ - outportl.s \ - outportw.s \ - outprtsb.s \ - outprtsl.s \ - outprtsw.s \ - read.s \ - readv.c \ - rename.s \ - rmdir.s \ - sbrk.s \ - screen.S \ - setjmp.S \ - setmode.s \ - setstack.S \ - settimeo.s \ - sleep.c \ - stat.c \ - stat_ast.s \ - syserr.c \ - system.s \ - tell.s \ - time.c \ - truncate.c \ - turbo.s \ - umask.c \ - unlink.s \ - utime.c \ - utimes.c \ - write.s \ - writev.c - -ACLOCAL_AMFLAGS = -I ../../.. -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES = -LIBRARIES = $(noinst_LIBRARIES) - - -DEFS = @DEFS@ -I. -I$(srcdir) -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ -lib_a_LIBADD = -lib_a_OBJECTS = _exit.o _main.o abort.o access.o bdos.o bdosptr.o brk.o \ -chdir.o chmod.o chown.o clock.o close.o creat.o crlf2nl.o dir.o \ -dosmem.o dpmi.o dup.o dup2.o exec.o fchmod.o findfirs.o findnext.o \ -fixpath.o fstat.o fsync.o ftruncat.o gerrno.o getcwd.o getdate.o \ -getdtabl.o getgid.o getkey.o getpages.o getpid.o getrusag.o gettime.o \ -gettimeo.o getuid.o getwd.o go32func.o infoblk.o inportb.o inportl.o \ -inportsb.o inportsl.o inportsw.o inportw.o int86x.o intdos.o intdosx.o \ -isatty.o kbhit.o kill.o link.o longjmp.o lseek.o lstat.o mkdir.o open.o \ -outportb.o outportl.o outportw.o outprtsb.o outprtsl.o outprtsw.o \ -read.o readv.o rename.o rmdir.o sbrk.o screen.o setjmp.o setmode.o \ -setstack.o settimeo.o sleep.o stat.o stat_ast.o syserr.o system.o \ -tell.o time.o truncate.o turbo.o umask.o unlink.o utime.o utimes.o \ -write.o writev.o -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in - - -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - -TAR = tar -GZIP = --best -SOURCES = $(lib_a_SOURCES) -OBJECTS = $(lib_a_OBJECTS) - -all: Makefile $(LIBRARIES) - -.SUFFIXES: -.SUFFIXES: .S .c .o .s -$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - -$(ACLOCAL_M4): @MAINT@ configure.in ../../../acinclude.m4 \ - ../../../aclocal.m4 - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - -mostlyclean-noinstLIBRARIES: - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -distclean-noinstLIBRARIES: - -maintainer-clean-noinstLIBRARIES: - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.S.o: - $(COMPILE) -c $< - -mostlyclean-compile: - -rm -f *.o core *.core - -clean-compile: - -distclean-compile: - -rm -f *.tab.c - -maintainer-clean-compile: - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) - -rm -f lib.a - $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(RANLIB) lib.a - -tags: TAGS - -ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - -mostlyclean-tags: - -clean-tags: - -distclean-tags: - -rm -f TAGS ID - -maintainer-clean-tags: - -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" -dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) -distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done -info: -dvi: -check: - $(MAKE) $(AM_MAKEFLAGS) -installcheck: -install-info: -install-exec: - @$(NORMAL_INSTALL) - -install-data: - @$(NORMAL_INSTALL) - -install: install-exec install-data all - @: - -uninstall: - -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install -installdirs: - - -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - -clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - -distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - -maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ -mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile tags mostlyclean-tags distclean-tags \ -clean-tags maintainer-clean-tags distdir info dvi installcheck \ -install-info install-exec install-data install uninstall all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - -all: crt0.o - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/sys/go32/_exit.s b/newlib/libc/sys/go32/_exit.s deleted file mode 100644 index 8c13597..0000000 --- a/newlib/libc/sys/go32/_exit.s +++ /dev/null @@ -1,20 +0,0 @@ -# /* This is file _EXIT.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl __exit -__exit: - movb 4(%esp),%al - movb $0x4c,%ah - int $0x21 diff --git a/newlib/libc/sys/go32/_main.c b/newlib/libc/sys/go32/_main.c deleted file mode 100644 index c8c6136..0000000 --- a/newlib/libc/sys/go32/_main.c +++ /dev/null @@ -1,3 +0,0 @@ -__main() -{ -} diff --git a/newlib/libc/sys/go32/abort.c b/newlib/libc/sys/go32/abort.c deleted file mode 100644 index f2466c8..0000000 --- a/newlib/libc/sys/go32/abort.c +++ /dev/null @@ -1,8 +0,0 @@ - -void -abort() -{ - - exit(1); - -} diff --git a/newlib/libc/sys/go32/access.c b/newlib/libc/sys/go32/access.c deleted file mode 100644 index ad368ca..0000000 --- a/newlib/libc/sys/go32/access.c +++ /dev/null @@ -1,34 +0,0 @@ -/* This is file ACCESS.C */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include -#include -#include - -int access(const char *fn, int flags) -{ - struct stat s; - if (stat(fn, &s)) - return -1; - if (s.st_mode & S_IFDIR) - return 0; - if (flags & W_OK) - { - if (s.st_mode & S_IWRITE) - return 0; - return -1; - } - return 0; -} - diff --git a/newlib/libc/sys/go32/aclocal.m4 b/newlib/libc/sys/go32/aclocal.m4 deleted file mode 100644 index a1bb15b..0000000 --- a/newlib/libc/sys/go32/aclocal.m4 +++ /dev/null @@ -1,345 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.3b - -dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl This provides configure definitions used by all the newlib -dnl configure.in files. - -dnl Basic newlib configury. This calls basic introductory stuff, -dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs -dnl configure.host. The only argument is the relative path to the top -dnl newlib directory. - -AC_DEFUN(NEWLIB_CONFIGURE, -[ -dnl Default to --enable-multilib -AC_ARG_ENABLE(multilib, -[ --enable-multilib build many library versions (default)], -[case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; - esac], [multilib=yes])dnl - -dnl Support --enable-target-optspace -AC_ARG_ENABLE(target-optspace, -[ --enable-target-optspace optimize for space], -[case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; - esac], [target_optspace=])dnl - -dnl Support --enable-newlib-mb -AC_ARG_ENABLE(newlib-mb, -[ --enable-newlib-mb enable multibyte support], -[case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; - esac], [newlib_mb=no])dnl - -dnl We may get other options which we don't document: -dnl --with-target-subdir, --with-multisrctop, --with-multisubdir - -test -z "[$]{with_target_subdir}" && with_target_subdir=. - -if test "[$]{srcdir}" = "."; then - if test "[$]{with_target_subdir}" != "."; then - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" - else - newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" - fi -else - newlib_basedir="[$]{srcdir}/$1" -fi -AC_SUBST(newlib_basedir) - -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(newlib, 1.8.1) - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -AC_CANONICAL_BUILD - -AC_CHECK_TOOL(AS, as) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, :) - -AM_PROG_INSTALL - -AM_MAINTAINER_MODE - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - AM_EXEEXT -fi - -. [$]{newlib_basedir}/configure.host - -case [$]{newlib_basedir} in -/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;; -*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;; -esac - -newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="[$]{newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} -AC_SUBST(NEWLIB_CFLAGS) - -AC_SUBST(machine_dir) -AC_SUBST(sys_dir) -]) - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN(AM_MISSING_PROG, -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) - -# Check to see if we're running under Win32, without using -# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". -# Otherwise set it to "". - -dnl AM_EXEEXT() -dnl This knows we add .exe if we're building in the Cygwin32 -dnl environment. But if we're not, then it compiles a test program -dnl to see if there is a suffix for executables. -AC_DEFUN(AM_EXEEXT, -[AC_REQUIRE([AM_CYGWIN32]) -AC_REQUIRE([AM_MINGW32]) -AC_MSG_CHECKING([for executable suffix]) -AC_CACHE_VAL(am_cv_exeext, -[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test*]) -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -AC_MSG_RESULT(${am_cv_exeext}) -AC_SUBST(EXEEXT)]) - -# Check to see if we're running under Cygwin32, without using -# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". -# Otherwise set it to "no". - -dnl AM_CYGWIN32() -AC_DEFUN(AM_CYGWIN32, -[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, -[AC_TRY_COMPILE(,[return __CYGWIN32__;], -am_cv_cygwin32=yes, am_cv_cygwin32=no) -rm -f conftest*]) -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) - -# Check to see if we're running under Mingw, without using -# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". -# Otherwise set it to "no". - -dnl AM_MINGW32() -AC_DEFUN(AM_MINGW32, -[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, -[AC_TRY_COMPILE(,[return __MINGW32__;], -am_cv_mingw32=yes, am_cv_mingw32=no) -rm -f conftest*]) -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes]) - diff --git a/newlib/libc/sys/go32/bdos.c b/newlib/libc/sys/go32/bdos.c deleted file mode 100644 index 523f73a..0000000 --- a/newlib/libc/sys/go32/bdos.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include "dos.h" - -bdos(int func, unsigned dx, unsigned al) -{ - union REGS r; - r.x.dx = dx; - r.h.ah = func; - r.h.al = al; - int86(0x21, &r, &r); - return r.x.ax; -} diff --git a/newlib/libc/sys/go32/bdosptr.c b/newlib/libc/sys/go32/bdosptr.c deleted file mode 100644 index 214d40b..0000000 --- a/newlib/libc/sys/go32/bdosptr.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include "dos.h" - -bdosptr(int func, void *dx, unsigned al) -{ - union REGS r; - r.x.dx = dx; - r.h.ah = func; - r.h.al = al; - int86(0x21, &r, &r); - return r.x.ax; -} diff --git a/newlib/libc/sys/go32/brk.s b/newlib/libc/sys/go32/brk.s deleted file mode 100644 index c9d8db0..0000000 --- a/newlib/libc/sys/go32/brk.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file BRK.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _brk -_brk: - pushl %ebx - pushl %esi - pushl %edi - movw $0x4a00,%ax - movl 16(%esp),%ebx - int $0x21 - popl %edi - popl %esi - popl %ebx - ret diff --git a/newlib/libc/sys/go32/chdir.s b/newlib/libc/sys/go32/chdir.s deleted file mode 100644 index a494408..0000000 --- a/newlib/libc/sys/go32/chdir.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file CHDIR.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _chdir -_chdir: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%edx - movb $0x3b,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/chmod.c b/newlib/libc/sys/go32/chmod.c deleted file mode 100644 index 72f5f57..0000000 --- a/newlib/libc/sys/go32/chmod.c +++ /dev/null @@ -1,15 +0,0 @@ -/* This is file CHMOD.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -chmod(){} diff --git a/newlib/libc/sys/go32/chown.c b/newlib/libc/sys/go32/chown.c deleted file mode 100644 index a780510..0000000 --- a/newlib/libc/sys/go32/chown.c +++ /dev/null @@ -1,15 +0,0 @@ -/* This is file CHOWN.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -chown(){} diff --git a/newlib/libc/sys/go32/clock.S b/newlib/libc/sys/go32/clock.S deleted file mode 100644 index e6ac06e..0000000 --- a/newlib/libc/sys/go32/clock.S +++ /dev/null @@ -1,45 +0,0 @@ -/* This is file CLOCK.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -** -** Modified by C. Sandmann for DPMI support (sandmann@clio.rice.edu) -*/ - .data -clock_init: - .long 0 - - .text - .globl _clock -_clock: - call _rawclock - imull $54931,%eax,%eax - ret - - .align 4,0x90 - .globl _rawclock -_rawclock: - movzwl __core_select,%eax - testl %eax,%eax - je old_clock /* Image run with pre-DPMI extender */ - movw %ax,%gs - movl %gs:0x46c(,1),%eax - jmp check_initted -old_clock: - movl 0xe000046c,%eax -check_initted: - cmp $0,clock_init - jne clock_initted - movl %eax,clock_init -clock_initted: - subl clock_init,%eax - ret - diff --git a/newlib/libc/sys/go32/close.s b/newlib/libc/sys/go32/close.s deleted file mode 100644 index 3b0797d..0000000 --- a/newlib/libc/sys/go32/close.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file CLOSE.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _close -_close: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movb $0x3e,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/configure b/newlib/libc/sys/go32/configure deleted file mode 100644 index 2ba8d05..0000000 --- a/newlib/libc/sys/go32/configure +++ /dev/null @@ -1,1598 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-multilib build many library versions (default)" -ac_help="$ac_help - --enable-target-optspace optimize for space" -ac_help="$ac_help - --enable-newlib-mb enable multibyte support" -ac_help="$ac_help - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=djtime.h - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ../../../.. $srcdir/../../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:567: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:621: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:711: checking for Cygwin32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_cygwin32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_cygwin32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_cygwin32" 1>&6 -CYGWIN32= -test "$am_cv_cygwin32" = yes && CYGWIN32=yes -echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:740: checking for Mingw32 environment" >&5 -if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - am_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - am_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$am_cv_mingw32" 1>&6 -MINGW32= -test "$am_cv_mingw32" = yes && MINGW32=yes - -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - -# Check whether --enable-target-optspace or --disable-target-optspace was given. -if test "${enable_target_optspace+set}" = set; then - enableval="$enable_target_optspace" - case "${enableval}" in - yes) target_optspace=yes ;; - no) target_optspace=no ;; - *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; - esac -else - target_optspace= -fi - -# Check whether --enable-newlib-mb or --disable-newlib-mb was given. -if test "${enable_newlib_mb+set}" = set; then - enableval="$enable_newlib_mb" - case "${enableval}" in - yes) newlib_mb=yes ;; - no) newlib_mb=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; - esac -else - newlib_mb=no -fi - - -test -z "${with_target_subdir}" && with_target_subdir=. - -if test "${srcdir}" = "."; then - if test "${with_target_subdir}" != "."; then - newlib_basedir="${srcdir}/${with_multisrctop}../../../.." - else - newlib_basedir="${srcdir}/${with_multisrctop}../../.." - fi -else - newlib_basedir="${srcdir}/../../.." -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:826: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - - -PACKAGE=newlib - -VERSION=1.8.1 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:867: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:880: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:893: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:906: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:919: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:944: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1021: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't -# run it explicitly here, it will be run implicitly before -# NEWLIB_CONFIGURE, which doesn't work because that means that it will -# be run before AC_CANONICAL_HOST. -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1078: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - - -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1099: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="${ac_tool_prefix}as" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1130: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1161: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -if test -z "$ac_cv_prog_RANLIB"; then -if test -n "$ac_tool_prefix"; then - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - RANLIB=":" -fi -fi - - - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1229: checking whether to enable maintainer-specific portions of Makefiles" >&5 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - - - -# We need AM_EXEEXT to keep automake happy in cygnus mode. However, -# at least currently, we never actually build a program, so we never -# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -# fails, because we are probably configuring with a cross compiler -# which can't create executables. So we include AM_EXEEXT to keep -# automake happy, but we don't execute it, since we don't care about -# the result. -if false; then - - -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1258: checking for executable suffix" >&5 -if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then -am_cv_exeext=.exe -else -cat > am_c_test.c << 'EOF' -int main() { -/* Nothing needed here */ -} -EOF -${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 -am_cv_exeext= -for file in am_c_test.*; do - case $file in - *.c) ;; - *.o) ;; - *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; - esac -done -rm -f am_c_test* -fi - -test x"${am_cv_exeext}" = x && am_cv_exeext=no -fi -EXEEXT="" -test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} -echo "$ac_t""${am_cv_exeext}" 1>&6 - -fi - -. ${newlib_basedir}/configure.host - -case ${newlib_basedir} in -/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;; -*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;; -esac - -newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include" -case "${host}" in - *-*-cygwin32*) - newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include" - ;; -esac - -newlib_cflags="${newlib_cflags} -fno-builtin" - -NEWLIB_CFLAGS=${newlib_cflags} - - - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@newlib_basedir@%$newlib_basedir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@RANLIB@%$RANLIB%g -s%@MAINT@%$MAINT%g -s%@EXEEXT@%$EXEEXT%g -s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g -s%@machine_dir@%$machine_dir%g -s%@sys_dir@%$sys_dir%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/newlib/libc/sys/go32/configure.in b/newlib/libc/sys/go32/configure.in deleted file mode 100644 index 5706733..0000000 --- a/newlib/libc/sys/go32/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -dnl This is the newlib/libc/sys/go32 configure.in file. -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.5) -AC_INIT(djtime.h) - -dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -AC_CONFIG_AUX_DIR(../../../..) - -NEWLIB_CONFIGURE(../../..) - -AC_OUTPUT(Makefile) diff --git a/newlib/libc/sys/go32/copying.dj b/newlib/libc/sys/go32/copying.dj deleted file mode 100644 index 79b4f70..0000000 --- a/newlib/libc/sys/go32/copying.dj +++ /dev/null @@ -1,63 +0,0 @@ -This is the file "copying.dj". - - Copyright Information for sources and executables that are marked - Copyright (C) DJ Delorie - 24 Kirsten Ave - Rochester NH 03867-2954 - -This document is Copyright (C) DJ Delorie and may be distributed -verbatim, but changing it is not allowed. - -Source code copyright DJ Delorie is distributed under the terms of the -GNU General Public Licence, with the following exceptions: - - -* Source code copyright DJ Delorie is distributed under the terms of the - GNU General Public Licence, with the following exceptions: - ("go32.exe" refers to go32.exe and debug32.exe) - - * There are no conditions on distributing copies of stub.exe as - it is originally distributed in this software package, prepended - onto a binary or otherwise. This is the recommended distribution - mechanism for applications. - - * Binaries of emu387 may be distributed with no restrictions. - - * If a user creates an application, prepends a copy of go32.exe onto - the beginning of it, and distributes it free of charge, then the - user is under no obligations to distribute source or pay royalties. - Note that the copyright terms of the FSF and/or UCB must be - obeyed regardless of this. - - * If a user creates an application, prepends a copy of go32.exe onto - the beginning of it, and charges a fee for the software, then a - royalty of $5 or 5% of the selling price per copy sold must be paid - to DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954. Note that - shareware programs are not considered "sold" until payment is rendered - for them. - - * For all other cases, source code for go32.exe must be distributed - with any distributed copies of go32.exe. - - * Software that requires go32.exe to run, but is not distributed with - a copy of go32.exe, incurs no obligations with regards to the - above sections. - - * Contact me for special terms if none of the above are suitable. - - * Donations are always appreciated. - - The intent of this copyright is this: If you make money by using the - programs I wrote, I get some of it. If you use your sources to - teach others how to write programs, I'll support you. - -Changes to source code copyright BSD or FSF are copyright DJ Delorie, but -fall under the terms of the original copyright. - -A copy of the file "COPYING" is included with this document. If you did not -receive a copy of "COPYING", you may obtain one from whence this document -was obtained, or by writing: - Free Software Foundation - 675 Mass Ave - Cambridge, MA 02139 - USA diff --git a/newlib/libc/sys/go32/creat.s b/newlib/libc/sys/go32/creat.s deleted file mode 100644 index 4c02e72..0000000 --- a/newlib/libc/sys/go32/creat.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file CREAT.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _creat -_creat: - movb $1,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/crlf2nl.c b/newlib/libc/sys/go32/crlf2nl.c deleted file mode 100644 index 18b7061..0000000 --- a/newlib/libc/sys/go32/crlf2nl.c +++ /dev/null @@ -1,69 +0,0 @@ -/* This is file CRLF2NL.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -unsigned crlf2nl(char *buf, unsigned len) -{ - char *bp = buf; - int i=0; - while (len--) - { - if (*bp != 13) - { - *buf++ = *bp; - i++; - } - bp++; - } - return i; -} - -unsigned readcr(int fd, char *buf, unsigned len) -{ - unsigned i; - i = read(fd, buf, len); - if (i <= 0) - return i; - return crlf2nl(buf, i); -} - -static char *sbuf = 0; -#define BUFSIZE 4096 - -unsigned writecr(int fd, char *buf, unsigned len) -{ - unsigned bufp=0, sbufp=0, crcnt=0, rlen=0; - int rv; - if (sbuf == 0) - sbuf = (char *)malloc(BUFSIZE+1); - while (len--) - { - if (buf[bufp] == 10) - { - crcnt++; - sbuf[sbufp++] = 13; - } - sbuf[sbufp++] = buf[bufp++]; - if ((sbufp >= BUFSIZE) || (len == 0)) - { - rv = write(fd, sbuf, sbufp); - if (rv < 0) - return rv; - rlen += rv - crcnt; - crcnt = 0; - sbufp = 0; - } - } - return rlen; -} - diff --git a/newlib/libc/sys/go32/crt0.S b/newlib/libc/sys/go32/crt0.S deleted file mode 100644 index 5fc6cf7..0000000 --- a/newlib/libc/sys/go32/crt0.S +++ /dev/null @@ -1,233 +0,0 @@ - -/* -** Called as start(argc, argv, envp) -*/ - -/* gs:edx points to prog_info structure. All other registers are OBSOLETE -** but included for backwards compatibility -*/ - -/* These symbols are for global constructors and destructors */ -#if 0 - .section .ctor - .globl ___go32_first_ctor -___go32_first_ctor: - .section .dtor - .globl ___go32_last_ctor -___go32_last_ctor: - .globl ___go32_first_dtor -___go32_first_dtor: - .data - .globl ___go32_last_dtor -___go32_last_dtor: -#endif - .text - .globl _start -_start: - .globl start -start: -#ifdef EMU387 - pusha - push %gs -#endif - movl %eax,__hard_master - movl %esi,___pid - movl %edi,___transfer_buffer - movl %ebx,_ScreenPrimary - movl %ebp,_ScreenSecondary - - cmpl $0, %edx - je Lcopy_none - movw %gs,%cx - movw %ds,%ax - cmpw %cx,%ax - je Lcopy_none - - movl %gs:(%edx), %ecx - cmpl __go32_info_block, %ecx - jbe Lcopy_less - movl __go32_info_block, %ecx -Lcopy_less: - movl $__go32_info_block, %edi - addl $3, %ecx - andl $0xfffffffc, %ecx - movl %ecx, (%edi) - addl $4, %edi - addl $4, %edx - subl $4, %ecx -Lcopy_more: - movl %gs:(%edx), %eax - movl %eax, (%edi) - addl $4, %edx - addl $4, %edi - subl $4, %ecx - jnz Lcopy_more - - movl __go32_info_block+4, %eax - movl %eax, _ScreenPrimary - movl __go32_info_block+8, %eax - movl %eax, _ScreenSecondary -/* Backward compatibility - do not copy this one! -** movl __go32_info_block+12, %eax -** movl %eax, ___transfer_buffer -*/ - movl __go32_info_block+20, %eax - movl %eax, ___pid - movl __go32_info_block+24, %eax - movl %eax, __hard_master - - jmp Lcopy_done - -Lcopy_none: - movl %ebx,__go32_info_block+4 - movl %ebp,__go32_info_block+8 - movl %edi,__go32_info_block+12 - movl $4096,__go32_info_block+16 - movl %esi,__go32_info_block+20 - movl %eax,__go32_info_block+24 - movl $28, __go32_info_block -Lcopy_done: - -#ifndef EMU387 - call __setstack -#endif - xorl %esi,%esi - xorl %edi,%edi - xorl %ebp,%ebp - xorl %ebx,%ebx - - movl %esp,%ebx -#ifdef MAKE_GCRT0 - call mcount_init /* initialize the profiler */ -#endif - movl 8(%ebx),%eax - pushl %eax - movl %eax,_environ - pushl 4(%ebx) - pushl (%ebx) - call ___main - call _main - addl $12,%esp -#ifdef EMU387 - pop %gs - popa -#else - pushl %eax - call _exit - -exit_again: - movl $0x4c00,%eax - int $0x21 - jmp exit_again -#endif - - ret - - -#ifdef MAKE_GCRT0 - .globl __exit -__exit: - call mcount_write /* make sure we dump the output */ -exit_again2: - movb 4(%esp),%al - movb $0x4c,%ah - int $0x21 - jmp exit_again2 - -/* Here is where we initialize the timer interrupt - specific to go32 */ -/* In this case, the timer calls mcount_isr */ - .globl mcount_isr_init -mcount_isr_init: - movw __go32_info_block+36, %ax /* run mode */ - cmp $1,%ax - jb skip_mcount - cmp $3,%ax - ja skip_mcount - - movw $16,%ax - movw %ax,%gs - - movzbl __hard_master,%eax /* timer is on irq 0 */ - shll $3,%eax /* times 8 bpv */ -/* movl $960,%eax vector 0x78 * 8 bpv */ - movw %gs:(%eax),%cx - movw %cx,mc_chain - movw %gs:6(%eax),%cx - movw %cx,mc_chain_hi - movw %gs:2(%eax),%cx - movw %cx,mc_chain_sel - - movl $mcount_isr,%ecx - movw %cx,%gs:(%eax) - movw $0xd8,%gs:2(%eax) /* selector 27 == 32-bit code */ - movw $0x8f00,%gs:4(%eax) - rorl $16,%ecx - movw %cx,%gs:6(%eax) - movw %ds,%ax - movw %ax,%gs -skip_mcount: - movl mcount_histogram,%eax - movl $1,(%eax) - ret - -/* Obtain the PC where we interrupted, and bump the histogram. We should */ -/* do error checking here, but we don't. This routine is specific to go32 */ -/* in some spots */ -mcount_isr: - pushl %eax - cmpl $1,mcount_skip - je L0 - movl 4(%esp),%eax /* get the PC */ - subl $0x1020,%eax /* to fit in low..high */ - andl $0xfffffffc,%eax - shrl $1,%eax /* now points to one 4-byte entry */ - addl mcount_histogram,%eax - incw (%eax) -L0: - popl %eax - ljmp mc_chain /* chain to the next timer vector */ - iret -#endif - - .data - - .globl _environ -_environ: - .long 0 - - .globl ___pid -___pid: - .long 42 - - .globl ___transfer_buffer -___transfer_buffer: - .long 0 - - .globl _ScreenPrimary -_ScreenPrimary: - .long 0 - - .globl _ScreenSecondary -_ScreenSecondary: - .long 0 - - .globl __hard_master - .globl __hard_slave - .globl __core_select -__hard_master: - .byte 0 -__hard_slave: - .byte 0 -__core_select: - .short 0 - -#ifdef MAKE_GCRT0 -mc_chain: - .short 0 -mc_chain_hi: - .short 0 -mc_chain_sel: - .short 0 -#endif - - diff --git a/newlib/libc/sys/go32/dir.c b/newlib/libc/sys/go32/dir.c deleted file mode 100644 index ba3831a..0000000 --- a/newlib/libc/sys/go32/dir.c +++ /dev/null @@ -1,95 +0,0 @@ -#include - -#include "sys/dir.h" -#include "sys/dirent.h" -#include - -DIR *opendir(char *name) -{ - int length; - DIR *dir = (DIR *)malloc(sizeof(DIR)); - dir->num_read = 0; - dir->name = (char *)malloc(strlen(name)+6); - strcpy(dir->name, name); - - /* Append a "." if we got only the device name */ - if (dir->name[1] == ':' && strlen(dir->name) == 2) - strcat(dir->name, "."); - - /* Strip trailing slashes, so we can append "/*.*" */ - while (1) - { - length = strlen(dir->name); - if (length == 0) break; - if (dir->name[length - 1] == '/' || - dir->name[length - 1] == '\\') - dir->name[length - 1] = '\0'; - else - break; - } - - strcat(dir->name, "/*.*"); - return dir; -} - - - -static char *strlwr(char *s) -{ - char *p = s; - while (*s) - { - if ((*s >= 'A') && (*s <= 'Z')) - *s += 'a'-'A'; - s++; - } - return p; -} - -struct dirent *readdir(DIR *dir) -{ - int done; - int oerrno = errno; - if (dir->num_read) - done = findnext(&dir->ff); - else - done = findfirst(dir->name, &dir->ff, - FA_ARCH|FA_RDONLY|FA_DIREC|FA_HIDDEN|FA_SYSTEM); - if (done) - { - if (errno == ENMFILE) - errno = oerrno; - return 0; - } - dir->num_read ++; - dir->de.d_namlen = strlen(dir->ff.ff_name); - strcpy(dir->de.d_name,dir->ff.ff_name); - strlwr(dir->de.d_name); - return &dir->de; -} - -long telldir(DIR *dir) -{ - return dir->num_read; -} - -void seekdir(DIR *dir, long loc) -{ - int i; - rewinddir(dir); - for (i=0; inum_read = 0; -} - -int closedir(DIR *dir) -{ - free(dir->name); - free(dir); - return 0; -} - diff --git a/newlib/libc/sys/go32/dir.h b/newlib/libc/sys/go32/dir.h deleted file mode 100644 index b53695d..0000000 --- a/newlib/libc/sys/go32/dir.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef _DIR_H_ -#define _DIR_H_ - -struct ffblk { - char ff_reserved[21]; - char ff_attrib; - short ff_ftime; - short ff_fdate; - short ff_filler; - long ff_fsize; - char ff_name[16]; -}; - -#define FA_RDONLY 1 -#define FA_HIDDEN 2 -#define FA_SYSTEM 4 -#define FA_LABEL 8 -#define FA_DIREC 16 -#define FA_ARCH 32 - -/* for fnmerge/fnsplit */ -#define MAXPATH 80 -#define MAXDRIVE 3 -#define MAXDIR 66 -#define MAXFILE 9 -#define MAXEXT 5 - -#define WILDCARDS 0x01 -#define EXTENSION 0x02 -#define FILENAME 0x04 -#define DIRECTORY 0x08 -#define DRIVE 0x10 - -#ifdef __cplusplus -extern "C" { -#endif - -int findfirst(const char *pathname, struct ffblk *ffblk, int attrib); -int findnext(struct ffblk *ffblk); - -void fnmerge (char *path, const char *drive, const char *dir, - const char *name, const char *ext); -int fnsplit (const char *path, char *drive, char *dir, - char *name, char *ext); - -int getdisk(void); -int setdisk(int drive); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/newlib/libc/sys/go32/djtime.h b/newlib/libc/sys/go32/djtime.h deleted file mode 100644 index db28dbe..0000000 --- a/newlib/libc/sys/go32/djtime.h +++ /dev/null @@ -1,42 +0,0 @@ -/* This is file TIME.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _SYS_TIME_H_ -#define _SYS_TIME_H_ - -#include - -struct timeval { - long tv_sec; - long tv_usec; -}; - -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -int gettimeofday(struct timeval *tp, struct timezone *tzp); - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/newlib/libc/sys/go32/dos.h b/newlib/libc/sys/go32/dos.h deleted file mode 100644 index 8b42562..0000000 --- a/newlib/libc/sys/go32/dos.h +++ /dev/null @@ -1,107 +0,0 @@ -#ifndef _DOS_H_ -#define _DOS_H_ - -#include "pc.h" - -union REGS { - struct { - unsigned long ax; - unsigned long bx; - unsigned long cx; - unsigned long dx; - unsigned long si; - unsigned long di; - unsigned long cflag; - unsigned long flags; - } x; - struct { - unsigned char al; - unsigned char ah; - unsigned short upper_ax; - unsigned char bl; - unsigned char bh; - unsigned short upper_bx; - unsigned char cl; - unsigned char ch; - unsigned short upper_cx; - unsigned char dl; - unsigned char dh; - unsigned short upper_dx; - } h; -}; - -struct SREGS { - unsigned short cs; - unsigned short ds; - unsigned short es; - unsigned short fs; - unsigned short gs; - unsigned short ss; -}; - -struct ftime { - unsigned ft_tsec:5; /* 0-29, double to get real seconds */ - unsigned ft_min:6; /* 0-59 */ - unsigned ft_hour:5; /* 0-23 */ - unsigned ft_day:5; /* 1-31 */ - unsigned ft_month:4; /* 1-12 */ - unsigned ft_year:7; /* since 1980 */ -}; - -struct date { - short da_year; - char da_day; - char da_mon; -}; - -struct time { - unsigned char ti_min; - unsigned char ti_hour; - unsigned char ti_hund; - unsigned char ti_sec; -}; - -struct dfree { - unsigned df_avail; - unsigned df_total; - unsigned df_bsec; - unsigned df_sclus; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -int bdos(int func, unsigned dx, unsigned al); -int bdosptr(int func, void *dx, unsigned al); -int int86(int ivec, union REGS *in, union REGS *out); -int int86x(int ivec, union REGS *in, union REGS *out, struct SREGS *seg); -int intdos(union REGS *in, union REGS *out); -int intdosx(union REGS *in, union REGS *out, struct SREGS *seg); - -int enable(void); -int disable(void); - -int getftime(int handle, struct ftime *ftimep); -int setftime(int handle, struct ftime *ftimep); - -int getcbrk(void); -int setcbrk(int new_value); - -void getdate(struct date *); -void gettime(struct time *); -void setdate(struct date *); -void settime(struct time *); - -void getdfree(unsigned char drive, struct dfree *ptr); - -void delay(unsigned msec); -int _get_default_drive(void); -void _fixpath(const char *, char *); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/newlib/libc/sys/go32/dosmem.S b/newlib/libc/sys/go32/dosmem.S deleted file mode 100644 index c1956f7..0000000 --- a/newlib/libc/sys/go32/dosmem.S +++ /dev/null @@ -1,120 +0,0 @@ -/* DOSMEM.S */ -/* -** Copyright (C) 1993 C.W. Sandmann -** -** This file may be freely distributed as long as the author's name remains. -** Extender environment independent way to set up Real area 1Mb access. -** Procedure takes a single argument %eax which contains the real area offset. -** After call, access may be made with "%gs:(%eax)" -*/ - .text - .align 2 - .globl dosmemsetup -dosmemsetup: /* no params, expected ASM call only */ - pushl %eax - movzwl __core_select,%eax - testl %eax,%eax - je old_go32 /* Image run with pre-DPMI extender */ - movw %ax,%gs /* Use real area selector */ - popl %eax /* Plus real offset */ - andl $0x0fffffff,%eax /* Clear any linear access bits */ - ret - .align 2,0x90 -old_go32: - push %ds - pop %gs /* Use arena selector */ - popl %eax - orl $0xe0000000,%eax /* Plus linear access area */ - ret - - .align 2 - .globl _dosmemget -_dosmemget: /* long offset, long len, long *buf */ - push %gs - movl 8(%esp),%eax /* offset */ - call dosmemsetup - movl 12(%esp),%ecx /* length */ - movl 16(%esp),%edx /* arena offset */ - pushl %esi - pushl %edi - movl %eax,%esi - movl %edx,%edi - push %ds - push %es - push %ds - pop %es - push %gs - pop %ds - cld - rep - movsb /* move ECX bytes from Real area */ - pop %es - pop %ds - popl %edi - popl %esi - pop %gs - ret - - .align 2 - .globl _dosmemput -_dosmemput: /* long *buf, long len, long offset */ - push %gs - movl 16(%esp),%eax /* offset */ - call dosmemsetup - movl 12(%esp),%ecx /* length */ - movl 8(%esp),%edx /* arena offset */ - pushl %esi - pushl %edi - movl %eax,%edi - movl %edx,%esi - push %es - push %gs - pop %es - cld - rep - movsb /* move ECX bytes to Real area */ - pop %es - popl %edi - popl %esi - pop %gs - ret - - .align 2 /* 8(bp) 12(bp) 16(bp) 20(bp) 24(bp) */ - .globl _movedata /* src_sel, src_ofs, dest_sel, dest_ofs, len */ -_movedata: - pushl %ebp - movl %esp,%ebp - pushw %ds - pushw %es - pushl %esi - pushl %edi - - movl 8(%ebp),%eax - movw %ax,%ds - movl 12(%ebp),%esi - - movl 16(%ebp),%eax - movw %ax,%es - movl 20(%ebp),%edi - - movl 24(%ebp),%ecx - pushl %ecx - shrl $2,%ecx - jcxz no_big_move - rep - movsl -no_big_move: - popl %ecx - andl $3,%ecx - jcxz no_little_move - rep - movsb -no_little_move: - - popl %edi - popl %esi - popw %es - popw %ds - leave - ret - diff --git a/newlib/libc/sys/go32/dpmi.c b/newlib/libc/sys/go32/dpmi.c deleted file mode 100644 index 5215065..0000000 --- a/newlib/libc/sys/go32/dpmi.c +++ /dev/null @@ -1,413 +0,0 @@ -#include -#include "dos.h" -#include "go32.h" -#include -#include "dpmi.h" - -static union REGS r; -static struct SREGS s; - -int _go32_dpmi_allocate_dos_memory(_go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0100; - r.x.bx = info->size; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - info->size = r.x.bx; - return r.x.ax; - } - else - { - info->rm_segment = r.x.ax; - info->pm_selector = r.x.dx; - return 0; - } -} - -int _go32_dpmi_free_dos_memory(_go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0101; - r.x.dx = info->pm_selector; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - return 0; - } -} - -int _go32_dpmi_resize_dos_memory(_go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0102; - r.x.bx = info->size; - r.x.dx = info->pm_selector; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - info->size = r.x.bx; - return r.x.ax; - } - else - { - return 0; - } -} - -int _go32_dpmi_get_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0200; - r.h.bl = vector; - int86(0x31, &r, &r); - info->rm_segment = r.x.cx; - info->rm_offset = r.x.dx; - return 0; -} - -int _go32_dpmi_set_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0201; - r.h.bl = vector; - r.x.cx = info->rm_segment; - r.x.dx = info->rm_offset; - int86(0x31, &r, &r); - return 0; -} - -int _go32_dpmi_get_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0204; - r.h.bl = vector; - int86(0x31, &r, &r); - info->pm_selector = r.x.cx; - info->pm_offset = r.x.dx; - return 0; -} - -int _go32_dpmi_set_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info) -{ - r.x.ax = 0x0205; - r.h.bl = vector; - r.x.cx = info->pm_selector; - r.x.dx = info->pm_offset; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - return 0; - } -} - -/* In real DPMI, we enter with only CS known, and SS on a locked 4K stack which - is *NOT* our SS. We must set up everthing, including a stack swap, then - restore it the way we found it. C. Sandmann 4-93 */ - -static unsigned char wrapper_intcommon[] = { -0x1e, /* push ds */ -0x06, /* push es */ -0x0f, 0xa0, /* push fs */ -0x0f, 0xa8, /* push gs */ -0x60, /* pusha */ -0x66, 0xb8, 0x34, 0x12, /* mov ax,0x1234 */ -0x8e, 0xd8, /* mov ds,ax */ -0x8e, 0xc0, /* mov es,ax */ -0x8e, 0xe0, /* mov fs,ax */ -0x8e, 0xe8, /* mov gs,ax */ -0xbb, 0x00, 0x00, 0x00, 0x00, /* mov ebx,_local_stack */ -0xfc, /* cld */ -0x89, 0xe1, /* mov ecx,esp */ -0x8c, 0xd2, /* mov dx,ss */ -0x8e, 0xd0, /* mov ss,ax */ -0x89, 0xdc, /* mov esp,ebx */ -0x52, /* push edx */ -0x51, /* push ecx */ -0xe8, 0x00, 0x00, 0x00, 0x00, /* call _rmih */ -0x58, /* pop eax */ -0x5b, /* pop ebx */ -0x8e, 0xd3, /* mov ss,bx */ -0x89, 0xc4, /* mov esp,eax */ -0x61, /* popa */ -0x0f, 0xa9, /* pop gs */ -0x0f, 0xa1, /* pop fs */ -0x07, /* pop es */ -0x1f /* pop ds */ -}; - -static unsigned char wrapper_intiret[] = { -0xcf /* iret */ -}; - -static unsigned char wrapper_intchain[] = { -0x2e, 0xff, 0x2d, 0x00, 0x00, 0x00, 0x00, /* jmp cs:[_old_int+39] */ -0xcf, /* iret */ -0x78, 0x56, 0x34, 0x12, -0xcd, 0xab -}; - -/* _interrupt_stack_size can be changed globally before calling this routine if - needed. Don't change it between calls or you will mess up the malloc chain ! */ - -unsigned _interrupt_stack_size = 32256; - -int _go32_dpmi_chain_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info) -{ - char *mystack; - unsigned char *wrapper = (unsigned char *)malloc(sizeof(wrapper_intcommon) + sizeof(wrapper_intchain)); - if (wrapper == 0) - return 0x8015; - mystack = (char *)malloc(_interrupt_stack_size); - if (mystack == 0) - return 0x8015; - - r.x.ax = 0x0204; - r.h.bl = vector; - int86(0x31, &r, &r); - - memcpy(wrapper, wrapper_intcommon, sizeof(wrapper_intcommon)); - memcpy(wrapper+sizeof(wrapper_intcommon), wrapper_intchain, sizeof(wrapper_intchain)); - *(short *)(wrapper+9) = _go32_my_ds(); - *(long *)(wrapper+20) = (int)mystack + _interrupt_stack_size; - *(long *)(wrapper+36) = info->pm_offset - (int)wrapper - 40; - *(long *)(wrapper+sizeof(wrapper_intcommon)+3) = (long)wrapper+sizeof(wrapper_intcommon)+8; - *(long *)(wrapper+sizeof(wrapper_intcommon)+8) = r.x.dx; - *(short *)(wrapper+sizeof(wrapper_intcommon)+12) = r.x.cx; - - r.x.ax = 0x0205; - r.h.bl = vector; - r.x.cx = _go32_my_cs(); - r.x.dx = (int)wrapper; - int86(0x31, &r, &r); - return 0; -} - -int _go32_dpmi_allocate_iret_wrapper(_go32_dpmi_seginfo *info) -{ - char *mystack; - unsigned char *wrapper = (unsigned char *)malloc(sizeof(wrapper_intcommon) + sizeof(wrapper_intiret)); - if (wrapper == 0) - return 0x8015; - mystack = (char *)malloc(_interrupt_stack_size); - if (mystack == 0) - return 0x8015; - - memcpy(wrapper, wrapper_intcommon, sizeof(wrapper_intcommon)); - memcpy(wrapper+sizeof(wrapper_intcommon), wrapper_intiret, sizeof(wrapper_intiret)); - *(short *)(wrapper+9) = _go32_my_ds(); - *(long *)(wrapper+20) = (int)mystack + _interrupt_stack_size; - *(long *)(wrapper+36) = info->pm_offset - (int)wrapper - 40; - - info->pm_offset = (int)wrapper; - return 0; -} - -int _go32_dpmi_free_iret_wrapper(_go32_dpmi_seginfo *info) -{ - char *mystack; - char *wrapper = (char *)info->pm_offset; - mystack = (char *)(*(long *)(wrapper+20) - _interrupt_stack_size); - free(mystack); - free(wrapper); - return 0; -} - -int _go32_dpmi_simulate_int(int vector, _go32_dpmi_registers *regs) -{ - r.h.bl = vector; - r.h.bh = 0; - r.x.cx = 0; - r.x.di = (int)regs; - if (vector == 0x21 && regs->x.ax == 0x4b00) - { - r.x.ax = 0xff0a; - int86(0x21, &r, &r); - } - else - { - r.x.ax = 0x0300; - int86(0x31, &r, &r); - } - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - return 0; - } -} - -int _go32_dpmi_simulate_fcall(_go32_dpmi_registers *regs) -{ - r.x.ax = 0x0301; - r.h.bh = 0; - r.x.cx = 0; - r.x.di = (int)regs; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - return 0; - } -} - -int _go32_dpmi_simulate_fcall_iret(_go32_dpmi_registers *regs) -{ - r.x.ax = 0x0302; - r.h.bh = 0; - r.x.cx = 0; - r.x.di = (int)regs; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - return 0; - } -} - -/* Bug here; this needs to be fixed like above with SS & CLD */ - -static unsigned char wrapper_common[] = { -0x66, 0x06, /* push es */ -0x66, 0x1e, /* push ds */ -0x66, 0x06, /* push es */ -0x66, 0x1f, /* pop ds */ -0x56, /* push esi */ -0x57, /* push edi */ -0xe8, 0x00, 0x00, 0x00, 0x00, /* call _rmcb */ -0x5f, /* pop edi */ -0x5e, /* pop esi */ -0x66, 0x1f, /* pop ds */ -0x66, 0x07, /* pop es */ -0xfc, /* cld */ -0x66, 0x8b, 0x06, /* mov ax,[esi] */ -0x66, 0x26, 0x89, 0x47, 0x2a, /* mov es:[edi+42],ax */ -0x66, 0x8b, 0x46, 0x02, /* mov ax,[esi+2] */ -0x66, 0x26, 0x89, 0x47, 0x2c, /* mov es:[edi+44],ax */ -}; - -static unsigned char wrapper_retf[] = { -0x66, 0x26, 0x83, 0x47, 0x2e, 0x04, /* add es:[edi+46],0x4 */ -0xcf /* iret */ -}; - -static unsigned char wrapper_iret[] = { -0x66, 0x8b, 0x46, 0x04, /* mov ax,[esi+4] */ -0x66, 0x26, 0x89, 0x47, 0x20, /* mov es:[edi+32],ax */ -0x66, 0x26, 0x83, 0x47, 0x2e, 0x06, /* add es:[edi+46],0x6 */ -0xcf /* iret */ -}; - -int _go32_dpmi_allocate_real_mode_callback_retf(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs) -{ - unsigned char *wrapper = (unsigned char *)malloc(sizeof(wrapper_common) + sizeof(wrapper_retf)); - if (wrapper == 0) - return 0x8015; - - memcpy(wrapper, wrapper_common, sizeof(wrapper_common)); - memcpy(wrapper+sizeof(wrapper_common), wrapper_retf, sizeof(wrapper_retf)); - *(long *)(wrapper+11) = info->pm_offset - (int)wrapper - 15; - info->size = (int)wrapper; - - r.x.ax = 0x0303; - r.x.si = (int)wrapper; - r.x.di = (int)regs; - s.ds = _go32_my_cs(); - s.es = _go32_my_ds(); - s.fs = 0; - s.gs = 0; - int86x(0x31, &r, &r, &s); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - info->rm_segment = r.x.cx; - info->rm_offset = r.x.dx; - return 0; - } -} - -int _go32_dpmi_allocate_real_mode_callback_iret(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs) -{ - unsigned char *wrapper = (unsigned char *)malloc(sizeof(wrapper_common) + sizeof(wrapper_iret)); - if (wrapper == 0) - return 0x8015; - - memcpy(wrapper, wrapper_common, sizeof(wrapper_common)); - memcpy(wrapper+sizeof(wrapper_common), wrapper_iret, sizeof(wrapper_iret)); - *(long *)(wrapper+11) = info->pm_offset - (int)wrapper - 15; - info->size = (int)wrapper; - - r.x.ax = 0x0303; - r.x.si = (int)wrapper; - r.x.di = (int)regs; - s.ds = _go32_my_cs(); - s.es = _go32_my_ds(); - s.fs = 0; - s.gs = 0; - int86x(0x31, &r, &r, &s); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - info->rm_segment = r.x.cx; - info->rm_offset = r.x.dx; - return 0; - } -} - -int _go32_dpmi_free_real_mode_callback(_go32_dpmi_seginfo *info) -{ - free((char *)info->size); - r.x.ax = 0x0304; - r.x.cx = info->rm_segment; - r.x.dx = info->rm_offset; - int86(0x31, &r, &r); - if (r.x.flags & 1) - { - return r.x.ax; - } - else - { - return 0; - } -} - -int _go32_dpmi_get_free_memory_information(_go32_dpmi_meminfo *info) -{ - r.x.ax = 0x0500; - r.x.di = (int)info; - int86(0x31, &r, &r); - return 0; -} - -u_long _go32_dpmi_remaining_physical_memory() -{ - _go32_dpmi_meminfo info; - _go32_dpmi_get_free_memory_information(&info); - if (info.available_physical_pages) - return info.available_physical_pages * 4096; - return info.available_memory; -} - -u_long _go32_dpmi_remaining_virtual_memory() -{ - _go32_dpmi_meminfo info; - _go32_dpmi_get_free_memory_information(&info); - return info.available_memory; -} diff --git a/newlib/libc/sys/go32/dpmi.h b/newlib/libc/sys/go32/dpmi.h deleted file mode 100644 index b85df0a..0000000 --- a/newlib/libc/sys/go32/dpmi.h +++ /dev/null @@ -1,151 +0,0 @@ -/* This is file dpmi.h */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _DPMI_H_ -#define _DPMI_H_ - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef union { - struct { - u_long edi; - u_long esi; - u_long ebp; - u_long res; - u_long ebx; - u_long edx; - u_long ecx; - u_long eax; - } d; - struct { - u_short di, di_hi; - u_short si, si_hi; - u_short bp, bp_hi; - u_short res, res_hi; - u_short bx, bx_hi; - u_short dx, dx_hi; - u_short cx, cx_hi; - u_short ax, ax_hi; - u_short flags; - u_short es; - u_short ds; - u_short fs; - u_short gs; - u_short ip; - u_short cs; - u_short sp; - u_short ss; - } x; - struct { - u_char edi[4]; - u_char esi[4]; - u_char ebp[4]; - u_char res[4]; - u_char bl, bh, ebx_b2, ebx_b3; - u_char dl, dh, edx_b2, edx_b3; - u_char cl, ch, ecx_b2, ecx_b3; - u_char al, ah, eax_b2, eax_b3; - } h; -} _go32_dpmi_registers; - -typedef struct { - u_long size; - u_long pm_offset; - u_short pm_selector; - u_short rm_offset; - u_short rm_segment; -} _go32_dpmi_seginfo; - -typedef struct { - u_long available_memory; - u_long available_pages; - u_long available_lockable_pages; - u_long linear_space; - u_long unlocked_pages; - u_long available_physical_pages; - u_long total_physical_pages; - u_long free_linear_space; - u_long max_pages_in_paging_file; - u_long reserved[3]; -} _go32_dpmi_meminfo; - -/* returns zero if success, else dpmi error and info->size is max size */ -int _go32_dpmi_allocate_dos_memory(_go32_dpmi_seginfo *info); - /* set size to bytes/16, call, use rm_segment. Do not - change anthing but size until the memory is freed. - If error, max size is returned in size as bytes/16. */ -int _go32_dpmi_free_dos_memory(_go32_dpmi_seginfo *info); - /* set new size to bytes/16, call. If error, max size - is returned in size as bytes/16 */ -int _go32_dpmi_resize_dos_memory(_go32_dpmi_seginfo *info); - /* uses pm_selector to free memory */ - -/* These both use the rm_segment:rm_offset fields only */ -int _go32_dpmi_get_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); -int _go32_dpmi_set_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - -/* These do NOT wrap the function in pm_offset in an iret handler. - You must provide an assembler interface yourself, or alloc one below. - You may NOT longjmp out of an interrupt handler. */ -int _go32_dpmi_get_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - /* puts vector in pm_selector:pm_offset. */ -int _go32_dpmi_set_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - /* sets vector from pm_offset and pm_selector */ -int _go32_dpmi_chain_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - /* sets up wrapper that calls function in pm_offset, chaining to old - handler when it returns */ - -/* These can be used to generate assember IRET-style wrappers for functions */ -int _go32_dpmi_allocate_iret_wrapper(_go32_dpmi_seginfo *info); - /* Put function ptr in pm_offset, call, returns wrapper entry in pm_offset. */ -int _go32_dpmi_free_iret_wrapper(_go32_dpmi_seginfo *info); - /* assumes pm_offset points to wrapper, frees it */ - -/* simulate real mode calls. CS:IP from regs for non-interrupt */ -int _go32_dpmi_simulate_int(int vector, _go32_dpmi_registers *regs); -int _go32_dpmi_simulate_fcall(_go32_dpmi_registers *regs); -int _go32_dpmi_simulate_fcall_iret(_go32_dpmi_registers *regs); - -/* These automatically handle the tasks of restructuring the - real-mode stack for the proper return type. The callback - (info->pm_offset) is called as (*pmcb)(_go32_dpmi_registers *regs); */ -int _go32_dpmi_allocate_real_mode_callback_retf(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs); - /* points callback at pm_offset, returns seg:ofs of callback addr - in rm_segment:rm_offset. Do not change any fields until freed. - Interface is added to simulate far return */ -int _go32_dpmi_allocate_real_mode_callback_iret(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs); - /* same, but simulates iret */ -int _go32_dpmi_free_real_mode_callback(_go32_dpmi_seginfo *info); - /* frees callback */ - -/* Only available_memory is guaranteed to be valid. Try - available_physical_pages for phys mem left */ -int _go32_dpmi_get_free_memory_information(_go32_dpmi_meminfo *info); - -/* Convenience functions. These use the above memory info call. - The return value is *bytes* */ -u_long _go32_dpmi_remaining_physical_memory(void); -u_long _go32_dpmi_remaining_virtual_memory(void); - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/newlib/libc/sys/go32/dup.s b/newlib/libc/sys/go32/dup.s deleted file mode 100644 index e093baf..0000000 --- a/newlib/libc/sys/go32/dup.s +++ /dev/null @@ -1,28 +0,0 @@ -# /* This is file DUP.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _dup -_dup: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movb $0x45,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jb syscall_error - ret diff --git a/newlib/libc/sys/go32/dup2.s b/newlib/libc/sys/go32/dup2.s deleted file mode 100644 index e26b48f..0000000 --- a/newlib/libc/sys/go32/dup2.s +++ /dev/null @@ -1,28 +0,0 @@ -# /* This is file DUP2.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _dup2 -_dup2: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movl 20(%esp),%ecx - movb $0x46,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/exec.c b/newlib/libc/sys/go32/exec.c deleted file mode 100644 index 3682934..0000000 --- a/newlib/libc/sys/go32/exec.c +++ /dev/null @@ -1,509 +0,0 @@ -#include -#include -#include -#include -#include -#include "go32.h" -#include "dpmi.h" -/*#include "process.h"*/ -#if 1 -#define P_WAIT 1 -#define P_NOWAIT 2 /* always generates error */ -#define P_OVERLAY 3 -#endif -extern const char **environ; -#define environ ((const char **)environ) - -#define scan_ptr() \ - char const **ptr; \ - for (ptr = &argv0; *ptr; ptr++); \ - ptr = (char const **)(*++ptr); - -int execl(const char *path, const char *argv0, ...) -{ - return spawnve(P_OVERLAY, path, &argv0, environ); -} - -int execle(const char *path, const char *argv0, ... /*, const char **envp */) -{ - scan_ptr(); - return spawnve(P_OVERLAY, path, &argv0, ptr); -} - -int execlp(const char *path, const char *argv0, ...) -{ - return spawnvpe(P_OVERLAY, path, &argv0, environ); -} - -int execlpe(const char *path, const char *argv0, ... /*, const char **envp */) -{ - scan_ptr(); - return spawnvpe(P_OVERLAY, path, &argv0, ptr); -} - -/*-------------------------------------------------*/ - -int execv(const char *path, const char **argv) -{ - return spawnve(P_OVERLAY, path, argv, environ); -} - -int execve(const char *path, const char **argv, const char **envp) -{ - return spawnve(P_OVERLAY, path, argv, envp); -} - -int execvp(const char *path, const char **argv) -{ - return spawnvpe(P_OVERLAY, path, argv, environ); -} - -int execvpe(const char *path, const char **argv, const char **envp) -{ - return spawnvpe(P_OVERLAY, path, argv, envp); -} - -/*-------------------------------------------------*/ - -int spawnl(int mode, const char *path, const char *argv0, ...) -{ - return spawnve(mode, path, &argv0, environ); -} - -int spawnle(int mode, const char *path, const char *argv0, ... /*, const char **envp */) -{ - scan_ptr(); - return spawnve(mode, path, &argv0, ptr); -} - -int spawnlp(int mode, const char *path, const char *argv0, ...) -{ - return spawnvpe(mode, path, &argv0, environ); -} - -int spawnlpe(int mode, const char *path, const char *argv0, ... /*, const char **envp */) -{ - scan_ptr(); - return spawnvpe(mode, path, &argv0, ptr); -} - -/*-------------------------------------------------*/ - -typedef struct { - u_short eseg; - u_short argoff; - u_short argseg; - u_short fcb1_off; - u_short fcb1_seg; - u_short fcb2_off; - u_short fcb2_seg; -} Execp; - -static Execp parm; - -static u_long tbuf; - -static u_long talloc(size_t amt) -{ - u_long rv = tbuf; - tbuf += amt; - return rv; -} - -static int direct_exec_tail(const char *program, const char *args, const char **envp) -{ - _go32_dpmi_registers r; - u_long program_la; - u_long arg_la; - u_long parm_la; - u_long env_la, env_e_la; - char arg_header[3]; - int i; - - program_la = talloc(strlen(program)+1); - arg_la = talloc(strlen(args)+3); - parm_la = talloc(sizeof(Execp)); - - dosmemput(program, strlen(program)+1, program_la); - - arg_header[0] = strlen(args); - arg_header[1] = '\r'; - dosmemput(arg_header, 1, arg_la); - dosmemput(args, strlen(args), arg_la+1); - dosmemput(arg_header+1, 1, arg_la+1+strlen(args)); - - do { - env_la = talloc(1); - } while (env_la & 15); - talloc(-1); - for (i=0; envp[i]; i++) - { - env_e_la = talloc(strlen(envp[i])+1); - dosmemput(envp[i], strlen(envp[i])+1, env_e_la); - } - arg_header[0] = 0; - arg_header[1] = 1; - arg_header[2] = 0; - dosmemput(arg_header, 3, talloc(3)); - env_e_la = talloc(strlen(program)+1); - dosmemput(program, strlen(program)+1, env_e_la); - - parm.eseg = env_la / 16; - parm.argseg = arg_la / 16; - parm.argoff = arg_la & 15; - dosmemput(&parm, sizeof(parm), parm_la); - - memset(&r, 0, sizeof(r)); - r.x.ax = 0x4b00; - r.x.ds = program_la / 16; - r.x.dx = program_la & 15; - r.x.es = parm_la / 16; - r.x.bx = parm_la & 15; - _go32_dpmi_simulate_int(0x21, &r); - if (r.x.flags & 1) - { - errno = r.x.ax; - return -1; - } - - memset(&r, 0, sizeof(r)); - r.h.ah = 0x4d; - _go32_dpmi_simulate_int(0x21, &r); - - if (r.x.flags & 1) - { - errno = r.x.ax; - return -1; - } - return r.x.ax; -} - -static int direct_exec(const char *program, const char **argv, const char **envp) -{ - int i, arglen; - char *args, *argp; - - tbuf = _go32_info_block.linear_address_of_transfer_buffer; - - arglen = 0; - for (i=1; argv[i]; i++) - arglen += strlen(argv[i]) + 1; - args = (char *)malloc(arglen+1); - argp = args; - for (i=1; argv[i]; i++) - { - const char *p = argv[i]; - if (argp - args > 125) - break; - *argp++ = ' '; - while (*p) - { - if (argp - args > 125) - break; - *argp++ = *p++; - } - } - *argp = 0; - - return direct_exec_tail(program, args, envp); -} - -typedef struct { - char magic[16]; - int struct_length; - char go32[16]; -} StubInfo; -#define STUB_INFO_MAGIC "StubInfoMagic!!" - -static int go32_exec(const char *program, const char **argv, const char **envp) -{ - int is_stubbed = 0; - int found_si = 0; - StubInfo si; - unsigned short header[3]; - int pf, has_dot, i; - char *go32, *sip; - const char *pp, *pe; - char rpath[80], *rp; - int stub_offset, argc; - - int si_la, rm_la, rm_seg; - short *rm_argv; - char cmdline[34]; - - pf = open(program, O_RDONLY|O_BINARY); - - read(pf, header, sizeof(header)); - if (header[0] == 0x010b || header[0] == 0x014c) - { - is_stubbed = 1; - } - else if (header[0] == 0x5a4d) - { - int header_offset = (long)header[2]*512L; - if (header[1]) - header_offset += (long)header[1] - 512L; - lseek(pf, header_offset - 4, 0); - read(pf, &stub_offset, 4); - header[0] = 0; - read(pf, header, sizeof(header)); - if (header[0] == 0x010b) - is_stubbed = 1; - if (header[0] == 0x014c) - is_stubbed = 1; - lseek(pf, stub_offset, 0); - read(pf, &si, sizeof(si)); - if (memcmp(STUB_INFO_MAGIC, si.magic, 16) == 0) - found_si = 1; - } - if (!is_stubbed) - { - close(pf); - return direct_exec(program, argv, envp); - } - - if (found_si) - go32 = si.go32; - else - go32 = "go32.exe"; - has_dot = 0; - for (i=0; go32[i]; i++) - if (go32[i] == '.') - has_dot = 1; - if (!has_dot) - strcpy(go32+i, ".exe"); - for (i=0; envp[i]; i++) - if (strncmp(envp[i], "PATH=", 5) == 0) - pp = envp[i]+5; - strcpy(rpath, go32); - while (access(rpath, 0)) - { - char *ptr; - rp = rpath; - for (pe=pp; *pe && *pe != ';'; pe++) - *rp++ = *pe; - pp = pe+1; - if (rp > rpath && rp[-1] != '/' && rp[-1] != '\\' && rp[-1] != ':') - *rp++ = '/'; - for (ptr = go32; *ptr; ptr++) - *rp++ = *ptr; - *rp = 0; - if (access(rpath, 0) == 0) - break; - if (*pe == 0) - return direct_exec(program, argv, envp); /* give up and just run it */ - } - - if (found_si) - { - lseek(pf, stub_offset, 0); - sip = (char *)malloc(si.struct_length); - read(pf, sip, si.struct_length); - } - close(pf); - - argv[0] = program; /* since that's where we really found it */ - - tbuf = _go32_info_block.linear_address_of_transfer_buffer; - - if (found_si) - { - si_la = talloc(si.struct_length); - dosmemput(sip, si.struct_length, si_la); - free(sip); - } - - for (argc=0; argv[argc]; argc++); - rm_la = talloc(2*(argc+1)); - rm_seg = (_go32_info_block.linear_address_of_transfer_buffer >> 4) & 0xffff; - rm_argv = (short *)malloc((argc+1) * sizeof(short)); - for (i=0; i /* For errno */ -#include /* For strlen() */ - -int -_get_default_drive(void) -{ - union REGS regs; - - regs.h.ah = 0x19; /* DOS Get Default Drive call */ - regs.h.al = 0; - (void) intdos(®s, ®s); - return regs.h.al; -} - -static char * -get_current_directory(char *out, int drive_number) -{ - union REGS regs; - - regs.h.ah = 0x47; - regs.h.dl = drive_number + 1; - regs.x.si = (unsigned long) (out + 1); - (void) intdos(®s, ®s); - if (regs.x.cflag != 0) - { - errno = regs.x.ax; - return out; - } - else - { - /* Root path, don't insert "/", it'll be added later */ - if (*(out + 1) != '\0') - *out = '/'; - else - *out = '\0'; - return out + strlen(out); - } -} - -static int -is_slash(int c) -{ - return c == '/' || c == '\\'; -} - -static int -is_term(int c) -{ - return c == '/' || c == '\\' || c == '\0'; -} - -/* Takes as input an arbitrary path. Fixes up the path by: - 1. Removing consecutive slashes - 2. Removing trailing slashes - 3. Making the path absolute if it wasn't already - 4. Removing "." in the path - 5. Removing ".." entries in the path (and the directory above them) - 6. Adding a drive specification if one wasn't there - 7. Converting all slashes to '/' - */ -void -_fixpath(const char *in, char *out) -{ - int drive_number; - const char *ip = in; - char *op = out; - - /* Add drive specification to output string */ - if (*(ip + 1) == ':' && ((*ip >= 'a' && *ip <= 'z') || - (*ip >= 'A' && *ip <= 'Z'))) - { - if (*ip >= 'a' && *ip <= 'z') - drive_number = *ip - 'a'; - else - drive_number = *ip - 'A'; - *op++ = *ip++; - *op++ = *ip++; - } - else - { - drive_number = _get_default_drive(); - *op++ = drive_number + 'a'; - *op++ = ':'; - } - - /* Convert relative path to absolute */ - if (!is_slash(*ip)) - op = get_current_directory(op, drive_number); - - /* Step through the input path */ - while (*ip) - { - /* Skip input slashes */ - if (is_slash(*ip)) - { - ip++; - continue; - } - - /* Skip "." and output nothing */ - if (*ip == '.' && is_term(*(ip + 1))) - { - ip++; - continue; - } - - /* Skip ".." and remove previous output directory */ - if (*ip == '.' && *(ip + 1) == '.' && is_term(*(ip + 2))) - { - ip += 2; - /* Don't back up over drive spec */ - if (op > out + 2) - /* This requires "/" to follow drive spec */ - while (!is_slash(*--op)); - continue; - } - - /* Copy path component from in to out */ - *op++ = '/'; - while (!is_term(*ip)) *op++ = *ip++; - } - - /* If root directory, insert trailing slash */ - if (op == out + 2) *op++ = '/'; - - /* Null terminate the output */ - *op = '\0'; -} - -#ifdef TEST -#include - -int -main(int argc, char **argv) -{ - char path[90]; - int i; - - for (i = 1; i < argc; i++) - { - _fixpath(argv[i], path); - (void) printf("'%s' -> '%s'\n", argv[i], path); - } - - return 0; -} -#endif diff --git a/newlib/libc/sys/go32/fstat.s b/newlib/libc/sys/go32/fstat.s deleted file mode 100644 index 5414eaf..0000000 --- a/newlib/libc/sys/go32/fstat.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file FSTAT.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _fstat -_fstat: - movb $3,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/fsync.s b/newlib/libc/sys/go32/fsync.s deleted file mode 100644 index 5f246f0..0000000 --- a/newlib/libc/sys/go32/fsync.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file FSYNC.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _fsync -_fsync: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movb $0x68,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - ret diff --git a/newlib/libc/sys/go32/ftruncat.c b/newlib/libc/sys/go32/ftruncat.c deleted file mode 100644 index 1e2544f..0000000 --- a/newlib/libc/sys/go32/ftruncat.c +++ /dev/null @@ -1,25 +0,0 @@ -/* This is file FTRUNCAT.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include - -/* -** Note: this only works right if you close the file right after truncating! -*/ - -ftruncate(int fd, unsigned long where) -{ - lseek(fd, where, 0); - write(fd, 0, 0); -} diff --git a/newlib/libc/sys/go32/gerrno.s b/newlib/libc/sys/go32/gerrno.s deleted file mode 100644 index ff6b6da..0000000 --- a/newlib/libc/sys/go32/gerrno.s +++ /dev/null @@ -1,33 +0,0 @@ -# /* This is file GERRNO.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - -# Modified to use newlib's reent mechanism, 960414, dje. -# Reentrancy isn't really supported of course, the purpose is to -# record `errno' in the normal place. - - .text - .globl syscall_error -syscall_error: - pushl %eax - call ___errno - popl %edx - mov %edx,(%eax) - mov $-1,%eax - ret - - .globl syscall_check -syscall_check: - jb syscall_error - mov $0,%eax - ret diff --git a/newlib/libc/sys/go32/getcwd.c b/newlib/libc/sys/go32/getcwd.c deleted file mode 100644 index 1dd4dcb..0000000 --- a/newlib/libc/sys/go32/getcwd.c +++ /dev/null @@ -1,37 +0,0 @@ -/* This is file GETCWD.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include - -char *getcwd(char *buf, int n) -{ - char tmp[90]; - getwd(tmp); - if (strlen(tmp)+1 > n) - { - errno = ERANGE; - return 0; - } - if (buf == 0) - { - buf = malloc(n); - if (buf == 0) - { - errno = ENOMEM; - return 0; - } - } - strcpy(buf, tmp); - return buf; -} diff --git a/newlib/libc/sys/go32/getdate.c b/newlib/libc/sys/go32/getdate.c deleted file mode 100644 index 7593b0a..0000000 --- a/newlib/libc/sys/go32/getdate.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "dos.h" - -void getdate( struct date *dateblk) -{ - union REGS regs; - regs.h.ah = 0x2a; - intdos( ®s, ®s); - dateblk-> da_year = regs.x.cx; - dateblk-> da_mon = regs.h.dh; - dateblk-> da_day = regs.h.dl; -} diff --git a/newlib/libc/sys/go32/getdtabl.c b/newlib/libc/sys/go32/getdtabl.c deleted file mode 100644 index b266c23..0000000 --- a/newlib/libc/sys/go32/getdtabl.c +++ /dev/null @@ -1,18 +0,0 @@ -/* This is file GETDTABL.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -getdtablesize() -{ - return 50; /* really depends on FILES= in config.sys */ -} diff --git a/newlib/libc/sys/go32/getgid.c b/newlib/libc/sys/go32/getgid.c deleted file mode 100644 index a0cd7b9..0000000 --- a/newlib/libc/sys/go32/getgid.c +++ /dev/null @@ -1,9 +0,0 @@ - -#include - -getgid() -{ - - return 20; - -} diff --git a/newlib/libc/sys/go32/getkey.s b/newlib/libc/sys/go32/getkey.s deleted file mode 100644 index 876483e..0000000 --- a/newlib/libc/sys/go32/getkey.s +++ /dev/null @@ -1,59 +0,0 @@ -/* This is file GETKEY.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -Modified by J. Alan Eldridge, Liberty Brokerage, 77 Water St, NYC 10005 - -Changed handling of characters starting with 0xE0: - Now calls interrupt 16, function 10 - if leading byte was 0x00, ah = 0x01 - if leading byte was 0xE0, ah = 0x02 - - The main function is now called getxkey()... - getkey is provided to maintain compatibility with - already written software -*/ - - .globl _getxkey -_getxkey: - pushl %ebx - pushl %esi - pushl %edi - movb $0x10,%ah - int $0x16 - mov $1,%bl - cmpb $0,%al - je L0 - cmpb $0xE0,%al - jne L1 - inc %bl -L0: - movb %ah,%al - movb %bl,%ah - jmp L2 -L1: - movb $0,%ah -L2: - andl $0xffff,%eax - popl %edi - popl %esi - popl %ebx - ret - - .globl _getkey -_getkey: - call _getxkey - testb $0x02,%ah - jz L3 - movb $0x01,%ah -L3: - ret diff --git a/newlib/libc/sys/go32/getpages.c b/newlib/libc/sys/go32/getpages.c deleted file mode 100644 index 8218b15..0000000 --- a/newlib/libc/sys/go32/getpages.c +++ /dev/null @@ -1,18 +0,0 @@ -/* This is file GETPAGES.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -getpagesize() -{ - return 4096; -} diff --git a/newlib/libc/sys/go32/getpid.c b/newlib/libc/sys/go32/getpid.c deleted file mode 100644 index 60f6e6d..0000000 --- a/newlib/libc/sys/go32/getpid.c +++ /dev/null @@ -1,18 +0,0 @@ -/* This is file GETPID.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -getpid() -{ - return 42; /* Why not? */ -} diff --git a/newlib/libc/sys/go32/getrusag.c b/newlib/libc/sys/go32/getrusag.c deleted file mode 100644 index 15722c5..0000000 --- a/newlib/libc/sys/go32/getrusag.c +++ /dev/null @@ -1,35 +0,0 @@ -/* This is file GETRUSAG.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include -#include - -static struct timeval old_time = {0,0}; - -int getrusage(int who, struct rusage *rusage) -{ - struct timeval now; - bzero(rusage, sizeof(struct rusage)); - if (old_time.tv_sec == 0) - gettimeofday(&old_time, 0); - gettimeofday(&now, 0); - rusage->ru_utime.tv_usec = now.tv_usec - old_time.tv_usec; - rusage->ru_utime.tv_sec = now.tv_sec - old_time.tv_sec; - if (rusage->ru_utime.tv_usec < 0) - { - rusage->ru_utime.tv_usec += 1000000; - rusage->ru_utime.tv_sec -= 1; - } - return 0; -} diff --git a/newlib/libc/sys/go32/gettime.c b/newlib/libc/sys/go32/gettime.c deleted file mode 100644 index ba81161..0000000 --- a/newlib/libc/sys/go32/gettime.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "dos.h" - -void gettime( struct time *tp) -{ - union REGS regs; - regs.h.ah = 0x2c; - intdos( ®s, ®s); - tp->ti_hour = regs.h.ch; - tp->ti_min = regs.h.cl; - tp->ti_sec = regs.h.dh; - tp->ti_hund = regs.h.dl; -} diff --git a/newlib/libc/sys/go32/gettimeo.c b/newlib/libc/sys/go32/gettimeo.c deleted file mode 100644 index 7f4f7c8..0000000 --- a/newlib/libc/sys/go32/gettimeo.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - (c) Copyright 1992 Eric Backus - - This software may be used freely so long as this copyright notice is - left intact. There is no warrantee on this software. -*/ - -#include -#include -#include "dos.h" - -static int daylight, gmtoffset; - -int -gettimeofday (struct timeval *tp, struct timezone *tzp) -{ - - if (tp) - { - struct time t; - struct date d; - struct tm tmrec; - - gettime (&t); - getdate (&d); - tmrec.tm_year = d.da_year - 1900; - tmrec.tm_mon = d.da_mon - 1; - tmrec.tm_mday = d.da_day; - tmrec.tm_hour = t.ti_hour; - tmrec.tm_min = t.ti_min; - tmrec.tm_sec = t.ti_sec; -/* tmrec.tm_gmtoff = gmtoffset;*/ - tmrec.tm_isdst = daylight; - tp->tv_sec = mktime (&tmrec); - tp->tv_usec = t.ti_hund * (1000000 / 100); - } - if (tzp) - { - tzp->tz_minuteswest = gmtoffset; - tzp->tz_dsttime = daylight; - } - - return 0; -} - -void -__gettimeofday_init () -{ - time_t ltm, gtm; - struct tm *lstm; - - daylight = 0; - gmtoffset = 0; - ltm = gtm = time (NULL); - ltm = mktime (lstm = localtime (<m)); - gtm = mktime (gmtime (>m)); - daylight = lstm->tm_isdst; - gmtoffset = (int)(gtm - ltm) / 60; - -} - diff --git a/newlib/libc/sys/go32/gettimeo.s b/newlib/libc/sys/go32/gettimeo.s deleted file mode 100644 index 7e85adf..0000000 --- a/newlib/libc/sys/go32/gettimeo.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file GETTIMEO.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _gettimeofday -_gettimeofday: - movb $4,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/getuid.c b/newlib/libc/sys/go32/getuid.c deleted file mode 100644 index 4ce9a46..0000000 --- a/newlib/libc/sys/go32/getuid.c +++ /dev/null @@ -1,9 +0,0 @@ - -#include - -getuid() -{ - - return 10; - -} diff --git a/newlib/libc/sys/go32/getwd.s b/newlib/libc/sys/go32/getwd.s deleted file mode 100644 index 15d856e..0000000 --- a/newlib/libc/sys/go32/getwd.s +++ /dev/null @@ -1,31 +0,0 @@ -# /* This is file GETWD.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _getwd -_getwd: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%esi - movb $47,(%esi) - incl %esi - movb $0,%dl - movb $0x47,%ah - int $0x21 - movl 16(%esp),%eax - popl %edi - popl %esi - popl %ebx - ret diff --git a/newlib/libc/sys/go32/go32.h b/newlib/libc/sys/go32/go32.h deleted file mode 100644 index 32afc0e..0000000 --- a/newlib/libc/sys/go32/go32.h +++ /dev/null @@ -1,70 +0,0 @@ -/* This is file go32.h */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _GO32_H_ -#define _GO32_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* This must match go32/proginfo.h */ - -typedef struct { - u_long size_of_this_structure_in_bytes; - u_long linear_address_of_primary_screen; - u_long linear_address_of_secondary_screen; - u_long linear_address_of_transfer_buffer; - u_long size_of_transfer_buffer; /* >= 4k */ - u_long pid; - u_char master_interrupt_controller_base; - u_char slave_interrupt_controller_base; - u_short selector_for_linear_memory; - u_long linear_address_of_stub_info_structure; - u_long linear_address_of_original_psp; - u_short run_mode; - u_short run_mode_info; -} Go32_Info_Block; - -extern Go32_Info_Block _go32_info_block; - -#define _GO32_RUN_MODE_UNDEF 0 -#define _GO32_RUN_MODE_RAW 1 -#define _GO32_RUN_MODE_XMS 2 -#define _GO32_RUN_MODE_VCPI 3 -#define _GO32_RUN_MODE_DPMI 4 - -void dosmemget(int offset, int length, void *buffer); -void dosmemput(const void *buffer, int length, int offset); -void movedata(unsigned source_selector, unsigned source_offset, - unsigned dest_selector, unsigned dest_offset, - size_t length); - -/* returns number of times hit since last call. (zero first time) */ -u_long _go32_was_ctrl_break_hit(); -void _go32_want_ctrl_break(int yes); /* auto-yes if call above function */ - -u_short _go32_my_cs(); -u_short _go32_my_ds(); -u_short _go32_my_ss(); -u_short _go32_conventional_mem_selector(); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/newlib/libc/sys/go32/go32func.c b/newlib/libc/sys/go32/go32func.c deleted file mode 100644 index ec3853b..0000000 --- a/newlib/libc/sys/go32/go32func.c +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "go32.h" -#include "dpmi.h" -#include "dos.h" - -u_short _go32_my_cs() -{ - asm("movw %cs,%ax"); -} - -u_short _go32_my_ds() -{ - asm("movw %ds,%ax"); -} - -u_short _go32_my_ss() -{ - asm("movw %ss,%ax"); -} - -u_short _go32_conventional_mem_selector() -{ - return _go32_info_block.selector_for_linear_memory; -} - -static _go32_dpmi_registers regs; -static volatile u_long ctrl_break_count = 0; -static int ctrl_break_hooked = 0; -static _go32_dpmi_seginfo old_vector; -static _go32_dpmi_seginfo new_vector; - -static ctrl_break_isr(_go32_dpmi_registers *regs) -{ - ctrl_break_count ++; -} - -u_long _go32_was_ctrl_break_hit() -{ - u_long cnt; - _go32_want_ctrl_break(1); - cnt = ctrl_break_count; - ctrl_break_count = 0; - return cnt; -} - -void _go32_want_ctrl_break(int yes) -{ - if (yes) - { - if (ctrl_break_hooked) - return; - _go32_dpmi_get_real_mode_interrupt_vector(0x1b, &old_vector); - - new_vector.pm_offset = (int)ctrl_break_isr; - _go32_dpmi_allocate_real_mode_callback_iret(&new_vector, ®s); - _go32_dpmi_set_real_mode_interrupt_vector(0x1b, &new_vector); - ctrl_break_count = 0; - ctrl_break_hooked = 1; - } - else - { - if (!ctrl_break_hooked) - return; - _go32_dpmi_set_real_mode_interrupt_vector(0x1b, &old_vector); - _go32_dpmi_free_real_mode_callback(&new_vector); - ctrl_break_count = 0; - ctrl_break_hooked = 0; - } -} diff --git a/newlib/libc/sys/go32/infoblk.c b/newlib/libc/sys/go32/infoblk.c deleted file mode 100644 index 0a54b6b..0000000 --- a/newlib/libc/sys/go32/infoblk.c +++ /dev/null @@ -1,4 +0,0 @@ -#include "go32.h" - -Go32_Info_Block _go32_info_block = { sizeof(Go32_Info_Block) }; - diff --git a/newlib/libc/sys/go32/inportb.s b/newlib/libc/sys/go32/inportb.s deleted file mode 100644 index d2425fc..0000000 --- a/newlib/libc/sys/go32/inportb.s +++ /dev/null @@ -1,21 +0,0 @@ -#/* This is file INPORTB.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _inportb -_inportb: - movl 4(%esp),%edx -# inb %dx,%al - .byte 0xec - movzb %al,%eax - ret diff --git a/newlib/libc/sys/go32/inportl.s b/newlib/libc/sys/go32/inportl.s deleted file mode 100644 index 477dec1..0000000 --- a/newlib/libc/sys/go32/inportl.s +++ /dev/null @@ -1,19 +0,0 @@ -#/* This is file INPORTL.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _inportl -_inportl: - movl 4(%esp),%edx - inl %dx,%eax - ret diff --git a/newlib/libc/sys/go32/inportsb.s b/newlib/libc/sys/go32/inportsb.s deleted file mode 100644 index db7dc37..0000000 --- a/newlib/libc/sys/go32/inportsb.s +++ /dev/null @@ -1,25 +0,0 @@ -#/* This is file INPORTSB.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _inportsb -_inportsb: - pushl %edi - movl 8(%esp),%edx - movl 12(%esp),%edi - movl 16(%esp),%ecx - rep - insb - popl %edi - ret - diff --git a/newlib/libc/sys/go32/inportsl.s b/newlib/libc/sys/go32/inportsl.s deleted file mode 100644 index d4a8d55..0000000 --- a/newlib/libc/sys/go32/inportsl.s +++ /dev/null @@ -1,24 +0,0 @@ -#/* This is file INPORTSL.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _inportsl -_inportsl: - pushl %edi - movl 8(%esp),%edx - movl 12(%esp),%edi - movl 16(%esp),%ecx - rep - insl - popl %edi - ret diff --git a/newlib/libc/sys/go32/inportsw.s b/newlib/libc/sys/go32/inportsw.s deleted file mode 100644 index 31880d7..0000000 --- a/newlib/libc/sys/go32/inportsw.s +++ /dev/null @@ -1,24 +0,0 @@ -#/* This is file INPORTSW.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _inportsw -_inportsw: - pushl %edi - movl 8(%esp),%edx - movl 12(%esp),%edi - movl 16(%esp),%ecx - rep - insw - popl %edi - ret diff --git a/newlib/libc/sys/go32/inportw.s b/newlib/libc/sys/go32/inportw.s deleted file mode 100644 index fdb58aa..0000000 --- a/newlib/libc/sys/go32/inportw.s +++ /dev/null @@ -1,21 +0,0 @@ -#/* This is file INPORTW.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _inportw -_inportw: - movl 4(%esp),%edx -# inw (%dx),%ax - .byte 0x66, 0xed - movzwl %ax,%eax - ret diff --git a/newlib/libc/sys/go32/int86x.s b/newlib/libc/sys/go32/int86x.s deleted file mode 100644 index 7b49bcd..0000000 --- a/newlib/libc/sys/go32/int86x.s +++ /dev/null @@ -1,103 +0,0 @@ - .data -ds: - .word 0 -es: - .word 0 -fs: - .word 0 -gs: - .word 0 - - .globl int86 -int86: - .byte 0x2e - push ds - pop %ds - .byte 0x2e - push es - pop %es - .byte 0x2e - push fs - pop %fs - .byte 0x2e - push gs - pop %gs - - .byte 0xcd -int86_vec: - .byte 0x03 - ret - - .text - .globl _int86x -_int86x: - movl 16(%esp), %eax - - movw 2(%eax), %cx - movw %cx, ds - movw 4(%eax), %cx - movw %cx, es - movw 6(%eax), %cx - movw %cx, fs - movw 8(%eax), %cx - movw %cx, gs - - jmp int86_common - - .globl _int86 -_int86: - movw %ds, %ax - movw %ax, ds - movw %ax, es - movw %ax, fs - movw %ax, gs - jmp int86_common - -int86_common: - pushl %ebp - movl %esp,%ebp - pushl %ebx - pushl %esi - pushl %edi - pushf - - movl 8(%ebp),%eax - movb %al,int86_vec - - movl 12(%ebp),%eax - movl 4(%eax),%ebx - movl 8(%eax),%ecx - movl 12(%eax),%edx - movl 16(%eax),%esi - movl 20(%eax),%edi - movl (%eax),%eax - - push %ds - push %es - call int86 - pop %es - pop %ds - - pushf - pushl %eax - movl %esp,%ebp - addl $24,%ebp - movl 16(%ebp),%eax - popl (%eax) - movl %ebx,4(%eax) - movl %ecx,8(%eax) - movl %edx,12(%eax) - movl %esi,16(%eax) - movl %edi,20(%eax) - popl %ebx /* flags */ - movl %ebx,28(%eax) - andl $1,%ebx - movl %ebx,24(%eax) - movl (%eax),%eax - - popf - popl %edi - popl %esi - popl %ebx - popl %ebp - ret diff --git a/newlib/libc/sys/go32/intdos.c b/newlib/libc/sys/go32/intdos.c deleted file mode 100644 index a13f38e..0000000 --- a/newlib/libc/sys/go32/intdos.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int -intdos(union REGS *in, union REGS *out) -{ - return int86(0x21, in, out); -} diff --git a/newlib/libc/sys/go32/intdosx.c b/newlib/libc/sys/go32/intdosx.c deleted file mode 100644 index ec3e9fb..0000000 --- a/newlib/libc/sys/go32/intdosx.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -intdosx(union REGS *in, union REGS *out, struct SREGS *seg) -{ - return int86x(0x21, in, out, seg); -} diff --git a/newlib/libc/sys/go32/isatty.s b/newlib/libc/sys/go32/isatty.s deleted file mode 100644 index 9086b07..0000000 --- a/newlib/libc/sys/go32/isatty.s +++ /dev/null @@ -1,33 +0,0 @@ -# /* This is file ISATTY.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _isatty -_isatty: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movw $0x4400,%ax - int $0x21 - popl %edi - popl %esi - popl %ebx - movl $0,%eax - jb tf - testl $0x80,%edx - jz tf - movl $1,%eax -tf: - ret diff --git a/newlib/libc/sys/go32/kbhit.s b/newlib/libc/sys/go32/kbhit.s deleted file mode 100644 index 0f34e1b..0000000 --- a/newlib/libc/sys/go32/kbhit.s +++ /dev/null @@ -1,51 +0,0 @@ -/* This is file KBHIT.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - - .globl _kbhit -_kbhit: - pushl %ebp - movl %esp,%ebp - pushl %ebx - pushl %esi - pushl %edi - -try_again: - movl $0x41a,%eax - call dosmemsetup - movzwl %gs:(%eax),%ebx - movzwl %gs:2(%eax),%ecx - cmp %ebx,%ecx - je key_not_hit - - movb $0x11,%ah - int $0x16 - jz key_not_hit - cmp $0,%eax - jne key_hit - movb $0x10,%ah - int $0x16 - jmp try_again - -key_not_hit: - movl $0,%eax - jmp L1 - -key_hit: - movl $1,%eax -L1: - popl %edi - popl %esi - popl %ebx - leave - ret diff --git a/newlib/libc/sys/go32/kill.c b/newlib/libc/sys/go32/kill.c deleted file mode 100644 index 3335f1a..0000000 --- a/newlib/libc/sys/go32/kill.c +++ /dev/null @@ -1,6 +0,0 @@ -kill() -{ - - -} - diff --git a/newlib/libc/sys/go32/link.s b/newlib/libc/sys/go32/link.s deleted file mode 100644 index f1cc133..0000000 --- a/newlib/libc/sys/go32/link.s +++ /dev/null @@ -1,28 +0,0 @@ -# /* This is file LINK.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _link -_link: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%edx - movl 20(%esp),%edi - movb $0x56,%ah - int $0x21 - pop %edi - pop %esi - pop %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/longjmp.S b/newlib/libc/sys/go32/longjmp.S deleted file mode 100644 index d29eebb..0000000 --- a/newlib/libc/sys/go32/longjmp.S +++ /dev/null @@ -1,65 +0,0 @@ -/* This is file LONGJMP.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -/* -** jmp_buf: -** eax ebx ecx edx esi edi ebp esp eip es fs gs ss -** 0 4 8 12 16 20 24 28 32 36 38 40 42 -*/ - - .globl _longjmp /* jmp_buf, int */ -_longjmp: - pushl %ebp - movl %esp,%ebp - - movl 8(%ebp),%edi /* get jmp_buf */ - movl 12(%ebp),%eax /* store retval in j->eax */ - testl %eax,%eax - jne 0f - incl %eax -0: - movl %eax,0(%edi) - - movl 24(%edi),%ebp - - pushfl /* get flags so will only re-enable */ - popl %ebx /* interrupts if they were previously */ - /* enabled */ - - cli - movw 42(%edi),%ax - movw %ax,%ss - movl 28(%edi),%esp - - pushl 32(%edi) /* for a ret! */ - - pushl %ebx /* save flags that contain previous */ - /* interrupt state */ - - movw 36(%edi),%ax - movw %ax,%es - movw 38(%edi),%ax - movw %ax,%fs - movw 40(%edi),%ax - movw %ax,%gs - movl 0(%edi),%eax - movl 4(%edi),%ebx - movl 8(%edi),%ecx - movl 12(%edi),%edx - movl 16(%edi),%esi - movl 20(%edi),%edi - - popfl /* restore previous interrupt state */ - - ret /* actually jump to new eip */ diff --git a/newlib/libc/sys/go32/lseek.s b/newlib/libc/sys/go32/lseek.s deleted file mode 100644 index 34609d0..0000000 --- a/newlib/libc/sys/go32/lseek.s +++ /dev/null @@ -1,36 +0,0 @@ -# /* This is file LSEEK.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _lseek -_lseek: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movl 20(%esp),%ecx - shrl $16,%ecx - movl 20(%esp),%edx - andl $0xffff,%edx - movb 24(%esp),%al - movb $0x42,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jb syscall_error - shll $16,%edx - andl $0xffff,%eax - orl %edx,%eax - ret diff --git a/newlib/libc/sys/go32/lstat.s b/newlib/libc/sys/go32/lstat.s deleted file mode 100644 index 2585b35..0000000 --- a/newlib/libc/sys/go32/lstat.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file LSTAT.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _lstat -_lstat: - movb $6,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/mkdir.s b/newlib/libc/sys/go32/mkdir.s deleted file mode 100644 index e8fe194..0000000 --- a/newlib/libc/sys/go32/mkdir.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file MKDIR.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _mkdir -_mkdir: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%edx - movb $0x39,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/open.s b/newlib/libc/sys/go32/open.s deleted file mode 100644 index 5fd8a04..0000000 --- a/newlib/libc/sys/go32/open.s +++ /dev/null @@ -1,31 +0,0 @@ -# /* This is file OPEN.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .data - .globl __fmode -__fmode: - .long 0x4000 - - .text - .globl _open -_open: - testl $0xc000,8(%esp) - jnz L0 - andl $0xc000,__fmode - movl __fmode,%eax - orl %eax,8(%esp) -L0: - movb $2,%al - jmp turbo_assist - diff --git a/newlib/libc/sys/go32/outportb.s b/newlib/libc/sys/go32/outportb.s deleted file mode 100644 index 10c4342..0000000 --- a/newlib/libc/sys/go32/outportb.s +++ /dev/null @@ -1,21 +0,0 @@ -#/* This is file OUTPORTB.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _outportb -_outportb: - movl 4(%esp),%edx - movl 8(%esp),%eax -# outb %al,%dx - .byte 0xee - ret diff --git a/newlib/libc/sys/go32/outportl.s b/newlib/libc/sys/go32/outportl.s deleted file mode 100644 index 61204b4..0000000 --- a/newlib/libc/sys/go32/outportl.s +++ /dev/null @@ -1,20 +0,0 @@ -#/* This is file OUTPORTL.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _outportl -_outportl: - movl 4(%esp),%edx - movl 8(%esp),%eax - outl %eax,%dx - ret diff --git a/newlib/libc/sys/go32/outportw.s b/newlib/libc/sys/go32/outportw.s deleted file mode 100644 index cde4648..0000000 --- a/newlib/libc/sys/go32/outportw.s +++ /dev/null @@ -1,22 +0,0 @@ -#/* This is file OUTPORTW.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _outportw -_outportw: - movl 4(%esp),%edx - movl 8(%esp),%eax -# outw %ax,%dx - .byte 0x66, 0xef - ret - diff --git a/newlib/libc/sys/go32/outprtsb.s b/newlib/libc/sys/go32/outprtsb.s deleted file mode 100644 index f9ed4a1..0000000 --- a/newlib/libc/sys/go32/outprtsb.s +++ /dev/null @@ -1,25 +0,0 @@ - -#/* This is file OUTPRTSB.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _outportsb -_outportsb: - pushl %esi - movl 8(%esp),%edx - movl 12(%esp),%esi - movl 16(%esp),%ecx - rep - outsb - popl %esi - ret diff --git a/newlib/libc/sys/go32/outprtsl.s b/newlib/libc/sys/go32/outprtsl.s deleted file mode 100644 index 2f3e1c7..0000000 --- a/newlib/libc/sys/go32/outprtsl.s +++ /dev/null @@ -1,25 +0,0 @@ -#/* This is file OUTPRTSL.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ - - .globl _outportsl -_outportsl: - pushl %esi - movl 8(%esp),%edx - movl 12(%esp),%esi - movl 16(%esp),%ecx - rep - outsl - popl %esi - ret - diff --git a/newlib/libc/sys/go32/outprtsw.s b/newlib/libc/sys/go32/outprtsw.s deleted file mode 100644 index 6045f19..0000000 --- a/newlib/libc/sys/go32/outprtsw.s +++ /dev/null @@ -1,25 +0,0 @@ -#/* This is file OUTPRTSW.S */ -#/* -#** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -#** -#** This file is distributed under the terms listed in the document -#** "copying.dj", available from DJ Delorie at the address above. -#** A copy of "copying.dj" should accompany this file; if not, a copy -#** should be available from where this file was obtained. This file -#** may not be distributed without a verbatim copy of "copying.dj". -#** -#** This file is distributed WITHOUT ANY WARRANTY; without even the implied -#** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#*/ -# - .globl _outportsw -_outportsw: - pushl %esi - movl 8(%esp),%edx - movl 12(%esp),%esi - movl 16(%esp),%ecx - rep - outsw - popl %esi - ret - diff --git a/newlib/libc/sys/go32/pc.h b/newlib/libc/sys/go32/pc.h deleted file mode 100644 index d4031ea..0000000 --- a/newlib/libc/sys/go32/pc.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -** -** Modified by J. Alan Eldridge, Liberty Brokerage, 77 Water St, NYC 10005 -** -** added getxkey(), which can read extended keystrokes that start with -** 0xE0, as well as those which start with 0x00 -** -** added global char ScreenAttrib, the attribute used by ScreenClear(): -** it defaults to 0x07 so as not to break existing code. -** -** added ScreenMode(), to return the current video mode -*/ - -#ifndef _PC_H_ -#define _PC_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -unsigned char inportb(unsigned short port); -unsigned short inportw(unsigned short port); -unsigned long inportl(unsigned short port); -unsigned char inportsb(unsigned short port, unsigned char *buf, unsigned len); -unsigned short inportsw(unsigned short port, unsigned short *buf, unsigned len); -unsigned long inportsl(unsigned short port, unsigned long *buf, unsigned len); -void outportb(unsigned short port, unsigned char data); -void outportw(unsigned short port, unsigned short data); -void outportl(unsigned short port, unsigned long data); -void outportsb(unsigned short port, unsigned char *buf, unsigned len); -void outportsw(unsigned short port, unsigned short *buf, unsigned len); -void outportsl(unsigned short port, unsigned long *buf, unsigned len); - -int kbhit(void); -int getkey(void); /* ALT's have 0x100 set */ -int getxkey(void); /* ALT's have 0x100 set, 0xe0 sets 0x200 */ - -void sound(int frequency); -#define nosound() sound(0) - -extern unsigned char ScreenAttrib; -extern short *ScreenPrimary; -extern short *ScreenSecondary; - -/* For the primary screen: */ -int ScreenMode(void); -int ScreenRows(void); -int ScreenCols(void); -void ScreenPutChar(int ch, int attr, int x, int y); -void ScreenSetCursor(int row, int col); -void ScreenGetCursor(int *row, int *col); -void ScreenClear(void); -void ScreenUpdate(void *virtual_screen); -void ScreenUpdateLine(void *virtual_screen_line, int row); -void ScreenRetrieve(void *virtual_screen); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/newlib/libc/sys/go32/read.s b/newlib/libc/sys/go32/read.s deleted file mode 100644 index c989241..0000000 --- a/newlib/libc/sys/go32/read.s +++ /dev/null @@ -1,30 +0,0 @@ -# /* This is file READ.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _read -_read: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movl 20(%esp),%edx - movl 24(%esp),%ecx - movb $0x3f,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jb syscall_error - ret diff --git a/newlib/libc/sys/go32/readv.c b/newlib/libc/sys/go32/readv.c deleted file mode 100644 index c50ef32..0000000 --- a/newlib/libc/sys/go32/readv.c +++ /dev/null @@ -1,31 +0,0 @@ -/* This is file READV.C */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include -#include - -readv(int handle, struct iovec *iov, int count) -{ - unsigned long r, t=0; - while (count) - { - r = read(handle, iov->iov_base, iov->iov_len); - if (r < 0) - return r; - t += r; - iov++; - count--; - } - return t; -} diff --git a/newlib/libc/sys/go32/rename.s b/newlib/libc/sys/go32/rename.s deleted file mode 100644 index 549dcb8..0000000 --- a/newlib/libc/sys/go32/rename.s +++ /dev/null @@ -1,31 +0,0 @@ -# /* This is file RENAME.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _rename -_rename: - pushl %ebx - pushl %esi - pushl %edi - movl 20(%esp),%edx - movb $0x41,%ah - int $0x21 # remove "to" - movl 16(%esp),%edx - movl 20(%esp),%edi - movb $0x56,%ah - int $0x21 # move "from" to "to" - popl %edi - popl %esi - popl %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/rmdir.s b/newlib/libc/sys/go32/rmdir.s deleted file mode 100644 index b466879..0000000 --- a/newlib/libc/sys/go32/rmdir.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file RMDIR.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _rmdir -_rmdir: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%edx - movb $0x3a,%ah - int $0x21 - popl %edi - popl %esi - popl %ebx - jmp syscall_check diff --git a/newlib/libc/sys/go32/sbrk.s b/newlib/libc/sys/go32/sbrk.s deleted file mode 100644 index 190396c..0000000 --- a/newlib/libc/sys/go32/sbrk.s +++ /dev/null @@ -1,27 +0,0 @@ -# /* This is file SBRK.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _sbrk -_sbrk: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movw $0x4a01,%ax - int $0x21 - popl %edi - popl %esi - popl %ebx - ret diff --git a/newlib/libc/sys/go32/screen.S b/newlib/libc/sys/go32/screen.S deleted file mode 100644 index 4786f7f..0000000 --- a/newlib/libc/sys/go32/screen.S +++ /dev/null @@ -1,256 +0,0 @@ -/* This is file SCREEN.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -** -** Modified by J. Alan Eldridge, Liberty Brokerage, 77 Water St, NYC 10005 -** -** added global char ScreenAttrib -- this is the attribute -** used by ScreenClear(): it defaults to 0x07 so as not to -** break existing code. -** -** Modified by C. Sandmann (sandmann@clio.rice.edu) for DPMI support -** Combined SCREEN2.S and SCREEN.C into SCREEN.S -*/ - - .data - - .globl _ScreenAttrib -_ScreenAttrib: - .byte 0x07 - - .text - - .align 2 - .globl _ScreenSetCursor - /* row, col */ -_ScreenSetCursor: - pushl %ebp - movl %esp,%ebp - pushl %ebx - pushl %esi - pushl %edi - movb $0x02,%ah - movb $0,%bh - movb 8(%ebp),%dh - movb 12(%ebp),%dl - int $0x10 - popl %edi - popl %esi - popl %ebx - popl %ebp - ret - - .align 2 - .globl _ScreenGetCursor - /* &row, &col */ -_ScreenGetCursor: - pushl %ebp - movl %esp,%ebp - pushl %ebx - pushl %esi - pushl %edi - movb $0x03,%ah - movb $0,%bh - pushl %ebp - int $0x10 - popl %ebp - movl 8(%ebp),%esi - movzbl %dh,%eax - movl %eax,(%esi) - movl 12(%ebp),%esi - movzbl %dl,%eax - movl %eax,(%esi) - popl %edi - popl %esi - popl %ebx - popl %ebp - ret - - .align 2 - .globl _ScreenClear -_ScreenClear: - pushl %edi - call _ScreenCols - movl %eax,%ecx - call _ScreenRows - /* ECX is total words to store */ - imull %eax,%ecx - movl _ScreenPrimary,%eax - call dosmemsetup - movl %eax,%edi - push %es - push %gs - pop %es - movb $0x20,%al - movb _ScreenAttrib,%ah - rep - stosw - pop %es - popl %edi - ret - - .align 2 - .globl _ScreenRows -_ScreenRows: - movl $0x484,%eax - call dosmemsetup - movzbl %gs:(%eax),%eax - incl %eax - ret - - .align 2 - .globl _ScreenCols -_ScreenCols: - movl $0x44a,%eax - call dosmemsetup - movzwl %gs:(%eax),%eax - ret - - .align 2 - .globl _ScreenMode -_ScreenMode: - movl $0x449,%eax - call dosmemsetup - movzbl %gs:(%eax),%eax - ret - - .align 2 - .globl _ScreenPutChar -_ScreenPutChar: - /* int ch, int attr, unsigned x, unsigned y */ -/* - if ( (x >= ScreenCols()) || (y >= ScreenRows())) return; - ch &= 0xff; - attr = (attr & 0xff) << 8; - *(unsigned short *)(ScreenPrimary+x+y*ScreenCols()) = ch | attr; -*/ - call _ScreenRows - cmpl %eax,16(%esp) - jae L1 - call _ScreenCols - cmpl %eax,12(%esp) - jae L1 - /* Out of range */ - movl %eax,%edx - imull 16(%esp),%edx - addl 12(%esp),%edx - /* EDX = x + y*ScreenCols */ - - movb 4(%esp),%cl - movb 8(%esp),%ch - - movl _ScreenPrimary,%eax - call dosmemsetup - movw %cx,%gs:(%eax,%edx,2) -L1: - ret - -/* A quick way to update the screen from a logical video buffer, used - primarily for DPMI full screen management */ - .align 2 - .globl _ScreenUpdate - /* (void *)screenbuf */ -_ScreenUpdate: - call _ScreenRows - movl %eax,%ecx - call _ScreenCols - imull %eax,%ecx - sarl $1,%ecx - /* Number of long words in screen */ - - movl _ScreenPrimary,%eax - call dosmemsetup - movl 4(%esp),%edx - /* screenbuf */ - - pushl %esi - pushl %edi - movl %eax,%edi - movl %edx,%esi - push %es - push %gs - pop %es - rep - movsl - /* move ECX bytes to Real area */ - pop %es - popl %edi - popl %esi - ret - -/* A quick way to update a screen line from a logical video buffer, used - primarily for DPMI full screen management */ - .align 2 - .globl _ScreenUpdateLine - /* (void *)screenline, int row */ -_ScreenUpdateLine: - call _ScreenCols - movl %eax,%ecx - sarl $1,%ecx - /* Number of long words in screen line */ - shll $1,%eax - imull 8(%esp),%eax - addl _ScreenPrimary,%eax - call dosmemsetup - movl 4(%esp),%edx - /* screenbuf */ - - pushl %esi - pushl %edi - movl %eax,%edi - movl %edx,%esi - push %es - push %gs - pop %es - rep - movsl - /* move ECX bytes to Real area */ - pop %es - popl %edi - popl %esi - ret - - -/* A quick way to update the screen from a logical video buffer, used - primarily for DPMI full screen management */ - .align 2 - .globl _ScreenRetrieve - /* (void *)screenbuf */ -_ScreenRetrieve: - call _ScreenRows - movl %eax,%ecx - call _ScreenCols - imull %eax,%ecx - sarl $1,%ecx - /* Number of long words in screen */ - - movl _ScreenPrimary,%eax - call dosmemsetup - movl 4(%esp),%edx - /* screenbuf */ - - pushl %esi - pushl %edi - movl %eax,%esi - movl %edx,%edi - push %ds - push %gs - pop %ds - rep - movsl - /* move ECX bytes to Real area */ - pop %ds - popl %edi - popl %esi - ret - - diff --git a/newlib/libc/sys/go32/setjmp.S b/newlib/libc/sys/go32/setjmp.S deleted file mode 100644 index ef9a258..0000000 --- a/newlib/libc/sys/go32/setjmp.S +++ /dev/null @@ -1,61 +0,0 @@ -/* This is file SETJMP.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -/* -** jmp_buf: -** eax ebx ecx edx esi edi ebp esp eip es fs gs ss -** 0 4 8 12 16 20 24 28 32 36 38 40 42 -*/ - - .globl _setjmp /* jmp_buf */ -_setjmp: - pushl %ebp - movl %esp,%ebp - - pushl %edi - movl 8(%ebp),%edi - - movl %eax,0(%edi) - movl %ebx,4(%edi) - movl %ecx,8(%edi) - movl %edx,12(%edi) - movl %esi,16(%edi) - - movl -4(%ebp),%eax - movl %eax,20(%edi) - - movl 0(%ebp),%eax - movl %eax,24(%edi) - - movl %esp,%eax - addl $12,%eax - movl %eax,28(%edi) - - movl 4(%ebp),%eax - movl %eax,32(%edi) - - movw %es, %ax - movw %ax, 36(%edi) - movw %fs, %ax - movw %ax, 38(%edi) - movw %gs, %ax - movw %ax, 40(%edi) - movw %ss, %ax - movw %ax, 42(%edi) - - popl %edi - movl $0,%eax - leave - ret - diff --git a/newlib/libc/sys/go32/setmode.s b/newlib/libc/sys/go32/setmode.s deleted file mode 100644 index 071e316..0000000 --- a/newlib/libc/sys/go32/setmode.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file SETMODE.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _setmode -_setmode: - movb $8,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/setstack.S b/newlib/libc/sys/go32/setstack.S deleted file mode 100644 index dcd3ac0..0000000 --- a/newlib/libc/sys/go32/setstack.S +++ /dev/null @@ -1,70 +0,0 @@ -/* This routine potentially increases the stack size at runtime based on - the _stklen variable. Only used by DPMI code. - Copyright (c) 1993 C. Sandmann - Environment: called by crt0.s (and gcrt0.s) - EAX, EBX, EBP, EDI, ESI disposable (cleared on return) */ - - .text - .globl __setstack -__setstack: - movl %esp,%eax - andl $0xc0000000,%eax /* clear all except upper bits */ - jne ok_stack /* obviously not DPMI! */ - movw %ss,%ax - lsll %eax,%ebx /* stack segment limit */ - movl %esp,%eax /* current location */ - subl %ebx,%eax /* Free stack */ - cmpl %eax,__stklen - jb ok_stack - -/* Not enough stack. Call sbrk() to get a new area. Copy current ESP + 20 - to end of new area (3 args + our stack). Change ESP to new area. Set new - limit to start of new area using DPMI services. */ - - pushl __stklen - call _sbrk /* eax = got memory base */ - popl %ebx /* remove _stklen */ - cmpl $0xffffffff,%eax /* if eax = -1 failure */ - je badstack - addl %eax,%ebx /* ebx now is end of new stack area */ - andl $0xfffffff0,%ebx /* 16 byte alignment */ - addl $0xfff,%eax /* make stack base page aligned */ - andl $0xfffff000,%eax /* 4096 byte alignment */ - -/* Now copy old stack to new stack. We only need our part + 4 words, 3 for - the parameters to pass to main, one for our return EIP (4 extra safety) */ - movl %esp, %esi /* Source is current stack */ - subl $0x20, %ebx /* 8 longwords */ - movl %ebx, %edi /* Destination is new stack */ - movl $8,%ecx - rep - movsl - -/* New stack in place. Change ESP to point to it. Assumes new stack is - higher in memory so we don't get caught by limit. Change limit using - DPMI services. */ - - movl %ebx,%esp /* Switch to new stack */ - subl $1,%eax /* Low 12 bits all 1s */ - pushl %eax /* Easiest way to move long to words */ - popw %dx - popw %cx - movl $8,%eax /* DPMI function Set Segment Limit */ - movw %ss,%bx /* Selector */ - int $0x31 /* Do service */ - - xor %ecx,%ecx /* Clean up */ - xor %edx,%edx /* Clean up */ - -ok_stack: - ret /* What we have is already bigger */ - -badstack: - movl $0x4c01,%eax - int $0x21 - jmp badstack - - .data - .globl __stklen - .comm __stklen,4 - diff --git a/newlib/libc/sys/go32/settimeo.s b/newlib/libc/sys/go32/settimeo.s deleted file mode 100644 index f9325cc..0000000 --- a/newlib/libc/sys/go32/settimeo.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file SETTIMEO.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _settimeofday -_settimeofday: - movb $5,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/sleep.c b/newlib/libc/sys/go32/sleep.c deleted file mode 100644 index 96e547d..0000000 --- a/newlib/libc/sys/go32/sleep.c +++ /dev/null @@ -1,27 +0,0 @@ -/* This is file sleep.c */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - - -sleep(unsigned int seconds) -{ - long tnow, tthen; - time(&tnow); - tthen = tnow + seconds; - while (1) - { - time(&tnow); - if (tnow >= tthen) - return; - } -} diff --git a/newlib/libc/sys/go32/stat.c b/newlib/libc/sys/go32/stat.c deleted file mode 100644 index e64e5b8..0000000 --- a/newlib/libc/sys/go32/stat.c +++ /dev/null @@ -1,151 +0,0 @@ -/* - (c) Copyright 1992 Eric Backus - - This software may be used freely so long as this copyright notice is - left intact. There is no warrantee on this software. -*/ - -#include -#include -#include - -#include "dos.h" -#include -#include - -extern int _stat_assist(const char *, struct stat *); -extern void _fixpath(const char *, char *); - -struct path_list -{ - struct path_list *next; - char *path; - int inode; -}; - -static int -fixinode(const char *path, struct stat *buf) -{ - static struct path_list *path_list[1256]; - /* Start the inode count at three, since root path should be two */ - static int inode_count = 3; - - struct path_list *path_ptr, *prev_ptr; - const char *p; - int hash; - - /* Skip over device and leading '/' */ - if (path[1] == ':' && path[2] == '/') path += 3; - - /* We could probably use a better hash than this */ - p = path; - hash = 0; - while (*p != '\0') hash += *p++; - hash = hash & 0xff; - - /* Have we seen this string? */ - path_ptr = path_list[hash]; - prev_ptr = path_ptr; - while (path_ptr) - { - if (strcmp(path, path_ptr->path) == 0) break; - prev_ptr = path_ptr; - path_ptr = path_ptr->next; - } - - if (path_ptr) - /* Same string, so same inode */ - buf->st_ino = path_ptr->inode; - else - { - /* New string with same hash code */ - path_ptr = malloc(sizeof *path_ptr); - if (path_ptr == NULL) - { - errno = ENOMEM; - return -1; - } - path_ptr->next = NULL; - path_ptr->path = strdup(path); - if (path_ptr->path == NULL) - { - errno = ENOMEM; - return -1; - } - path_ptr->inode = inode_count; - if (prev_ptr) - prev_ptr->next = path_ptr; - else - path_list[hash] = path_ptr; - buf->st_ino = inode_count; - inode_count++; - } - return 0; -} - -int -stat(const char *path, struct stat *buf) -{ - static int stat_called_before = 0; - char p[1090]; /* Should be p[PATH_MAX+1] */ - int status; - - /* Normalize the path */ - _fixpath(path, p); - - /* Work around strange bug with stat and time */ - if (!stat_called_before) - { - stat_called_before = 1; - (void) time((time_t *) 0); - } - - /* Check for root path */ - if (strcmp(p, "/") == 0 || strcmp(p + 1, ":/") == 0) - { - /* Handle root path as special case, stat_assist doesn't like - the root directory. */ - if (p[1] == ':') - { - if (p[0] >= 'a' && p[0] <= 'z') - buf->st_dev = p[0] - 'a'; - else - buf->st_dev = p[0] - 'A'; - } - else - buf->st_dev = -1; /* No device? */ - buf->st_ino = 2; /* Root path always inode 2 */ - buf->st_mode = S_IFDIR | S_IREAD | S_IWRITE | S_IEXEC; - buf->st_nlink = 1; - buf->st_uid = getuid(); - buf->st_gid = getgid(); - buf->st_rdev = buf->st_dev; - buf->st_size = 0; - buf->st_atime = 0; - buf->st_mtime = 0; - buf->st_ctime = 0; - buf->st_blksize = 512; /* Not always correct? */ - status = 0; - } - else - { - status = _stat_assist(p, buf); - - /* Make inode numbers unique */ - if (status == 0) status = fixinode(p, buf); - - /* The stat_assist does something weird with st_dev, but sets - st_rdev to the drive number. Fix st_dev. */ - buf->st_dev = buf->st_rdev; - - /* Make all files owned by ourself. */ - buf->st_uid = getuid(); - buf->st_gid = getgid(); - - /* Make all directories writable. They always are in DOS, but - stat_assist doesn't think so. */ - if (S_ISDIR(buf->st_mode)) buf->st_mode |= S_IWRITE; - } - - return status; -} diff --git a/newlib/libc/sys/go32/stat.s b/newlib/libc/sys/go32/stat.s deleted file mode 100644 index 045725f..0000000 --- a/newlib/libc/sys/go32/stat.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file STAT.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _stat -_stat: - movb $6,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/stat_ast.s b/newlib/libc/sys/go32/stat_ast.s deleted file mode 100644 index 3574f82..0000000 --- a/newlib/libc/sys/go32/stat_ast.s +++ /dev/null @@ -1,21 +0,0 @@ -/* This is file STAT_AST.S */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -** -** Modified very slightly by Eric Backus. -*/ - - .text - .globl __stat_assist -__stat_assist: - movb $6,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/sys/dir.h b/newlib/libc/sys/go32/sys/dir.h deleted file mode 100644 index 6ac830f..0000000 --- a/newlib/libc/sys/go32/sys/dir.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef _DIR_H_ -#define _DIR_H_ - -struct ffblk { - char ff_reserved[21]; - char ff_attrib; - short ff_ftime; - short ff_fdate; - short ff_filler; - long ff_fsize; - char ff_name[16]; -}; - -#define FA_RDONLY 1 -#define FA_HIDDEN 2 -#define FA_SYSTEM 4 -#define FA_LABEL 8 -#define FA_DIREC 16 -#define FA_ARCH 32 - -#ifdef __cplusplus -extern "C" { -#endif - -int findfirst(const char *pathname, struct ffblk *ffblk, int attrib); -int findnext(struct ffblk *ffblk); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/newlib/libc/sys/go32/sys/dirent.h b/newlib/libc/sys/go32/sys/dirent.h deleted file mode 100644 index 50ae799..0000000 --- a/newlib/libc/sys/go32/sys/dirent.h +++ /dev/null @@ -1,39 +0,0 @@ -/* This is file DIRENT.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _dirent_h_ -#define _dirent_h_ - -#include - -struct dirent { - unsigned short d_namlen; - char d_name[14]; -}; - -typedef struct { - int num_read; - char *name; - struct ffblk ff; - struct dirent de; -} DIR; - -DIR *opendir(char *name); -struct dirent *readdir(DIR *dir); -long telldir(DIR *dir); -void seekdir(DIR *dir, long loc); -void rewinddir(DIR *dir); -int closedir(DIR *dir); - -#endif diff --git a/newlib/libc/sys/go32/sys/dos.h b/newlib/libc/sys/go32/sys/dos.h deleted file mode 100644 index ff3103f..0000000 --- a/newlib/libc/sys/go32/sys/dos.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef _DOS_H_ -#define _DOS_H_ - -union REGS { - struct { - unsigned long ax; - unsigned long bx; - unsigned long cx; - unsigned long dx; - unsigned long si; - unsigned long di; - unsigned long cflag; - unsigned long flags; - } x; - struct { - unsigned char al; - unsigned char ah; - unsigned short upper_ax; - unsigned char bl; - unsigned char bh; - unsigned short upper_bx; - unsigned char cl; - unsigned char ch; - unsigned short upper_cx; - unsigned char dl; - unsigned char dh; - unsigned short upper_dx; - } h; -}; - -struct SREGS { - unsigned short cs; - unsigned short ds; - unsigned short es; - unsigned short fs; - unsigned short gs; - unsigned short ss; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -int bdos(int func, unsigned dx, unsigned al); -int bdosptr(int func, void *dx, unsigned al); -int int86(int ivec, union REGS *in, union REGS *out); -int int86x(int ivec, union REGS *in, union REGS *out, struct SREGS *seg); -int intdos(union REGS *in, union REGS *out); -int intdosx(union REGS *in, union REGS *out, struct SREGS *seg); - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/newlib/libc/sys/go32/sys/dpmi.h b/newlib/libc/sys/go32/sys/dpmi.h deleted file mode 100644 index b85df0a..0000000 --- a/newlib/libc/sys/go32/sys/dpmi.h +++ /dev/null @@ -1,151 +0,0 @@ -/* This is file dpmi.h */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _DPMI_H_ -#define _DPMI_H_ - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef union { - struct { - u_long edi; - u_long esi; - u_long ebp; - u_long res; - u_long ebx; - u_long edx; - u_long ecx; - u_long eax; - } d; - struct { - u_short di, di_hi; - u_short si, si_hi; - u_short bp, bp_hi; - u_short res, res_hi; - u_short bx, bx_hi; - u_short dx, dx_hi; - u_short cx, cx_hi; - u_short ax, ax_hi; - u_short flags; - u_short es; - u_short ds; - u_short fs; - u_short gs; - u_short ip; - u_short cs; - u_short sp; - u_short ss; - } x; - struct { - u_char edi[4]; - u_char esi[4]; - u_char ebp[4]; - u_char res[4]; - u_char bl, bh, ebx_b2, ebx_b3; - u_char dl, dh, edx_b2, edx_b3; - u_char cl, ch, ecx_b2, ecx_b3; - u_char al, ah, eax_b2, eax_b3; - } h; -} _go32_dpmi_registers; - -typedef struct { - u_long size; - u_long pm_offset; - u_short pm_selector; - u_short rm_offset; - u_short rm_segment; -} _go32_dpmi_seginfo; - -typedef struct { - u_long available_memory; - u_long available_pages; - u_long available_lockable_pages; - u_long linear_space; - u_long unlocked_pages; - u_long available_physical_pages; - u_long total_physical_pages; - u_long free_linear_space; - u_long max_pages_in_paging_file; - u_long reserved[3]; -} _go32_dpmi_meminfo; - -/* returns zero if success, else dpmi error and info->size is max size */ -int _go32_dpmi_allocate_dos_memory(_go32_dpmi_seginfo *info); - /* set size to bytes/16, call, use rm_segment. Do not - change anthing but size until the memory is freed. - If error, max size is returned in size as bytes/16. */ -int _go32_dpmi_free_dos_memory(_go32_dpmi_seginfo *info); - /* set new size to bytes/16, call. If error, max size - is returned in size as bytes/16 */ -int _go32_dpmi_resize_dos_memory(_go32_dpmi_seginfo *info); - /* uses pm_selector to free memory */ - -/* These both use the rm_segment:rm_offset fields only */ -int _go32_dpmi_get_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); -int _go32_dpmi_set_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - -/* These do NOT wrap the function in pm_offset in an iret handler. - You must provide an assembler interface yourself, or alloc one below. - You may NOT longjmp out of an interrupt handler. */ -int _go32_dpmi_get_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - /* puts vector in pm_selector:pm_offset. */ -int _go32_dpmi_set_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - /* sets vector from pm_offset and pm_selector */ -int _go32_dpmi_chain_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info); - /* sets up wrapper that calls function in pm_offset, chaining to old - handler when it returns */ - -/* These can be used to generate assember IRET-style wrappers for functions */ -int _go32_dpmi_allocate_iret_wrapper(_go32_dpmi_seginfo *info); - /* Put function ptr in pm_offset, call, returns wrapper entry in pm_offset. */ -int _go32_dpmi_free_iret_wrapper(_go32_dpmi_seginfo *info); - /* assumes pm_offset points to wrapper, frees it */ - -/* simulate real mode calls. CS:IP from regs for non-interrupt */ -int _go32_dpmi_simulate_int(int vector, _go32_dpmi_registers *regs); -int _go32_dpmi_simulate_fcall(_go32_dpmi_registers *regs); -int _go32_dpmi_simulate_fcall_iret(_go32_dpmi_registers *regs); - -/* These automatically handle the tasks of restructuring the - real-mode stack for the proper return type. The callback - (info->pm_offset) is called as (*pmcb)(_go32_dpmi_registers *regs); */ -int _go32_dpmi_allocate_real_mode_callback_retf(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs); - /* points callback at pm_offset, returns seg:ofs of callback addr - in rm_segment:rm_offset. Do not change any fields until freed. - Interface is added to simulate far return */ -int _go32_dpmi_allocate_real_mode_callback_iret(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs); - /* same, but simulates iret */ -int _go32_dpmi_free_real_mode_callback(_go32_dpmi_seginfo *info); - /* frees callback */ - -/* Only available_memory is guaranteed to be valid. Try - available_physical_pages for phys mem left */ -int _go32_dpmi_get_free_memory_information(_go32_dpmi_meminfo *info); - -/* Convenience functions. These use the above memory info call. - The return value is *bytes* */ -u_long _go32_dpmi_remaining_physical_memory(void); -u_long _go32_dpmi_remaining_virtual_memory(void); - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/newlib/libc/sys/go32/sys/errno.h b/newlib/libc/sys/go32/sys/errno.h deleted file mode 100644 index 44852ae..0000000 --- a/newlib/libc/sys/go32/sys/errno.h +++ /dev/null @@ -1,73 +0,0 @@ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -/* ??? This file has been modified to work with newlib's way of storing - `errno'. Arguably there's no need and arguably we shouldn't diverge - from go32 sources. If you feel strongly about it, please change it. - The interface between newlib and system's version of errno is via - __errno, so there's no problem in storing errno in a different place - (any changes can be dealt with inside __errno). */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include - -#ifndef _REENT_ONLY -#define errno (*__errno()) -extern int *__errno _PARAMS ((void)); -#endif - -#define __errno_r(ptr) ((ptr)->_errno) - -#define ENOENT 2 /* No such file or directory */ -#define ENOTDIR 3 /* No path */ -#define EMFILE 4 /* Too many open files */ -#define EACCES 5 /* Permission denied */ -#define EBADF 6 /* Bad file number */ -#define EARENA 7 /* Arena trashed */ -#define ENOMEM 8 /* Not enough core */ -#define ESEGV 9 /* invalid memory address */ -#define EBADENV 10 /* invalid environment */ -#define ENODEV 15 /* No such device */ -#define ENMFILE 18 /* No more files */ -#define EINVAL 19 /* Invalid argument */ -#define E2BIG EBADENV /* Arg list too long */ -#define ENOEXEC 21 /* Exec format error */ -#define EXDEV 17 /* Cross-device link */ -#define EPIPE 32 /* POHC */ -#define EDOM 33 /* Math argument */ -#define ERANGE 34 /* Result too large */ -#if 0 /* readline.c assumes that if this is defined, so is O_NDELAY. - Newlib doesn't use it, so comment it out. */ -#define EWOULDBLOCK 35 /* POHC */ -#endif -#define EEXIST 36 /* File already exists */ -#define EINTR 100 /* Interrupted system call */ -#define EIO 101 /* I/O or bounds error */ -#define ENOSPC 102 /* No space left on drive */ -#define EAGAIN 103 /* No more processes */ -#define ECHILD 200 /* child exited (porting only) */ -#define EFAULT 201 /* bad address */ -#define ENXIO ENODEV -#define EPERM EACCES - -/* New values required by newlib and the Cygnus toolchain. */ -#define ENOSYS 230 /* Function not implemented */ -#define ESPIPE 231 /* Illegal seek */ - -#endif diff --git a/newlib/libc/sys/go32/sys/fcntl.h b/newlib/libc/sys/go32/sys/fcntl.h deleted file mode 100644 index 792c067..0000000 --- a/newlib/libc/sys/go32/sys/fcntl.h +++ /dev/null @@ -1,12 +0,0 @@ -#define O_RDONLY 0x0001 -#define O_WRONLY 0x0002 -#define O_RDWR 0x0004 -#define O_CREAT 0x0100 -#define O_TRUNC 0x0200 -#define O_EXCL 0x0400 -#define O_APPEND 0x0800 -#define O_TEXT 0x4000 -#define O_BINARY 0x8000 - - - diff --git a/newlib/libc/sys/go32/sys/file.h b/newlib/libc/sys/go32/sys/file.h deleted file mode 100644 index 79f5f65..0000000 --- a/newlib/libc/sys/go32/sys/file.h +++ /dev/null @@ -1,31 +0,0 @@ -/* This is file FILE.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _FILE_H_ -#define _FILE_H_ - -#include - -#define L_SET 0 -#define L_CURR 1 -#define L_INCR 1 -#define L_XTND 2 - - -#define F_OK 0 /* does file exist */ -#define X_OK 1 /* is it executable by caller */ -#define W_OK 2 /* is it writable by caller */ -#define R_OK 4 /* is it readable by caller */ - -#endif diff --git a/newlib/libc/sys/go32/sys/go32.h b/newlib/libc/sys/go32/sys/go32.h deleted file mode 100644 index 0a0d55f..0000000 --- a/newlib/libc/sys/go32/sys/go32.h +++ /dev/null @@ -1,69 +0,0 @@ -/* This is file go32.h */ -/* -** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _GO32_H_ -#define _GO32_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* This must match go32/proginfo.h */ - -typedef struct { - u_long size_of_this_structure_in_bytes; - u_long linear_address_of_primary_screen; - u_long linear_address_of_secondary_screen; - u_long linear_address_of_transfer_buffer; - u_long size_of_transfer_buffer; /* >= 4k */ - u_long pid; - u_char master_interrupt_controller_base; - u_char slave_interrupt_controller_base; - u_short selector_for_linear_memory; - u_long linear_address_of_stub_info_structure; - u_long linear_address_of_original_psp; - u_short run_mode; - u_short run_mode_info; -} Go32_Info_Block; - -extern Go32_Info_Block _go32_info_block; - -#define _GO32_RUN_MODE_UNDEF 0 -#define _GO32_RUN_MODE_RAW 1 -#define _GO32_RUN_MODE_XMS 2 -#define _GO32_RUN_MODE_VCPI 3 -#define _GO32_RUN_MODE_DPMI 4 - -void dosmemget(int offset, int length, void *buffer); -void dosmemput(const void *buffer, int length, int offset); -void movedata(unsigned source_selector, unsigned source_offset, - unsigned dest_selector, unsigned dest_offset, - size_t length); - -/* returns number of times hit since last call. (zero first time) */ -u_long _go32_was_ctrl_break_hit(void); -void _go32_want_ctrl_break(int yes); /* auto-yes if call above function */ - -u_short _go32_my_cs(void); -u_short _go32_my_ds(void); -u_short _go32_my_ss(void); -u_short _go32_conventional_mem_selector(void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/newlib/libc/sys/go32/sys/param.h b/newlib/libc/sys/go32/sys/param.h deleted file mode 100644 index c912b40..0000000 --- a/newlib/libc/sys/go32/sys/param.h +++ /dev/null @@ -1,22 +0,0 @@ -/* This is file PARAM.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _PARAM_H_ -#define _PARAM_H_ - -#define MAXPATHLEN 80 -/* 100, according to the real go32 sys/times.h */ -#define HZ (100) - -#endif diff --git a/newlib/libc/sys/go32/sys/pc.h b/newlib/libc/sys/go32/sys/pc.h deleted file mode 100644 index 4bce557..0000000 --- a/newlib/libc/sys/go32/sys/pc.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _PC_H_ -#define _PC_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -unsigned char inportb(unsigned short port); -unsigned short inportw(unsigned short port); -unsigned long inportl(unsigned short port); -unsigned char inportsb(unsigned short port, unsigned char *buf, unsigned len); -unsigned short inportsw(unsigned short port, unsigned short *buf, unsigned len); -unsigned long inportsl(unsigned short port, unsigned long *buf, unsigned len); -void outportb(unsigned short port, unsigned char data); -void outportw(unsigned short port, unsigned short data); -void outportl(unsigned short port, unsigned long data); -void outportsb(unsigned short port, unsigned char *buf, unsigned len); -void outportsw(unsigned short port, unsigned short *buf, unsigned len); -void outportsl(unsigned short port, unsigned long *buf, unsigned len); - -int kbhit(void); -int getkey(void); - -void sound(int frequency); - -extern short ScreenPrimary[]; -extern short ScreenSecondary[]; - -/* For the primary screen: */ -int ScreenRows(); -int ScreenCols(); -void ScreenPutChar(int ch, int attr, int x, int y); -void ScreenSetCursor(int row, int col); -void ScreenGetCursor(int *row, int *col); -void ScreenClear(); - - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/newlib/libc/sys/go32/sys/register.h b/newlib/libc/sys/go32/sys/register.h deleted file mode 100644 index 56fb737..0000000 --- a/newlib/libc/sys/go32/sys/register.h +++ /dev/null @@ -1,28 +0,0 @@ -/* This is file REGISTER.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct { - unsigned ax, bx, cx, dx, si, di, bp, f; - } REGISTERS; - -#define FLAGS_C 1 - -#ifdef __cplusplus -} -#endif - diff --git a/newlib/libc/sys/go32/sys/resource.h b/newlib/libc/sys/go32/sys/resource.h deleted file mode 100644 index afdf392..0000000 --- a/newlib/libc/sys/go32/sys/resource.h +++ /dev/null @@ -1,50 +0,0 @@ -/* This is file RESOURCE.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _SYS_RESOURCE_H_ -#define _SYS_RESOURCE_H_ - -#include - -#define RUSAGE_SELF 0 /* calling process */ -#define RUSAGE_CHILDREN -1 /* terminated child processes */ - -struct rusage { - struct timeval ru_utime; /* user time used */ - struct timeval ru_stime; /* system time used */ - long ru_maxrss; /* integral max resident set size */ - long ru_ixrss; /* integral shared text memory size */ - long ru_idrss; /* integral unshared data size */ - long ru_isrss; /* integral unshared stack size */ - long ru_minflt; /* page reclaims */ - long ru_majflt; /* page faults */ - long ru_nswap; /* swaps */ - long ru_inblock; /* block input operations */ - long ru_oublock; /* block output operations */ - long ru_msgsnd; /* messages sent */ - long ru_msgrcv; /* messages received */ - long ru_nsignals; /* signals received */ - long ru_nvcsw; /* voluntary context switches */ - long ru_nivcsw; /* involuntary context switches */ -}; - - -#ifdef __cplusplus -extern "C" int getrusage(int who, struct rusage *rusage); -#else -extern int getrusage(int who, struct rusage *rusage); -#endif - -#endif - diff --git a/newlib/libc/sys/go32/sys/setjmp.h b/newlib/libc/sys/go32/sys/setjmp.h deleted file mode 100644 index c853987..0000000 --- a/newlib/libc/sys/go32/sys/setjmp.h +++ /dev/null @@ -1,44 +0,0 @@ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _SETJMP_H_ -#define _SETJMP_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct { - unsigned long eax; - unsigned long ebx; - unsigned long ecx; - unsigned long edx; - unsigned long esi; - unsigned long edi; - unsigned long ebp; - unsigned long esp; - unsigned long eip; - unsigned short es; - unsigned short fs; - unsigned short gs; - unsigned short ss; -} jmp_buf[1]; - -extern int setjmp(jmp_buf); -extern void longjmp(jmp_buf, int); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/newlib/libc/sys/go32/sys/stdc.h b/newlib/libc/sys/go32/sys/stdc.h deleted file mode 100644 index b2e5bc1..0000000 --- a/newlib/libc/sys/go32/sys/stdc.h +++ /dev/null @@ -1,15 +0,0 @@ -/* This is file STDC.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include diff --git a/newlib/libc/sys/go32/sys/uio.h b/newlib/libc/sys/go32/sys/uio.h deleted file mode 100644 index d09fa50..0000000 --- a/newlib/libc/sys/go32/sys/uio.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This is file UIO.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _SYS_UIO_H_ -#define _SYS_UIO_H_ - -struct iovec { - void *iov_base; - unsigned long iov_len; -}; - -#endif diff --git a/newlib/libc/sys/go32/syserr.c b/newlib/libc/sys/go32/syserr.c deleted file mode 100644 index 1fe4ca4..0000000 --- a/newlib/libc/sys/go32/syserr.c +++ /dev/null @@ -1,38 +0,0 @@ - -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -char *sys_errlist[] = { - "no error", - "invalid function", - "file not found", - "path not found", - "too many open files", - "access denied", - "invalid file handle", - "arena trashed", - "not enough memory", - "invalid block", - "no environment", - "no format", - "invalid access code", - "invalid data", - "undefined", - "invalid drive", - "attempt to remove current directory", - "not same device", - "no more files" -}; - -int sys_nerr= sizeof(sys_errlist) / sizeof(char *); - diff --git a/newlib/libc/sys/go32/system.s b/newlib/libc/sys/go32/system.s deleted file mode 100644 index 9b12bbe..0000000 --- a/newlib/libc/sys/go32/system.s +++ /dev/null @@ -1,19 +0,0 @@ -# /* This is file SYSTEM.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _system -_system: - movb $7,%al - jmp turbo_assist diff --git a/newlib/libc/sys/go32/tell.s b/newlib/libc/sys/go32/tell.s deleted file mode 100644 index 5427cbe..0000000 --- a/newlib/libc/sys/go32/tell.s +++ /dev/null @@ -1,33 +0,0 @@ -# /* This is file TELL.S */ -# /* -# ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -# ** -# ** This file is distributed under the terms listed in the document -# ** "copying.dj", available from DJ Delorie at the address above. -# ** A copy of "copying.dj" should accompany this file; if not, a copy -# ** should be available from where this file was obtained. This file -# ** may not be distributed without a verbatim copy of "copying.dj". -# ** -# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied -# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# */ - - .text - .globl _tell -_tell: - pushl %ebx - pushl %esi - pushl %edi - movl 16(%esp),%ebx - movl $0,%ecx - movl $0,%edx - movw $0x4201,%ax - int $0x21 - popl %edi - popl %esi - popl %ebx - jb syscall_error - shll $16,%edx - andl $0xffff,%eax - orl %edx,%eax - ret diff --git a/newlib/libc/sys/go32/time.c b/newlib/libc/sys/go32/time.c deleted file mode 100644 index f8ab6f4..0000000 --- a/newlib/libc/sys/go32/time.c +++ /dev/null @@ -1,53 +0,0 @@ -/* -FUNCTION -<