source: libcfa/configure.ac @ 28582b2

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 28582b2 was 37fe352, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Added proper multi-lib handling, tests still do not work and arm support is broken

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[c59712e]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
[37fe352]8m4_include([../automake/cfa.m4])
9
[c59712e]10AM_INIT_AUTOMAKE([subdir-objects])
11
12# Allow program name tansformation
13# will fill program_transform_name with appropriate sed regex
14AC_ARG_PROGRAM
15
[37fe352]16AC_ARG_VAR(ARCHITECTURE,  [The architecture  to use when building libcfa])
[c59712e]17AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
[ff1e0f38]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
[37fe352]25case $ARCHITECTURE in
26        "x64"        ) ARCH_FLAGS="-m64";;
27        "x86"        ) ARCH_FLAGS="-m32";;
28        "arm"        ) ARCH_FLAGS="";;
29esac
[ff1e0f38]30
[37fe352]31AC_SUBST(ARCH_FLAGS)
[ff1e0f38]32
[37fe352]33#==============================================================================
34#Trasforming cc1 will break compilation
35M4CFA_PROGRAM_NAME
[ff1e0f38]36
[37fe352]37#==============================================================================
38# Installation paths
39M4CFA_PARSE_PREFIX
[c59712e]40
41# Checks for programs.
42AC_PROG_CXX
43AC_PROG_CC
44AM_PROG_AS
45AC_PROG_INSTALL
46AC_PROG_MAKE_SET
47AC_PROG_RANLIB
48
49AC_CONFIG_FILES([
50        Makefile
51        src/Makefile
52        prelude/Makefile
53        ])
54
55AC_OUTPUT()
56
57# Final text
58AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".)
Note: See TracBrowser for help on using the repository browser.