configure.ac 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. # Copyright (c) 1999, 2000, 2001, 2002, 2003, 2006, 2010, 2011 by Red Hat, Inc.
  2. # All rights reserved.
  3. # Copyright 2004 Nathanael Nerode
  4. #
  5. # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
  6. # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
  7. #
  8. # Permission is hereby granted to use or copy this program
  9. # for any purpose, provided the above notices are retained on all copies.
  10. # Permission to modify the code and to distribute modified code is granted,
  11. # provided the above notices are retained, and a notice that the code was
  12. # modified is included with the above copyright notice.
  13. #
  14. # Original author: Tom Tromey
  15. # Modified by Nathanael Nerode
  16. dnl Process this file with autoconf to produce configure.
  17. AC_PREREQ(2.64)
  18. AC_INIT
  19. AC_CONFIG_SRCDIR(gcj_mlc.c)
  20. # This works around the fact that libtool configuration may change LD
  21. # for this particular configuration, but some shells, instead of
  22. # keeping the changes in LD private, export them just because LD is
  23. # exported.
  24. ORIGINAL_LD_FOR_MULTILIBS=$LD
  25. AM_ENABLE_MULTILIB(, ..)
  26. AC_CANONICAL_HOST
  27. AC_CANONICAL_TARGET
  28. # Get the 'noncanonical' system names.
  29. ACX_NONCANONICAL_TARGET
  30. # This works around an automake problem.
  31. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  32. AC_SUBST(mkinstalldirs)
  33. AM_INIT_AUTOMAKE(gc, 6.6, no-define)
  34. # The autoconf 2.5x version of the no-executables hack.
  35. GCC_NO_EXECUTABLES
  36. # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
  37. # the wrong, non-multilib-adjusted value will be used in multilibs.
  38. # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
  39. m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
  40. m4_define([_AC_ARG_VAR_PRECIOUS],[])
  41. AC_PROG_CC
  42. AC_PROG_CXX
  43. m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
  44. AM_PROG_CC_C_O
  45. AC_SUBST(CFLAGS)
  46. AC_SUBST(CXXFLAGS)
  47. # Newer automakes demand CCAS and CCASFLAGS.
  48. : ${CCAS='$(CC)'}
  49. : ${CCASFLAGS='$(CFLAGS)'}
  50. AC_SUBST(CCAS)
  51. AC_SUBST(CCASFLAGS)
  52. AC_CHECK_TOOL(AS, as)
  53. AC_CHECK_TOOL(AR, ar)
  54. AC_CHECK_TOOL(RANLIB, ranlib, :)
  55. AC_PROG_INSTALL
  56. AM_MAINTAINER_MODE
  57. . ${srcdir}/configure.host
  58. case ${gc_basedir} in
  59. /* | [A-Za-z]:[/\\]*) gc_flagbasedir=${gc_basedir} ;;
  60. *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
  61. esac
  62. gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
  63. case "${host}" in
  64. *-*-cygwin32*)
  65. gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
  66. ;;
  67. esac
  68. dnl Add for mingw targets GC_BUILD option
  69. case "${host}" in
  70. *-*-mingw*)
  71. gc_cflags="${gc_cflags} -DGC_BUILD=1"
  72. ;;
  73. esac
  74. dnl gc_cflags="${gc_cflags} -fno-builtin"
  75. GC_CFLAGS=${gc_cflags}
  76. AC_SUBST(GC_CFLAGS)
  77. AC_PROG_LIBTOOL
  78. dnl We use these options to decide which functions to include.
  79. AC_ARG_WITH(target-subdir,
  80. [ --with-target-subdir=SUBDIR
  81. configuring with a cross compiler])
  82. AC_ARG_WITH(cross-host,
  83. [ --with-cross-host=HOST configuring with a cross compiler])
  84. AC_MSG_CHECKING([for thread model used by GCC])
  85. THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  86. if test -z "$THREADS"; then
  87. THREADS=no
  88. fi
  89. AC_MSG_RESULT([$THREADS])
  90. AC_ARG_ENABLE(parallel-mark,
  91. [ --enable-parallel-mark parallelize marking and free list construction],
  92. [case "$THREADS" in
  93. no | none | single)
  94. AC_MSG_ERROR([Parallel mark requires --enable-threads=x spec])
  95. ;;
  96. esac]
  97. )
  98. AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
  99. THREADCFLAGS=
  100. THREADLIBS=
  101. case "$THREADS" in
  102. no | none | single)
  103. THREADS=none
  104. ;;
  105. posix | pthreads)
  106. THREADS=posix
  107. THREADLIBS=-lpthread
  108. case "$host" in
  109. x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
  110. AC_DEFINE(GC_LINUX_THREADS,1,[support for Xavier Leroy's Linux threads])
  111. AC_DEFINE(_REENTRANT,1,[Use reentrant code])
  112. if test "${enable_parallel_mark}" = yes; then
  113. AC_DEFINE(PARALLEL_MARK,1,[allow the marker to run in multiple threads])
  114. fi
  115. AC_DEFINE(THREAD_LOCAL_ALLOC,1,[define GC_local_malloc() & GC_local_malloc_atomic()])
  116. ;;
  117. *-*-linux*)
  118. AC_DEFINE(GC_LINUX_THREADS,1)
  119. AC_DEFINE(_REENTRANT,1)
  120. ;;
  121. *-*-aix*)
  122. AC_DEFINE(GC_AIX_THREADS,1,[support AIX threads])
  123. AC_DEFINE(_REENTRANT,1)
  124. ;;
  125. *-*-hpux11*)
  126. AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.")
  127. AC_DEFINE(GC_HPUX_THREADS,1,[enables support for HP/UX 11 pthreads])
  128. AC_DEFINE(_POSIX_C_SOURCE,199506L,[POSIX version of C Source])
  129. if test "${enable_parallel_mark}" = yes; then
  130. AC_DEFINE(PARALLEL_MARK,1)
  131. fi
  132. AC_DEFINE(THREAD_LOCAL_ALLOC,1)
  133. THREADLIBS="-lpthread -lrt"
  134. # HPUX needs REENTRANT for the _r calls.
  135. AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads])
  136. ;;
  137. *-*-hpux10*)
  138. AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.")
  139. ;;
  140. *-*-kfreebsd*-gnu)
  141. AC_DEFINE(GC_FREEBSD_THREADS)
  142. THREADCFLAGS=-pthread
  143. THREADLIBS=-pthread
  144. AC_DEFINE(_REENTRANT)
  145. if test "${enable_parallel_mark}" = yes; then
  146. AC_DEFINE(PARALLEL_MARK)
  147. fi
  148. AC_DEFINE(THREAD_LOCAL_ALLOC)
  149. AC_DEFINE(USE_COMPILER_TLS, 1,[use tls for boehm])
  150. ;;
  151. *-*-gnu*)
  152. AC_DEFINE(GC_GNU_THREADS,1,[support GNU threads])
  153. AC_DEFINE(_REENTRANT)
  154. AC_DEFINE(THREAD_LOCAL_ALLOC)
  155. ;;
  156. *-*-freebsd*)
  157. AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
  158. AC_DEFINE(GC_FREEBSD_THREADS,1,[support FreeBSD threads])
  159. THREADCFLAGS=-pthread
  160. THREADLIBS=-pthread
  161. ;;
  162. *-*-solaris2.8*)
  163. AC_DEFINE(GC_SOLARIS_PTHREADS,1,[support for Solaris pthreads])
  164. # Need to use alternate thread library, otherwise gctest hangs
  165. # on Solaris 8.
  166. multi_os_directory=`$CC -print-multi-os-directory`
  167. THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
  168. -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
  169. ;;
  170. *-*-solaris2*)
  171. AC_DEFINE(GC_SOLARIS_PTHREADS,1,[support for Solaris pthreads])
  172. # The alternate thread library was only introduced in Solaris 8 and
  173. # became the default in Solaris 9, so no need for the special code
  174. # above otherwise.
  175. # nanosleep, sched_yield, and sem_* only live in librt before
  176. # Solaris 11.
  177. THREADLIBS="-lpthread -lrt"
  178. ;;
  179. *-*-irix*)
  180. AC_DEFINE(GC_IRIX_THREADS,1,[support for Irix pthreads])
  181. ;;
  182. *-*-cygwin*)
  183. AC_DEFINE(GC_WIN32_THREADS,1,[support for win32 threads])
  184. ;;
  185. *-*-darwin*)
  186. AC_DEFINE(GC_DARWIN_THREADS,1,[support for Mac OS X pthreads])
  187. AC_DEFINE(THREAD_LOCAL_ALLOC,1)
  188. if test "${enable_parallel_mark}" = yes; then
  189. AC_DEFINE(PARALLEL_MARK,1)
  190. fi
  191. ;;
  192. *-*-osf*)
  193. AC_DEFINE(GC_OSF1_THREADS,1,[support for Tru64 pthreads])
  194. if test "${enable_parallel_mark}" = yes; then
  195. AC_DEFINE(PARALLEL_MARK,1)
  196. AC_DEFINE(THREAD_LOCAL_ALLOC,1)
  197. # May want to enable it in other cases, too.
  198. # Measurements havent yet been done.
  199. fi
  200. THREADCFLAGS=-pthread
  201. THREADLIBS="-lpthread -lrt"
  202. ;;
  203. esac
  204. ;;
  205. win32)
  206. AC_DEFINE(GC_WIN32_THREADS,1)
  207. dnl Old wine getenv may not return NULL for missing entry.
  208. dnl Define EMPTY_GETENV_RESULTS here to work around the bug.
  209. ;;
  210. aix)
  211. THREADS=posix
  212. THREADLIBS=-lpthread
  213. AC_DEFINE(GC_AIX_THREADS,1)
  214. AC_DEFINE(_REENTRANT,1)
  215. ;;
  216. dce | vxworks)
  217. AC_MSG_ERROR(thread package $THREADS not yet supported)
  218. ;;
  219. *)
  220. AC_MSG_ERROR($THREADS is an unknown thread package)
  221. ;;
  222. esac
  223. AC_SUBST(THREADCFLAGS)
  224. AC_SUBST(THREADLIBS)
  225. case "$host" in
  226. powerpc-*-darwin*)
  227. powerpc_darwin=true
  228. ;;
  229. esac
  230. AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue)
  231. # Darwin needs a few extra special tests to deal with variation in the
  232. # system headers.
  233. case "$host" in
  234. powerpc*-*-darwin*)
  235. AC_CHECK_MEMBER(ppc_thread_state_t.r0,
  236. AC_DEFINE(HAS_PPC_THREAD_STATE_R0,1,
  237. [ppc_thread_state_t has field r0]),,
  238. [#include <mach/thread_status.h>])
  239. AC_CHECK_MEMBER(ppc_thread_state_t.__r0,
  240. AC_DEFINE(HAS_PPC_THREAD_STATE___R0,1,dnl
  241. [ppc_thread_state_t has field __r0]),,
  242. [#include <mach/thread_status.h>])
  243. AC_CHECK_MEMBER(ppc_thread_state64_t.r0,
  244. AC_DEFINE(HAS_PPC_THREAD_STATE64_R0,1,dnl
  245. [ppc_thread_state64_t has field r0]),,
  246. [#include <mach/thread_status.h>])
  247. AC_CHECK_MEMBER(ppc_thread_state64_t.__r0,
  248. AC_DEFINE(HAS_PPC_THREAD_STATE64___R0,1,dnl
  249. [ppc_thread_state64_t has field __r0]),,
  250. [#include <mach/thread_status.h>])
  251. ;;
  252. i?86*-*-darwin*)
  253. AC_CHECK_MEMBER(x86_thread_state32_t.eax,
  254. AC_DEFINE(HAS_X86_THREAD_STATE32_EAX,1,dnl
  255. [x86_thread_state32_t has field eax]),,
  256. [#include <sys/cdefs.h>
  257. #include <mach/thread_status.h>])
  258. AC_CHECK_MEMBER(x86_thread_state32_t.__eax,
  259. AC_DEFINE(HAS_X86_THREAD_STATE32___EAX,1,dnl
  260. [x86_thread_state32_t has field __eax]),,
  261. [#include <sys/cdefs.h>
  262. #include <mach/thread_status.h>])
  263. ;;
  264. x86_64-*-darwin*)
  265. AC_CHECK_MEMBER(x86_thread_state64_t.rax,
  266. AC_DEFINE(HAS_X86_THREAD_STATE64_RAX,1,dnl
  267. [x86_thread_state64_t has field rax]),,
  268. [#include <sys/cdefs.h>
  269. #include <mach/thread_status.h>])
  270. AC_CHECK_MEMBER(x86_thread_state64_t.__rax,
  271. AC_DEFINE(HAS_X86_THREAD_STATE64___RAX,1,dnl
  272. [x86_thread_state64_t has field __rax]),,
  273. [#include <sys/cdefs.h>
  274. #include <mach/thread_status.h>])
  275. ;;
  276. *) ;;
  277. esac
  278. case "$host" in
  279. # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
  280. # and unnecessary everywhere.
  281. mips-sgi-irix6*) ;;
  282. # We never want libdl on darwin. It is a fake libdl that just ends up making
  283. # dyld calls anyway
  284. *-*-darwin*) ;;
  285. *)
  286. AC_CHECK_LIB(dl, dlopen, EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl")
  287. ;;
  288. esac
  289. # extra LD Flags which are required for targets
  290. case "${host}" in
  291. *-*-darwin*)
  292. extra_ldflags_libgc=-Wl,-single_module
  293. ;;
  294. esac
  295. AC_SUBST(extra_ldflags_libgc)
  296. AC_SUBST(EXTRA_TEST_LIBS)
  297. target_all=libgcjgc.la
  298. AC_SUBST(target_all)
  299. dnl If the target is an eCos system, use the appropriate eCos
  300. dnl I/O routines.
  301. dnl FIXME: this should not be a local option but a global target
  302. dnl system; at present there is no eCos target.
  303. TARGET_ECOS="no"
  304. AC_ARG_WITH(ecos,
  305. [ --with-ecos enable runtime eCos target support],
  306. TARGET_ECOS="$with_ecos"
  307. )
  308. addobjs=
  309. addlibs=
  310. addincludes=
  311. addtests=
  312. case "$TARGET_ECOS" in
  313. no)
  314. ;;
  315. *)
  316. AC_DEFINE(ECOS,1,[Target is ECOS])
  317. AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
  318. addobjs="$addobjs ecos.lo"
  319. ;;
  320. esac
  321. if test "${enable_cplusplus}" = yes; then
  322. addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
  323. addtests="$addtests test_cpp"
  324. fi
  325. AM_CONDITIONAL(CPLUSPLUS, test "${enable_cplusplus}" = yes)
  326. AC_SUBST(CXX)
  327. AC_SUBST(AM_CPPFLAGS)
  328. # Configuration of shared libraries
  329. #
  330. AC_MSG_CHECKING(whether to build shared libraries)
  331. AC_ENABLE_SHARED
  332. case "$host" in
  333. alpha-*-openbsd*)
  334. enable_shared=no
  335. AC_MSG_RESULT(no)
  336. ;;
  337. *)
  338. AC_MSG_RESULT(yes)
  339. ;;
  340. esac
  341. # Checks for pthreads functions
  342. #
  343. oldLIBS="$LIBS"
  344. LIBS="$LIBS $THREADLIBS"
  345. AC_CHECK_FUNCS([pthread_getattr_np])
  346. AC_CHECK_FUNCS([pthread_get_stackaddr_np])
  347. LIBS="$oldLIBS"
  348. # Configuration of machine-dependent code
  349. #
  350. # Set NO_EXECUTE_PERMISSION by default because gcj already uses
  351. # ffi_closure_{alloc,free} which takes care of allocating trampolines
  352. # in executable memory.
  353. #
  354. AC_MSG_CHECKING(which machine-dependent code should be used)
  355. machdep=
  356. case "$host" in
  357. alpha*-*-openbsd*)
  358. machdep="alpha_mach_dep.lo"
  359. if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
  360. AC_MSG_WARN(OpenBSD/Alpha without dlopen(). Shared library support is disabled)
  361. fi
  362. ;;
  363. alpha*-*-linux*)
  364. machdep="alpha_mach_dep.lo"
  365. ;;
  366. i?86-*-solaris2.[[89]] | i?86-*-solaris2.1? | x86_64-*-solaris2.1?)
  367. AC_DEFINE(SOLARIS25_PROC_VDB_BUG_FIXED,1,[PROC_VDB in Solaris 2.5 gives wrong values for dirty bits])
  368. ;;
  369. mipstx39-*-elf*)
  370. machdep="mips_ultrix_mach_dep.lo"
  371. AC_DEFINE(STACKBASE, __stackbase,[No description])
  372. AC_DEFINE(DATASTART_IS_ETEXT,1,[No description])
  373. ;;
  374. mips-dec-ultrix*)
  375. machdep="mips_ultrix_mach-dep.lo"
  376. ;;
  377. mips-nec-sysv*|mips-unknown-sysv*)
  378. ;;
  379. mips*-*-linux*)
  380. ;;
  381. mips-*-*)
  382. machdep="mips_sgi_mach_dep.lo"
  383. ;;
  384. sparc-*-netbsd*)
  385. machdep="sparc_netbsd_mach_dep.lo"
  386. ;;
  387. sparc-sun-solaris2.3)
  388. machdep="sparc_mach_dep.lo"
  389. AC_DEFINE(SUNOS53_SHARED_LIB,1,[Avoid Solaris 5.3 dynamic library bug])
  390. ;;
  391. sparc*-sun-solaris2.*)
  392. machdep="sparc_mach_dep.lo"
  393. ;;
  394. ia64-*-*)
  395. machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
  396. ;;
  397. esac
  398. AC_DEFINE(NO_EXECUTE_PERMISSION,1,[cause some or all of the heap to not have execute permission])
  399. if test x"$machdep" = x; then
  400. AC_MSG_RESULT($machdep)
  401. machdep="mach_dep.lo"
  402. fi
  403. addobjs="$addobjs $machdep"
  404. AC_SUBST(addobjs)
  405. AC_SUBST(addincludes)
  406. AC_SUBST(addlibs)
  407. AC_SUBST(addtests)
  408. dnl As of 4.13a2, the collector will not properly work on Solaris when
  409. dnl built with gcc and -O. So we remove -O in the appropriate case.
  410. dnl Not needed anymore on Solaris.
  411. AC_MSG_CHECKING([whether GCC optimization should be disabled])
  412. O0_CFLAGS=
  413. case "$host" in
  414. *aix*) test "$GCC" = yes && O0_CFLAGS=-O0 ;;
  415. *) ;;
  416. esac
  417. if test x"$O0_CFLAGS" != x; then
  418. AC_MSG_RESULT(yes)
  419. else
  420. AC_MSG_RESULT(no)
  421. fi
  422. AC_SUBST([O0_CFLAGS])
  423. dnl Include defines that have become de facto standard.
  424. dnl ALL_INTERIOR_POINTERS can be overridden in startup code.
  425. AC_DEFINE(SILENT,1,[disables statistics printing])
  426. AC_DEFINE(NO_SIGNALS,1,[does not disable signals])
  427. AC_DEFINE(ALL_INTERIOR_POINTERS,1,[allows all pointers to the interior of objects to be recognized])
  428. dnl By default, make the library as general as possible.
  429. AC_DEFINE(JAVA_FINALIZATION,1,[make it somewhat safer to finalize objects out of order])
  430. AC_DEFINE(GC_GCJ_SUPPORT,1,[include support for gcj])
  431. AC_DEFINE(ATOMIC_UNCOLLECTABLE,1,[include code for GC_malloc_atomic_uncollectable])
  432. AC_ARG_ENABLE(gc-debug,
  433. [ --enable-gc-debug include full support for pointer backtracing etc.],
  434. [ if test "$enable_gc_debug" = "yes"; then
  435. AC_MSG_WARN("Must define GC_DEBUG and use debug alloc. in clients.")
  436. AC_DEFINE(KEEP_BACK_PTRS,1,[Add code to save back pointers])
  437. AC_DEFINE(DBG_HDRS_ALL,1,[Make sure that all objects have debug headers])
  438. case $host in
  439. ia64-*-linux* )
  440. AC_DEFINE(MAKE_BACK_GRAPH,1,[Enable GC_PRINT_BACK_HEIGHT environment variable])
  441. ;;
  442. x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
  443. AC_DEFINE(MAKE_BACK_GRAPH,1)
  444. AC_MSG_WARN("Client must not use -fomit-frame-pointer.")
  445. AC_DEFINE(SAVE_CALL_COUNT, 8, [number of call frames saved with objects allocated through the debugging interface])
  446. ;;
  447. esac
  448. fi])
  449. if test "${gc_use_mmap}" = "yes"; then
  450. AC_DEFINE(USE_MMAP, 1, [use MMAP instead of sbrk to get new memory])
  451. fi
  452. if test -n "$with_cross_host" &&
  453. test x"$with_cross_host" != x"no"; then
  454. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  455. toolexeclibdir='$(toolexecdir)/lib'
  456. else
  457. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  458. toolexeclibdir='$(libdir)'
  459. fi
  460. multi_os_directory=`$CC -print-multi-os-directory`
  461. case $multi_os_directory in
  462. .) ;; # Avoid trailing /.
  463. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  464. esac
  465. AC_SUBST(toolexecdir)
  466. AC_SUBST(toolexeclibdir)
  467. if test "${multilib}" = "yes"; then
  468. multilib_arg="--enable-multilib"
  469. else
  470. multilib_arg=
  471. fi
  472. AC_CONFIG_HEADERS([include/gc_config.h include/gc_ext_config.h])
  473. AC_CONFIG_FILES(Makefile include/Makefile testsuite/Makefile threads.mk)
  474. AC_OUTPUT