blob: 37c93a8f51529f9a219e5eb2e57d050f21fdf745 [file] [log] [blame]
John Criswell607b1ea2003-10-16 01:44:20 +00001dnl **************************************************************************
2dnl * Initialize
3dnl **************************************************************************
4AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
5
Reid Spencer30ea4782006-04-18 06:27:47 +00006dnl Identify where LLVM source tree is
7LLVM_SRC_ROOT="../../"
8LLVM_OBJ_ROOT="../../"
Reid Spencer1a87ddc2005-02-24 18:50:53 +00009dnl Tell autoconf that the auxilliary files are actually located in
10dnl the LLVM autoconf directory, not here.
Reid Spencer30ea4782006-04-18 06:27:47 +000011AC_CONFIG_AUX_DIR($LLVM_SRC_ROOT/autoconf)
John Criswell607b1ea2003-10-16 01:44:20 +000012
Reid Spencer1a87ddc2005-02-24 18:50:53 +000013dnl Tell autoconf that this is an LLVM project being configured
14dnl This provides the --with-llvmsrc and --with-llvmobj options
Reid Spencer30ea4782006-04-18 06:27:47 +000015LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT)
Reid Spencer1a87ddc2005-02-24 18:50:53 +000016
17dnl Verify that the source directory is valid
18AC_CONFIG_SRCDIR(["Makefile.common.in"])
19
20dnl Configure a common Makefile
Reid Spencer38fd88a2005-01-05 06:41:10 +000021AC_CONFIG_FILES(Makefile.common)
John Criswell607b1ea2003-10-16 01:44:20 +000022
Reid Spencer1a87ddc2005-02-24 18:50:53 +000023dnl Configure project makefiles
24dnl List every Makefile that exists within your source tree
John Criswell607b1ea2003-10-16 01:44:20 +000025AC_CONFIG_MAKEFILE(Makefile)
26AC_CONFIG_MAKEFILE(lib/Makefile)
27AC_CONFIG_MAKEFILE(lib/sample/Makefile)
28AC_CONFIG_MAKEFILE(tools/Makefile)
29AC_CONFIG_MAKEFILE(tools/sample/Makefile)
30
31dnl **************************************************************************
32dnl * Determine which system we are building on
33dnl **************************************************************************
34
35dnl **************************************************************************
36dnl * Check for programs.
37dnl **************************************************************************
38
John Criswell607b1ea2003-10-16 01:44:20 +000039dnl **************************************************************************
40dnl * Check for libraries.
41dnl **************************************************************************
42
43dnl **************************************************************************
44dnl * Checks for header files.
45dnl **************************************************************************
46
47dnl **************************************************************************
48dnl * Checks for typedefs, structures, and compiler characteristics.
49dnl **************************************************************************
50
51dnl **************************************************************************
52dnl * Checks for library functions.
53dnl **************************************************************************
54
55dnl **************************************************************************
56dnl * Enable various compile-time options
57dnl **************************************************************************
58
59dnl **************************************************************************
60dnl * Set the location of various third-party software packages
61dnl **************************************************************************
62
John Criswell607b1ea2003-10-16 01:44:20 +000063dnl **************************************************************************
64dnl * Create the output files
65dnl **************************************************************************
Reid Spencer1a87ddc2005-02-24 18:50:53 +000066
67dnl This must be last
Reid Spencer9964cd82005-01-01 09:26:55 +000068AC_OUTPUT