1 dnl **************************************************************************
3 dnl **************************************************************************
4 AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
6 dnl Place all of the extra autoconf files into the config subdirectory
7 AC_CONFIG_AUX_DIR([autoconf])
9 dnl Configure a header file
11 dnl Configure Makefiles
12 dnl List every Makefile that ecists within your source tree
14 AC_CONFIG_MAKEFILE(Makefile)
15 AC_CONFIG_MAKEFILE(lib/Makefile)
16 AC_CONFIG_MAKEFILE(lib/sample/Makefile)
17 AC_CONFIG_MAKEFILE(tools/Makefile)
18 AC_CONFIG_MAKEFILE(tools/sample/Makefile)
20 dnl **************************************************************************
21 dnl * Determine which system we are building on
22 dnl **************************************************************************
24 dnl **************************************************************************
25 dnl * Check for programs.
26 dnl **************************************************************************
28 dnl Verify that the source directory is valid
29 AC_CONFIG_SRCDIR(["Makefile.common.in"])
31 dnl **************************************************************************
32 dnl * Check for libraries.
33 dnl **************************************************************************
35 dnl **************************************************************************
36 dnl * Checks for header files.
37 dnl **************************************************************************
39 dnl **************************************************************************
40 dnl * Checks for typedefs, structures, and compiler characteristics.
41 dnl **************************************************************************
43 dnl **************************************************************************
44 dnl * Checks for library functions.
45 dnl **************************************************************************
47 dnl **************************************************************************
48 dnl * Enable various compile-time options
49 dnl **************************************************************************
51 dnl **************************************************************************
52 dnl * Set the location of various third-party software packages
53 dnl **************************************************************************
55 dnl Location of LLVM source code
56 AC_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 dnl Location of LLVM object code
59 AC_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 dnl **************************************************************************
62 dnl * Create the output files
63 dnl **************************************************************************
64 AC_OUTPUT(Makefile.common)