Commit Graph

156 Commits

Author SHA1 Message Date
Matthew Flatt
d44ed9ab53 configure: strip debug symbols on install by default 2013-04-18 10:55:32 -06:00
Eli Barzilay
91aa7f3527 Make configure install the docs in the standard place.
Closes #315 (on github)
2013-04-10 23:46:05 -04:00
Matthew Flatt
d5ede87ae8 JIT for ARM
Includes switch from LGPL 2.1 to LGPL 3, since the ARM port
of GNU lightining is licensed under LGPL 3.
2013-04-08 14:43:30 -06:00
Matthew Flatt
8c89451fbb configure: libffi after pthread
On OpenBSD, for example, the libffi link test doesn't work until
"-pthread" is in $LIBS.

Also, make `configure' complain if `--enable-libffi' is specified
and linking to libffi fails.
2013-04-02 06:06:56 -06:00
Juan Francisco Cantero Hurtado
292c81a826 Fix `configure' for OpenBSD
"-rdynamic" doesn't work with GCC 4.7 on OpenBSD: "cc: error:
unrecognized command line option '-rdynamic'". The switch isn't
necessary because it is only a wrapper to "-Wl,--export-dynamic".
Look GCC bug 37454.
2013-03-01 15:20:17 -07:00
Matthew Flatt
f8a0d6d432 configure: add more guidance/reporting on non-recommended options 2013-02-18 10:28:58 -07:00
Matthew Flatt
a348e5421d fix a `configure' test
Thanks again to Tobias.
2013-02-15 11:55:26 -07:00
Matthew Flatt
74a3e14f9c improve `configure' tests for cross-compilation
Use compile and link tests instead of run tests, where
possible.

Based on a patch from Tobias
2013-02-14 19:47:40 -07:00
Matthew Flatt
689b62a7a3 configure: adjust mmap()/mprotect() test
Avoid aggravating SELinux.
2013-02-08 22:57:37 -06:00
Michael Filonenko
17b8092641 extflonums
An extflonum is like a flonum, but with 80-bit precision and
not a number in the sense of `number?': only operations such as
`extfl+' work on extflonums, and only on platforms where extflonums
can be implemented by hardware without interefering with flonums
(i.e., on platforms where SSE instructions are used for
double-precision floats).

[Patch provided by Michael Filonenko and revised by Matthew.]

The compiler tracks information about bindings that are known to
hold extflonums, but the JIT does not yet exploit this information
to unbox them (except as intermediate results).
2013-01-28 18:17:06 -07:00
Matthew Flatt
05837fac1b planet2: installation-wide config of default `raco pkg' scope
With either
  configure --enable-pkgscope=installation
or
  raco pkg config -i --set default-scope installation
the default scope of `raco pkg' actions can be changed from
user-specific to installation-wide.

We considered trying to guess when someone building Racket would prefer
installation-wide package scope by default. In particular, someone
building from source for in-place use seems likely to want
installation-wide scope by default. Then again, we don't want to
discourage in-place builds for Unix installations that are intended
for multiple users. So, no guessing for now.

Also, add a `--scope' argument to `raco pkg' commands, which is more in
line with other options, but keep `-i', etc., as shorthands.
2013-01-06 11:17:22 -07:00
Matthew Flatt
ba973a317f add `configure' test for mmap() and mprotect()
Use the test to enable execute permission on memory that is allocated
for code, including FFI callbacks.
2012-12-31 12:04:03 -07:00
Matthew Flatt
93affa4d5d fix a build dependency in --enable-shared mode
Closes PR 13392
2012-12-28 12:22:32 -07:00
Matthew Flatt
03259ef539 MinGW-w64 support
For now, SGC must be used, but `configure' does not select it
automatically.

Also, support Cygwin (in addition to MSYS) as a build environment
when using MinGW compilers. Since I build in a Cygwin environment
(which seemed to be the easiest way to get MinGW-w64 gcc), I use

  ../configure --host=x86_64-w64-mingw32 --enable-sgc
2012-12-28 11:06:46 -06:00
Matthew Flatt
bca4f47188 fix `configure' typo for MinGW 2012-12-09 14:54:29 -07:00
Matthew Flatt
5b016b4c32 win32: support MinGW build
A MinGW build is the same shape as a MSVC build (but without
MzCOM), unlike a Cygwin build.
2012-12-09 11:26:02 -07:00
Matthew Flatt
9ef485d802 fix configuration for QNX
Patch from Tobias Hammer.

Closes PR 13265
2012-11-16 06:37:23 -07:00
Matthew Flatt
909a6fb5c7 Mac OS X: make --disable-libffi the default
Avoids a common problem with libffi installed by MacPorts
causing problems with a mismatch between an iconv installed
by MacPorts and the system iconv. (When libffi is installed,
then -I/opt/include for the libffi heads also picks up the
iconv headers, but the ordering of the lib flags doesn't
pick up libiconv from /opt/lib. We could try to hack around
this by ordering the flags just right, but it seems better
to avoid the issue.)
2012-09-23 09:42:25 -05:00
Matthew Flatt
58b054c6a2 patches for Dragonfly
Closes PR 13115
2012-09-15 09:20:27 -06:00
Tim Brown
ff185cf743 Solaris 5.10 has poll(), so set try_poll_syscall="yes" in configure
in order to enable it. Otherwise Solaris 5.10 has issues building.
2012-06-03 04:50:06 +08:00
Matthew Flatt
e9cec00da6 configure: use installed `libtool' by default
But libtool is used only for `--enabled-shared' builds.
2012-05-31 09:21:25 -06:00
Matthew Flatt
d020c75202 remove libfit 2011-12-21 16:17:56 -07:00
Matthew Flatt
eb25a2db47 add epoll() support for Linux, kqueue() support for BSDs
This change builds on the blocking-I/O change to provide substantially
better performance when waiting on lots of sockets.
2011-11-10 10:01:56 -07:00
Matthew Flatt
646f7e70e7 prefer poll() to select() on Linux
On Mac OS X, poll() doesn't work right in versions earlier than 10.5.5,
select() is always faster, and large number of sockets will be
better handled via kqueue(). On Linux, poll() is defintely better.
Otherwise, we stick with select() to be conservative.
2011-11-10 05:46:04 -07:00
Matthew Flatt
245f45d183 switch Mac OS X build default (32-bit vs 64-bit) to compiler default
That means the default is 64-bit for a typical Mac OS X 10.6 or 10.7
installation.
2011-10-20 14:30:02 -06:00
Eli Barzilay
9ade64cc84 Some "Scheme" -> "Racket" changes and similar. 2011-10-16 18:53:30 -04:00
Kevin Tew
d3037adbc0 QNX porting 2011-10-06 10:50:37 -06:00
Matthew Flatt
97d0df94bb fix "configure" and "configure.ac" for libfit 2011-10-05 11:41:05 -06:00
Neil Toronto
d3b5e21cae Added new plot library and old libfit (which plot still depends on) 2011-10-05 10:26:49 -06:00
Eli Barzilay
7ad7857ce2 Fixed "src/configure".
(Turns out that editing configure by hand is not a good idea...)

Also a random racket comment.
2011-10-05 04:55:25 -04:00
Eli Barzilay
e01e46b772 Removed the `plot' collection, in preparation for adding the new one instead. 2011-10-05 04:09:10 -04:00
Kevin Tew
f2b7d1eca3 Start of port to QNX 2011-09-29 14:42:04 -06:00
Matthew Flatt
69929b7499 configure: make --disable-jit imply --disable-futures 2011-08-18 12:41:36 -06:00
Matthew Flatt
ca92376381 detect __sync_bool_compare_and_swap() via `configure' 2011-08-12 17:03:28 -06:00
Matthew Flatt
bba4d413e8 add usual prefix to configure flag report 2011-06-20 10:28:35 -06:00
Matthew Flatt
56ee3049b2 switch configure' to use "$host_..." instead of uname'
to support cross compilation;
 the main risk of this change is that I might have some
 GNU canonical system names wrog, since they're different
 from `uname' results
2011-06-19 11:39:38 -06:00
Matthew Flatt
7448f21fa5 add --enable-racket=<path> to configure
to set the Racket executable to run when building and
 installing Racket
2011-06-19 10:39:18 -06:00
Matthew Flatt
a60bfe9b7f remove some obsolete Mac OS X compiler flags for gracket 2011-05-09 07:27:04 -06:00
Matthew Flatt
8679afed60 clean up C part of build
- no more attempt to support places with the Boehm GC
 - no more libatomic (which was for places + Boehm GC)
 - remove unsupported configuration options
 - strip Racket-specific configure options before libffi configure
 - port two leftover Perl scripts to Racket scripts
2011-04-26 17:14:55 -06:00
Matthew Flatt
4aabaeb7af fix configure error that can cause CFLAGS to be ignored
Merge to 5.1.1
2011-04-24 19:11:57 -06:00
Matthew Flatt
09dbfee792 kFreeBSD configuration fixes
and use "uconfig.h" for default configuration
2011-04-24 08:54:53 -06:00
Kevin Tew
113918e85a Revert "disable places-by-default for now"
This reverts commit 8760d38a95.
2011-04-21 10:18:29 -06:00
Matthew Flatt
8760d38a95 disable places-by-default for now
--- pending further investigation of memory consumption
2011-04-21 06:12:31 -06:00
Kevin Tew
4fd6144e3d [Places] place are now turned on by default 2011-04-19 09:15:17 -06:00
Matthew Flatt
b6efdff4ec configure: -lffi goes in LIBS, not LDFLAGS 2011-04-14 10:49:13 -06:00
Matthew Flatt
f6d185abab configure: use `pkg-config' for libffi 2011-04-13 11:00:23 -06:00
Matthew Flatt
ace0faa50f fix `configure' typo 2011-04-11 06:33:16 -06:00
Matthew Flatt
ac71f6080e don't look for X11 headers and libs during configure 2011-04-10 19:37:59 -06:00
Matthew Flatt
f3c3bb4441 Use installed libffi, if any, instead of building own
and add --disable-libffi to get old, always-build behavior
2011-04-10 19:26:15 -06:00
Matthew Flatt
2482816d3d fix `configure' detection of getaddrinfo() 2011-02-27 16:55:04 -07:00