Changeset 37fe352 for libcfa/configure


Ignore:
Timestamp:
Aug 5, 2018, 4:11:41 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:
28582b2
Parents:
4dcaed2
Message:

Added proper multi-lib handling, tests still do not work and arm support is broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure

    r4dcaed2 r37fe352  
    622622CFA_INCDIR
    623623CFA_PREFIX
     624CFA_NAME
     625ARCH_FLAGS
    624626CFACPP
    625627CFACC
    626628DRIVER_DIR
    627629CONFIGURATION
    628 host_os
    629 host_vendor
    630 host_cpu
    631 host
    632 build_os
    633 build_vendor
    634 build_cpu
    635 build
     630ARCHITECTURE
    636631AM_BACKSLASH
    637632AM_DEFAULT_VERBOSITY
     
    704699enable_option_checking
    705700enable_silent_rules
     701with_cfa_name
    706702enable_dependency_tracking
    707703'
     
    709705host_alias
    710706target_alias
     707ARCHITECTURE
    711708CONFIGURATION
    712709DRIVER_DIR
     
    13331330  --program-suffix=SUFFIX            append SUFFIX to installed program names
    13341331  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    1335 
    1336 System types:
    1337   --build=BUILD     configure for building on BUILD [guessed]
    1338   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    13391332_ACEOF
    13401333fi
     
    13571350                          speeds up one-time build
    13581351
     1352Optional Packages:
     1353  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     1354  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1355  --with-cfa-name=NAME     NAME too which cfa will be installed
     1356
    13591357Some influential environment variables:
     1358  ARCHITECTURE
     1359              The architecture to use when building libcfa
    13601360  CONFIGURATION
    13611361              The configuration to use when building libcfa, options are:
     
    19111911
    19121912
     1913
     1914
     1915
     1916
     1917
     1918
     1919
    19131920am__api_version='1.15'
    19141921
     
    24952502
    24962503
    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; }
    2503 if ${ac_cv_build+:} false; then :
    2504   $as_echo_n "(cached) " >&6
    2505 else
    2506   ac_build_alias=$build_alias
    2507 test "x$ac_build_alias" = x &&
    2508   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    2509 test "x$ac_build_alias" = x &&
    2510   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    2511 ac_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 
    2514 fi
    2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    2516 $as_echo "$ac_cv_build" >&6; }
    2517 case $ac_cv_build in
    2518 *-*-*) ;;
    2519 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    2520 esac
    2521 build=$ac_cv_build
    2522 ac_save_IFS=$IFS; IFS='-'
    2523 set x $ac_cv_build
    2524 shift
    2525 build_cpu=$1
    2526 build_vendor=$2
    2527 shift; shift
    2528 # Remember, the first character of IFS is used to create $*,
    2529 # except with old shells:
    2530 build_os=$*
    2531 IFS=$ac_save_IFS
    2532 case $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; }
    2537 if ${ac_cv_host+:} false; then :
    2538   $as_echo_n "(cached) " >&6
    2539 else
    2540   if test "x$host_alias" = x; then
    2541   ac_cv_host=$ac_cv_build
    2542 else
    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
    2545 fi
    2546 
    2547 fi
    2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    2549 $as_echo "$ac_cv_host" >&6; }
    2550 case $ac_cv_host in
    2551 *-*-*) ;;
    2552 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    2553 esac
    2554 host=$ac_cv_host
    2555 ac_save_IFS=$IFS; IFS='-'
    2556 set x $ac_cv_host
    2557 shift
    2558 host_cpu=$1
    2559 host_vendor=$2
    2560 shift; shift
    2561 # Remember, the first character of IFS is used to create $*,
    2562 # except with old shells:
    2563 host_os=$*
    2564 IFS=$ac_save_IFS
    2565 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    2566 
    2567 
    25682504
    25692505
     
    25752511
    25762512
     2513case $ARCHITECTURE in
     2514        "x64"        ) ARCH_FLAGS="-m64";;
     2515        "x86"        ) ARCH_FLAGS="-m32";;
     2516        "arm"        ) ARCH_FLAGS="";;
     2517esac
     2518
     2519
     2520
     2521#==============================================================================
     2522#Trasforming cc1 will break compilation
     2523
     2524        if test "${program_transform_name}" = ""; then
     2525        as_fn_error $? "Program transform not supported.
     2526                        Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5
     2527        fi
     2528
     2529        #Define the new name of the installed command
     2530
     2531# Check whether --with-cfa-name was given.
     2532if test "${with_cfa_name+set}" = set; then :
     2533  withval=$with_cfa_name; cfa_name=$withval
     2534else
     2535  cfa_name="cfa"
     2536fi
     2537
     2538
     2539        CFA_NAME=${cfa_name}
     2540
     2541
     2542
    25772543#==============================================================================
    25782544# Installation paths
    2579 if test "x$prefix" = "xNONE"; then
    2580         cfa_prefix=${ac_default_prefix}
    2581 else
    2582         cfa_prefix=${prefix}
    2583 fi
     2545
     2546        if test "x$prefix" = "xNONE"; then
     2547                cfa_prefix=${ac_default_prefix}
     2548        else
     2549                cfa_prefix=${prefix}
     2550        fi
    25842551
    25852552cat >>confdefs.h <<_ACEOF
     
    25872554_ACEOF
    25882555
    2589 CFA_PREFIX=${cfa_prefix}
    2590 
    2591 
    2592 if test "$includedir" = '${prefix}/include'; then
    2593         cfa_incdir="${cfa_prefix}/include/${cfa_name}"
    2594 else
    2595         cfa_incdir=${includedir}
    2596 fi
     2556        CFA_PREFIX=${cfa_prefix}
     2557
     2558
     2559        if test "$includedir" = '${prefix}/include'; then
     2560                cfa_incdir="${cfa_prefix}/include/${cfa_name}"
     2561        else
     2562                cfa_incdir=${includedir}
     2563        fi
    25972564
    25982565cat >>confdefs.h <<_ACEOF
     
    26002567_ACEOF
    26012568
    2602 CFA_INCDIR=${cfa_incdir}
    2603 
    2604 
    2605 if test "$bindir" = '${exec_prefix}/bin'; then
    2606         cfa_bindir="${cfa_prefix}/bin"
    2607 else
    2608         cfa_bindir=${bindir}
    2609 fi
     2569        CFA_INCDIR=${cfa_incdir}
     2570
     2571
     2572        if test "$bindir" = '${exec_prefix}/bin'; then
     2573                cfa_bindir="${cfa_prefix}/bin"
     2574        else
     2575                cfa_bindir=${bindir}
     2576        fi
    26102577
    26112578cat >>confdefs.h <<_ACEOF
     
    26132580_ACEOF
    26142581
    2615 CFA_BINDIR=${cfa_bindir}
    2616 
    2617 
    2618 if test "$libdir" = '${exec_prefix}/lib'; then
    2619         cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
    2620 else
    2621         cfa_libdir=${libdir}
    2622 fi
     2582        CFA_BINDIR=${cfa_bindir}
     2583
     2584
     2585        if test "$libdir" = '${exec_prefix}/lib'; then
     2586                cfa_libdir="${cfa_prefix}/lib/${cfa_name}/${ARCHITECTURE}${CONFIGURATION}"
     2587        else
     2588                cfa_libdir="${libdir}/${ARCHITECTURE}${CONFIGURATION}"
     2589        fi
    26232590
    26242591cat >>confdefs.h <<_ACEOF
     
    26262593_ACEOF
    26272594
    2628 CFA_LIBDIR=${cfa_libdir}
     2595        CFA_LIBDIR=${cfa_libdir}
     2596
    26292597
    26302598
Note: See TracChangeset for help on using the changeset viewer.