ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
|
Last change
on this file since 8e27665d was 575a6e5, checked in by Thierry Delisle <tdelisle@…>, 7 years ago |
|
Cross compilation appears to be working
|
-
Property mode
set to
100644
|
|
File size:
1.9 KB
|
| Line | |
|---|
| 1 | # -*- Autoconf -*-
|
|---|
| 2 | # Process this file with autoconf to produce a configure script.
|
|---|
| 3 |
|
|---|
| 4 | AC_PREREQ([2.68])
|
|---|
| 5 | AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca])
|
|---|
| 6 | AC_CONFIG_AUX_DIR([./automake])
|
|---|
| 7 | AM_SILENT_RULES([yes])
|
|---|
| 8 |
|
|---|
| 9 | m4_include([../automake/cfa.m4])
|
|---|
| 10 |
|
|---|
| 11 | AM_INIT_AUTOMAKE([subdir-objects])
|
|---|
| 12 |
|
|---|
| 13 | # don't use the default CFLAGS as they unconditonnaly add -O2
|
|---|
| 14 | : ${CFLAGS=""}
|
|---|
| 15 |
|
|---|
| 16 | # Allow program name tansformation
|
|---|
| 17 | # will fill program_transform_name with appropriate sed regex
|
|---|
| 18 | AC_ARG_PROGRAM
|
|---|
| 19 |
|
|---|
| 20 | AC_ARG_VAR(ARCHITECTURE, [The architecture to use when building libcfa])
|
|---|
| 21 | AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
|
|---|
| 22 | AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory])
|
|---|
| 23 |
|
|---|
| 24 | CFACC=${DRIVER_DIR}cfa
|
|---|
| 25 | CFACPP=${DRIVER_DIR}cfa-cpp
|
|---|
| 26 | AC_SUBST(CFACC)
|
|---|
| 27 | AC_SUBST(CFACPP)
|
|---|
| 28 |
|
|---|
| 29 | #==============================================================================
|
|---|
| 30 | #Handle specific flags
|
|---|
| 31 | case $ARCHITECTURE in
|
|---|
| 32 | "x64" ) ARCH_FLAGS="-m64";;
|
|---|
| 33 | "x86" ) ARCH_FLAGS="-m32";;
|
|---|
| 34 | "arm" ) ARCH_FLAGS="";;
|
|---|
| 35 | esac
|
|---|
| 36 |
|
|---|
| 37 | AC_SUBST(ARCH_FLAGS)
|
|---|
| 38 |
|
|---|
| 39 | case $CONFIGURATION in
|
|---|
| 40 | "debug" )
|
|---|
| 41 | CONFIG_CFLAGS="-O0 -g"
|
|---|
| 42 | CONFIG_CFAFLAGS="-debug"
|
|---|
| 43 | ;;
|
|---|
| 44 | "nodebug" )
|
|---|
| 45 | CONFIG_CFLAGS="-O2 -s"
|
|---|
| 46 | CONFIG_CFAFLAGS="-nodebug"
|
|---|
| 47 | ;;
|
|---|
| 48 | "nolib" )
|
|---|
| 49 | CONFIG_CFLAGS=""
|
|---|
| 50 | CONFIG_CFAFLAGS=""
|
|---|
| 51 | ;;
|
|---|
| 52 | esac
|
|---|
| 53 |
|
|---|
| 54 | AC_SUBST(CONFIG_CFLAGS)
|
|---|
| 55 | AC_SUBST(CONFIG_CFAFLAGS)
|
|---|
| 56 |
|
|---|
| 57 | #==============================================================================
|
|---|
| 58 | #Trasforming cc1 will break compilation
|
|---|
| 59 | M4CFA_PROGRAM_NAME
|
|---|
| 60 |
|
|---|
| 61 | #==============================================================================
|
|---|
| 62 | # Installation paths
|
|---|
| 63 | M4CFA_PARSE_PREFIX
|
|---|
| 64 |
|
|---|
| 65 | # Checks for programs.
|
|---|
| 66 | AC_PROG_CXX
|
|---|
| 67 | AC_PROG_CC
|
|---|
| 68 | AM_PROG_AS
|
|---|
| 69 | AC_PROG_INSTALL
|
|---|
| 70 | AC_PROG_MAKE_SET
|
|---|
| 71 | AC_PROG_RANLIB
|
|---|
| 72 |
|
|---|
| 73 | AC_CONFIG_FILES([
|
|---|
| 74 | Makefile
|
|---|
| 75 | src/Makefile
|
|---|
| 76 | prelude/Makefile
|
|---|
| 77 | ])
|
|---|
| 78 |
|
|---|
| 79 | AC_OUTPUT()
|
|---|
| 80 |
|
|---|
| 81 | # Final text
|
|---|
| 82 | AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".) |
|---|
Note:
See
TracBrowser
for help on using the repository browser.