Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r5222605 rdf47e2f  
    644644CXXFLAGS
    645645CXX
    646 CFA_FLAGS
    647646MACHINE_TYPE
    648647host_os
     
    654653build_cpu
    655654build
     655CFA_FLAGS
    656656CFA_LIBDIR
    657657CFA_BINDIR
     
    742742enable_silent_rules
    743743enable_maintainer_mode
    744 with_cfa_name
    745744with_backend_compiler
    746745enable_target_release
     
    13991398  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    14001399  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    1401   --with-cfa-name=NAME     NAME too which cfa will be installed
    14021400  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible)
    14031401
     
    30053003
    30063004# Allow program name tansformation
    3007 # will fill program_transform_name with appropriate sed regex
    3008 
     3005# will fille program_transform_name with appropriate sed regex
     3006
     3007#autoconf escapes $ and \ since automake wiill un-escape them.
     3008#Since we need to use the sed transform in autoconf we need to manualy un-escape these characters
     3009name_transform=`echo ${program_transform_name} | sed 's/\\$\\$/\\$/g' | sed 's/\\\\\\\/\\\/g'`
     3010cfa_name=`echo cfa | sed ${name_transform}`
     3011cc1_name=`echo cc1 | sed ${name_transform}`
     3012cpp_name=`echo cfa-cpp | sed ${name_transform}`
    30093013
    30103014#Trasforming cc1 will break compilation
    3011 if test "${program_transform_name}" = ""; then
    3012     as_fn_error $? "Program transform not supported.
    3013                 Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5
    3014 fi
    3015 
    3016 
    3017 # Check whether --with-cfa-name was given.
    3018 if test "${with_cfa_name+set}" = set; then :
    3019   withval=$with_cfa_name; cfa_name=$withval
    3020 else
    3021   cfa_name="cfa"
    3022 fi
    3023 
     3015if ! test "${cc1_name}" = "cc1"; then
     3016    as_fn_error $? "Program transform must not modify cc1.
     3017                --program-sufix and --program-prefix not supported.
     3018                Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5
     3019fi
     3020#We could support transforming cfa-cpp but since it is located in a unique subfolder we don't need to
     3021if ! test "${cpp_name}" = "cfa-cpp"; then
     3022    as_fn_error $? "Program transform must not modify cfa-cpp.
     3023                --program-sufix and --program-prefix not supported.
     3024                Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5
     3025fi
    30243026
    30253027#Define the new name of the installed command
     
    33023304
    33033305
     3306
     3307cat >>confdefs.h <<_ACEOF
     3308#define CFA_FLAGS "${CFAFLAGS}"
     3309_ACEOF
     3310
     3311CFA_FLAGS=${CFAFLAGS}
     3312
     3313
    33043314# Make sure we can run config.sub.
    33053315$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     
    33743384
    33753385MACHINE_TYPE=$host_cpu
    3376 
    3377 
    3378 if ! test "$host_cpu" = "$build_cpu"; then
    3379         case $host_cpu in
    3380                 i386)
    3381                         CFLAGS+="-m32"
    3382                         CXXFLAGS+="-m32"
    3383                         CFAFLAGS+="-m32"
    3384                         LDFLAGS+="-m32"
    3385                         ;;
    3386                 i686)
    3387                         CFLAGS+="-m32"
    3388                         CXXFLAGS+="-m32"
    3389                         CFAFLAGS+="-m32"
    3390                         LDFLAGS+="-m32"
    3391                         ;;
    3392                 x86_64)
    3393                         CFLAGS+="-m64"
    3394                         CXXFLAGS+="-m64"
    3395                         CFAFLAGS+="-m64"
    3396                         LDFLAGS+="-m64"
    3397                         ;;
    3398         esac
    3399 fi
    3400 
    3401 
    3402 cat >>confdefs.h <<_ACEOF
    3403 #define CFA_FLAGS "${CFAFLAGS}"
    3404 _ACEOF
    3405 
    3406 CFA_FLAGS=${CFAFLAGS}
    34073386
    34083387
Note: See TracChangeset for help on using the changeset viewer.