Add various changes to sconfig and configure.
- Modify the features used by OpenBSD (not everything was tested). Mostly copied from Linux, FreeBSD and NetBSD. - Add support for Bitrig, a fork of OpenBSD. Eventually they will differ more and more from OpenBSD. - Typos and extra trailing spaces. - Update config.guess and config.sub from GNU.
This commit is contained in:
parent
9e9dcf2f50
commit
26c4607c3b
5
racket/src/configure
vendored
5
racket/src/configure
vendored
|
@ -4489,6 +4489,11 @@ case "$host_os" in
|
|||
enable_pthread_by_default=yes
|
||||
try_kqueue_syscall=yes
|
||||
;;
|
||||
bitrig*)
|
||||
LIBS="$LIBS -Wl,--export-dynamic"
|
||||
enable_pthread_by_default=yes
|
||||
try_kqueue_syscall=yes
|
||||
;;
|
||||
dragonfly*)
|
||||
LIBS="$LIBS -Wl,--export-dynamic"
|
||||
enable_pthread_by_default=yes
|
||||
|
|
795
racket/src/lt/config.guess
vendored
795
racket/src/lt/config.guess
vendored
File diff suppressed because it is too large
Load Diff
55
racket/src/lt/config.sub
vendored
55
racket/src/lt/config.sub
vendored
|
@ -1,8 +1,8 @@
|
|||
#! /bin/sh
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright 1992-2013 Free Software Foundation, Inc.
|
||||
# Copyright 1992-2014 Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2013-02-12'
|
||||
timestamp='2014-12-03'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
|
@ -25,7 +25,7 @@ timestamp='2013-02-12'
|
|||
# of the GNU General Public License, version 3 ("GPLv3").
|
||||
|
||||
|
||||
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
|
||||
# Please send patches to <config-patches@gnu.org>.
|
||||
#
|
||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||
# Supply the specified configuration type as an argument.
|
||||
|
@ -68,7 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>."
|
|||
version="\
|
||||
GNU config.sub ($timestamp)
|
||||
|
||||
Copyright 1992-2013 Free Software Foundation, Inc.
|
||||
Copyright 1992-2014 Free Software Foundation, Inc.
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
|
@ -252,12 +252,12 @@ case $basic_machine in
|
|||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||
| am33_2.0 \
|
||||
| arc \
|
||||
| arc | arceb \
|
||||
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
|
||||
| avr | avr32 \
|
||||
| be32 | be64 \
|
||||
| bfin \
|
||||
| c4x | clipper \
|
||||
| c4x | c8051 | clipper \
|
||||
| d10v | d30v | dlx | dsp16xx \
|
||||
| epiphany \
|
||||
| fido | fr30 | frv \
|
||||
|
@ -265,6 +265,7 @@ case $basic_machine in
|
|||
| hexagon \
|
||||
| i370 | i860 | i960 | ia64 \
|
||||
| ip2k | iq2000 \
|
||||
| k1om \
|
||||
| le32 | le64 \
|
||||
| lm32 \
|
||||
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
||||
|
@ -282,8 +283,10 @@ case $basic_machine in
|
|||
| mips64vr5900 | mips64vr5900el \
|
||||
| mipsisa32 | mipsisa32el \
|
||||
| mipsisa32r2 | mipsisa32r2el \
|
||||
| mipsisa32r6 | mipsisa32r6el \
|
||||
| mipsisa64 | mipsisa64el \
|
||||
| mipsisa64r2 | mipsisa64r2el \
|
||||
| mipsisa64r6 | mipsisa64r6el \
|
||||
| mipsisa64sb1 | mipsisa64sb1el \
|
||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||
| mipsr5900 | mipsr5900el \
|
||||
|
@ -295,11 +298,11 @@ case $basic_machine in
|
|||
| nds32 | nds32le | nds32be \
|
||||
| nios | nios2 | nios2eb | nios2el \
|
||||
| ns16k | ns32k \
|
||||
| open8 \
|
||||
| or1k | or32 \
|
||||
| open8 | or1k | or1knd | or32 \
|
||||
| pdp10 | pdp11 | pj | pjl \
|
||||
| powerpc | powerpc64 | powerpc64le | powerpcle \
|
||||
| pyramid \
|
||||
| riscv32 | riscv64 \
|
||||
| rl78 | rx \
|
||||
| score \
|
||||
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
||||
|
@ -310,6 +313,7 @@ case $basic_machine in
|
|||
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
|
||||
| ubicom32 \
|
||||
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
|
||||
| visium \
|
||||
| we32k \
|
||||
| x86 | xc16x | xstormy16 | xtensa \
|
||||
| z8k | z80)
|
||||
|
@ -324,7 +328,10 @@ case $basic_machine in
|
|||
c6x)
|
||||
basic_machine=tic6x-unknown
|
||||
;;
|
||||
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
|
||||
leon|leon[3-9])
|
||||
basic_machine=sparc-$basic_machine
|
||||
;;
|
||||
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
|
||||
basic_machine=$basic_machine-unknown
|
||||
os=-none
|
||||
;;
|
||||
|
@ -366,13 +373,13 @@ case $basic_machine in
|
|||
| aarch64-* | aarch64_be-* \
|
||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
||||
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
|
||||
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
||||
| avr-* | avr32-* \
|
||||
| be32-* | be64-* \
|
||||
| bfin-* | bs2000-* \
|
||||
| c[123]* | c30-* | [cjt]90-* | c4x-* \
|
||||
| clipper-* | craynv-* | cydra-* \
|
||||
| c8051-* | clipper-* | craynv-* | cydra-* \
|
||||
| d10v-* | d30v-* | dlx-* \
|
||||
| elxsi-* \
|
||||
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
||||
|
@ -381,6 +388,7 @@ case $basic_machine in
|
|||
| hexagon-* \
|
||||
| i*86-* | i860-* | i960-* | ia64-* \
|
||||
| ip2k-* | iq2000-* \
|
||||
| k1om-* \
|
||||
| le32-* | le64-* \
|
||||
| lm32-* \
|
||||
| m32c-* | m32r-* | m32rle-* \
|
||||
|
@ -400,8 +408,10 @@ case $basic_machine in
|
|||
| mips64vr5900-* | mips64vr5900el-* \
|
||||
| mipsisa32-* | mipsisa32el-* \
|
||||
| mipsisa32r2-* | mipsisa32r2el-* \
|
||||
| mipsisa32r6-* | mipsisa32r6el-* \
|
||||
| mipsisa64-* | mipsisa64el-* \
|
||||
| mipsisa64r2-* | mipsisa64r2el-* \
|
||||
| mipsisa64r6-* | mipsisa64r6el-* \
|
||||
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||
| mipsr5900-* | mipsr5900el-* \
|
||||
|
@ -413,6 +423,7 @@ case $basic_machine in
|
|||
| nios-* | nios2-* | nios2eb-* | nios2el-* \
|
||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||
| open8-* \
|
||||
| or1k*-* \
|
||||
| orion-* \
|
||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
|
||||
|
@ -430,6 +441,7 @@ case $basic_machine in
|
|||
| ubicom32-* \
|
||||
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
|
||||
| vax-* \
|
||||
| visium-* \
|
||||
| we32k-* \
|
||||
| x86-* | x86_64-* | xc16x-* | xps100-* \
|
||||
| xstormy16-* | xtensa*-* \
|
||||
|
@ -767,6 +779,9 @@ case $basic_machine in
|
|||
basic_machine=m68k-isi
|
||||
os=-sysv
|
||||
;;
|
||||
leon-*|leon[3-9]-*)
|
||||
basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
|
||||
;;
|
||||
m68knommu)
|
||||
basic_machine=m68k-unknown
|
||||
os=-linux
|
||||
|
@ -794,7 +809,7 @@ case $basic_machine in
|
|||
os=-mingw64
|
||||
;;
|
||||
mingw32)
|
||||
basic_machine=i386-pc
|
||||
basic_machine=i686-pc
|
||||
os=-mingw32
|
||||
;;
|
||||
mingw32ce)
|
||||
|
@ -822,6 +837,10 @@ case $basic_machine in
|
|||
basic_machine=powerpc-unknown
|
||||
os=-morphos
|
||||
;;
|
||||
moxiebox)
|
||||
basic_machine=moxie-unknown
|
||||
os=-moxiebox
|
||||
;;
|
||||
msdos)
|
||||
basic_machine=i386-pc
|
||||
os=-msdos
|
||||
|
@ -830,7 +849,7 @@ case $basic_machine in
|
|||
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
|
||||
;;
|
||||
msys)
|
||||
basic_machine=i386-pc
|
||||
basic_machine=i686-pc
|
||||
os=-msys
|
||||
;;
|
||||
mvs)
|
||||
|
@ -1367,14 +1386,14 @@ case $os in
|
|||
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
|
||||
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
|
||||
| -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
| -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
|
||||
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
||||
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
|
||||
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-qnx*)
|
||||
|
@ -1546,6 +1565,9 @@ case $basic_machine in
|
|||
c4x-* | tic4x-*)
|
||||
os=-coff
|
||||
;;
|
||||
c8051-*)
|
||||
os=-elf
|
||||
;;
|
||||
hexagon-*)
|
||||
os=-elf
|
||||
;;
|
||||
|
@ -1589,9 +1611,6 @@ case $basic_machine in
|
|||
mips*-*)
|
||||
os=-elf
|
||||
;;
|
||||
or1k-*)
|
||||
os=-elf
|
||||
;;
|
||||
or32-*)
|
||||
os=-coff
|
||||
;;
|
||||
|
|
|
@ -625,6 +625,11 @@ case "$host_os" in
|
|||
enable_pthread_by_default=yes
|
||||
try_kqueue_syscall=yes
|
||||
;;
|
||||
bitrig*)
|
||||
LIBS="$LIBS -Wl,--export-dynamic"
|
||||
enable_pthread_by_default=yes
|
||||
try_kqueue_syscall=yes
|
||||
;;
|
||||
dragonfly*)
|
||||
LIBS="$LIBS -Wl,--export-dynamic"
|
||||
enable_pthread_by_default=yes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
Configuration for compiling Racket
|
||||
|
||||
If you want to set all the flags externally (on the command line
|
||||
|
@ -6,8 +6,8 @@
|
|||
FLAGS_ALREADY_SET, and this file will be ignored.
|
||||
|
||||
The best flag settings are already provided for some auto-detected
|
||||
architecture/system/compilers. Otherwise, the default settings
|
||||
are generic Unix. Send other architecture/system/compiler-specific
|
||||
architecture/system/compilers. Otherwise, the default settings
|
||||
are generic Unix. Send other architecture/system/compiler-specific
|
||||
info to "racket@racket-lang.org".
|
||||
*/
|
||||
|
||||
|
@ -312,10 +312,10 @@
|
|||
|
||||
#endif
|
||||
|
||||
/************** x86/OpenBSD with gcc ****************/
|
||||
/************** OpenBSD with gcc ****************/
|
||||
/* Thanks to Bengt Kleberg */
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
#if defined(__OpenBSD__) && !defined(__Bitrig__)
|
||||
|
||||
# if defined(__x86_64__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "x86_64-openbsd"
|
||||
|
@ -327,6 +327,13 @@
|
|||
# else
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "mips64-openbsd"
|
||||
# endif
|
||||
# elif defined(__powerpc__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "ppc-openbsd"
|
||||
# elif defined(__sparc64__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "sparc64-openbsd"
|
||||
/* ARMv7 is a WIP platform on OpenBSD, probably broken here and there */
|
||||
# elif defined(__arm__) || defined(__thumb__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "arm-openbsd"
|
||||
# elif defined(__hppa__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "hppa-openbsd"
|
||||
# else
|
||||
|
@ -343,9 +350,7 @@
|
|||
# undef UNIX_STACK_MAXIMUM
|
||||
# define UNIX_STACK_MAXIMUM 4194304
|
||||
|
||||
#ifndef __ELF__
|
||||
# define UNDERSCORE_DYNLOAD_SYMBOL_PREFIX
|
||||
#endif
|
||||
|
||||
# define USE_DLOPEN_GLOBAL_BY_DEFAULT
|
||||
|
||||
|
@ -355,29 +360,91 @@
|
|||
|
||||
# define SIGSET_IS_SIGNAL
|
||||
|
||||
# define REGISTER_POOR_MACHINE
|
||||
|
||||
# define USE_TM_GMTOFF_FIELD
|
||||
# define USE_TM_ZONE_FIELD
|
||||
|
||||
#if defined(__x86_64__)
|
||||
# define MZ_USE_JIT_X86_64
|
||||
# define MZ_JIT_USE_MPROTECT
|
||||
# define MZ_TRY_EXTFLONUMS
|
||||
#elif defined(__i386__)
|
||||
# define MZ_USE_JIT_I386
|
||||
# define MZ_JIT_USE_MPROTECT
|
||||
# define MZ_TRY_EXTFLONUMS
|
||||
#endif
|
||||
# define USE_MAP_ANON
|
||||
|
||||
# if defined(__x86_64__)
|
||||
# define MZ_USE_JIT_X86_64
|
||||
# define MZ_JIT_USE_MPROTECT
|
||||
# define MZ_TRY_EXTFLONUMS
|
||||
# elif defined(__i386__)
|
||||
# define MZ_USE_JIT_I386
|
||||
# define MZ_JIT_USE_MPROTECT
|
||||
# define MZ_TRY_EXTFLONUMS
|
||||
# define REGISTER_POOR_MACHINE
|
||||
# elif defined(__powerpc__)
|
||||
# define MZ_USE_JIT_PPC
|
||||
# elif defined(__sparc64__)
|
||||
# define FLUSH_SPARC_REGISTER_WINDOWS
|
||||
# elif defined(__arm__)
|
||||
# define MZ_USE_JIT_ARM
|
||||
# define FFI_CALLBACK_NEED_INT_CLEAR
|
||||
# endif
|
||||
|
||||
# define FLAGS_ALREADY_SET
|
||||
|
||||
#endif
|
||||
|
||||
/************** x86/FreeBSD with gcc ****************/
|
||||
/************** Bitrig with clang ****************/
|
||||
/*
|
||||
Bitrig and OpenBSD are pretty similar in some aspects. If you are modifying
|
||||
any of the next values, please test also the same changes on OpenBSD.
|
||||
*/
|
||||
|
||||
#if defined(__Bitrig__)
|
||||
|
||||
# if defined(__x86_64__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "x86_64-bitrig"
|
||||
# elif defined(__arm__) || defined(__thumb__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "arm-bitrig"
|
||||
# else
|
||||
# error Unported platform.
|
||||
# endif
|
||||
|
||||
# include "uconfig.h"
|
||||
# undef HAS_STANDARD_IOB
|
||||
# define HAS_BSD_IOB
|
||||
# undef UNIX_FIND_STACK_BOUNDS
|
||||
# define PTHREAD_STACKSEG_FIND_STACK_BOUNDS
|
||||
|
||||
/* Default UNIX_STACK_MAXIMUM is too big for a non-root user. */
|
||||
# undef UNIX_STACK_MAXIMUM
|
||||
# define UNIX_STACK_MAXIMUM 4194304
|
||||
|
||||
# define UNDERSCORE_DYNLOAD_SYMBOL_PREFIX
|
||||
|
||||
# define USE_DLOPEN_GLOBAL_BY_DEFAULT
|
||||
|
||||
# define USE_IEEE_FP_PREDS
|
||||
|
||||
# define USE_DYNAMIC_FDSET_SIZE
|
||||
|
||||
# define SIGSET_IS_SIGNAL
|
||||
|
||||
# define USE_TM_GMTOFF_FIELD
|
||||
# define USE_TM_ZONE_FIELD
|
||||
|
||||
# define USE_MAP_ANON
|
||||
|
||||
# if defined(__x86_64__)
|
||||
# define MZ_USE_JIT_X86_64
|
||||
# define MZ_JIT_USE_MPROTECT
|
||||
# define MZ_TRY_EXTFLONUMS
|
||||
# elif defined(__arm__)
|
||||
# define MZ_USE_JIT_ARM
|
||||
# define FFI_CALLBACK_NEED_INT_CLEAR
|
||||
# endif
|
||||
|
||||
# define FLAGS_ALREADY_SET
|
||||
|
||||
#endif
|
||||
|
||||
/************** FreeBSD with gcc ****************/
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
|
||||
|
||||
# if defined(__i386__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "i386-freebsd"
|
||||
# define REGISTER_POOR_MACHINE
|
||||
|
@ -738,7 +805,7 @@
|
|||
|
||||
# if defined(OS_X) || defined(XONX)
|
||||
|
||||
#ifdef XONX
|
||||
#ifdef XONX
|
||||
# ifdef __POWERPC__
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "ppc-darwin"
|
||||
# else
|
||||
|
@ -888,7 +955,7 @@
|
|||
/************ Dragonfly *************/
|
||||
|
||||
#if defined(__DragonFly__)
|
||||
|
||||
|
||||
# if defined(__i386__)
|
||||
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "i386-dragonfly"
|
||||
# define REGISTER_POOR_MACHINE
|
||||
|
@ -959,7 +1026,7 @@
|
|||
/* SYSTEM_TYPE_NAME must be a string; this will be converted into
|
||||
a symbol for the result of (system-type) */
|
||||
|
||||
/* SCHEME_PLATFORM_LIBRARY_SUBPATH must be a string; if it is
|
||||
/* SCHEME_PLATFORM_LIBRARY_SUBPATH must be a string; if it is
|
||||
undefined, it is automatically generated into a file named
|
||||
"schsys.h" into the same directory as .o files and #included
|
||||
by string.c. This string is returned by (system-library-subpath) */
|
||||
|
@ -976,9 +1043,9 @@
|
|||
it defaults to 1000000 */
|
||||
|
||||
/* USE_FTIME uses ftime instead of gettimeofday; only for TIME_SYNTAX */
|
||||
|
||||
|
||||
/* USE_PLAIN_TIME uses time; only for TIME_SYNTAX */
|
||||
|
||||
|
||||
/* USE_MACTIME uses the Mac toolbox to implement time functions. */
|
||||
|
||||
/* USE_WIN32_TIME uses the Win32 API to implement time functions. */
|
||||
|
@ -1002,7 +1069,7 @@
|
|||
|
||||
/* USE_TIMEZONE_VAR gets timezone offset from a timezone global.
|
||||
USE_TOD_FOR_TIMEZONE gets timezone offset via gettimeofday.
|
||||
USE_TIMEZONE_VAR_W_DLS is similar, but adds 1 hour when daylight
|
||||
USE_TIMEZONE_VAR_W_DLS is similar, but adds 1 hour when daylight
|
||||
savings is in effect.
|
||||
USE_TIMEZONE_AND_ALTZONE_VAR is similar, but uses altzone when
|
||||
daylight savings is in effect.
|
||||
|
@ -1012,23 +1079,22 @@
|
|||
/* USE_TZNAME_VAR gets the timezone name from a tzname global.
|
||||
USE_TM_ZONE_FIELD gets the timezone name from a tm_zone field
|
||||
of the tm struct. */
|
||||
|
||||
|
||||
/*******************/
|
||||
/* Filesystem */
|
||||
/*******************/
|
||||
|
||||
/* UNIX_FILE_SYSTEM indicates that filenames are as in Unix, with
|
||||
forward slash separators, ".." as the parent directory, "/"
|
||||
forward slash separators, ".." as the parent directory, "/"
|
||||
as the root directory, and case-sensitivity */
|
||||
|
||||
/* DOS_FILE_SYSTEM indicates that filenames are as in DOS, with
|
||||
slash or backward slash separators, ".." as the parent directory,
|
||||
/* DOS_FILE_SYSTEM indicates that filenames are as in DOS, with
|
||||
slash or backward slash separators, ".." as the parent directory,
|
||||
"X:\", "X:/", "\", or "/" as a root directory (for some letter X),
|
||||
and case insensitivity */
|
||||
|
||||
/* MAC_FILE_SYSTEM indicates that filenames are as on the Macintosh,
|
||||
with colon separators, "" as the parent directory, a volume name
|
||||
with colon separators, "" as the parent directory, a volume name
|
||||
(followed by a colon) as a root directory, and case insensitivity. */
|
||||
|
||||
/* EXPAND_FILENAME_TILDE expands ~ in a filename with a user's home
|
||||
|
@ -1051,7 +1117,7 @@
|
|||
/* DIRENT_NO_NAMLEN specifies that dirent entries do not have a
|
||||
d_namlen field; this is used only when NO_READDIR is not
|
||||
specified. */
|
||||
|
||||
|
||||
/* MKDIR_NO_MODE_FLAG specifies that mkdir() takes only one argument,
|
||||
instead of a directory name and mode flags. */
|
||||
|
||||
|
@ -1137,10 +1203,10 @@
|
|||
an AF_UNSPEC address to disconnect a UDP socket. */
|
||||
|
||||
/* UDP_DISCONNECT_EADRNOTAVAIL_OK means that a disconnecting call
|
||||
to connect() might return EADDRNOTAVAIL instead of
|
||||
to connect() might return EADDRNOTAVAIL instead of
|
||||
EAFNOSUPPORT. */
|
||||
|
||||
/* MZ_BINARY is combinaed with other flags in all calls to open();
|
||||
/* MZ_BINARY is combined with other flags in all calls to open();
|
||||
it can be defined to O_BINARY in Cygwin, for example. */
|
||||
|
||||
/* MZ_TCP_LISTEN_IPV6_ONLY_SOCKOPT uses IPV6_V6ONLY for IPv6
|
||||
|
@ -1155,7 +1221,6 @@
|
|||
when creating the listener (but only where there is at least once
|
||||
IPv4 address). */
|
||||
|
||||
|
||||
/***********************/
|
||||
/* Threads & Signals */
|
||||
/***********************/
|
||||
|
@ -1177,7 +1242,7 @@
|
|||
/* USE_PTHREAD_THREAD_TIMER uses a background pthread to implement
|
||||
tread pre-emption. */
|
||||
|
||||
/* SIGSET_IS_SIGNAL uses signal() in place of sigset() for Unix. This
|
||||
/* SIGSET_IS_SIGNAL uses signal() in place of sigset() for Unix. This
|
||||
flag is often paired with SIGSET_NEEDS_REINSTALL for traditional
|
||||
Unix systems. */
|
||||
|
||||
|
@ -1186,7 +1251,7 @@
|
|||
(when this flags is not defined) is that a signal handler is NOT
|
||||
reset to SIG_DFL after a handler is called to handle a signal. */
|
||||
|
||||
/* DONT_IGNORE_FPE_SIGNAL stops Racket from ignoring floating-point
|
||||
/* DONT_IGNORE_FPE_SIGNAL stops Racket from ignoring floating-point
|
||||
exception signals. */
|
||||
|
||||
/* DONT_IGNORE_PIPE_SIGNAL stops Racket from ignoring SIGPIPE
|
||||
|
@ -1294,7 +1359,7 @@
|
|||
/* NAN_EQUALS_ANYTHING indicates that the compiler is broken and
|
||||
equality comparisons with +nan.0 always return #t. Currently
|
||||
used for MSVC++ */
|
||||
|
||||
|
||||
/* ZERO_MINUS_ZERO_IS_POS_ZERO indicates that something (compiler?
|
||||
machine? fp flags?) is broken so that 0.0 - 0.0 = 0.0 instead of
|
||||
-0.0. This flag doesn't fix Racket completely, since (- 0.0) is
|
||||
|
@ -1305,22 +1370,22 @@
|
|||
by < or <=. Probably the compiler implements < as !>. */
|
||||
|
||||
/* USE_EXPLICT_FP_FORM_CHECK circumvents bugs in strtod() under Linux,
|
||||
SunOS/Solaris, and HP/UX by explicit pre-checking the form of the
|
||||
SunOS/Solaris, and HP/UX by explicit pre-checking the form of the
|
||||
number and looking for values that are obviously +inf.0 or -inf.0 */
|
||||
|
||||
/* POW_HANDLES_CASES_CORRECTLY indicates that the pow() library procedure
|
||||
handles all +/-inf.0, +/-0.0, or +nan.0 cases according to C99. This
|
||||
might save time on redundant checking before Racket calls pow(). */
|
||||
|
||||
|
||||
/* ATAN2_DOESNT_WORK_WITH_INFINITIES indicates that atan2(+/-inf, +/-inf)
|
||||
is not the same as atan2(1, 1). */
|
||||
|
||||
is not the same as atan2(1, 1). */
|
||||
|
||||
/* ATAN2_DOESNT_WORK_WITH_NAN indicates that atan2(+nan.0, _) and
|
||||
atan2(_, +nan.0) don't produce +nan.0. */
|
||||
|
||||
atan2(_, +nan.0) don't produce +nan.0. */
|
||||
|
||||
/* SQRT_NAN_IS_WRONG indicates that (sqrt +nan.0) must be forced to +nan.0
|
||||
(i.e., the C library function is bad). */
|
||||
|
||||
|
||||
/* COMPUTE_NEG_INEXACT_TO_EXACT_AS_POS computes inexact->exact of some
|
||||
negative inexact number x by computing the result for -x and negating
|
||||
it. Use this if (inexact->exact -0.1) is wrong. */
|
||||
|
@ -1352,7 +1417,7 @@
|
|||
/* NO_LONG_LONG_TYPE indicates that long long is not supported */
|
||||
|
||||
/***********************/
|
||||
/* Stack Maniuplations */
|
||||
/* Stack Manipulations */
|
||||
/***********************/
|
||||
|
||||
/* DO_STACK_CHECK checks for stack overflow during execution.
|
||||
|
@ -1397,9 +1462,9 @@
|
|||
/***********************/
|
||||
|
||||
/* UNIX_DYNAMIC_LOAD implements dynamic extensions under Unix
|
||||
using dlopen(); you may have to add the -ldl flag in the LIBS
|
||||
Makefile variable. The library doesn't exist under Linux without
|
||||
ELF, so it won't work. If you get linker errors about dlopen(), etc.,
|
||||
using dlopen(); you may have to add the -ldl flag in the LIBS
|
||||
Makefile variable. The library doesn't exist under Linux without
|
||||
ELF, so it won't work. If you get linker errors about dlopen(), etc.,
|
||||
this flag and the -ldl linker flag are the things to adjust.
|
||||
SHL_DYNAMIC_LOAD implement HP/UX dynamic loading.
|
||||
WINDOWS_DYNAMIC_LOAD implements dynamic extensions under Windows
|
||||
|
@ -1409,7 +1474,7 @@
|
|||
Use only one or none of these. */
|
||||
|
||||
/* UNDERSCORE_DYNLOAD_SYMBOL_PREFIX with UNIX_DYNAMIC_LOAD means that
|
||||
an extra underscore ("_") must be placed in front of the name passed
|
||||
an extra underscore ("_") must be placed in front of the name passed
|
||||
to dlopen(). */
|
||||
|
||||
/* USE_DLOPEN_GLOBAL_BY_DEFAULT opens shared libraries in "global"
|
||||
|
@ -1443,10 +1508,10 @@
|
|||
/* Heap Images */
|
||||
/***********************/
|
||||
|
||||
/* UNIX_IMAGE_DUMPS turns on image save and restore for Unix systems.
|
||||
This will only work if the final application is statically linked.
|
||||
(As an exception, the dynamic-linking library itself can be
|
||||
dynamically linked. This works because loading an extension in
|
||||
/* UNIX_IMAGE_DUMPS turns on image save and restore for Unix systems.
|
||||
This will only work if the final application is statically linked.
|
||||
(As an exception, the dynamic-linking library itself can be
|
||||
dynamically linked. This works because loading an extension in
|
||||
Racket automatically turns off image saving.) */
|
||||
|
||||
/*****************************/
|
||||
|
@ -1454,16 +1519,16 @@
|
|||
/*****************************/
|
||||
|
||||
/* MACINTOSH_EVENTS enables specific support for Mac Classic */
|
||||
|
||||
/* MAC_MZ_GUI_ENABLED activates the windowed I/O code (use under classic)
|
||||
|
||||
/* MAC_MZ_GUI_ENABLED activates the windowed I/O code (use under classic)
|
||||
(should maybe use MACINTOSH_SIOUX instead?) */
|
||||
|
||||
/* MAC_CLASSIC_PROCESS_CONTROL swaps the UNIX process commands for the
|
||||
/* MAC_CLASSIC_PROCESS_CONTROL swaps the UNIX process commands for the
|
||||
mac family (use under classic) */
|
||||
|
||||
/* OS_X enables specific support for Mac OS X, e.g. the location of the
|
||||
prefs directory */
|
||||
|
||||
|
||||
/* MACINTOSH_GIVE_TIME lets background processes run when checking for
|
||||
a user break */
|
||||
|
||||
|
@ -1504,7 +1569,7 @@
|
|||
/* NO_INLINE_KEYWORD indicates that the C compiler doesn't recognize
|
||||
C's `inline' keyword. */
|
||||
|
||||
/* NO_USER_BREAK_HANDLER turns off handling of SIGINT, SIGTERM, and
|
||||
/* NO_USER_BREAK_HANDLER turns off handling of SIGINT, SIGTERM, and
|
||||
SIGHUP in main.c */
|
||||
|
||||
/* NO_SIGTERM_HANDLER turns off handling of SIGTERM in main.c */
|
||||
|
@ -1519,10 +1584,10 @@
|
|||
|
||||
/* UNISTD_INCLUDE if there's a <unistd.h> file (mainly for Unix). */
|
||||
|
||||
/* SELECT_INCLUDE if there's a <sys/select.h> file (mainly for Unix)
|
||||
/* SELECT_INCLUDE if there's a <sys/select.h> file (mainly for Unix)
|
||||
to be used with FILES_HAVE_FDS. */
|
||||
|
||||
/* BSTRING_INCLUDE if there's a <bstring.h> file (mainly for Unix)
|
||||
/* BSTRING_INCLUDE if there's a <bstring.h> file (mainly for Unix)
|
||||
to be used with FILES_HAVE_FDS. */
|
||||
|
||||
/* NO_SYS_INCLUDE_SUBDIR if include files should all be <XXX.h>; no
|
||||
|
@ -1541,7 +1606,7 @@
|
|||
/* NO_SLEEP means that there is no sleep() function. Used only in
|
||||
standalone Racket. */
|
||||
|
||||
/* NO_USLEEP means that there is no usleep() function. Used only in
|
||||
/* NO_USLEEP means that there is no usleep() function. Used only in
|
||||
standalone Racket. Used only if NO_SLEEP is undefined. */
|
||||
|
||||
/* NO_STRERROR_AVAILABLE means that strerror() is not available. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user