Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 1 | dnl Initialize autoconf |
Reid Spencer | a91929d | 2004-08-20 09:03:12 +0000 | [diff] [blame] | 2 | AC_INIT([[LLVM]],[[1.4]],[llvmbugs@cs.uiuc.edu]) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 3 | |
| 4 | dnl Place all of the extra autoconf files into the config subdirectory |
| 5 | AC_CONFIG_AUX_DIR([autoconf]) |
| 6 | |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 7 | dnl Quit if the source directory has already been configured. |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 8 | dnl NOTE: This relies upon undocumented autoconf behavior. |
| 9 | if test ${srcdir} != "." |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 10 | then |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 11 | if test -f ${srcdir}/include/Config/config.h |
| 12 | then |
| 13 | AC_MSG_ERROR([Already configured in ${srcdir}]) |
| 14 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 15 | fi |
| 16 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 17 | dnl Configure all of the projects present in our source tree. |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 18 | for i in `ls ${srcdir}/projects` |
| 19 | do |
| 20 | if test ${i} != "CVS" |
| 21 | then |
John Criswell | 9493c97 | 2003-12-12 20:09:33 +0000 | [diff] [blame] | 22 | if test -f ${srcdir}/projects/${i}/configure |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 23 | then |
| 24 | AC_CONFIG_SUBDIRS(projects/${i}) |
| 25 | fi |
| 26 | fi |
| 27 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 28 | |
John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 29 | dnl Configure header files |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 30 | AC_CONFIG_HEADERS(include/Config/config.h) |
John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 31 | |
| 32 | dnl Configure other output file |
| 33 | AC_CONFIG_FILES(Makefile.config |
| 34 | include/Support/DataTypes.h |
| 35 | include/Support/ThreadSupport.h |
| 36 | include/Support/hash_map |
| 37 | include/Support/hash_set |
| 38 | include/Support/iterator) |
| 39 | |
| 40 | dnl Do special configuration of Makefiles |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 41 | AC_CONFIG_MAKEFILE(Makefile) |
| 42 | AC_CONFIG_MAKEFILE(Makefile.common) |
Reid Spencer | 367754a | 2004-08-24 16:31:01 +0000 | [diff] [blame^] | 43 | AC_CONFIG_MAKEFILE(examples/Makefile) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 44 | AC_CONFIG_MAKEFILE(lib/Makefile) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 45 | AC_CONFIG_MAKEFILE(runtime/Makefile) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 46 | AC_CONFIG_MAKEFILE(test/Makefile) |
| 47 | AC_CONFIG_MAKEFILE(test/Makefile.tests) |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 48 | AC_CONFIG_MAKEFILE(test/QMTest/llvm.py) |
| 49 | AC_CONFIG_MAKEFILE(test/QMTest/llvmdb.py) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 50 | AC_CONFIG_MAKEFILE(test/Programs/Makefile) |
| 51 | AC_CONFIG_MAKEFILE(test/Programs/Makefile.programs) |
John Criswell | 8a54a1e | 2004-06-22 21:35:10 +0000 | [diff] [blame] | 52 | AC_CONFIG_MAKEFILE(test/Programs/Makefile.tests) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 53 | AC_CONFIG_MAKEFILE(test/Programs/TEST.aa.Makefile) |
| 54 | AC_CONFIG_MAKEFILE(test/Programs/TEST.dsgraph.report) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 55 | AC_CONFIG_MAKEFILE(test/Programs/TEST.aa.report) |
| 56 | AC_CONFIG_MAKEFILE(test/Programs/TEST.example.Makefile) |
| 57 | AC_CONFIG_MAKEFILE(test/Programs/TEST.nightly.Makefile) |
| 58 | AC_CONFIG_MAKEFILE(test/Programs/TEST.buildrepo.Makefile) |
| 59 | AC_CONFIG_MAKEFILE(test/Programs/TEST.jit.Makefile) |
| 60 | AC_CONFIG_MAKEFILE(test/Programs/TEST.nightly.report) |
| 61 | AC_CONFIG_MAKEFILE(test/Programs/TEST.dsgraph.Makefile) |
| 62 | AC_CONFIG_MAKEFILE(test/Programs/TEST.jit.report) |
| 63 | AC_CONFIG_MAKEFILE(test/Programs/TEST.typesafe.Makefile) |
| 64 | AC_CONFIG_MAKEFILE(test/Programs/TEST.dsgraph.gnuplot) |
John Criswell | 878be7d | 2004-02-24 21:43:38 +0000 | [diff] [blame] | 65 | AC_CONFIG_MAKEFILE(test/Programs/TEST.vtl.Makefile) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 66 | AC_CONFIG_MAKEFILE(test/Programs/External/Makefile) |
| 67 | AC_CONFIG_MAKEFILE(test/Programs/External/SPEC/Makefile) |
John Criswell | 27bb35e | 2003-09-11 18:04:00 +0000 | [diff] [blame] | 68 | AC_CONFIG_MAKEFILE(test/Programs/External/SPEC/Makefile.spec) |
Alkis Evlogimenos | 271143f | 2004-02-26 04:14:10 +0000 | [diff] [blame] | 69 | AC_CONFIG_MAKEFILE(test/Programs/External/SPEC/Makefile.spec2000) |
John Criswell | b607cc8 | 2004-02-10 22:29:06 +0000 | [diff] [blame] | 70 | AC_CONFIG_MAKEFILE(test/Programs/External/SPEC/Makefile.spec95) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 71 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Makefile) |
| 72 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Makefile.multisrc) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 73 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in) |
Misha Brukman | 3e910fe | 2003-11-12 19:39:10 +0000 | [diff] [blame] | 74 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 75 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in) |
Misha Brukman | 3e910fe | 2003-11-12 19:39:10 +0000 | [diff] [blame] | 76 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 77 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in) |
Misha Brukman | 3e910fe | 2003-11-12 19:39:10 +0000 | [diff] [blame] | 78 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 79 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in) |
Misha Brukman | 3e910fe | 2003-11-12 19:39:10 +0000 | [diff] [blame] | 80 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 81 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in) |
Misha Brukman | 3e910fe | 2003-11-12 19:39:10 +0000 | [diff] [blame] | 82 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 83 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in) |
Misha Brukman | 3e910fe | 2003-11-12 19:39:10 +0000 | [diff] [blame] | 84 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile) |
Misha Brukman | 960624b | 2003-11-12 22:16:23 +0000 | [diff] [blame] | 85 | AC_CONFIG_MAKEFILE(test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 86 | AC_CONFIG_MAKEFILE(test/Programs/SingleSource/Makefile) |
| 87 | AC_CONFIG_MAKEFILE(test/Programs/SingleSource/Makefile.singlesrc) |
Alkis Evlogimenos | 271143f | 2004-02-26 04:14:10 +0000 | [diff] [blame] | 88 | AC_CONFIG_MAKEFILE(test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 89 | AC_CONFIG_MAKEFILE(tools/Makefile) |
Chris Lattner | 5c866e1 | 2003-10-06 02:09:25 +0000 | [diff] [blame] | 90 | AC_CONFIG_MAKEFILE(utils/Makefile) |
John Criswell | 2d53308 | 2003-09-06 14:46:19 +0000 | [diff] [blame] | 91 | AC_CONFIG_MAKEFILE(projects/Makefile) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 92 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 93 | dnl Find the install program (needs to be done before canonical stuff) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 94 | AC_PROG_INSTALL |
| 95 | |
| 96 | dnl Check which host for which we're compiling. This will tell us which LLVM |
| 97 | dnl compiler will be used for compiling SSA into object code. |
| 98 | AC_CANONICAL_TARGET |
| 99 | |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 100 | dnl Set the "OS" Makefile variable based on the system we are building on. |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 101 | dnl We will use the build machine information to set some variables. |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 102 | case $build in |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 103 | *-*-linux*) |
| 104 | AC_SUBST(OS,[Linux]) |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 105 | if test -d /home/vadve/lattner/local/x86/llvm-gcc |
| 106 | then |
| 107 | AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/x86/llvm-gcc/]) |
| 108 | fi |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 109 | ;; |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 110 | *-*-solaris*) |
| 111 | AC_SUBST(OS,[SunOS]) |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 112 | if test -d /home/vadve/lattner/local/sparc/llvm-gcc |
| 113 | then |
| 114 | AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/sparc/llvm-gcc/]) |
| 115 | fi |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 116 | ;; |
Chris Lattner | 44afcb7 | 2004-06-02 23:32:17 +0000 | [diff] [blame] | 117 | *-*-cygwin*) |
| 118 | AC_SUBST(OS,[Cygwin]) |
| 119 | ;; |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 120 | *-*-darwin*) |
| 121 | AC_SUBST(OS,[Darwin]) |
| 122 | ;; |
Misha Brukman | 7b42a75 | 2004-06-22 15:32:08 +0000 | [diff] [blame] | 123 | *-*-aix*) |
| 124 | AC_SUBST(OS,[AIX]) |
| 125 | ;; |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 126 | *) AC_SUBST(OS,[Unknown]) |
| 127 | ;; |
| 128 | esac |
| 129 | |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 130 | dnl If we are targetting a Sparc machine running Solaris, pretend that it is |
| 131 | dnl V9, since that is all that we support at the moment, and autoconf will only |
| 132 | dnl tell us we're a sparc. |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 133 | case $target in |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 134 | sparc*-*-solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]]) |
| 135 | ;; |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 136 | esac |
| 137 | |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 138 | dnl Determine what our target architecture is and configure accordingly. |
| 139 | dnl This will allow Makefiles to make a distinction between the hardware and |
| 140 | dnl the OS. |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 141 | case $target in |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 142 | i*86-*) AC_SUBST(ARCH,[x86]) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 143 | ;; |
Brian Gaeke | 3e66e8b | 2003-11-17 00:30:48 +0000 | [diff] [blame] | 144 | sparc*-*) AC_SUBST(ARCH,[Sparc]) |
| 145 | ;; |
| 146 | powerpc*-*) AC_SUBST(ARCH,[PowerPC]) |
| 147 | ;; |
| 148 | *) AC_SUBST(ARCH,[Unknown]) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 149 | ;; |
| 150 | esac |
| 151 | |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 152 | dnl Check for compilation tools |
| 153 | AC_PROG_CXX |
| 154 | AC_PROG_CC(gcc) |
| 155 | AC_PROG_CPP |
| 156 | |
| 157 | dnl Ensure that compilation tools are GCC; we use GCC specific extensions |
| 158 | if test "$GCC" != "yes" |
| 159 | then |
| 160 | AC_MSG_ERROR([gcc required but not found]) |
| 161 | fi |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 162 | if test "$GXX" != "yes" |
| 163 | then |
| 164 | AC_MSG_ERROR([g++ required but not found]) |
| 165 | fi |
| 166 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 167 | dnl Verify that GCC is version 3.0 or higher |
| 168 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 169 | if test "$gccmajor" -lt "3" |
| 170 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 171 | AC_MSG_ERROR([gcc 3.x required, but you have a lower version]) |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 172 | fi |
| 173 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 174 | dnl Check for GNU Make. We use its extensions too, so don't build without it |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 175 | CHECK_GNU_MAKE |
| 176 | if test -z "$_cv_gnu_make_command" |
| 177 | then |
| 178 | AC_MSG_ERROR([GNU Make required but not found]) |
| 179 | fi |
| 180 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 181 | dnl Checks for other tools |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 182 | AC_PROG_FLEX |
| 183 | AC_PROG_BISON |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 184 | AC_PROG_LIBTOOL |
| 185 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 186 | dnl Checks for tools we can get away with not having: |
| 187 | AC_PATH_PROG(DOT,[dot],[true dot]) |
| 188 | AC_PATH_PROG(ETAGS,[etags],[true etags]) |
Brian Gaeke | 027b746 | 2004-01-22 21:55:15 +0000 | [diff] [blame] | 189 | dnl Check if we know how to tell etags we are using C++: |
| 190 | etags_version=`$ETAGS --version 2>&1` |
| 191 | case "$etags_version" in |
| 192 | *[Ee]xuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 193 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 194 | *) ETAGSFLAGS="" ;; |
| 195 | esac |
| 196 | AC_SUBST(ETAGSFLAGS,$ETAGSFLAGS) |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 197 | AC_PATH_PROG(PYTHON,[python],[true python]) |
| 198 | if test "$PYTHON" = "false" |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 199 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 200 | AC_MSG_WARN([Python is required for the test suite, but it was not found]) |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 201 | fi |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 202 | AC_PATH_PROG(QMTEST,[qmtest],[true qmtest]) |
| 203 | if test "$QMTEST" = "false" |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 204 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 205 | AC_MSG_WARN([QMTest is required for the test suite, but it was not found]) |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 206 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 207 | |
| 208 | dnl Verify that the version of python available is high enough for qmtest |
| 209 | pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` |
| 210 | pymajor=`echo $pyversion | cut -d. -f1` |
| 211 | pyminor=`echo $pyversion | cut -d. -f2` |
| 212 | |
| 213 | if test "$pymajor" -ge "2" |
| 214 | then |
| 215 | if test "$pymajor" -eq "2" |
| 216 | then |
| 217 | if test "$pyminor" -lt "2" |
| 218 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 219 | AC_MSG_WARN([QMTest requires Python 2.2 or later]) |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 220 | fi |
| 221 | fi |
| 222 | else |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 223 | AC_MSG_WARN([QMTest requires Python 2.2 or later]) |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 224 | fi |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 225 | |
| 226 | dnl Verify that the source directory is valid |
| 227 | AC_CONFIG_SRCDIR(["Makefile.config.in"]) |
| 228 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 229 | dnl Checks for libraries: |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 230 | dnl libelf is for sparc only; we can ignore it if we don't have it |
| 231 | AC_CHECK_LIB(elf, elf_begin) |
| 232 | |
Brian Gaeke | 4c42378 | 2003-10-07 05:03:36 +0000 | [diff] [blame] | 233 | dnl dlopen() is required for plugin support. |
Brian Gaeke | a25d7ca | 2003-10-08 21:44:07 +0000 | [diff] [blame] | 234 | AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1],[Define if dlopen() is available on this platform.]),AC_MSG_WARN([dlopen() not found - disabling plugin support])) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 235 | |
| 236 | dnl mallinfo is optional; the code can compile (minus features) without it |
Brian Gaeke | a25d7ca | 2003-10-08 21:44:07 +0000 | [diff] [blame] | 237 | AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo() is available on this platform.])) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 238 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 239 | dnl pthread locking functions are optional - but llvm will not be thread-safe |
| 240 | dnl without locks. |
Brian Gaeke | 2e3bdba | 2004-02-23 21:30:36 +0000 | [diff] [blame] | 241 | AC_SEARCH_LIBS(pthread_mutex_lock,pthread,HAVE_PTHREAD_MUTEX_LOCK=1,HAVE_PTHREAD_MUTEX_LOCK=0) |
| 242 | AC_SUBST(HAVE_PTHREAD_MUTEX_LOCK) |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 243 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 244 | dnl Checks for header files. |
| 245 | dnl We don't check for ancient stuff or things that are guaranteed to be there |
| 246 | dnl by the C++ standard. We always use the <cfoo> versions of <foo.h> C headers. |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 247 | AC_HEADER_STDC |
| 248 | AC_HEADER_SYS_WAIT |
| 249 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 250 | dnl Checks for POSIX and other various system-specific header files |
John Criswell | b2815e0 | 2004-05-27 20:40:39 +0000 | [diff] [blame] | 251 | AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 252 | |
Brian Gaeke | 1133eaf | 2004-02-23 22:07:01 +0000 | [diff] [blame] | 253 | dnl Check for things that need to be included in public headers, and so |
| 254 | dnl for which we may not have access to a HAVE_* preprocessor #define. |
| 255 | dnl (primarily used in DataTypes.h) |
| 256 | AC_CHECK_HEADER([sys/types.h], |
| 257 | [INCLUDE_SYS_TYPES_H='#include <sys/types.h>'], |
| 258 | [INCLUDE_SYS_TYPES_H='']) |
| 259 | AC_SUBST(INCLUDE_SYS_TYPES_H) |
| 260 | AC_CHECK_HEADER([inttypes.h], |
| 261 | [INCLUDE_INTTYPES_H='#include <inttypes.h>'], |
| 262 | [INCLUDE_INTTYPES_H='']) |
| 263 | AC_SUBST(INCLUDE_INTTYPES_H) |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 264 | AC_CHECK_HEADER([stdint.h], |
| 265 | [INCLUDE_STDINT_H='#include <stdint.h>'], |
| 266 | [INCLUDE_STDINT_H='']) |
| 267 | AC_SUBST(INCLUDE_STDINT_H) |
| 268 | |
Brian Gaeke | 1133eaf | 2004-02-23 22:07:01 +0000 | [diff] [blame] | 269 | |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 270 | dnl Check for types |
| 271 | AC_TYPE_PID_T |
| 272 | AC_TYPE_SIZE_T |
| 273 | AC_CHECK_TYPES([int64_t],,AC_MSG_ERROR([Type int64_t required but not found])) |
| 274 | AC_CHECK_TYPES([uint64_t],,AC_MSG_ERROR([Type uint64_t required but not found])) |
| 275 | AC_HEADER_TIME |
| 276 | AC_STRUCT_TM |
| 277 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 278 | dnl Check for various C features |
| 279 | AC_C_PRINTF_A |
| 280 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 281 | dnl Check for the endianness of the target |
| 282 | AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little])) |
| 283 | |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 284 | dnl Check for C++ extensions |
Brian Gaeke | 278a4ac | 2003-11-10 03:06:09 +0000 | [diff] [blame] | 285 | AC_CXX_HAVE_HASH_MAP |
| 286 | AC_CXX_HAVE_HASH_SET |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 287 | AC_CXX_HAVE_STD_ITERATOR |
| 288 | AC_CXX_HAVE_BI_ITERATOR |
| 289 | AC_CXX_HAVE_FWD_ITERATOR |
| 290 | |
Brian Gaeke | 8828eb5 | 2004-06-22 23:43:04 +0000 | [diff] [blame] | 291 | AC_FUNC_ISNAN |
Brian Gaeke | 3869b27 | 2004-07-21 03:14:51 +0000 | [diff] [blame] | 292 | AC_FUNC_ISINF |
Brian Gaeke | 8828eb5 | 2004-06-22 23:43:04 +0000 | [diff] [blame] | 293 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 294 | dnl Checks for library functions. |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 295 | AC_FUNC_ALLOCA |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 296 | AC_FUNC_MMAP |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 297 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 298 | then |
John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 299 | AC_MSG_WARN([mmap() required but not found]) |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 300 | fi |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 301 | AC_FUNC_MMAP_FILE |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 302 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 303 | then |
John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 304 | AC_MSG_WARN([mmap() of files required but not found]) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 305 | fi |
| 306 | AC_HEADER_MMAP_ANONYMOUS |
| 307 | AC_TYPE_SIGNAL |
Brian Gaeke | 8828eb5 | 2004-06-22 23:43:04 +0000 | [diff] [blame] | 308 | AC_CHECK_FUNCS(getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage) |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 309 | AC_CHECK_FUNC(mprotect,,AC_MSG_ERROR([Function mprotect() required but not found])) |
| 310 | |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 311 | dnl Determine if the linker supports the -R option. |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 312 | AC_LINK_USE_R |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 313 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 314 | dnl --enable/--with command-line options: |
| 315 | dnl Check whether they want to do an optimized build: |
John Criswell | 79a8f09 | 2003-07-22 20:59:52 +0000 | [diff] [blame] | 316 | AC_ARG_ENABLE(optimized,AC_HELP_STRING([--enable-optimized],[Compile with optimizations enabled (default is NO)]),,enableval=no) |
| 317 | if test ${enableval} = "no" |
| 318 | then |
| 319 | AC_SUBST(ENABLE_OPTIMIZED,[[]]) |
| 320 | else |
| 321 | AC_SUBST(ENABLE_OPTIMIZED,[[ENABLE_OPTIMIZED=1]]) |
| 322 | fi |
| 323 | |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 324 | AC_DEFUN(EXTERNAL_BENCHMARK, |
| 325 | [m4_define([allcapsname],translit($1,a-z,A-Z)) |
| 326 | AC_ARG_ENABLE($1, |
| 327 | AC_HELP_STRING([--enable-$1=ARG], |
| 328 | [Use $1 as a benchmark (srcs in DIR)]), |
| 329 | checkresult=$enableval, |
| 330 | checkresult=auto) |
| 331 | AC_MSG_CHECKING([for $1 benchmark sources]) |
| 332 | case "$checkresult" in |
Chris Lattner | ac84728 | 2004-04-14 16:32:34 +0000 | [diff] [blame] | 333 | auto|yes) |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 334 | defaultdir=$2 |
| 335 | if test -d "$defaultdir" |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 336 | then |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 337 | AC_SUBST(allcapsname()[_ROOT],[$defaultdir]) |
| 338 | AC_SUBST([USE_]allcapsname(),[USE_]allcapsname()=1) |
| 339 | checkresult="yes, found in $defaultdir" |
Brian Gaeke | bc7b85f | 2004-04-13 19:02:51 +0000 | [diff] [blame] | 340 | else |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 341 | checkresult=no |
Brian Gaeke | bc7b85f | 2004-04-13 19:02:51 +0000 | [diff] [blame] | 342 | fi |
| 343 | ;; |
Chris Lattner | ac84728 | 2004-04-14 16:32:34 +0000 | [diff] [blame] | 344 | no) |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 345 | AC_SUBST(allcapsname()[_ROOT],[]) |
| 346 | AC_SUBST([USE_]allcapsname(),[]) |
| 347 | checkresult=no |
Brian Gaeke | bc7b85f | 2004-04-13 19:02:51 +0000 | [diff] [blame] | 348 | ;; |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 349 | *) if test -d "$checkresult" |
Brian Gaeke | bc7b85f | 2004-04-13 19:02:51 +0000 | [diff] [blame] | 350 | then |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 351 | AC_SUBST(allcapsname()[_ROOT],"$checkresult") |
| 352 | AC_SUBST([USE_]allcapsname(),[USE_]allcapsname()=1) |
| 353 | checkresult="yes, in $checkresult" |
Brian Gaeke | bc7b85f | 2004-04-13 19:02:51 +0000 | [diff] [blame] | 354 | else |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 355 | AC_SUBST(allcapsname()[_ROOT],[]) |
| 356 | AC_SUBST([USE_]allcapsname(),[]) |
| 357 | checkresult="no, not found in $checkresult" |
Brian Gaeke | bc7b85f | 2004-04-13 19:02:51 +0000 | [diff] [blame] | 358 | fi |
| 359 | ;; |
| 360 | esac |
Brian Gaeke | dbaf981 | 2004-04-16 17:13:33 +0000 | [diff] [blame] | 361 | AC_MSG_RESULT($checkresult) |
| 362 | m4_undefine([allcapsname]) |
| 363 | ]) |
| 364 | |
| 365 | EXTERNAL_BENCHMARK(spec95,/home/vadve/shared/benchmarks/spec95/benchspec) |
| 366 | EXTERNAL_BENCHMARK(spec2000,/home/vadve/shared/benchmarks/speccpu2000/benchspec) |
| 367 | EXTERNAL_BENCHMARK(povray,/home/vadve/shared/benchmarks/povray31) |
John Criswell | 0538d42 | 2004-02-20 22:30:22 +0000 | [diff] [blame] | 368 | |
John Criswell | 79a8f09 | 2003-07-22 20:59:52 +0000 | [diff] [blame] | 369 | dnl Precompiled Bytecode Option |
| 370 | AC_ARG_ENABLE(precompiled_bytecode,AC_HELP_STRING([--enable-precompiled_bytecode],[Use pre-compiled bytecode (default is NO)]),,enableval=no) |
| 371 | if test ${enableval} = "no" |
| 372 | then |
| 373 | AC_SUBST(UPB,[[]]) |
| 374 | else |
| 375 | AC_SUBST(UPB,[[USE_PRECOMPILED_BYTECODE=1]]) |
| 376 | fi |
| 377 | |
John Criswell | 79a8f09 | 2003-07-22 20:59:52 +0000 | [diff] [blame] | 378 | dnl LLC Diff Option |
| 379 | AC_ARG_ENABLE(llc_diffs,AC_HELP_STRING([--enable-llc_diffs],[Enable LLC Diffs when testing (default is YES)]),,enableval=yes) |
| 380 | if test ${enableval} = "no" |
| 381 | then |
| 382 | AC_SUBST(DISABLE_LLC_DIFFS,[DISABLE_LLC_DIFFS:=1]) |
| 383 | else |
| 384 | AC_SUBST(DISABLE_LLC_DIFFS,[[]]) |
| 385 | fi |
| 386 | |
| 387 | dnl JIT Option |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 388 | AC_ARG_ENABLE(jit,AC_HELP_STRING([--enable-jit],[Enable Just In Time Compiling (default is YES)]),,enableval=default) |
John Criswell | 79a8f09 | 2003-07-22 20:59:52 +0000 | [diff] [blame] | 389 | if test ${enableval} = "no" |
| 390 | then |
| 391 | AC_SUBST(JIT,[[]]) |
| 392 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 393 | case $target in |
| 394 | *i*86*) |
| 395 | AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) |
| 396 | ;; |
| 397 | *sparc*) |
| 398 | AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) |
| 399 | ;; |
| 400 | *) |
| 401 | AC_SUBST(JIT,[[]]) |
| 402 | ;; |
| 403 | esac |
John Criswell | 79a8f09 | 2003-07-22 20:59:52 +0000 | [diff] [blame] | 404 | fi |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 405 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 406 | dnl Find the LLVM GCC-based C/C++ front end |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 407 | AC_ARG_WITH(llvmgccdir,AC_HELP_STRING([--with-llvmgccdir],[Location of LLVM GCC front-end]),AC_SUBST(LLVMGCCDIR,[$withval])) |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 408 | AC_MSG_CHECKING([for llvm-gcc]) |
| 409 | LLVM_GCC_CHECK=no |
| 410 | if test -d "$LLVMGCCDIR" |
| 411 | then |
| 412 | if test -x "$LLVMGCCDIR/bin/gcc" |
| 413 | then |
| 414 | LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" |
| 415 | fi |
| 416 | fi |
| 417 | llvmgccwarn=no |
| 418 | AC_MSG_RESULT($LLVM_GCC_CHECK) |
| 419 | if test "$LLVM_GCC_CHECK" = "no" |
| 420 | then |
| 421 | llvmgccwarn=yes |
| 422 | fi |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 423 | AC_MSG_CHECKING([whether llvm-gcc is sane]) |
| 424 | LLVM_GCC_SANE=no |
| 425 | if test -x "$LLVM_GCC_CHECK" |
| 426 | then |
| 427 | cp /dev/null conftest.c |
| 428 | "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
| 429 | if test $? -eq 0 |
| 430 | then |
| 431 | LLVM_GCC_SANE=yes |
| 432 | fi |
| 433 | rm conftest.c |
Brian Gaeke | d05e39d | 2004-01-16 21:31:22 +0000 | [diff] [blame] | 434 | llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` |
| 435 | AC_SUBST(LLVMCC1,$llvmcc1path) |
| 436 | llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` |
| 437 | AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath) |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 438 | fi |
| 439 | AC_MSG_RESULT($LLVM_GCC_SANE) |
| 440 | if test "$LLVM_GCC_SANE" = "no" |
| 441 | then |
| 442 | llvmgccwarn=yes |
| 443 | fi |
| 444 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 445 | dnl Location of the bytecode repository |
John Criswell | 4ea390d | 2003-07-22 19:13:20 +0000 | [diff] [blame] | 446 | AC_ARG_WITH(bcrepos,AC_HELP_STRING([--with-bcrepos],[Location of Bytecode Repository]),AC_SUBST(BCR,[$withval]),AC_SUBST(BCR,[/home/vadve/lattner/LLVMPrograms])) |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 447 | |
| 448 | dnl Location of PAPI |
Chris Lattner | 1b9ddd5 | 2003-08-14 18:59:53 +0000 | [diff] [blame] | 449 | AC_ARG_WITH(papi,AC_HELP_STRING([--with-papi],[Location of PAPI]),AC_SUBST(PAPIDIR,[$withval]),AC_SUBST(PAPIDIR,[/home/vadve/shared/Sparc/papi-2.3.4.1])) |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 450 | |
Brian Gaeke | cea9a60 | 2004-01-21 19:38:56 +0000 | [diff] [blame] | 451 | dnl Get libtool's idea of what the shared library suffix is. |
| 452 | dnl (This is a hack; it relies on undocumented behavior.) |
| 453 | AC_MSG_CHECKING([for shared library suffix]) |
| 454 | eval "SHLIBEXT=$shrext" |
| 455 | AC_MSG_RESULT($SHLIBEXT) |
| 456 | dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint). |
| 457 | AC_SUBST(SHLIBEXT,$SHLIBEXT) |
| 458 | AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT", |
| 459 | [Extension that shared libraries have, e.g., ".so".]) |
| 460 | |
Reid Spencer | a91929d | 2004-08-20 09:03:12 +0000 | [diff] [blame] | 461 | # Translate the various configuration directories and other basic |
| 462 | # information into substitutions that will end up in config.h.in so |
| 463 | # that these configured values can be hard-wired into a program. |
| 464 | eval LLVM_PREFIX="${prefix}"; |
| 465 | eval LLVM_BINDIR="${prefix}/bin"; |
| 466 | eval LLVM_LIBDIR="${prefix}/lib"; |
| 467 | eval LLVM_DATADIR="${prefix}/data"; |
| 468 | eval LLVM_DOCSDIR="${prefix}/docs"; |
| 469 | eval LLVM_ETCDIR="${prefix}/etc"; |
| 470 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 471 | eval LLVM_INFODIR="${prefix}/info"; |
| 472 | eval LLVM_MANDIR="${prefix}/man"; |
| 473 | LLVM_CONFIGTIME=`date` |
| 474 | AC_SUBST(LLVM_PREFIX) |
| 475 | AC_SUBST(LLVM_BINDIR) |
| 476 | AC_SUBST(LLVM_LIBDIR) |
| 477 | AC_SUBST(LLVM_DATADIR) |
| 478 | AC_SUBST(LLVM_DOCSDIR) |
| 479 | AC_SUBST(LLVM_ETCDIR) |
| 480 | AC_SUBST(LLVM_INCLUDEDIR) |
| 481 | AC_SUBST(LLVM_INFODIR) |
| 482 | AC_SUBST(LLVM_MANDIR) |
| 483 | AC_SUBST(LLVM_CONFIGTIME) |
| 484 | AC_DEFINE_UNQUOTED(LLVM_PREFIX,"$LLVM_PREFIX", [Installation prefix directory]) |
| 485 | AC_DEFINE_UNQUOTED(LLVM_BINDIR, "$LLVM_BINDIR", [Installation directory for binary executables]) |
| 486 | AC_DEFINE_UNQUOTED(LLVM_LIBDIR, "$LLVM_LIBDIR", [Installation directory for libraries]) |
| 487 | AC_DEFINE_UNQUOTED(LLVM_DATADIR, "$LLVM_DATADIR", [Installation directory for data files]) |
| 488 | AC_DEFINE_UNQUOTED(LLVM_DATADIR, "$LLVM_DOCSDIR", [Installation directory for documentation]) |
Reid Spencer | 19d96ee | 2004-08-20 09:08:57 +0000 | [diff] [blame] | 489 | AC_DEFINE_UNQUOTED(LLVM_ETCDIR, "$LLVM_ETCDIR", [Installation directory for config files]) |
Reid Spencer | a91929d | 2004-08-20 09:03:12 +0000 | [diff] [blame] | 490 | AC_DEFINE_UNQUOTED(LLVM_INCLUDEDIR, "$LLVM_INCLUDEDIR", [Installation directory for include files]) |
| 491 | AC_DEFINE_UNQUOTED(LLVM_INFODIR, "$LLVM_INFODIR", [Installation directory for .info files]) |
| 492 | AC_DEFINE_UNQUOTED(LLVM_MANDIR, "$LLVM_MANDIR", [Installation directory for man pages]) |
| 493 | AC_DEFINE_UNQUOTED(LLVM_CONFIGTIME, "$LLVM_CONFIGTIME", [Time at which LLVM was configured]) |
| 494 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 495 | dnl Create the output files |
John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 496 | AC_OUTPUT() |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 497 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 498 | dnl Warn loudly if llvm-gcc was not obviously working |
Brian Gaeke | 908647f | 2003-11-16 18:37:46 +0000 | [diff] [blame] | 499 | if test $llvmgccwarn = yes |
| 500 | then |
| 501 | AC_MSG_WARN([***** llvm C/C++ front end was not found, or does not]) |
| 502 | AC_MSG_WARN([***** appear to be working.]) |
| 503 | AC_MSG_WARN([***** ]) |
| 504 | AC_MSG_WARN([***** Please check configure's --with-llvmgccdir option.]) |
| 505 | AC_MSG_WARN([***** Runtime libraries (in llvm/runtime) will not be built,]) |
| 506 | AC_MSG_WARN([***** but you should be able to build the llvm tools.]) |
| 507 | fi |
Brian Gaeke | cea9a60 | 2004-01-21 19:38:56 +0000 | [diff] [blame] | 508 | |