Ignore:
Timestamp:
Aug 3, 2018, 1:57:12 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
ba9baad
Parents:
c59712e
Message:

configure flags are now propagated properly to libcfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure.ac

    rc59712e rff1e0f38  
    1616
    1717AC_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})
    1858
    1959# Checks for programs.
Note: See TracChangeset for help on using the changeset viewer.