Changeset 66f8528 for configure.ac


Ignore:
Timestamp:
Dec 15, 2016, 5:16:42 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
43385ca, f7ff3fb
Parents:
5802a4f (diff), 596f987b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into tuples

Conflicts:

src/ResolvExpr/CommonType.cc
src/tests/.expect/32/extension.txt
src/tests/.expect/32/gccExtensions.txt
src/tests/.expect/64/declarationSpecifier.txt
src/tests/.expect/64/extension.txt
src/tests/.expect/64/gccExtensions.txt
src/tests/.expect/castError.txt
src/tests/Makefile.am

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r5802a4f r66f8528  
    5353AC_SUBST(CFA_BACKEND_CC)
    5454
     55
     56
     57AC_ARG_ENABLE(target-release, AS_HELP_STRING([--enable-target-release], [Build and install the release target]))
     58AC_ARG_ENABLE(target-debug, AS_HELP_STRING([--enable-target-debug], [Build and install the debug target]))
     59
     60case "$enable_target_release" in
     61        yes)
     62                case "$enable_target_debug" in
     63                        yes)
     64                                build_release="yes"
     65                                build_debug="yes"
     66                                ;;
     67                        no)
     68                                build_release="yes"
     69                                build_debug="no"
     70                                ;;
     71                        *)
     72                                build_release="yes"
     73                                build_debug="no"
     74                                ;;
     75                esac
     76                ;;
     77        no)
     78                case "$enable_target_debug" in
     79                        yes)
     80                                build_release="no"
     81                                build_debug="yes"
     82                                ;;
     83                        no)
     84                                build_release="no"
     85                                build_debug="no"
     86                                ;;
     87                        *)
     88                                build_release="no"
     89                                build_debug="yes"
     90                                ;;
     91                esac
     92                ;;
     93        *)
     94                case "$enable_target_debug" in
     95                        yes)
     96                                build_release="no"
     97                                build_debug="yes"
     98                                ;;
     99                        no)
     100                                build_release="yes"
     101                                build_debug="no"
     102                                ;;
     103                        *)
     104                                build_release="yes"
     105                                build_debug="yes"
     106                                ;;
     107                esac
     108                ;;
     109esac
     110
     111AM_CONDITIONAL([BUILD_RELEASE], [test "x$build_release" = "xyes"])
     112AM_CONDITIONAL([BUILD_DEBUG], [test "x$build_debug" = "xyes"])
     113AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"])
     114
    55115if test "x$prefix" = "xNONE"; then
    56116        cfa_prefix=${ac_default_prefix}
     
    87147AC_DEFINE_UNQUOTED(CFA_FLAGS, "${CFAFLAGS}", [compilation flags for cfa libraries and test programs.])
    88148AC_SUBST(CFA_FLAGS, ${CFAFLAGS})
     149
     150AC_CANONICAL_HOST
     151AC_SUBST([MACHINE_TYPE],[$host_cpu])
    89152
    90153# Checks for programs.
    91154AC_PROG_CXX
    92155AC_PROG_CC
     156AM_PROG_AS
    93157AM_PROG_CC_C_O  # deprecated
    94158# These are often not installed and people miss seeing the "no", so stop the configure.
     
    128192        src/examples/Makefile
    129193        src/tests/Makefile
     194        src/prelude/Makefile
    130195        src/libcfa/Makefile
    131196        ])
     
    133198AC_OUTPUT
    134199
     200AM_COND_IF([BUILD_RELEASE],
     201        [AM_COND_IF([BUILD_DEBUG],
     202                [AC_MSG_NOTICE(Building libcfa for target: release & debug)],
     203                [AC_MSG_NOTICE(Building libcfa for target: release)])],
     204        [AM_COND_IF([BUILD_DEBUG],
     205                [AC_MSG_NOTICE(Building libcfa for target: debug)],
     206                [AC_MSG_NOTICE(Running cfa without libcfa)])])
     207
    135208# Final text
    136209AC_MSG_RESULT(Cforall configuraton completed. Type "make -j 8 install".)
Note: See TracChangeset for help on using the changeset viewer.