Changeset e24f13a for configure.ac


Ignore:
Timestamp:
Jun 2, 2016, 6:32:06 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, 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:
a3e7d34
Parents:
4df85197
Message:

modify makefile to allow different compilers, use constructor cast in iostream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r4df85197 re24f13a  
    2020
    2121AC_ARG_WITH(backend-compiler,
    22             [  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible) ],
    23             backcompiler=$withval, backcompiler="")
    24   if test x$backcompiler != x; then
    25         AC_DEFINE_UNQUOTED(GCC_PATH, "${backcompiler}")
    26         BACKEND_CC=${backcompiler}
    27   else
    28         AC_PATH_PROG(GCC_PATH, gcc, N/A)
    29         if test "$GCC_PATH" = "N/A"; then
     22        [  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible) ],
     23        backendcompiler=$withval, backendcompiler="")
     24if test "x$backendcompiler" != x; then
     25        BACKEND_CC=${backendcompiler}
     26else
     27        AC_PATH_PROG(BACKEND_CC, gcc, [])
     28        if test "x$BACKEND_CC" = "x"; then
    3029                AC_MSG_ERROR(some version of gcc is needed. Get it at ftp://ftp.gnu.org)
    3130                exit 1
    3231        fi
    33         AC_DEFINE_UNQUOTED(GCC_PATH, "${GCC_PATH}", [Path/name of C compiler.])
    34         BACKEND_CC=${GCC_PATH}
    35   fi
    36 AC_SUBST(BACKEND_CC)
     32fi
     33AC_DEFINE_UNQUOTED(CFA_BACKEND_CC, "${BACKEND_CC}", [Location of include files.])
     34AC_SUBST(CFA_BACKEND_CC)
    3735
    3836if test "x$prefix" = "xNONE"; then
Note: See TracChangeset for help on using the changeset viewer.