17 |
# Initialization |
# Initialization |
18 |
# ============== |
# ============== |
19 |
|
|
20 |
AC_INIT(gc,6.2alpha4,Hans.Boehm@hp.com) |
AC_INIT(gc,[6.2alpha6, modified for Emacs]) |
21 |
## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)? |
## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)? |
22 |
AC_CONFIG_SRCDIR(gcj_mlc.c) |
AC_CONFIG_SRCDIR(gcj_mlc.c) |
23 |
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
24 |
AC_PREREQ(2.53) |
AC_PREREQ(2.53) |
|
AC_REVISION($Revision$) |
|
25 |
GC_SET_VERSION |
GC_SET_VERSION |
26 |
AM_INIT_AUTOMAKE |
AM_INIT_AUTOMAKE |
27 |
|
|
63 |
) |
) |
64 |
|
|
65 |
AC_ARG_ENABLE(cplusplus, |
AC_ARG_ENABLE(cplusplus, |
66 |
[ --enable-cplusplus include C++ support in GC library and include directory], |
[ --enable-cplusplus install C++ support], |
67 |
) |
) |
68 |
|
|
69 |
AC_ARG_ENABLE(cppflags, |
AC_ARG_ENABLE(cppflags, |
98 |
AC_DEFINE(GC_LINUX_THREADS) |
AC_DEFINE(GC_LINUX_THREADS) |
99 |
AC_DEFINE(_REENTRANT) |
AC_DEFINE(_REENTRANT) |
100 |
;; |
;; |
101 |
|
*-*-aix*) |
102 |
|
AC_DEFINE(GC_AIX_THREADS) |
103 |
|
AC_DEFINE(_REENTRANT) |
104 |
|
;; |
105 |
*-*-hpux*) |
*-*-hpux*) |
106 |
AC_MSG_WARN("Only HP/UX 11 threads are supported.") |
AC_MSG_WARN("Only HP/UX 11 threads are supported.") |
107 |
AC_DEFINE(GC_HPUX_THREADS) |
AC_DEFINE(GC_HPUX_THREADS) |
129 |
AC_DEFINE(GC_WIN32_THREADS) |
AC_DEFINE(GC_WIN32_THREADS) |
130 |
;; |
;; |
131 |
*-*-darwin*) |
*-*-darwin*) |
132 |
AC_DEFINE(GC_MACOSX_THREADS) |
AC_DEFINE(GC_DARWIN_THREADS) |
133 |
|
AC_DEFINE(THREAD_LOCAL_ALLOC) |
134 |
|
if test "${enable_parallel_mark}" = yes; then |
135 |
|
AC_DEFINE(PARALLEL_MARK) |
136 |
|
fi |
137 |
;; |
;; |
138 |
*-*-osf*) |
*-*-osf*) |
139 |
AC_DEFINE(GC_OSF1_THREADS) |
AC_DEFINE(GC_OSF1_THREADS) |
176 |
esac |
esac |
177 |
AC_SUBST(THREADLIBS) |
AC_SUBST(THREADLIBS) |
178 |
|
|
179 |
# I'm not too familiar with autoconf, is this the best way to do this? -Brian |
case "$host" in |
180 |
|
powerpc-*-darwin*) |
181 |
|
powerpc_darwin=true |
182 |
|
;; |
183 |
|
esac |
184 |
|
AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue) |
185 |
|
|
186 |
|
# We never want libdl on darwin. It is a fake libdl that just ends up making |
187 |
|
# dyld calls anyway |
188 |
case "$host" in |
case "$host" in |
189 |
*-*-darwin*) ;; |
*-*-darwin*) ;; |
190 |
*) |
*) |
208 |
) |
) |
209 |
|
|
210 |
addobjs= |
addobjs= |
211 |
|
addlibs= |
212 |
addincludes= |
addincludes= |
213 |
addtests= |
addtests= |
214 |
CXXINCLUDES= |
CXXINCLUDES= |
223 |
esac |
esac |
224 |
|
|
225 |
if test "${enable_cplusplus}" = yes; then |
if test "${enable_cplusplus}" = yes; then |
|
addobjs="$addobjs gc_cpp.lo" |
|
226 |
addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h" |
addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h" |
227 |
addtests="$addtests test_cpp" |
addtests="$addtests test_cpp" |
228 |
fi |
fi |
229 |
|
|
230 |
|
AM_CONDITIONAL(CPLUSPLUS, test "${enable_cplusplus}" = yes) |
231 |
|
|
232 |
AC_SUBST(CXX) |
AC_SUBST(CXX) |
233 |
|
|
234 |
AC_SUBST(INCLUDES) |
AC_SUBST(INCLUDES) |
303 |
addobjs="$addobjs $machdep" |
addobjs="$addobjs $machdep" |
304 |
AC_SUBST(addobjs) |
AC_SUBST(addobjs) |
305 |
AC_SUBST(addincludes) |
AC_SUBST(addincludes) |
306 |
|
AC_SUBST(addlibs) |
307 |
AC_SUBST(addtests) |
AC_SUBST(addtests) |
308 |
|
|
309 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |