| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
# This is invoked by the main configure script, via gc/configure.gnu, |
| 6 |
# which allows us to intercept the call to gc/configure to override |
| 7 |
# some options. |
| 8 |
|
| 9 |
# "--enable-threads=..." |
| 10 |
# Original Boehm GC checks gcc for the default thread support. |
| 11 |
# In our case we need the thread config in sync with the main Gauche |
| 12 |
# source tree. |
| 13 |
# |
| 14 |
# "-DDONT_ADD_BYTE_AT_END", "--enable-large-config" |
| 15 |
# This is _required_ to make Gauche work correctly. |
| 16 |
# |
| 17 |
# "--disable-gcj-support" |
| 18 |
# This seems required on msys2+mingw-w64 platform. |
| 19 |
# |
| 20 |
# "--enable-handle-fork" |
| 21 |
# This supposed to make GC in forked children work on OSX; it did |
| 22 |
# work on OSX 10.7.3, but caused various failures on 10.7.4, so I disable |
| 23 |
# it again. |
| 24 |
|
| 25 |
# NB: The parent configure sets SHELL with their CONFIG_SHELL |
| 26 |
${SHELL} "@srcdir@/configure" "${@}" \ |
| 27 |
--enable-threads="@GAUCHE_THREAD_TYPE@" \ |
| 28 |
--enable-large-config \ |
| 29 |
--disable-gcj-support \ |
| 30 |
CPPFLAGS="${CPPFLAGS} -DDONT_ADD_BYTE_AT_END @LOCAL_INC@" \ |
| 31 |
LDFLAGS="${LDFLAGS} @LOCAL_LIB@" |