John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 1 | dnl ************************************************************************** |
| 2 | dnl * Initialize |
| 3 | dnl ************************************************************************** |
| 4 | AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain]) |
| 5 | |
Reid Spencer | 30ea478 | 2006-04-18 06:27:47 +0000 | [diff] [blame] | 6 | dnl Identify where LLVM source tree is |
| 7 | LLVM_SRC_ROOT="../../" |
| 8 | LLVM_OBJ_ROOT="../../" |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 9 | dnl Tell autoconf that the auxilliary files are actually located in |
| 10 | dnl the LLVM autoconf directory, not here. |
Reid Spencer | 30ea478 | 2006-04-18 06:27:47 +0000 | [diff] [blame] | 11 | AC_CONFIG_AUX_DIR($LLVM_SRC_ROOT/autoconf) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 12 | |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 13 | dnl Tell autoconf that this is an LLVM project being configured |
| 14 | dnl This provides the --with-llvmsrc and --with-llvmobj options |
Reid Spencer | 30ea478 | 2006-04-18 06:27:47 +0000 | [diff] [blame] | 15 | LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT) |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 16 | |
| 17 | dnl Verify that the source directory is valid |
| 18 | AC_CONFIG_SRCDIR(["Makefile.common.in"]) |
| 19 | |
| 20 | dnl Configure a common Makefile |
Reid Spencer | 38fd88a | 2005-01-05 06:41:10 +0000 | [diff] [blame] | 21 | AC_CONFIG_FILES(Makefile.common) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 22 | |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 23 | dnl Configure project makefiles |
| 24 | dnl List every Makefile that exists within your source tree |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 25 | AC_CONFIG_MAKEFILE(Makefile) |
| 26 | AC_CONFIG_MAKEFILE(lib/Makefile) |
| 27 | AC_CONFIG_MAKEFILE(lib/sample/Makefile) |
| 28 | AC_CONFIG_MAKEFILE(tools/Makefile) |
| 29 | AC_CONFIG_MAKEFILE(tools/sample/Makefile) |
| 30 | |
| 31 | dnl ************************************************************************** |
| 32 | dnl * Determine which system we are building on |
| 33 | dnl ************************************************************************** |
| 34 | |
| 35 | dnl ************************************************************************** |
| 36 | dnl * Check for programs. |
| 37 | dnl ************************************************************************** |
| 38 | |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 39 | dnl ************************************************************************** |
| 40 | dnl * Check for libraries. |
| 41 | dnl ************************************************************************** |
| 42 | |
| 43 | dnl ************************************************************************** |
| 44 | dnl * Checks for header files. |
| 45 | dnl ************************************************************************** |
| 46 | |
| 47 | dnl ************************************************************************** |
| 48 | dnl * Checks for typedefs, structures, and compiler characteristics. |
| 49 | dnl ************************************************************************** |
| 50 | |
| 51 | dnl ************************************************************************** |
| 52 | dnl * Checks for library functions. |
| 53 | dnl ************************************************************************** |
| 54 | |
| 55 | dnl ************************************************************************** |
| 56 | dnl * Enable various compile-time options |
| 57 | dnl ************************************************************************** |
| 58 | |
| 59 | dnl ************************************************************************** |
| 60 | dnl * Set the location of various third-party software packages |
| 61 | dnl ************************************************************************** |
| 62 | |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 63 | dnl ************************************************************************** |
| 64 | dnl * Create the output files |
| 65 | dnl ************************************************************************** |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 66 | |
| 67 | dnl This must be last |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 68 | AC_OUTPUT |