kFreeBSD configuration fixes

and use "uconfig.h" for default configuration
This commit is contained in:
Matthew Flatt 2011-04-24 08:54:53 -06:00
parent dd8bd1c137
commit 09dbfee792
3 changed files with 10 additions and 30 deletions

2
src/configure vendored
View File

@ -3880,7 +3880,7 @@ case $OS in
enable_cgcdefault="yes"
EXTRALIBS="-Wl,-brtl,-bE:\$(srcdir)/../racket/include/racket.exp"
;;
FreeBSD)
*FreeBSD)
LIBS="$LIBS -rdynamic"
DYN_CFLAGS="-fPIC"
GC_THREADS_FLAG="-DGC_FREEBSD_THREADS"

View File

@ -513,7 +513,7 @@ case $OS in
enable_cgcdefault="yes"
EXTRALIBS="-Wl,-brtl,-bE:\$(srcdir)/../racket/include/racket.exp"
;;
FreeBSD)
*FreeBSD)
LIBS="$LIBS -rdynamic"
DYN_CFLAGS="-fPIC"
GC_THREADS_FLAG="-DGC_FREEBSD_THREADS"

View File

@ -320,7 +320,7 @@
/************** x86/FreeBSD with gcc ****************/
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# if defined(__i386__)
# define SCHEME_PLATFORM_LIBRARY_SUBPATH "i386-freebsd"
@ -914,12 +914,15 @@
#ifndef FLAGS_ALREADY_SET
/* assume generic Unix: */
#include "uconfig.h"
# define SIGSET_IS_SIGNAL
# define SIGSET_NEEDS_REINSTALL
/*********************/
/* Operating System */
/*********************/
#define SYSTEM_TYPE_NAME "unix"
/* SYSTEM_TYPE_NAME must be a string; this will be converted into
a symbol for the result of (system-type) */
@ -932,11 +935,6 @@
/* Language Features */
/*********************/
#define TIME_SYNTAX
#define PROCESS_FUNCTION
#define DIR_FUNCTION
#define GETENV_FUNCTION
/* TIME_SYNTAX adds the (time ...) syntax; this may need to be
turned off for compilation on some systems.
CLOCKS_PER_SEC relates the values returned by clock() to
@ -976,9 +974,6 @@
/* Filesystem */
/*******************/
#define UNIX_FILE_SYSTEM
#define EXPAND_FILENAME_TILDE
/* UNIX_FILE_SYSTEM indicates that filenames are as in Unix, with
forward slash separators, ".." as the parent directory, "/"
as the root directory, and case-sensitivity */
@ -1029,16 +1024,13 @@
None of these flags are required, but char-ready? may return
spurious #ts if they are set up incorrectly. */
#define HAS_STANDARD_IOB
#define FILES_HAVE_FDS
#define USE_UNIX_SOCKETS_TCP
#define CLOSE_ALL_FDS_AFTER_FORK
/* HAS_STANDARD_IOB, HAS_GNU_IOB, HAS_CYGWIN_IOB, HAS_LINUX_IOB,
HAS_BSD_IOB, and HAS_SCO_IOB are mutually exclusive; they describe
how to read the FILE* structure to determine if there are
available cached characters. */
/* USE_FD_PORTS uses Unix-style open(), etc., for file ports. */
/* FILES_HAVE_FDS means that a FILE* is always associated with a
file desciptor, which can be select-ed to see if there are
pending bytes. Don't use this unless one of the HAS_<X>_IOB
@ -1116,10 +1108,6 @@
/* These are flags about the implementation of system, process, etc. */
# define UNIX_PROCESSES
# define SIGSET_IS_SIGNAL
# define SIGSET_NEEDS_REINSTALL
/* UNIX_PROCESSES implements the process functions for Unix; uses
sigset() to install the signal handler. */
@ -1288,10 +1276,6 @@
/* Stack Maniuplations */
/***********************/
# define DO_STACK_CHECK
# define UNIX_FIND_STACK_BOUNDS
# define STACK_SAFETY_MARGIN 50000
/* DO_STACK_CHECK checks for stack overflow during execution.
Requires either UNIX_FIND_STACK_BOUNDS, USE_STACKAVAIL,
MACOS_FIND_STACK_BOUNDS, or ASSUME_FIXED_STACK_SIZE. */
@ -1327,8 +1311,6 @@
/* Dynamic Loading */
/***********************/
#define UNIX_DYNAMIC_LOAD
/* 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
@ -1406,8 +1388,6 @@
/* Miscellaneous */
/***********************/
#define UNISTD_INCLUDE
/* USE_MAP_ANON indicates that mmap should use BSD's MAP_ANON flag
rather than trying to open /dev/zero */