Changeset 6e4b913 for configure.ac


Ignore:
Timestamp:
Jul 10, 2016, 4:35:32 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
4e06c1e, c13d970
Parents:
07bc165
Message:

allow 32-bit compilation of cfa-cpp, and 32-bit compilation of CFA programs (including CFA libraries)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r07bc165 r6e4b913  
    1010
    1111if test "x${CXXFLAGS}" = "x"; then
    12    export CXXFLAGS="-std=c++11 -g -O2 ${CXXFLAGS}"
     12   export CXXFLAGS="-std=c++11 -g ${CXXFLAGS}"  # defaults, no -O2 for debugging and failures
    1313else
    14    export CXXFLAGS="-std=c++11 ${CXXFLAGS}"
     14   export CXXFLAGS="-std=c++11 ${CXXFLAGS}"     # flags from configure command
    1515fi
    1616
    1717AM_INIT_AUTOMAKE
    18 AM_MAINTAINER_MODE(enable)      # may require auto* software to be installed
     18AM_MAINTAINER_MODE(enable)                      # may require auto* software to be installed
    1919
    2020# Installation paths
     
    2323        [  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible) ],
    2424        backendcompiler=$withval, backendcompiler="")
    25 if test "x$backendcompiler" != x; then
     25if test "x$backendcompiler" != "x"; then
    2626        BACKEND_CC=${backendcompiler}
    2727else
    28         AC_PATH_PROG(BACKEND_CC, gcc, [])
     28        AC_PATH_PROG(BACKEND_CC, gcc, [])       # check gcc installed
    2929        if test "x$BACKEND_CC" = "x"; then
    3030                AC_MSG_ERROR(some version of gcc is needed. Get it at ftp://ftp.gnu.org)
     
    6666AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
    6767AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
     68
     69AC_DEFINE_UNQUOTED(CFA_FLAGS, "${CFAFLAGS}", [compilation flags for cfa libraries and test programs.])
     70AC_SUBST(CFA_FLAGS, ${CFAFLAGS})
    6871
    6972# Checks for programs.
Note: See TracChangeset for help on using the changeset viewer.