blob: 67e93aaecdb35c35b913e5cd5601d682bb33bd9d [file] [log] [blame]
John Criswell607b1ea2003-10-16 01:44:20 +00001dnl **************************************************************************
2dnl * Initialize
3dnl **************************************************************************
4AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
5
6dnl Place all of the extra autoconf files into the config subdirectory
7AC_CONFIG_AUX_DIR([autoconf])
8
9dnl Configure a header file
Reid Spencer9964cd82005-01-01 09:26:55 +000010AC_CONFIG_FILES([Makefile.common])
John Criswell607b1ea2003-10-16 01:44:20 +000011
12dnl Configure Makefiles
13dnl List every Makefile that ecists within your source tree
14
15AC_CONFIG_MAKEFILE(Makefile)
16AC_CONFIG_MAKEFILE(lib/Makefile)
17AC_CONFIG_MAKEFILE(lib/sample/Makefile)
18AC_CONFIG_MAKEFILE(tools/Makefile)
19AC_CONFIG_MAKEFILE(tools/sample/Makefile)
20
21dnl **************************************************************************
22dnl * Determine which system we are building on
23dnl **************************************************************************
24
25dnl **************************************************************************
26dnl * Check for programs.
27dnl **************************************************************************
28
29dnl Verify that the source directory is valid
30AC_CONFIG_SRCDIR(["Makefile.common.in"])
31
32dnl **************************************************************************
33dnl * Check for libraries.
34dnl **************************************************************************
35
36dnl **************************************************************************
37dnl * Checks for header files.
38dnl **************************************************************************
39
40dnl **************************************************************************
41dnl * Checks for typedefs, structures, and compiler characteristics.
42dnl **************************************************************************
43
44dnl **************************************************************************
45dnl * Checks for library functions.
46dnl **************************************************************************
47
48dnl **************************************************************************
49dnl * Enable various compile-time options
50dnl **************************************************************************
51
52dnl **************************************************************************
53dnl * Set the location of various third-party software packages
54dnl **************************************************************************
55
56dnl Location of LLVM source code
57AC_ARG_WITH(llvmsrc,AC_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]),AC_SUBST(LLVM_SRC,[$withval]),AC_SUBST(LLVM_SRC,[`cd ${srcdir}/../..; pwd`]))
58
59dnl Location of LLVM object code
60AC_ARG_WITH(llvmobj,AC_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`]))
61
62dnl **************************************************************************
63dnl * Create the output files
64dnl **************************************************************************
Reid Spencer9964cd82005-01-01 09:26:55 +000065AC_OUTPUT