aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf/m4
Commit message (Collapse)AuthorAgeFilesLines
* Attempt #2 to fix mingw crossbuild. This time with more ugly hacks!Benjamin Kramer2011-12-221-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147196 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the -fvisibility-inlines-hidden check more thorough in a hopeless ↵Benjamin Kramer2011-12-221-1/+3
| | | | | | attempt to fix mingw cross-compiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147191 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle newer cases for freebsd which is approaching 10.0 and not 1.0.Eric Christopher2011-10-261-6/+6
| | | | | | Patch by Dimitry Andric! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142995 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-152-2/+2
| | | | | | | | Luis Felipe Strano Moraes! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129558 91177308-0d34-0410-b5e6-96231b3b80d8
* configure: Add detection of the linker version string.Daniel Dunbar2010-08-111-0/+21
| | | | | | | - Review appreciated, as long as you understand that I understand that this is a horrible hack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110883 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a spello affecting platforms where the configure check fails.Dan Gohman2010-06-011-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105273 91177308-0d34-0410-b5e6-96231b3b80d8
* -retain-symbols-file is not what it seems. Update the makefilesDan Gohman2010-06-011-10/+13
| | | | | | | and configury to use --version-script. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105271 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an autoconf bug: The second argument to AC_LANG_PROGRAM is code thatDan Gohman2010-04-251-3/+3
| | | | | | | | | | | | | | | | | gets placed inside a main function, and should not itself be a main function. This is silently hidden in GCC-hosted builds because the inner main looks like a nested function declaration, which GCC supports. In builds with compilers which do not support nested functions (by default), this was causing an error, which caused these autoconf checks to fail, leaving their options disabled. This fixes test/Feature/load_module.ll on x86_64-unknown-linux-gnu llvm-gcc selfhost builds, among other things. This also includes a regenerated configure, as the diff is small and telling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102288 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an autoconf check for -retain-symbols-file and conditionalizeDan Gohman2010-04-161-0/+43
| | | | | | | | use of that option with it. This eliminates an imprecise "Linux" test, and should help support old versions of gold. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101560 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure we save CXXFLAGS before setting it as pedantic and regenerateEric Christopher2010-03-021-0/+2
| | | | | | | | | | | configure. Fixes PR6388. Patch by Yann Droneaud! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97548 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unneeded checks from configure.ac.Torok Edwin2010-01-266-121/+0
| | | | | | | | | | | | | | | | HAVE_{BI,STD,FWD}_ITERATOR and HAVE_NAMESPACES were not used in the code. bison and flex are no longer used. CAN_DLOPEN_SELF was never used either. AC_PROG_LIBTOOL is not needed since we don't use libtool, we only need the libltdl checks for dlopen. Add check for AR, it used to be done by AC_PROG_LIBTOOL. AC_TYPE_SIGNAL is deprecated, follow autoupdate's suggestion and replace with void. Remove unused m4 files. Configure can now be generated using autoconf 2.65 too, without any warnings! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94534 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix autoconf 2.65 warning (don't use _cv_ inside AC_CACHE_VAL).Torok Edwin2010-01-261-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94533 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an autoconf test to check for optional compiler flags likeJulien Lerouge2009-10-261-0/+2
| | | | | | | -Wno-missing-field-initializers or -Wno-variadic-macros. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85147 91177308-0d34-0410-b5e6-96231b3b80d8
* On Linux, uname -m reports the kernel type. Some Linux systems are 32-bit butNick Lewycky2009-09-291-0/+17
| | | | | | | | with a 64-bit kernel, which confuses LLVM. Make LLVM double-check this by checking which defines the system gcc actually sets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83047 91177308-0d34-0410-b5e6-96231b3b80d8
* install-sh chmods to 0755 by default, and this causes 'git diff' to showTorok Edwin2009-08-281-1/+1
| | | | | | | | | that all the Makefiles changed mode. Fix this by tellint install-sh to chmod only to 0644, these are not executable files after all! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80371 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r66765 and r66766. These were causing build failures on Darwin.Bill Wendling2009-03-121-17/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66770 91177308-0d34-0410-b5e6-96231b3b80d8
* Set ARCH to x86 on mixed 32/64-bit Linux systems.Nick Lewycky2009-03-121-0/+17
| | | | | | | Remove the explicit if OS = Darwin test around the setting of -m32/-m64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66765 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove configurey-fu to autodetect hash_map and hash_set now that they areNick Lewycky2009-03-092-119/+0
| | | | | | | no longer used in LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66406 91177308-0d34-0410-b5e6-96231b3b80d8
* Autodetect the availability of -export-dynamic in the linker.Nick Lewycky2009-03-052-19/+41
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66156 91177308-0d34-0410-b5e6-96231b3b80d8
* When looking for executable extensions, ignore .dSYM, as that's the debug ↵Jim Grosbach2008-09-261-1/+1
| | | | | | info directory on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56667 91177308-0d34-0410-b5e6-96231b3b80d8
* Reapply majority of r55557 but with the changes to compilation flagsDaniel Dunbar2008-09-021-0/+22
| | | | | | | disabled until issues with gcc 4.1 on linux 32-bit are resolved. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55636 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r55557, it is causing linking failures on 32bit linux.Matthijs Kooijman2008-09-021-22/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55628 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable -fvisibility-inlines-hidden by default for compilers whichDaniel Dunbar2008-08-301-0/+22
| | | | | | | support it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55557 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix broken default help strings for enable-shared, enable-static, and ↵Tanya Lattner2007-09-171-3/+3
| | | | | | enable-fast-install. Regenerate configure script. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42066 91177308-0d34-0410-b5e6-96231b3b80d8
* Hack the shared library extension for dylib. The existing code just looksReid Spencer2007-04-111-1/+1
| | | | | | | | plain wrong since $module was never defined so we always get .so which is broken on Darwin. Just force it to .dylib. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35873 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a configure warning noticed by Duncan Sands.Reid Spencer2007-01-031-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32844 91177308-0d34-0410-b5e6-96231b3b80d8
* Expose the sanity.Reid Spencer2006-12-041-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32193 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the huge_val test run a C++ program not CReid Spencer2006-11-031-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31422 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a check to see if HUGE_VAL is sane or not.Reid Spencer2006-11-031-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31416 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR738:Reid Spencer2006-08-241-2/+3
| | | | | | | | Demote check for bison from error to warning and make sure that the makefile can handle an empty definition for BISON variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29861 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR876:Reid Spencer2006-08-141-1/+1
| | | | | | | | | Fix problem setting the USE_{program} variable. It should be set to a Makefile variable definition line, not just "1". Problem noted by Kenneth Hoste. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29682 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR876:Reid Spencer2006-08-141-1/+1
| | | | | | | | Fix problem noticed by Kenneth Hoste. The wrong name for a variable was being set and subsequently uses of the correct name were empty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29681 91177308-0d34-0410-b5e6-96231b3b80d8
* Recover the lost diff between 1.5 and 1.6.Evan Cheng2006-08-091-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29577 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the auto* tools: autoconf 2.60, libtool 1.5.22, automake 1.9.6.Reid Spencer2006-08-042-515/+894
| | | | | | | | | | Update ltld.[ch] to version 1.5.22. Correct the notes about updating these tools (autoconf/README.TXT) Add configure options for getting the correct option for including a whole archive when linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29529 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an extraneous use of ${ac_exeext}. Patch by Anton Korobeynikov.Reid Spencer2006-07-261-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29306 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR814:Reid Spencer2006-07-261-0/+42
| | | | | | | | Add a macro for getting the build host extension for executable. Patch contributed by Anton Korobeynikov. Thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29304 91177308-0d34-0410-b5e6-96231b3b80d8
* When on darwin, compiler_flags need to be percolated down to the 'gcc -r'Chris Lattner2006-04-191-1/+1
| | | | | | | command line so that relinked .o files can be built universal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27837 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it possible to default the llvm_src and llvm_obj variables based onReid Spencer2006-04-181-2/+2
| | | | | | | | the arguments to the macro. This better supports the AutoRegen.sh script in projects/sample/autoconf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27797 91177308-0d34-0410-b5e6-96231b3b80d8
* Update to llvm-config tool, by Erik Kidd:Reid Spencer2006-03-231-0/+16
| | | | | | | | | | | | 1. Check for Perl and only build llvm-config if its available. 2. Add some virtual components 3. Don't depend on "standard" location for Perl, but configured location 4. Document the tool with a POD file. This version is now ready for testing by users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27005 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR678:Reid Spencer2005-12-221-2/+8
| | | | | | | | | * Make it possible to pass a fourth argument to the CHECK_PROGRAM_SANITY macro that controls whether a non-sane program generates an error or a warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24931 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of bash specific syntax for variable dereferencing, replacing itReid Spencer2005-07-251-22/+22
| | | | | | | with the more crufty (but more widely available) "eval" command. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22509 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a parameter to the FIND_STD_PROGRAM macro that allows an alternate nameReid Spencer2005-07-171-7/+13
| | | | | | | | | for the command line options. This helps with situations where the executable name sought is too generic and a more meaningful name needs to be used for the command line options. It also helps satisfy picky project leaders. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22461 91177308-0d34-0410-b5e6-96231b3b80d8
* Add two new checks for use in LLVM configuration files:Reid Spencer2005-07-172-0/+134
| | | | | | | | | | | | | | | | * FIND_STD_PROGRAM will find a program in the path or using --with options and verify that the path/bin/program is executable. Also allows checking for include files and libraries. If found, USE_PROGRAM is set, otherwise its not set. Also sets PROGRAM_BIN (bin directory), and PROGRAM_DIR (top level directory). If headers are found, sets PROGRAM_INC. If libraries are found, sets PROGRAM_LIB. * CHECK_PROGRAM_SANITY can be used to run a program with some option that only produces information output and requires no input. If the output matches a regular expression, the program passes the sanity check. Otherwise, an error occurs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22458 91177308-0d34-0410-b5e6-96231b3b80d8
* This macro cannot assume that the location of install-sh and mkinstalldirsReid Spencer2005-02-241-1/+3
| | | | | | | | | | | | is in ${srcdir}/autoconf because that is only true if the project is LLVM. For other projects (e.g. sample), we don't want to have to distribute the mkinstalldirs or install-sh programs because it opens a window of breakage for projects. So, this change requires that the llvm_src variable be set up via another AC_CONFIG_COMMANDS call. For LLVM this is done in the configure.ac. For projects its done in the LLVM_CONFIG_PROJECT macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20304 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new macro for configuring projects, LLVM_CONFIG_PROJECT. This macroReid Spencer2005-02-241-0/+14
| | | | | | | | | | takes care of the --with-llvmsrc and --with-llvmobj options for the project It was moved here from the project's configure.ac file because there is some tricky handling of the llvm_src variable to tell the project where the llvm source tree is (for mkinstalldirs and install-sh commands). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20303 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a Bourne Shell syntax error in a testReid Spencer2004-12-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19183 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix one of the names to not have a . in front of it.Reid Spencer2004-12-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19182 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-271-0/+17
| | | | | | | Provide a check to determine if /dev/zero is needed for AllocateRWX function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19147 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide a value for HAVE_MMAP_ANONYMOUS variable, for consistency withReid Spencer2004-12-271-1/+1
| | | | | | | other #define's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19145 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor syntactical change to make this a little easier to comprehend.Reid Spencer2004-12-131-5/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18888 91177308-0d34-0410-b5e6-96231b3b80d8