blob: 3f5326e5e77b11892ae97586ebc6c28538c8349d [file] [log] [blame]
Reid Spencer820dab72004-09-04 19:48:50 +00001dnl **************************************************************************
2dnl * Initialize
3dnl **************************************************************************
4AC_INIT([[[Stacker]]],[[[1.0]]],[rspencer@x10sys.com])
5
6dnl Place all of the extra autoconf files into the config subdirectory
7AC_CONFIG_AUX_DIR([autoconf])
8
Reid Spencer011f5ca2004-09-15 06:19:53 +00009dnl Verify that the source directory is valid
Reid Spencerbb874262004-12-27 08:51:55 +000010AC_CONFIG_SRCDIR([lib/compiler/StackerParser.y])
11
12AC_CONFIG_FILES([Makefile.common])
Reid Spencer820dab72004-09-04 19:48:50 +000013
14dnl Configure Makefiles
Reid Spencerbb874262004-12-27 08:51:55 +000015dnl List every Makefile that exists within your source tree
Reid Spencer820dab72004-09-04 19:48:50 +000016
17AC_CONFIG_MAKEFILE(Makefile)
18AC_CONFIG_MAKEFILE(lib/Makefile)
19AC_CONFIG_MAKEFILE(lib/compiler/Makefile)
20AC_CONFIG_MAKEFILE(lib/runtime/Makefile)
Reid Spencere07d9aa2004-09-05 16:42:30 +000021AC_CONFIG_MAKEFILE(test/Makefile)
Reid Spencer820dab72004-09-04 19:48:50 +000022AC_CONFIG_MAKEFILE(tools/Makefile)
23AC_CONFIG_MAKEFILE(tools/stkrc/Makefile)
24
25dnl **************************************************************************
26dnl * Determine which system we are building on
27dnl **************************************************************************
28
29dnl **************************************************************************
30dnl * Check for programs.
31dnl **************************************************************************
Reid Spencer011f5ca2004-09-15 06:19:53 +000032AC_PROG_LIBTOOL
33dnl Get libtool's idea of what the shared library suffix is.
34dnl (This is a hack; it relies on undocumented behavior.)
35AC_MSG_CHECKING([for shared library suffix])
36eval "SHLIBEXT=$shrext"
37AC_MSG_RESULT($SHLIBEXT)
38dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint).
39AC_SUBST(SHLIBEXT,$SHLIBEXT)
40AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT",
41 [Extension that shared libraries have,
42 e.g., ".so".])
43
Reid Spencer820dab72004-09-04 19:48:50 +000044
Reid Spencer820dab72004-09-04 19:48:50 +000045
46dnl **************************************************************************
47dnl * Check for libraries.
48dnl **************************************************************************
49
50dnl **************************************************************************
51dnl * Checks for header files.
52dnl **************************************************************************
53
54dnl **************************************************************************
55dnl * Checks for typedefs, structures, and compiler characteristics.
56dnl **************************************************************************
57
58dnl **************************************************************************
59dnl * Checks for library functions.
60dnl **************************************************************************
61
62dnl **************************************************************************
63dnl * Enable various compile-time options
64dnl **************************************************************************
65
66dnl **************************************************************************
67dnl * Set the location of various third-party software packages
68dnl **************************************************************************
69
70dnl Location of LLVM source code
71AC_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`]))
72
73dnl Location of LLVM object code
74AC_ARG_WITH(llvmobj,AC_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`]))
75
76dnl **************************************************************************
77dnl * Create the output files
78dnl **************************************************************************
Reid Spencerbb874262004-12-27 08:51:55 +000079AC_OUTPUT