Fix configure.ac for places using cgc on x86_64

svn: r15939
This commit is contained in:
Kevin Tew 2009-09-09 17:34:03 +00:00
parent d40b3b4c41
commit 8d9a087a4f

View File

@ -517,6 +517,7 @@ EXTRA_GMP_OBJ=
# For MzScheme targets:
OSX=".osx"
NOT_OSX=""
CGC_X86_64=""
case $OS in
SunOS)
@ -562,6 +563,7 @@ case $OS in
case `$UNAME -m` in
#Required for CentOS 4.6
x86_64)
CGC_X86_64="1"
if test -d /usr/X11R6/lib64 ; then
X_LIBS="$X_LIBS -L/usr/X11R6/lib64"
fi
@ -1119,7 +1121,11 @@ fi
if test "${enable_places}" = "yes" ; then
PREFLAGS="$PREFLAGS -DMZ_USE_PLACES"
PLACE_CGC_FLAGS="$GC_THREADS_FLAG -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC"
if test "${CGC_X86_64}" = "1" ; then
PLACE_CGC_FLAGS="$GC_THREADS_FLAG -DTHREAD_LOCAL_ALLOC"
else
PLACE_CGC_FLAGS="$GC_THREADS_FLAG -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC"
fi
LDFLAGS="$LDFLAGS -pthread"
fi