Changeset ff1e0f38 for libcfa/configure


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

    rc59712e rff1e0f38  
    618618CXXFLAGS
    619619CXX
     620CFA_LIBDIR
     621CFA_BINDIR
     622CFA_INCDIR
     623CFA_PREFIX
     624CFACPP
     625CFACC
     626DRIVER_DIR
     627CONFIGURATION
     628host_os
     629host_vendor
     630host_cpu
     631host
     632build_os
     633build_vendor
     634build_cpu
     635build
    620636AM_BACKSLASH
    621637AM_DEFAULT_VERBOSITY
     
    693709host_alias
    694710target_alias
     711CONFIGURATION
     712DRIVER_DIR
    695713CXX
    696714CXXFLAGS
     
    13151333  --program-suffix=SUFFIX            append SUFFIX to installed program names
    13161334  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     1335
     1336System types:
     1337  --build=BUILD     configure for building on BUILD [guessed]
     1338  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    13171339_ACEOF
    13181340fi
     
    13361358
    13371359Some influential environment variables:
     1360  CONFIGURATION
     1361              The configuration to use when building libcfa, options are:
     1362              deubg, nodebug, nolib (prelude-only)
     1363  DRIVER_DIR  The path to the cforall driver directory
    13381364  CXX         C++ compiler command
    13391365  CXXFLAGS    C++ compiler flags
     
    24672493# Allow program name tansformation
    24682494# will fill program_transform_name with appropriate sed regex
     2495
     2496
     2497# Make sure we can run config.sub.
     2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     2499  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2500
     2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     2502$as_echo_n "checking build system type... " >&6; }
     2503if ${ac_cv_build+:} false; then :
     2504  $as_echo_n "(cached) " >&6
     2505else
     2506  ac_build_alias=$build_alias
     2507test "x$ac_build_alias" = x &&
     2508  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     2509test "x$ac_build_alias" = x &&
     2510  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     2512  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2513
     2514fi
     2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     2516$as_echo "$ac_cv_build" >&6; }
     2517case $ac_cv_build in
     2518*-*-*) ;;
     2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     2520esac
     2521build=$ac_cv_build
     2522ac_save_IFS=$IFS; IFS='-'
     2523set x $ac_cv_build
     2524shift
     2525build_cpu=$1
     2526build_vendor=$2
     2527shift; shift
     2528# Remember, the first character of IFS is used to create $*,
     2529# except with old shells:
     2530build_os=$*
     2531IFS=$ac_save_IFS
     2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     2533
     2534
     2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     2536$as_echo_n "checking host system type... " >&6; }
     2537if ${ac_cv_host+:} false; then :
     2538  $as_echo_n "(cached) " >&6
     2539else
     2540  if test "x$host_alias" = x; then
     2541  ac_cv_host=$ac_cv_build
     2542else
     2543  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     2544    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2545fi
     2546
     2547fi
     2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     2549$as_echo "$ac_cv_host" >&6; }
     2550case $ac_cv_host in
     2551*-*-*) ;;
     2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     2553esac
     2554host=$ac_cv_host
     2555ac_save_IFS=$IFS; IFS='-'
     2556set x $ac_cv_host
     2557shift
     2558host_cpu=$1
     2559host_vendor=$2
     2560shift; shift
     2561# Remember, the first character of IFS is used to create $*,
     2562# except with old shells:
     2563host_os=$*
     2564IFS=$ac_save_IFS
     2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     2566
     2567
     2568
     2569
     2570
     2571
     2572CFACC=${DRIVER_DIR}cfa
     2573CFACPP=${DRIVER_DIR}cfa-cpp
     2574
     2575
     2576
     2577#==============================================================================
     2578# Installation paths
     2579if test "x$prefix" = "xNONE"; then
     2580        cfa_prefix=${ac_default_prefix}
     2581else
     2582        cfa_prefix=${prefix}
     2583fi
     2584
     2585cat >>confdefs.h <<_ACEOF
     2586#define CFA_PREFIX "${cfa_prefix}"
     2587_ACEOF
     2588
     2589CFA_PREFIX=${cfa_prefix}
     2590
     2591
     2592if test "$includedir" = '${prefix}/include'; then
     2593        cfa_incdir="${cfa_prefix}/include/${cfa_name}"
     2594else
     2595        cfa_incdir=${includedir}
     2596fi
     2597
     2598cat >>confdefs.h <<_ACEOF
     2599#define CFA_INCDIR "${cfa_incdir}"
     2600_ACEOF
     2601
     2602CFA_INCDIR=${cfa_incdir}
     2603
     2604
     2605if test "$bindir" = '${exec_prefix}/bin'; then
     2606        cfa_bindir="${cfa_prefix}/bin"
     2607else
     2608        cfa_bindir=${bindir}
     2609fi
     2610
     2611cat >>confdefs.h <<_ACEOF
     2612#define CFA_BINDIR "${cfa_bindir}"
     2613_ACEOF
     2614
     2615CFA_BINDIR=${cfa_bindir}
     2616
     2617
     2618if test "$libdir" = '${exec_prefix}/lib'; then
     2619        cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
     2620else
     2621        cfa_libdir=${libdir}
     2622fi
     2623
     2624cat >>confdefs.h <<_ACEOF
     2625#define CFA_LIBDIR "${cfa_libdir}"
     2626_ACEOF
     2627
     2628CFA_LIBDIR=${cfa_libdir}
    24692629
    24702630
Note: See TracChangeset for help on using the changeset viewer.