openbsd-ports/lang/egcs/stable/patches/patch-libjava_configure_in
2004-01-31 15:23:58 +00:00

43 lines
1.2 KiB
Plaintext

$OpenBSD: patch-libjava_configure_in,v 1.4 2004/01/31 15:23:58 espie Exp $
--- libjava/configure.in.orig 2003-06-17 18:04:20.000000000 +0200
+++ libjava/configure.in 2003-11-12 11:46:13.000000000 +0100
@@ -300,6 +300,7 @@ changequote(<<,>>)dnl
changequote([,])
GC=$enableval,
GC=boehm)
+GC=system-boehm
GCLIBS=
GCINCS=
GCDEPS=
@@ -323,6 +324,22 @@ case "$GC" in
dnl The POSIX thread support needs to know this.
AC_DEFINE(HAVE_BOEHM_GC)
;;
+ system-boehm)
+ AC_MSG_RESULT(system-boehm)
+ GCLIBS=/usr/local/lib/libgc.la
+ GCINCS='-I/usr/local/include'
+ GCSPEC=-lgc
+ JC1GCSPEC='-fuse-boehm-gc'
+ GCTESTSPEC="-L/usr/local/lib"
+
+ dnl We also want to pick up some cpp flags required when including
+ dnl boehm-config.h. Yuck.
+ GCINCS="$GCINCS -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 "
+ GCOBJS=boehm.lo
+ GCHDR=boehm-gc.h
+ dnl The POSIX thread support needs to know this.
+ AC_DEFINE(HAVE_BOEHM_GC)
+ ;;
no)
AC_MSG_RESULT(none)
GCOBJS=nogc.lo
@@ -542,6 +559,7 @@ else
fi
AM_ICONV
+ AM_LANGINFO_CODESET
AM_LC_MESSAGES
AC_STRUCT_TIMEZONE