1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(cacao, 0.95+svn, cacao@cacaojvm.org)
4 AC_CONFIG_SRCDIR(src/cacao/cacao.c)
7 AM_INIT_AUTOMAKE([1.9.0])
10 AM_CONFIG_HEADER([config.h])
12 AC_PREFIX_DEFAULT(/usr/local/cacao)
15 dnl set optimization and debugging for all architectures and systems
16 if test x"$CFLAGS" = "x"; then
22 alpha | alphaev56 | alphapca56 )
24 CFLAGS="$CFLAGS -mieee -D__ALPHA__"
27 arm | armv4tl | armv5b )
29 CFLAGS="$CFLAGS -D__ARM__"
32 i386 | i486 | i586 | i686 )
34 CFLAGS="$CFLAGS -D__I386__"
39 CFLAGS="$CFLAGS -D__MIPS__"
44 CFLAGS="$CFLAGS -D__POWERPC__"
49 CFLAGS="$CFLAGS -D__POWERPC64__"
54 CFLAGS="$CFLAGS -D__X86_64__"
60 CFLAGS="$CFLAGS -D__XDSPCORE__"
65 AC_MSG_ERROR($host_cpu systems are not supported at this time)
73 CFLAGS="$CFLAGS -D__DARWIN__ -ansi -pedantic -Wall -Wno-long-long"
78 CFLAGS="$CFLAGS -D__FREEBSD__ -ansi -pedantic -Wall -Wno-long-long -D_XOPEN_SOURCE_EXTENDED"
83 CFLAGS="$CFLAGS -D__IRIX__"
88 CFLAGS="$CFLAGS -D__LINUX__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
93 CFLAGS="$CFLAGS -D__NETBSD__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
101 dnl define some stuff required for --fullversion
102 AC_DEFINE_UNQUOTED(VERSION_CONFIGURE_ARGS, "$ac_configure_args", [configure arguments])
103 AC_DEFINE_UNQUOTED(VERSION_CC, "$CC", [CC used])
104 AC_DEFINE_UNQUOTED(VERSION_CFLAGS, "$CFLAGS", [CFLAGS used])
107 dnl define and substitute some architecture specific variables
108 AC_DEFINE_UNQUOTED([ARCH_DIR], "${ARCH_DIR}", [architecture directory])
111 AC_SUBST(USE_SCHEDULER)
114 dnl Checks for programs.
124 dnl Checks for header files.
127 AC_CHECK_HEADERS([fcntl.h])
128 AC_CHECK_HEADERS([sys/time.h])
129 AC_CHECK_HEADERS([unistd.h])
130 AC_CHECK_HEADERS([sys/ioctl.h])
132 dnl this is for fdlibm
133 AC_CHECK_HEADERS([stdint.h])
134 AC_CHECK_HEADERS([inttypes.h])
135 AC_CHECK_HEADERS([sys/config.h])
136 AC_CHECK_HEADERS([sys/types.h])
137 AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
138 AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
139 AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
140 AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
142 dnl Checks for typedefs, structures, and compiler characteristics.
151 dnl Checks for library functions.
152 AC_PROG_GCC_TRADITIONAL
155 AC_CHECK_FUNCS([calloc mprotect getpagesize free])
156 AC_CHECK_FUNCS([getcwd gettimeofday])
157 AC_CHECK_FUNCS([scandir])
158 AC_CHECK_FUNCS([mmap])
159 AC_CHECK_FUNCS([isnan])
161 dnl Checks for libraries.
163 dnl Checking sizeof void *
164 AC_CHECK_SIZEOF(void *)
168 dnl define install prefix
169 if test "x$prefix" = "xNONE"; then
170 CACAO_PREFIX=$ac_default_prefix
174 AC_DEFINE_UNQUOTED([CACAO_PREFIX], "${CACAO_PREFIX}", [installation prefix])
175 AC_SUBST(CACAO_PREFIX)
182 dnl check for JIT compiler
183 AC_MSG_CHECKING(whether JIT compiler should be compiled)
185 [AS_HELP_STRING(--disable-jit,disable JIT compiler [[default=yes]])],
186 [case "${enableval}" in
191 AC_MSG_RESULT(${ENABLE_JIT})
192 AM_CONDITIONAL([ENABLE_JIT], test x"${ENABLE_JIT}" = "xyes")
194 if test x"${ENABLE_JIT}" = "xyes"; then
195 AC_DEFINE([ENABLE_JIT], 1, [enable JIT compiler])
199 dnl check if softfloat should be used
200 AC_MSG_CHECKING(whether softfloat should be used)
201 AC_ARG_ENABLE([softfloat],
202 [AS_HELP_STRING(--enable-softfloat,use softfloat [[default=no]])],
203 [case "${enableval}" in
204 yes) ENABLE_SOFTFLOAT=yes;;
205 *) ENABLE_SOFTFLOAT=no;;
207 [ENABLE_SOFTFLOAT=no])
208 AC_MSG_RESULT(${ENABLE_SOFTFLOAT})
210 if test x"${ENABLE_SOFTFLOAT}" = "xyes"; then
211 AC_DEFINE([ENABLE_SOFTFLOAT], 1, [enable softfloat])
215 dnl check for interpreter
216 AC_ARG_ENABLE([intrp], [AS_HELP_STRING(--enable-intrp,enable interpreter [[default=no]])])
218 AC_MSG_CHECKING(whether interpreter should be compiled)
219 if test x"$enable_intrp" = "xyes"; then
221 AC_DEFINE([ENABLE_INTRP], 1, [enable interpreter])
222 AM_CONDITIONAL([ENABLE_INTRP], [true])
229 [AS_HELP_STRING(--with-ffi,use libffi to call native functions)],
231 AC_CHECK_HEADERS([ffi.h],, [AC_MSG_ERROR(cannot find ffi.h)])
232 AC_CHECK_LIB(ffi, ffi_call,, [AC_MSG_ERROR(cannot find libffi)])
233 AC_DEFINE([WITH_FFI], 1, [use libffi])],
236 dnl check for libffcall
237 AC_ARG_WITH([ffcall],
238 [AS_HELP_STRING(--with-ffcall,use libffcall to call native functions)],
240 AC_CHECK_HEADERS([avcall.h],, [AC_MSG_ERROR(cannot find avcall.h)])
241 AC_CHECK_LIB(avcall, __builtin_avcall,, [AC_MSG_ERROR(cannot find libavcall (from libffcall))])
242 AC_DEFINE([WITH_FFCALL], 1, [use libffcall])],
245 dnl check for libffi or libffcall
246 if test x"${WITH_FFI}" = "xyes" -a x"${WITH_FFCALL}" = "xyes"; then
247 AC_ERROR(Enable only libffi or libffcall.)
249 if test x"${WITH_FFI}" = "xno" -a x"${WITH_FFCALL}" = "xno"; then
250 AC_ERROR(Enable one of libffi or libffcall.)
255 AM_CONDITIONAL([ENABLE_INTRP], [false])
259 if test x"${ENABLE_JIT}" = "xno" -a x"${ENABLE_INTRP}" = "xno"; then
260 AC_ERROR(You have to enable at least the JIT or the interpreter.)
264 dnl check for garbage collector usage
265 AC_MSG_CHECKING(whether GC should be disabled)
267 [AS_HELP_STRING(--disable-gc,disable garbage collector (for debugging only!) [[default=yes]])],
268 [case "${enableval}" in
270 AC_DEFINE([DISABLE_GC], 1, [disable garbage collector])
275 AC_MSG_RESULT(${DISABLE_GC})
276 AM_CONDITIONAL([DISABLE_GC], test x"${DISABLE_GC}" = "xyes")
279 dnl check for dump memory usage
280 AC_MSG_CHECKING(whether dump memory should be disabled)
281 AC_ARG_ENABLE([dump],
282 [AS_HELP_STRING(--disable-dump,disable dump memory (for debugging only!) [[default=yes]])],
283 [case "${enableval}" in
286 AC_DEFINE([DISABLE_DUMP], 1, [disable dump memory])
291 AC_MSG_RESULT(${DISABLE_DUMP})
295 AC_MSG_CHECKING(whether debug code generation should be enabled)
296 AC_ARG_ENABLE([debug],
297 [AS_HELP_STRING(--disable-debug,disable debug code generation [[default=yes]])],
298 [case "${enableval}" in
300 AC_DEFINE([NDEBUG], 1, [disable debug code])
306 if test x"${NDEBUG}" = "xno"; then
311 AM_CONDITIONAL([NDEBUG], test x"${NDEBUG}" = "xyes")
314 dnl check for disassembler support
315 AC_MSG_CHECKING(whether disassembler should be enabled)
316 AC_ARG_ENABLE([disassembler],
317 [AS_HELP_STRING(--disable-disassembler,disable disassembler [[default=yes]])],
318 [case "${enableval}" in
319 no) ENABLE_DISASSEMBLER=no;;
320 *) ENABLE_DISASSEMBLER=yes;;
322 [ENABLE_DISASSEMBLER=yes])
323 AC_MSG_RESULT(${ENABLE_DISASSEMBLER})
324 AM_CONDITIONAL([ENABLE_DISASSEMBLER], test x"${ENABLE_DISASSEMBLER}" = "xyes")
326 if test x"${ENABLE_DISASSEMBLER}" = "xyes"; then
327 AC_DEFINE([ENABLE_DISASSEMBLER], 1, [enable disassembler])
329 dnl check for binutils headers and libraries on some architectures for the
331 case "${ARCH_DIR}" in
332 arm | i386 | powerpc | x86_64 )
333 AC_CHECK_HEADER([ansidecl.h],, [AC_MSG_ERROR(cannot find ansidecl.h)])
334 AC_CHECK_HEADER([symcat.h],, [AC_MSG_ERROR(cannot find symcat.h)])
335 AC_CHECK_HEADER([bfd.h],, [AC_MSG_ERROR(cannot find bfd.h)])
336 AC_CHECK_HEADER([dis-asm.h],, [AC_MSG_ERROR(cannot find dis-asm.h)])
340 AC_CHECK_LIB(intl, dcgettext,, [AC_MSG_ERROR(cannot find libintl (from bintuils))])
344 AC_CHECK_LIB(iberty, xstrerror,, [AC_MSG_ERROR(cannot find libiberty (from bintuils))])
345 AC_CHECK_LIB(bfd, bfd_get_arch,, [AC_MSG_ERROR(cannot find libbfd (from bintuils))])
346 AC_CHECK_LIB(opcodes, disassembler,, [AC_MSG_ERROR(cannot find libopcodes (from bintuils))])
347 AC_DEFINE([WITH_BINUTILS_DISASSEMBLER], 1, [use binutils disassembler])
348 AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [true])
351 AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [false])
355 AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [false])
359 dnl check for statistics
360 AC_MSG_CHECKING(whether statistics generation should be enabled)
361 AC_ARG_ENABLE([statistics],
362 [AS_HELP_STRING(--disable-statistics,disable statistics generation [[default=yes]])],
363 [case "${enableval}" in
364 no) ENABLE_STATISTICS=no;;
365 *) ENABLE_STATISTICS=yes;;
367 [ENABLE_STATISTICS=yes])
368 AC_MSG_RESULT(${ENABLE_STATISTICS})
369 AM_CONDITIONAL([ENABLE_STATISTICS], test x"${ENABLE_STATISTICS}" = "xyes")
371 if test x"${ENABLE_STATISTICS}" = "xyes"; then
372 AC_DEFINE([ENABLE_STATISTICS], 1, [enable statistics])
377 AC_MSG_CHECKING(whether to compile JVMTI support)
378 AC_ARG_ENABLE([jvmti],
379 [AS_HELP_STRING(--enable-jvmti,enable JVMTI [[default=no]])],
380 [case "${enableval}" in
381 yes) ENABLE_JVMTI=yes;;
385 AC_MSG_RESULT(${ENABLE_JVMTI})
386 AM_CONDITIONAL([ENABLE_JVMTI], test x"${ENABLE_JVMTI}" = "xyes")
388 if test x"${ENABLE_JVMTI}" = "xyes"; then
389 AC_DEFINE([ENABLE_JVMTI], 1, [use JVMTI])
394 AC_ARG_ENABLE([threads], [AS_HELP_STRING(--enable-threads,enable threads support (none,green,native) [[default=native]])])
395 AC_ARG_ENABLE([__thread], [AS_HELP_STRING(--enable-__thread,use TLS features)], [use__thread=$enableval], [use__thread=no])
397 AC_MSG_CHECKING(whether to include threads support)
398 enable_threads=${enable_threads:-native}
399 case "$enable_threads" in
402 dnl no threads for boehm
403 ac_configure_args="$ac_configure_args --disable-boehm-threads"
404 AM_CONDITIONAL([USE_THREADS], [false])
405 AM_CONDITIONAL([NATIVE_THREADS], [false])
408 green | native | posix | pthreads)
409 AC_DEFINE([USE_THREADS], 1, [use threads])
411 AM_CONDITIONAL([USE_THREADS], [true])
413 if test x"$enable_threads" != "xgreen"; then
414 AC_MSG_RESULT(yes, native)
415 AC_CHECK_LIB(pthread, main)
416 AC_DEFINE([NATIVE_THREADS], 1, [use pthreads])
418 CFLAGS="$CFLAGS -D_REENTRANT"
420 dnl tell boehm to support threads as well
421 ac_configure_args="$ac_configure_args --enable-boehm-threads=posix"
422 AM_CONDITIONAL([NATIVE_THREADS], [true])
425 AC_MSG_RESULT(yes, green)
427 dnl no threads for boehm
428 ac_configure_args="$ac_configure_args --disable-boehm-threads"
429 AM_CONDITIONAL([NATIVE_THREADS], [false])
433 AC_MSG_ERROR($enable_threads is an unknown thread package)
438 dnl Check whether the compiler supports the __thread keyword.
439 if test "x$use__thread" != xno; then
440 AC_CACHE_CHECK([for __thread], ac_cv_gcc___thread,
441 [cat > conftest.c <<\EOF
444 if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AS_MESSAGE_LOG_FD]); then
445 ac_cv_gcc___thread=yes
447 ac_cv_gcc___thread=no
450 if test "$ac_cv_gcc___thread" = yes; then
451 AC_DEFINE([HAVE___THREAD], 1, [have __thread])
454 ac_cv_gcc___thread=no
458 dnl check if if-conversion should be supported
459 AC_MSG_CHECKING(whether if-conversion should be supported)
460 AC_ARG_ENABLE([ifconv],
461 [AS_HELP_STRING(--disable-ifconv,disable if-conversion [[default=yes]])],
462 [case "${enableval}" in
463 no) ENABLE_IFCONV=no;;
464 *) ENABLE_IFCONV=yes;;
467 AC_MSG_RESULT(${ENABLE_IFCONV})
468 AM_CONDITIONAL([ENABLE_IFCONV], test x"${ENABLE_IFCONV}" = "xyes")
470 if test x"${ENABLE_IFCONV}" = "xyes"; then
471 AC_DEFINE([ENABLE_IFCONV], 1, [enable if-conversion])
475 dnl check for inlining
476 AC_MSG_CHECKING(whether method inlining should be supported)
477 AC_ARG_ENABLE([inlining],
478 [AS_HELP_STRING(--disable-inlining,disable method inlining [[default=yes]])],
479 [case "${enableval}" in
480 no) ENABLE_INLINING=no;;
481 *) ENABLE_INLINING=yes;;
483 [ENABLE_INLINING=yes])
484 AC_MSG_RESULT(${ENABLE_INLINING})
485 AM_CONDITIONAL([ENABLE_INLINING], test x"${ENABLE_INLINING}" = "xyes")
487 if test x"${ENABLE_INLINING}" = "xyes"; then
488 AC_DEFINE([ENABLE_INLINING], 1, [use method inlining])
492 dnl check for loop optimization
493 AC_MSG_CHECKING(whether loop optimization should be supported)
494 AC_ARG_ENABLE([loop],
495 [AS_HELP_STRING(--disable-loop,disable loop optimization [[default=yes]])],
496 [case "${enableval}" in
501 AC_MSG_RESULT(${ENABLE_LOOP})
502 AM_CONDITIONAL([ENABLE_LOOP], test x"${ENABLE_LOOP}" = "xyes")
504 if test x"${ENABLE_LOOP}" = "xyes"; then
505 AC_DEFINE([ENABLE_LOOP], 1, [use loop optimization])
509 dnl check if linear scan register allocator(lsra) should be used
510 AC_MSG_CHECKING(whether lsra should be supported)
511 AC_ARG_ENABLE([lsra],
512 [AS_HELP_STRING(--disable-lsra,disable linear scan register allocator [[default=yes]])],
513 [case "${enableval}" in
518 AC_MSG_RESULT(${ENABLE_LSRA})
519 AM_CONDITIONAL([ENABLE_LSRA], test x"${ENABLE_LSRA}" = "xyes")
521 if test x"${ENABLE_LSRA}" = "xyes"; then
522 AC_DEFINE([ENABLE_LSRA], 1, [enable lsra])
526 dnl check if profiling should be supported
527 AC_MSG_CHECKING(whether profiling should be supported)
528 AC_ARG_ENABLE([profiling],
529 [AS_HELP_STRING(--disable-profiling,disable profiling [[default=yes]])],
530 [case "${enableval}" in
531 no) ENABLE_PROFILING=no;;
532 *) ENABLE_PROFILING=yes;;
534 [ENABLE_PROFILING=yes])
535 AC_MSG_RESULT(${ENABLE_PROFILING})
536 AM_CONDITIONAL([ENABLE_PROFILING], test x"${ENABLE_PROFILING}" = "xyes")
538 if test x"${ENABLE_PROFILING}" = "xyes"; then
539 AC_DEFINE([ENABLE_PROFILING], 1, [enable profiling])
543 dnl check for instruction scheduler
544 AC_ARG_ENABLE([scheduler], [AS_HELP_STRING(--enable-scheduler,enable instruction scheduler [[default=no]])])
546 AC_MSG_CHECKING(whether instruction scheduler should be supported)
547 if test x"${USE_SCHEDULER}" = "x1" -o x"$enable_scheduler" = "xyes"; then
548 case "${ARCH_DIR}" in
552 AC_MSG_ERROR(instruction scheduler is not available for ${ARCH_DIR} code generator)
557 AC_DEFINE([USE_SCHEDULER], 1, [use scheduler])
558 AM_CONDITIONAL([USE_SCHEDULER], [true])
561 AM_CONDITIONAL([USE_SCHEDULER], [false])
565 dnl check if zlib should be used
566 AC_MSG_CHECKING(whether ZIP/JAR archives should be supported)
567 AC_ARG_ENABLE([zlib],
568 [AS_HELP_STRING(--disable-zlib,disable ZIP/JAR archive support (needs zlib) [[default=yes]])],
569 [case "${enableval}" in
574 AC_MSG_RESULT(${ENABLE_ZLIB})
576 if test x"${ENABLE_ZLIB}" = "xyes"; then
577 AC_CHECK_HEADERS([zconf.h],, [AC_MSG_ERROR(cannot find zconf.h)])
578 AC_CHECK_HEADERS([zlib.h],, [AC_MSG_ERROR(cannot find zlib.h)])
579 AC_CHECK_LIB(z, inflate,, [AC_MSG_ERROR(cannot find libz)])
580 AC_DEFINE([ENABLE_ZLIB], 1, [use zlib])
583 VM_ZIP_STRING=classes/
585 AC_DEFINE_UNQUOTED(VM_ZIP_STRING, "${VM_ZIP_STRING}", [define to the string base name of the VM zip file])
586 AC_SUBST(VM_ZIP_STRING)
587 AM_CONDITIONAL([ENABLE_ZLIB], test x"${ENABLE_ZLIB}" = "xyes")
590 dnl check if a libjvm.so should be built
591 AC_MSG_CHECKING(whether to build a libjvm.so)
592 AC_ARG_ENABLE([libjvm],
593 [AS_HELP_STRING(--disable-libjvm,build a libjvm.so [[default=yes]])],
594 [case "${enableval}" in
595 no) ENABLE_LIBJVM=no;;
596 *) ENABLE_LIBJVM=yes;;
599 AC_MSG_RESULT(${ENABLE_LIBJVM})
600 AM_CONDITIONAL([ENABLE_LIBJVM], test x"${ENABLE_LIBJVM}" = "xyes")
601 AC_SUBST(ENABLE_LIBJVM)
603 if test x"${ENABLE_LIBJVM}" = "xyes"; then
604 AC_DEFINE([ENABLE_LIBJVM], 1, [enable libjvm.so])
606 dnl set AC_ENABLE_SHARED and AC_DISABLE_STATIC properly
619 dnl check if CACAO should be linked statically
620 AC_MSG_CHECKING(whether to link CACAO statically)
621 AC_ARG_ENABLE([staticvm],
622 [AS_HELP_STRING(--enable-staticvm,link CACAO statically [[default=no]])],
623 [case "${enableval}" in
624 yes) ENABLE_STATICVM=yes
625 AC_DEFINE([ENABLE_STATICVM], 1, [link CACAO statically])
627 *) ENABLE_STATICVM=no;;
629 [ENABLE_STATICVM=no])
630 AC_MSG_RESULT(${ENABLE_STATICVM})
631 AM_CONDITIONAL([ENABLE_STATICVM], test x"${ENABLE_STATICVM}" = "xyes")
632 AC_SUBST(ENABLE_STATICVM)
635 dnl is GNU classpath installed somewhere different
636 AC_MSG_CHECKING(where GNU Classpath is installed)
637 AC_ARG_WITH([classpath-prefix],
638 [AS_HELP_STRING(--with-classpath-prefix=<dir>,installation directory of GNU Classpath [[default=/usr/local/classpath]])],
639 [CLASSPATH_PREFIX=${withval}],
640 [CLASSPATH_PREFIX=/usr/local/classpath])
641 AC_MSG_RESULT(${CLASSPATH_PREFIX})
642 AC_DEFINE_UNQUOTED([CLASSPATH_PREFIX], "${CLASSPATH_PREFIX}", [GNU Classpath installation directory])
643 AC_SUBST(CLASSPATH_PREFIX)
645 AC_MSG_CHECKING(where GNU Classpath libraries are installed)
646 AC_ARG_WITH([classpath-libdir],
647 [AS_HELP_STRING(--with-classpath-libdir=<dir>,installation directory of GNU Classpath libraries [[default=/usr/local/classpath/lib]])],
648 [CLASSPATH_LIBDIR=${withval}],
649 [CLASSPATH_LIBDIR=${CLASSPATH_PREFIX}/lib])
650 AC_MSG_RESULT(${CLASSPATH_LIBDIR})
652 dnl expand CLASSPATH_LIBDIR to something that is usable in C code
653 AS_AC_EXPAND([CLASSPATH_LIBDIR], ${CLASSPATH_LIBDIR})
654 AC_DEFINE_UNQUOTED([CLASSPATH_LIBDIR], "${CLASSPATH_LIBDIR}", [GNU Classpath libraries installation directory])
655 AC_SUBST(CLASSPATH_LIBDIR)
657 AC_CHECK_HEADER([${CLASSPATH_PREFIX}/include/jni.h],
658 [AC_DEFINE_UNQUOTED([CLASSPATH_JNI_H], "${CLASSPATH_PREFIX}/include/jni.h", [GNU Classpath jni.h header])],
659 [AC_MSG_ERROR(cannot find jni.h)])
662 dnl check if GNU Classpath should be linked statically into CACAO
663 AC_MSG_CHECKING(whether to link GNU Classpath native libraries statically into CACAO)
664 AC_ARG_WITH([static-classpath],
665 [AS_HELP_STRING(--with-static-classpath,link GNU classpath native libraries statically into CACAO [[default=no]])],
666 [case "${enableval}" in
667 yes) WITH_STATIC_CLASSPATH=yes;;
668 *) WITH_STATIC_CLASSPATH=no;;
670 [WITH_STATIC_CLASSPATH=no])
671 AC_MSG_RESULT(${WITH_STATIC_CLASSPATH})
673 if test x"${WITH_STATIC_CLASSPATH}" = "xyes"; then
674 AC_DEFINE([WITH_STATIC_CLASSPATH], 1, [link GNU classpath native libraries statically into CACAO])
676 dnl check for some classpath related stuff when we link statically
679 AC_CHECK_HEADERS([ltdl.h],, [AC_MSG_ERROR(cannot find ltdl.h)])
680 AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR(cannot find libltdl)])
682 AM_CONDITIONAL([WITH_STATIC_CLASSPATH], test x"${WITH_STATIC_CLASSPATH}" = "xyes")
683 AC_SUBST(WITH_STATIC_CLASSPATH)
686 dnl Maybe the user has Classpath installed 'flat'.
687 AC_ARG_WITH([flat-classpath],
688 [AS_HELP_STRING(--with-flat-classpath, GNU Classpath is not zipped in the install directory)])
690 if test x"$with_flat_classpath" = "x"; then
691 GLIBJ_ZIP_STRING=glibj.zip
695 AC_SUBST(GLIBJ_ZIP_STRING)
696 AC_DEFINE_UNQUOTED(GLIBJ_ZIP_STRING, "$GLIBJ_ZIP_STRING", [define to the string base name of the classpath zip file])
699 dnl check for some programs we need
704 dnl now configure subpackages
705 dnl the export is not my favorite (is there another way?)
707 AC_CONFIG_SUBDIRS(src/boehm-gc)
710 AC_CONFIG_FILES([Makefile]
712 [contrib/setenvinstalled]
713 [contrib/setenvsource]
715 [doc/handbook/Makefile]
719 [src/cacaoh/Makefile]
720 [src/fdlibm/Makefile]
723 [src/native/Makefile]
724 [src/native/include/Makefile]
725 [src/native/jvmti/Makefile]
726 [src/native/tools/Makefile]
727 [src/native/vm/Makefile]
728 [src/scripts/Makefile]
730 [src/scripts/rmiregistry]
731 [src/threads/Makefile]
732 [src/threads/green/Makefile]
733 [src/threads/native/Makefile]
734 [src/toolbox/Makefile]
736 [src/vm/jit/Makefile]
737 [src/vm/jit/allocator/Makefile]
738 [src/vm/jit/alpha/Makefile]
739 [src/vm/jit/alpha/freebsd/Makefile]
740 [src/vm/jit/alpha/linux/Makefile]
741 [src/vm/jit/i386/Makefile]
742 [src/vm/jit/i386/freebsd/Makefile]
743 [src/vm/jit/i386/linux/Makefile]
744 [src/vm/jit/ifconv/Makefile]
745 [src/vm/jit/intrp/Makefile]
746 [src/vm/jit/inline/Makefile]
747 [src/vm/jit/loop/Makefile]
748 [src/vm/jit/mips/Makefile]
749 [src/vm/jit/mips/irix/Makefile]
750 [src/vm/jit/mips/linux/Makefile]
751 [src/vm/jit/powerpc/Makefile]
752 [src/vm/jit/powerpc/darwin/Makefile]
753 [src/vm/jit/powerpc/linux/Makefile]
754 [src/vm/jit/powerpc/netbsd/Makefile]
755 [src/vm/jit/profile/Makefile]
756 [src/vm/jit/schedule/Makefile]
757 [src/vm/jit/tools/Makefile]
758 [src/vm/jit/verify/Makefile]
759 [src/vm/jit/x86_64/Makefile]
761 [tests/regression/Makefile]
762 [tests/regression/codepatching/Makefile]
763 [tests/regression/native/Makefile])
770 ## indent-tabs-mode: t
773 ## compile-command: "automake --add-missing"