source: libcfa/configure.ac @ ff1e0f38

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since ff1e0f38 was ff1e0f38, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

configure flags are now propagated properly to libcfa

  • Property mode set to 100644
File size: 2.0 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.68])
5AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca])
6AC_CONFIG_AUX_DIR([./automake])
7
8AM_INIT_AUTOMAKE([subdir-objects])
9
10# Allow program name tansformation
11# will fill program_transform_name with appropriate sed regex
12AC_ARG_PROGRAM
13
14AC_CANONICAL_BUILD
15AC_CANONICAL_HOST
16
17AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
18AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory])
19
20CFACC=${DRIVER_DIR}cfa
21CFACPP=${DRIVER_DIR}cfa-cpp
22AC_SUBST(CFACC)
23AC_SUBST(CFACPP)
24
25#==============================================================================
26# Installation paths
27if test "x$prefix" = "xNONE"; then
28        cfa_prefix=${ac_default_prefix}
29else
30        cfa_prefix=${prefix}
31fi
32AC_DEFINE_UNQUOTED(CFA_PREFIX, "${cfa_prefix}", [Location of cfa install.])
33AC_SUBST(CFA_PREFIX, ${cfa_prefix})
34
35if test "$includedir" = '${prefix}/include'; then
36        cfa_incdir="${cfa_prefix}/include/${cfa_name}"
37else
38        cfa_incdir=${includedir}
39fi
40AC_DEFINE_UNQUOTED(CFA_INCDIR, "${cfa_incdir}", [Location of include files.])
41AC_SUBST(CFA_INCDIR, ${cfa_incdir})
42
43if test "$bindir" = '${exec_prefix}/bin'; then
44        cfa_bindir="${cfa_prefix}/bin"
45else
46        cfa_bindir=${bindir}
47fi
48AC_DEFINE_UNQUOTED(CFA_BINDIR, "${cfa_bindir}", [Location of cfa command.])
49AC_SUBST(CFA_BINDIR, ${cfa_bindir})
50
51if test "$libdir" = '${exec_prefix}/lib'; then
52        cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
53else
54        cfa_libdir=${libdir}
55fi
56AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
57AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
58
59# Checks for programs.
60AC_PROG_CXX
61AC_PROG_CC
62AM_PROG_AS
63AC_PROG_INSTALL
64AC_PROG_MAKE_SET
65AC_PROG_RANLIB
66
67AC_CONFIG_FILES([
68        Makefile
69        src/Makefile
70        prelude/Makefile
71        ])
72
73AC_OUTPUT()
74
75# Final text
76AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".)
Note: See TracBrowser for help on using the repository browser.