Changeset 534e4e4 for configure


Ignore:
Timestamp:
Aug 3, 2018, 4:05:38 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, 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:
4dcaed2
Parents:
ba9baad
Message:

Some clean-up before tackling finding directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rba9baad r534e4e4  
    25202520
    25212521
     2522
     2523
     2524
    25222525am__api_version='1.15'
    25232526
     
    32173220#==============================================================================
    32183221# Installation paths
    3219 if test "x$prefix" = "xNONE"; then
    3220         cfa_prefix=${ac_default_prefix}
    3221 else
    3222         cfa_prefix=${prefix}
    3223 fi
     3222
     3223        if test "x$prefix" = "xNONE"; then
     3224                cfa_prefix=${ac_default_prefix}
     3225        else
     3226                cfa_prefix=${prefix}
     3227        fi
    32243228
    32253229cat >>confdefs.h <<_ACEOF
     
    32273231_ACEOF
    32283232
    3229 CFA_PREFIX=${cfa_prefix}
    3230 
    3231 
    3232 if test "$includedir" = '${prefix}/include'; then
    3233         cfa_incdir="${cfa_prefix}/include/${cfa_name}"
    3234 else
    3235         cfa_incdir=${includedir}
    3236 fi
     3233        CFA_PREFIX=${cfa_prefix}
     3234
     3235
     3236        if test "$includedir" = '${prefix}/include'; then
     3237                cfa_incdir="${cfa_prefix}/include/${cfa_name}"
     3238        else
     3239                cfa_incdir=${includedir}
     3240        fi
    32373241
    32383242cat >>confdefs.h <<_ACEOF
     
    32403244_ACEOF
    32413245
    3242 CFA_INCDIR=${cfa_incdir}
    3243 
    3244 
    3245 if test "$bindir" = '${exec_prefix}/bin'; then
    3246         cfa_bindir="${cfa_prefix}/bin"
    3247 else
    3248         cfa_bindir=${bindir}
    3249 fi
     3246        CFA_INCDIR=${cfa_incdir}
     3247
     3248
     3249        if test "$bindir" = '${exec_prefix}/bin'; then
     3250                cfa_bindir="${cfa_prefix}/bin"
     3251        else
     3252                cfa_bindir=${bindir}
     3253        fi
    32503254
    32513255cat >>confdefs.h <<_ACEOF
     
    32533257_ACEOF
    32543258
    3255 CFA_BINDIR=${cfa_bindir}
    3256 
    3257 
    3258 if test "$libdir" = '${exec_prefix}/lib'; then
    3259         cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
    3260 else
    3261         cfa_libdir=${libdir}
    3262 fi
     3259        CFA_BINDIR=${cfa_bindir}
     3260
     3261
     3262        if test "$libdir" = '${exec_prefix}/lib'; then
     3263                cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
     3264        else
     3265                cfa_libdir=${libdir}
     3266        fi
    32633267
    32643268cat >>confdefs.h <<_ACEOF
     
    32663270_ACEOF
    32673271
    3268 CFA_LIBDIR=${cfa_libdir}
     3272        CFA_LIBDIR=${cfa_libdir}
     3273
    32693274
    32703275
     
    33103315do
    33113316        #strip quotes surrouding values
    3312         var=$(echo $var | sed s/\'//g)
    33133317        case $var in
    33143318                # skip cross compilation related arguments
    3315                 --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
     3319                \'--host=*) ;; \'host_alias=*) ;; \'--build=*) ;; \'build_alias=*) ;; \'--target=*) ;; \'target_alias=*) ;;
    33163320
    33173321                # skip the target hosts
    3318                 --with-target-hosts=*) ;;
     3322                \'--with-target-hosts=*) ;;
    33193323
    33203324                # append all other arguments to the sub configure arguments
     
    34153419do
    34163420        # call your procedure/other scripts here below
    3417         lib_arch=$(echo $i | sed -r "s/:(.*)//g")
     3421        arch_name=$(echo $i | sed -r "s/:(.*)//g")
    34183422        lib_config=$(echo $i | sed -r "s/(.*)://g")
     3423        if test $lib_config != "nodebug";
     3424        then
     3425                if test $lib_config != "debug";
     3426                then
     3427                        if test $lib_config != "nolib";
     3428                        then
     3429                                >&2 echo "Configuration must be 'debug', 'nodebug' or 'nolib'"
     3430                                exit 1
     3431                        fi
     3432                fi
     3433        fi
     3434
     3435        lib_arch=$($ac_aux_dir/config.sub $arch_name)
     3436        if test "$?" != "0"; then
     3437                >&2 echo "Unkown architecture " $arch_name;
     3438                exit 1;
     3439        fi
    34193440        lib_dir="libcfa-${lib_arch}-${lib_config}"
    34203441
Note: See TracChangeset for help on using the changeset viewer.