1 dnl -- configure.am - Automake based configuration --------------------------===
3 dnl The LLVM Compiler Infrastructure
5 dnl This file was developed by Reid Spencer and is distributed under the
6 dnl University of Illinois Open Source License. See LICENSE.TXT for details.
8 dnl ===----------------------------------------------------------------------===
11 dnl ===----------------------------------------------------------------------===
13 dnl -- SECTION 1: Initialization & Setup
15 dnl ===----------------------------------------------------------------------===
17 dnl Initialize autoconf
18 AC_INIT([[LLVM]],[[1.4]],[llvmbugs@cs.uiuc.edu])
20 dnl Place all of the extra autoconf files into the config subdirectory
21 dnl Tell various tools where the m4 autoconf macros are
22 dnl Have configure verify that the source directory is valid.
23 AC_CONFIG_AUX_DIR([autoconf])
25 dnl AC_CONFIG_MACRO_DIR(autoconf/m4)
26 dnl Verify that the source directory is valid
27 AC_CONFIG_SRCDIR(["lib/VMCore/Module.cpp"])
29 dnl Check which host/target for which we're compiling. This will tell us which
30 dnl LLVM compiler will be used for compiling SSA into object code.
33 dnl Quit if the source directory has already been configured.
34 dnl NOTE: This relies upon undocumented autoconf behavior.
35 if test ${srcdir} != "." ; then
36 if test -f ${srcdir}/include/llvm/Config/config.h ; then
37 AC_MSG_ERROR([Already configured in ${srcdir}])
41 dnl Initialize automake
42 AM_INIT_AUTOMAKE([foreign dejagnu dist-zip nostdinc -Wnone -Wunsupported -Wsyntax -Wobsolete])
44 dnl Make sure we are using the right version of autoconf
47 dnl ===----------------------------------------------------------------------===
49 dnl -- SECTION 2: Setup The Command Line Arguments For "configure"
51 dnl ===----------------------------------------------------------------------===
53 dnl Specify where to find the llvm-gcc install directory
54 AC_ARG_WITH(llvmgccdir,
55 AS_HELP_STRING([--with-llvmgccdir],[Location of LLVM GCC front-end]),
57 /*|*/*) LLVMGCCDIR=$withval ;;
58 *) AC_MSG_ERROR([bad value ${withval} for --with-llvmgccdir]) ;;
60 [LLVMGCCDIR=/usr/local/llvm-gcc])
63 dnl Specify whether to build optimized or not
64 AC_ARG_ENABLE(optimized,
65 AS_HELP_STRING([--enable-optimized],[Build an optimized version of LLVM
68 yes) ENABLE_OPTIMIZED=1 ;;
69 no) ENABLE_OPTIMIZED=0 ;;
70 "") ENABLE_OPTIMIZED=0 ;;
71 *) AC_MSG_ERROR([bad value ${withval} for --enable-optimized]) ;;
74 AC_SUBST(ENABLE_OPTIMIZED)
75 AM_CONDITIONAL(ENABLE_OPTIMIZED,test $ENABLE_OPTIMIZED = 1)
77 dnl Specify whether to build profiled or not
78 AC_ARG_ENABLE(profiled,
79 AS_HELP_STRING([--enable-profiled],[Build a profiled version of LLVM
82 yes) ENABLE_PROFILED=1 ;;
83 no) ENABLE_PROFILED=0 ;;
84 "") ENABLE_PROFILED=0 ;;
85 *) AC_MSG_ERROR([bad value ${withval} for --enable-profiled]) ;;
88 AC_SUBST(ENABLE_PROFILED,$ENABLE_PROFILED)
89 AM_CONDITIONAL(ENABLE_PROFILED,test $ENABLE_PROFILED = 1)
93 AS_HELP_STRING([--enable-jit],
94 [Enable Just In Time Compiling (default is YES)]),,
97 if test ${enableval} = "no"
102 *i*86*) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
103 *sparc*) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
104 *) AC_SUBST(JIT,[[]]) ;;
108 dnl ===----------------------------------------------------------------------===
110 dnl -- SECTION 3: Platform/Architecture Configuration
112 dnl ===----------------------------------------------------------------------===
114 dnl Set the "OS" Makefile variable based on the system we are building on.
115 AC_MSG_CHECKING([support for generic build operating system])
117 *-*-aix*) llvm_platform_type="AIX" ;;
118 *-*-cygwin*) llvm_platform_type="Cygwin" ;;
119 *-*-darwin*) llvm_platform_type="Darwin" ;;
120 *-*-freebsd*) llvm_platform_type="FreeBSD" ;;
121 *-*-interix*) llvm_platform_type="Interix" ;;
122 *-*-linux*) llvm_platform_type="Linux" ;;
123 *-*-solaris*) llvm_platform_type="SunOS" ;;
124 *-*-win32*) llvm_platform_type="Win32" ;;
125 *-*-mingw*) llvm_platform_type="Win32" ;;
127 AC_MSG_ERROR([Platform is unknown, configure can't continue])
128 llvm_platform_type="Unknown"
131 AC_SUBST(OS,$llvm_platform_type)
132 AC_MSG_RESULT($llvm_platform_type)
134 AC_MSG_CHECKING(target architecture)
135 dnl If we are targetting a Sparc machine running Solaris, pretend that it is
136 dnl V9, since that is all that we support at the moment, and autoconf will only
137 dnl tell us we're a sparc.
139 sparc*-*-solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]]) ;;
142 dnl Determine what our target architecture is and configure accordingly.
143 dnl This will allow Makefiles to make a distinction between the hardware and
146 i*86-*) ARCH="x86" ;;
147 sparc*-*) ARCH="Sparc" ;;
148 powerpc*-*) ARCH="PowerPC" ;;
151 AM_CONDITIONAL(ARCH_X86,test $ARCH = "x86")
152 AM_CONDITIONAL(ARCH_SPARC,test $ARCH = "Sparc")
153 AM_CONDITIONAL(ARCH_PPC,test $ARCH = "PowerPC")
154 AM_CONDITIONAL(ARCH_UNKNOWN,test $ARCH = "Unknown")
158 dnl Check for the endianness of the target
159 AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))
161 dnl ===----------------------------------------------------------------------===
163 dnl -- SECTION 4: Check For Programs We Need
165 dnl ===----------------------------------------------------------------------===
167 dnl Find the install program (needs to be done before canonical stuff)
170 dnl Check for compilation tools
175 dnl Checks for other build tools
180 dnl Checks for tools we can get away with not having:
181 AC_PATH_PROG(DOT,[dot],[true dot])
182 AC_PATH_PROG(ETAGS,[etags],[true etags])
183 AC_PATH_PROG(PYTHON,[python],[true python])
184 AC_PATH_PROG(QMTEST,[qmtest],[true qmtest])
186 dnl ===----------------------------------------------------------------------===
188 dnl -- SECTION 5: Basic sanity checks on dependent programs we need
190 dnl ===----------------------------------------------------------------------===
192 dnl Ensure that compilation tools are GCC; we use GCC specific extensions
193 if test "$GCC" != "yes"
195 AC_MSG_ERROR([gcc required but not found])
198 dnl Ensure that compilation tools are GCC; we use GCC specific extensions
199 if test "$GXX" != "yes"
201 AC_MSG_ERROR([g++ required but not found])
204 dnl Verify that GCC is version 3.0 or higher
205 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
206 if test "$gccmajor" -lt "3"
208 AC_MSG_ERROR([gcc 3.x required, but you have a lower version])
211 dnl Check for GNU Make. We use its extensions too, so don't build without it
213 if test -z "$_cv_gnu_make_command"
215 AC_MSG_ERROR([GNU Make required but not found])
218 dnl Find the LLVM GCC-based C/C++ front end
219 AC_MSG_CHECKING([for llvm-gcc])
221 if test -d "$LLVMGCCDIR"
223 if test -x "$LLVMGCCDIR/bin/gcc"
225 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
229 AC_MSG_RESULT($LLVM_GCC_CHECK)
230 if test "$LLVM_GCC_CHECK" = "no"
235 dnl Determine if the "gcc" found produces LLVM assembly. If so its "sane"
236 AC_MSG_CHECKING([whether llvm-gcc is sane])
238 if test -x "$LLVM_GCC_CHECK"
240 cp /dev/null conftest.c
241 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
247 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
248 AC_SUBST(LLVMCC1,$llvmcc1path)
249 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
250 AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
252 AC_MSG_RESULT($LLVM_GCC_SANE)
253 if test "$LLVM_GCC_SANE" = "no"
258 dnl Check if we know how to tell etags we are using C++:
259 etags_version=`$ETAGS --version 2>&1`
260 case "$etags_version" in
261 *[Ee]xuberant*) ETAGSFLAGS="--language-force=c++" ;;
262 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
265 AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS)
267 if test "$PYTHON" = "false"
269 AC_MSG_WARN([Python is required for the test suite, but it was not found])
271 if test "$QMTEST" = "false"
273 AC_MSG_WARN([QMTest is required for the test suite, but it was not found])
276 dnl Verify that the version of python available is high enough for qmtest
277 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
278 pymajor=`echo $pyversion | cut -d. -f1`
279 pyminor=`echo $pyversion | cut -d. -f2`
281 if test "$pymajor" -ge "2"
283 if test "$pymajor" -eq "2"
285 if test "$pyminor" -lt "2"
287 AC_MSG_WARN([QMTest requires Python 2.2 or later])
291 AC_MSG_WARN([QMTest requires Python 2.2 or later])
294 dnl ===----------------------------------------------------------------------===
296 dnl -- SECTION 6: Check For Needed Libraries
298 dnl ===----------------------------------------------------------------------===
300 dnl libelf is for sparc only; we can ignore it if we don't have it
301 AC_CHECK_LIB(elf, elf_begin)
303 dnl Check for bzip2 and zlib compression libraries needed for archive
305 AC_CHECK_LIB(bz2,BZ2_bzCompressInit,[bzip2_found=1],[bzip2_found=0])
306 AC_CHECK_LIB(z,gzopen,[zlib_found=1],[zlib_found=0])
308 dnl dlopen() is required for plugin support.
309 AC_SEARCH_LIBS(dlopen,dl,
310 AC_DEFINE([HAVE_DLOPEN],[1],
311 [Define if dlopen() is available on this platform.]),
312 AC_MSG_WARN([dlopen() not found - disabling plugin support]))
314 dnl mallinfo is optional; the code can compile (minus features) without it
315 AC_SEARCH_LIBS(mallinfo,malloc,
316 AC_DEFINE([HAVE_MALLINFO],[1],
317 [Define if mallinfo() is available on this platform.]))
319 dnl pthread locking functions are optional - but llvm will not be thread-safe
321 AC_SEARCH_LIBS(pthread_mutex_lock,pthread,
322 AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1],[Have pthread_mutex_lock]))
325 dnl ===----------------------------------------------------------------------===
327 dnl -- SECTION 7: Check For Needed Header Files
329 dnl ===----------------------------------------------------------------------===
331 dnl We don't check for ancient stuff or things that are guaranteed to be there
332 dnl by the C++ standard. We always use the <cfoo> versions of <foo.h> C headers.
336 AC_HEADER_MMAP_ANONYMOUS
338 dnl Checks for POSIX and other various system-specific header files
339 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h)
340 AC_CHECK_HEADERS(sys/resource.h dlfcn.h link.h execinfo.h windows.h)
342 dnl Check for things that need to be included in public headers, and so
343 dnl for which we may not have access to a HAVE_* preprocessor #define.
344 dnl (primarily used in DataTypes.h)
345 AC_CHECK_HEADER([sys/types.h])
346 AC_CHECK_HEADER([inttypes.h])
347 AC_CHECK_HEADER([stdint.h])
349 dnl Checks for compression headers:
350 AC_CHECK_HEADERS([bzlib.h],[bzlib_h_found=1],[bzlib_h_found=0],[])
351 AC_CHECK_HEADERS([zlib.h],[zlib_h_found=1],[zlib_h_found=0],[])
353 dnl ===----------------------------------------------------------------------===
355 dnl -- SECTION 8: Check for specific features (types/functions/options/etc)
357 dnl ===----------------------------------------------------------------------===
364 AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found]))
365 AC_CHECK_TYPES([uint64_t],,
366 AC_CHECK_TYPES([u_int64_t],,
367 AC_MSG_ERROR([Type uint64_t or u_int64_t required but not found])))
369 dnl Check for various C features
375 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
377 AC_MSG_WARN([mmap() required but not found])
380 if test "$ac_cv_func_mmap_file" = "no"
382 AC_MSG_WARN([mmap() of files required but not found])
384 AC_CHECK_FUNCS(getcwd gettimeofday strdup strtoq strtoll backtrace isatty)
385 AC_CHECK_FUNCS(mkstemp getrusage)
386 AC_CHECK_FUNC(mprotect,,
387 AC_MSG_ERROR([Function mprotect() required but not found]))
389 dnl Check for C++ extensions
392 AC_CXX_HAVE_STD_ITERATOR
393 AC_CXX_HAVE_BI_ITERATOR
394 AC_CXX_HAVE_FWD_ITERATOR
396 dnl Determine if the linker supports the -R option.
399 dnl ===----------------------------------------------------------------------===
401 dnl -- SECTION 9: Remaining LLVM specific configuration items
403 dnl ===----------------------------------------------------------------------===
405 dnl Set up substitutions for compression libraries
406 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
407 AC_DEFINE([HAVE_ZLIB],[1],
408 [Define if zlib library is available on this platform.])
409 AC_SUBST([HAVE_ZLIB],[1])
411 AC_SUBST([HAVE_ZLIB],[0])
413 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
414 AC_DEFINE([HAVE_BZIP2],[1],
415 [Define if bzip2 library is available on this platform.])
416 AC_SUBST([HAVE_BZIP2],[1])
418 AC_SUBST([HAVE_BZIP2],[0])
421 dnl Get libtool's idea of what the shared library suffix is.
422 dnl This is a hack; it relies on undocumented behavior.
423 AC_MSG_CHECKING([for shared library suffix])
424 eval "SHLIBEXT=$shrext_cmds"
425 AC_MSG_RESULT($SHLIBEXT)
427 dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint).
428 AC_SUBST(SHLIBEXT,$SHLIBEXT)
429 AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT",
430 [Extension that shared libraries have, e.g., ".so".])
432 # Translate the various configuration directories and other basic
433 # information into substitutions that will end up in config.h.in so
434 # that these configured values can be hard-wired into a program.
435 eval LLVM_PREFIX="${prefix}";
436 eval LLVM_BINDIR="${prefix}/bin";
437 eval LLVM_LIBDIR="${prefix}/lib";
438 eval LLVM_DATADIR="${prefix}/data";
439 eval LLVM_DOCSDIR="${prefix}/docs";
440 eval LLVM_ETCDIR="${prefix}/etc";
441 eval LLVM_INCLUDEDIR="${prefix}/include";
442 eval LLVM_INFODIR="${prefix}/info";
443 eval LLVM_MANDIR="${prefix}/man";
444 LLVM_CONFIGTIME=`date`
446 AC_SUBST(LLVM_PREFIX)
447 AC_SUBST(LLVM_BINDIR)
448 AC_SUBST(LLVM_LIBDIR)
449 AC_SUBST(LLVM_DATADIR)
450 AC_SUBST(LLVM_DOCSDIR)
451 AC_SUBST(LLVM_ETCDIR)
452 AC_SUBST(LLVM_INCLUDEDIR)
453 AC_SUBST(LLVM_INFODIR)
454 AC_SUBST(LLVM_MANDIR)
455 AC_SUBST(LLVM_CONFIGTIME)
457 AC_DEFINE_UNQUOTED(LLVM_PREFIX,"$LLVM_PREFIX",
458 [Installation prefix directory])
459 AC_DEFINE_UNQUOTED(LLVM_BINDIR, "$LLVM_BINDIR",
460 [Installation directory for binary executables])
461 AC_DEFINE_UNQUOTED(LLVM_LIBDIR, "$LLVM_LIBDIR",
462 [Installation directory for libraries])
463 AC_DEFINE_UNQUOTED(LLVM_DATADIR, "$LLVM_DATADIR",
464 [Installation directory for data files])
465 AC_DEFINE_UNQUOTED(LLVM_DATADIR, "$LLVM_DOCSDIR",
466 [Installation directory for documentation])
467 AC_DEFINE_UNQUOTED(LLVM_ETCDIR, "$LLVM_ETCDIR",
468 [Installation directory for config files])
469 AC_DEFINE_UNQUOTED(LLVM_INCLUDEDIR, "$LLVM_INCLUDEDIR",
470 [Installation directory for include files])
471 AC_DEFINE_UNQUOTED(LLVM_INFODIR, "$LLVM_INFODIR",
472 [Installation directory for .info files])
473 AC_DEFINE_UNQUOTED(LLVM_MANDIR, "$LLVM_MANDIR",
474 [Installation directory for man pages])
475 AC_DEFINE_UNQUOTED(LLVM_CONFIGTIME, "$LLVM_CONFIGTIME",
476 [Time at which LLVM was configured])
478 dnl ===----------------------------------------------------------------------===
479 dnl -- SECTION 10: Define the output and put it out
480 dnl ===----------------------------------------------------------------------===
482 dnl Configure header files
483 AC_CONFIG_HEADERS([include/llvm/Config/config.h])
484 AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h])
485 AC_CONFIG_HEADERS([include/llvm/ADT/hash_map])
486 AC_CONFIG_HEADERS([include/llvm/ADT/hash_set])
487 AC_CONFIG_HEADERS([include/llvm/Support/ThreadSupport.h])
488 AC_CONFIG_HEADERS([include/llvm/ADT/iterator])
490 dnl Configure makefiles
491 AC_CONFIG_FILES([Makefile])
492 AC_CONFIG_FILES([lib/Makefile])
493 AC_CONFIG_FILES([lib/Analysis/IPA/Makefile])
494 AC_CONFIG_FILES([lib/Analysis/Makefile])
495 AC_CONFIG_FILES([lib/Analysis/DataStructure/Makefile])
496 AC_CONFIG_FILES([lib/AsmParser/Makefile])
497 AC_CONFIG_FILES([lib/System/Makefile])
498 AC_CONFIG_FILES([lib/Bytecode/Reader/Makefile])
499 AC_CONFIG_FILES([lib/Bytecode/Makefile])
500 AC_CONFIG_FILES([lib/Bytecode/Writer/Makefile])
501 AC_CONFIG_FILES([lib/Bytecode/Archive/Makefile])
502 AC_CONFIG_FILES([lib/CodeGen/InstrSched/Makefile])
503 AC_CONFIG_FILES([lib/CodeGen/Makefile])
504 AC_CONFIG_FILES([lib/CodeGen/ModuloScheduling/Makefile])
505 AC_CONFIG_FILES([lib/CodeGen/SelectionDAG/Makefile])
506 AC_CONFIG_FILES([lib/Debugger/Makefile])
507 AC_CONFIG_FILES([lib/ExecutionEngine/Interpreter/Makefile])
508 AC_CONFIG_FILES([lib/ExecutionEngine/Makefile])
509 AC_CONFIG_FILES([lib/ExecutionEngine/JIT/Makefile])
510 AC_CONFIG_FILES([lib/Support/Makefile])
511 AC_CONFIG_FILES([lib/Target/CBackend/Makefile])
512 AC_CONFIG_FILES([lib/Target/Makefile])
513 AC_CONFIG_FILES([lib/Target/Skeleton/Makefile])
514 AC_CONFIG_FILES([lib/Target/PowerPC/Makefile])
515 AC_CONFIG_FILES([lib/Target/SparcV9/Makefile])
516 AC_CONFIG_FILES([lib/Target/SparcV9/LiveVar/Makefile])
517 AC_CONFIG_FILES([lib/Target/SparcV9/RegAlloc/Makefile])
518 AC_CONFIG_FILES([lib/Target/X86/Makefile])
519 AC_CONFIG_FILES([lib/Transforms/Hello/Makefile])
520 AC_CONFIG_FILES([lib/Transforms/Makefile])
521 AC_CONFIG_FILES([lib/Transforms/IPO/Makefile])
522 AC_CONFIG_FILES([lib/Transforms/Instrumentation/ProfilePaths/Makefile])
523 AC_CONFIG_FILES([lib/Transforms/Instrumentation/Makefile])
524 AC_CONFIG_FILES([lib/Transforms/Scalar/Makefile])
525 AC_CONFIG_FILES([lib/Transforms/Utils/Makefile])
526 AC_CONFIG_FILES([lib/VMCore/Makefile])
527 AC_CONFIG_FILES([utils/Makefile])
528 AC_CONFIG_FILES([utils/Burg/Makefile])
529 AC_CONFIG_FILES([utils/fpcmp/Makefile])
530 AC_CONFIG_FILES([utils/TableGen/Makefile])
531 AC_CONFIG_FILES([tools/Makefile])
532 AC_CONFIG_FILES([tools/analyze/Makefile])
533 AC_CONFIG_FILES([tools/llvmc/Makefile])
534 AC_CONFIG_FILES([tools/bugpoint/Makefile])
535 AC_CONFIG_FILES([tools/extract/Makefile])
536 AC_CONFIG_FILES([tools/gccas/Makefile])
537 AC_CONFIG_FILES([tools/gccld/Makefile])
538 AC_CONFIG_FILES([tools/llvm-bcanalyzer/Makefile])
539 AC_CONFIG_FILES([tools/llc/Makefile])
540 AC_CONFIG_FILES([tools/llee/Makefile])
541 AC_CONFIG_FILES([tools/lli/Makefile])
542 AC_CONFIG_FILES([tools/llvm-ar/Makefile])
543 AC_CONFIG_FILES([tools/llvm-as/Makefile])
544 AC_CONFIG_FILES([tools/llvm-db/Makefile])
545 AC_CONFIG_FILES([tools/llvm-dis/Makefile])
546 AC_CONFIG_FILES([tools/llvm-link/Makefile])
547 AC_CONFIG_FILES([tools/llvm-nm/Makefile])
548 AC_CONFIG_FILES([tools/llvm-prof/Makefile])
549 AC_CONFIG_FILES([tools/opt/Makefile])
550 AC_CONFIG_FILES([tools/llvm-ld/Makefile])
551 AC_CONFIG_FILES([tools/llvm-stub/Makefile])
553 dnl Make a link from lib/System/platform to lib/System/$llvm_platform_type
554 dnl This helps the #inclusion of the system specific include files
555 dnl for the operating system abstraction library
556 AC_CONFIG_LINKS(lib/System/platform:lib/System/$llvm_platform_type)
558 dnl Configure all of the projects present in our source tree.
559 for i in `ls ${srcdir}/projects`
561 if test -d ${srcdir}/projects/${i} ; then
564 "sample") AC_CONFIG_SUBDIRS([projects/sample]) ;;
565 "Stacker") AC_CONFIG_SUBDIRS([projects/Stacker]) ;;
566 "llvm-test") AC_CONFIG_SUBDIRS([projects/llvm-test]) ;;
567 "llvm-reopt") AC_CONFIG_SUBDIRS([projects/llvm-reopt]);;
568 "llvm-gcc") AC_CONFIG_SUBDIRS([projects/llvm-gcc]) ;;
569 "Java") AC_CONFIG_SUBDIRS([projects/Java]) ;;
570 "llvm-tv") AC_CONFIG_SUBDIRS([projects/llvm-tv]) ;;
571 "llvm-fefw") AC_CONFIG_SUBDIRS([projects/llvm-fefw]) ;;
573 AC_MSG_WARN([Unknown project (${i}) won't be configured automatically])
578 dnl Create the output files
581 dnl ===----------------------------------------------------------------------===
582 dnl -- SECTION 11: Output warnings to user (always last so they see it)
583 dnl ===----------------------------------------------------------------------===
585 dnl Warn if we don't have a compression library
586 if test $bzip2_found -ne 1 ; then
587 if test $zlib_found -ne 1 ; then
588 AC_MSG_WARN([*** Neither zlib nor bzip2 compression libraries were found.])
589 AC_MSG_WARN([*** Bytecode archives will not support compression!])
590 AC_MSG_WARN([*** To correct, install the libraries and re-run configure.])
594 dnl Warn loudly if llvm-gcc was not obviously working
595 if test $llvmgccwarn = yes
597 AC_MSG_WARN([***** llvm C/C++ front end was not found, or does not])
598 AC_MSG_WARN([***** appear to be working.])
599 AC_MSG_WARN([***** ])
600 AC_MSG_WARN([***** Please check configure's --with-llvmgccdir option.])
601 AC_MSG_WARN([***** Runtime libraries (in llvm/runtime) will not be built,])
602 AC_MSG_WARN([***** but you should be able to build the llvm tools.])