Changeset 58fe85a for configure.ac


Ignore:
Timestamp:
Jan 7, 2021, 3:27:00 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
2b4daf2, 64aeca0
Parents:
3c64c668 (diff), eef8dfb (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 park_unpark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r3c64c668 r58fe85a  
    33
    44AC_PREREQ([2.68])
    5 AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca])
     5AC_INIT([cfa-cc],[1.0.0],[cforall@plg.uwaterloo.ca])
    66AC_CONFIG_AUX_DIR([automake])
    77AC_CONFIG_MACRO_DIRS([automake])
    8 #AC_CONFIG_SRCDIR([src/main.cc])
    98AC_CONFIG_HEADERS([config.h:src/config.h.in])
    109AM_SILENT_RULES([yes])
    1110
    12 m4_include([automake/cfa.m4])
     11m4_include([tools/build/cfa.m4])
    1312
    1413# don't use the default CFLAGS as they unconditonnaly add -O2
    1514: ${CFLAGS=""}
     15: ${CXXFLAGS=""}
    1616
    1717AM_INIT_AUTOMAKE([subdir-objects])
     
    2424#Trasforming cc1 will break compilation
    2525M4CFA_PROGRAM_NAME
     26
     27#==============================================================================
     28# New AST toggling support
     29AH_TEMPLATE([CFA_USE_NEW_AST],[Sets whether or not to use the new-ast, this is adefault value and can be overrided by --old-ast and --new-ast])
     30DEFAULT_NEW_AST="True"
     31AC_ARG_ENABLE(new-ast,
     32        [  --enable-new-ast     whether or not to use new ast as the default AST algorithm],
     33        [case "${enableval}" in
     34                yes) newast=true ; DEFAULT_NEW_AST="True"  ;;
     35                no)  newast=false; DEFAULT_NEW_AST="False" ;;
     36                *) AC_MSG_ERROR([bad value ${enableval} for --enable-new-ast]) ;;
     37        esac],[newast=true])
     38AC_DEFINE_UNQUOTED([CFA_USE_NEW_AST], $newast)
     39AC_SUBST(DEFAULT_NEW_AST)
    2640
    2741#==============================================================================
     
    6478        enable_distcc=$enableval, enable_distcc=no)
    6579
     80AC_ARG_WITH(bwlimit,
     81        [  --with-bwlimit=RATE     RATE the maximum rate at which rsync will be limited when using distributed builds],
     82        [], [])
     83
    6684AM_CONDITIONAL([ENABLE_DISTCC], [test x$enable_distcc = xyes])
    6785HAS_DISTCC="False"
     
    85103# Create variables for commonly used targets
    86104
    87 TOP_SRCDIR="$(readlink -m $ac_confdir/)/"
    88 TOP_BUILDDIR="$(readlink -m $ac_pwd/)/"
     105TOP_SRCDIR="$(readlink -e $ac_abs_confdir/)/"
     106TOP_BUILDDIR="$(readlink -e $ac_pwd/)/"
    89107
    90108AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory])
     
    121139                \'--enable-gprofiler=*) ;;
    122140                \'--disable-gprofiler) ;;
     141
     142                # skip the target hosts
     143                \'--enable-new-ast=*) ;;
     144                \'--disable-new-ast) ;;
     145
     146                # skip this, it only causes problems
     147                \'--srcdir=*) ;;
    123148
    124149                # append all other arguments to the sub configure arguments
     
    186211
    187212        LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
     213        LIBCFA_1TARGET_DIR="${lib_dir}"
    188214        LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
    189215
     
    197223
    198224AC_SUBST(LIBCFA_TARGET_DIRS)
     225AC_SUBST(LIBCFA_1TARGET_DIR)
    199226AC_SUBST(LIBCFA_TARGET_MAKEFILES)
    200227
     
    262289        driver/Makefile
    263290        src/Makefile
    264         benchmark/Makefile
     291        libcfa/Makefile:libcfa/Makefile.dist.in
    265292        tests/Makefile
    266         longrun_tests/Makefile
    267         tools/Makefile
    268         tools/prettyprinter/Makefile
    269293        ])
     294
     295# Some of our makefile don't need to be distributed
     296AM_CONDITIONAL([CFORALL_DISTRIBUTE], [test -e $TOP_SRCDIR/autogen.sh])
     297AM_COND_IF([CFORALL_DISTRIBUTE], [
     298        AC_CONFIG_FILES([
     299                longrun_tests/Makefile
     300                benchmark/Makefile
     301                benchmark/io/http/Makefile
     302                tools/Makefile
     303                tools/prettyprinter/Makefile
     304        ])
     305
     306        AC_OUTPUT(benchmark/Cargo.toml)
     307])
    270308
    271309AC_CONFIG_LINKS([tests/test.py:tests/test.py])
Note: See TracChangeset for help on using the changeset viewer.