* CMakeLists.txt [enable_gcj_support] (SRC): Add gcj_mlc.c.
* CMakeLists.txt [enable_gcj_support] (ADD_DEFINITIONS):
Add -DGC_ENABLE_SUSPEND_THREAD only if enable_threads.
OPTION(enable_gcj_support "Support for gcj" NO)
IF(enable_gcj_support)
ADD_DEFINITIONS("-DGC_GCJ_SUPPORT")
- ADD_DEFINITIONS("-DGC_ENABLE_SUSPEND_THREAD")
+ IF(enable_threads)
+ ADD_DEFINITIONS("-DGC_ENABLE_SUSPEND_THREAD")
+ ENDIF(enable_threads)
+ SET(SRC ${SRC} gcj_mlc.c)
ENDIF(enable_gcj_support)