Changes in / [0e7ea335:be8bd88]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    r0e7ea335 rbe8bd88  
    30053005
    30063006# Allow program name tansformation
    3007 # will fill program_transform_name with appropriate sed regex
    3008 
     3007# will fille program_transform_name with appropriate sed regex
     3008
     3009#autoconf escapes $ and \ since automake wiill un-escape them.
     3010#Since we need to use the sed transform in autoconf we need to manualy un-escape these characters
     3011name_transform=`echo ${program_transform_name} | sed 's/\\$\\$/\\$/g' | sed 's/\\\\\\\/\\\/g'`
     3012cfa_name=`echo cfa | sed ${name_transform}`
     3013cc1_name=`echo cc1 | sed ${name_transform}`
     3014cpp_name=`echo cfa-cpp | sed ${name_transform}`
    30093015
    30103016#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
     3017if ! test "${cc1_name}" = "cc1"; then
     3018    as_fn_error $? "Program transform must not modify cc1.
     3019                --program-sufix and --program-prefix not supported.
     3020                Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5
     3021fi
     3022#We could support transforming cfa-cpp but since it is located in a unique subfolder we don't need to
     3023if ! test "${cpp_name}" = "cfa-cpp"; then
     3024    as_fn_error $? "Program transform must not modify cfa-cpp.
     3025                --program-sufix and --program-prefix not supported.
     3026                Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5
    30143027fi
    30153028
  • configure.ac

    r0e7ea335 rbe8bd88  
    2323
    2424#Trasforming cc1 will break compilation
    25 if test "${program_transform_name}" = ""; then
     25if ! test "${program_transform_name}" = ""; then
    2626    AC_MSG_ERROR([Program transform not supported.
    2727                Use --with-cfa-name='[[Desired name here]]' instead])
Note: See TracChangeset for help on using the changeset viewer.