@@ -681,10 +681,6 @@ LLVM_PROF_MERGER
681
681
PGO_PROF_USE_FLAG
682
682
PGO_PROF_GEN_FLAG
683
683
LLVM_AR_FOUND
684
- target_os
685
- target_vendor
686
- target_cpu
687
- target
688
684
LLVM_AR
689
685
PROFILE_TASK
690
686
DEF_MAKE_RULE
@@ -1473,7 +1469,6 @@ _ACEOF
1473
1469
System types:
1474
1470
--build=BUILD configure for building on BUILD [guessed]
1475
1471
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1476
- --target=TARGET configure for building compilers for TARGET [HOST]
1477
1472
_ACEOF
1478
1473
fi
1479
1474
@@ -6498,47 +6493,9 @@ if test "$Py_LTO" = 'true' ; then
6498
6493
case $CC in
6499
6494
* clang* )
6500
6495
6501
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking target system type" >&5
6502
- $as_echo_n " checking target system type... " >&6 ; }
6503
- if ${ac_cv_target+: } false ; then :
6504
- $as_echo_n " (cached) " >&6
6505
- else
6506
- if test " x$target_alias " = x; then
6507
- ac_cv_target=$ac_cv_host
6508
- else
6509
- ac_cv_target=` $SHELL " $ac_aux_dir /config.sub" $target_alias ` ||
6510
- as_fn_error $? " $SHELL $ac_aux_dir /config.sub $target_alias failed" " $LINENO " 5
6511
- fi
6512
-
6513
- fi
6514
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_target " >&5
6515
- $as_echo " $ac_cv_target " >&6 ; }
6516
- case $ac_cv_target in
6517
- * -* -* ) ;;
6518
- * ) as_fn_error $? " invalid value of canonical target" " $LINENO " 5;;
6519
- esac
6520
- target=$ac_cv_target
6521
- ac_save_IFS=$IFS ; IFS=' -'
6522
- set x $ac_cv_target
6523
- shift
6524
- target_cpu=$1
6525
- target_vendor=$2
6526
- shift ; shift
6527
- # Remember, the first character of IFS is used to create $*,
6528
- # except with old shells:
6529
- target_os=$*
6530
- IFS=$ac_save_IFS
6531
- case $target_os in * \ * ) target_os=` echo " $target_os " | sed ' s/ /-/g' ` ;; esac
6532
-
6533
-
6534
- # The aliases save the names the user supplied, while $host etc.
6535
- # will get canonicalized.
6536
- test -n " $target_alias " &&
6537
- test " $program_prefix$program_suffix$program_transform_name " = \
6538
- NONENONEs,x,x, &&
6539
- program_prefix=${target_alias} -
6540
- # Extract the first word of "$target_alias-llvm-ar", so it can be a program name with args.
6541
- set dummy $target_alias -llvm-ar; ac_word=$2
6496
+ if test -n " $ac_tool_prefix " ; then
6497
+ # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
6498
+ set dummy ${ac_tool_prefix} llvm-ar; ac_word=$2
6542
6499
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6543
6500
$as_echo_n " checking for $ac_word ... " >&6 ; }
6544
6501
if ${ac_cv_path_LLVM_AR+: } false ; then :
@@ -6577,10 +6534,10 @@ $as_echo "no" >&6; }
6577
6534
fi
6578
6535
6579
6536
6537
+ fi
6580
6538
if test -z " $ac_cv_path_LLVM_AR " ; then
6581
- if test " $build " = " $target " ; then
6582
- ac_pt_LLVM_AR=$LLVM_AR
6583
- # Extract the first word of "llvm-ar", so it can be a program name with args.
6539
+ ac_pt_LLVM_AR=$LLVM_AR
6540
+ # Extract the first word of "llvm-ar", so it can be a program name with args.
6584
6541
set dummy llvm-ar; ac_word=$2
6585
6542
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6586
6543
$as_echo_n " checking for $ac_word ... " >&6 ; }
@@ -6607,7 +6564,6 @@ done
6607
6564
done
6608
6565
IFS=$as_save_IFS
6609
6566
6610
- test -z " $ac_cv_path_ac_pt_LLVM_AR " && ac_cv_path_ac_pt_LLVM_AR=" ''"
6611
6567
;;
6612
6568
esac
6613
6569
fi
@@ -6620,9 +6576,16 @@ else
6620
6576
$as_echo " no" >&6 ; }
6621
6577
fi
6622
6578
6623
- LLVM_AR=$ac_pt_LLVM_AR
6624
- else
6579
+ if test " x$ac_pt_LLVM_AR " = x; then
6625
6580
LLVM_AR=" ''"
6581
+ else
6582
+ case $cross_compiling :$ac_tool_warned in
6583
+ yes:)
6584
+ { $as_echo " $as_me :${as_lineno-$LINENO } : WARNING: using cross tools not prefixed with host triplet" >&5
6585
+ $as_echo " $as_me : WARNING: using cross tools not prefixed with host triplet" >&2 ; }
6586
+ ac_tool_warned=yes ;;
6587
+ esac
6588
+ LLVM_AR=$ac_pt_LLVM_AR
6626
6589
fi
6627
6590
else
6628
6591
LLVM_AR=" $ac_cv_path_LLVM_AR "
6694
6657
6695
6658
6696
6659
6697
- # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6698
- set dummy $target_alias -llvm-profdata; ac_word=$2
6660
+ if test -n " $ac_tool_prefix " ; then
6661
+ # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
6662
+ set dummy ${ac_tool_prefix} llvm-profdata; ac_word=$2
6699
6663
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6700
6664
$as_echo_n " checking for $ac_word ... " >&6 ; }
6701
6665
if ${ac_cv_path_LLVM_PROFDATA+: } false ; then :
@@ -6734,10 +6698,10 @@ $as_echo "no" >&6; }
6734
6698
fi
6735
6699
6736
6700
6701
+ fi
6737
6702
if test -z " $ac_cv_path_LLVM_PROFDATA " ; then
6738
- if test " $build " = " $target " ; then
6739
- ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6740
- # Extract the first word of "llvm-profdata", so it can be a program name with args.
6703
+ ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6704
+ # Extract the first word of "llvm-profdata", so it can be a program name with args.
6741
6705
set dummy llvm-profdata; ac_word=$2
6742
6706
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6743
6707
$as_echo_n " checking for $ac_word ... " >&6 ; }
@@ -6764,7 +6728,6 @@ done
6764
6728
done
6765
6729
IFS=$as_save_IFS
6766
6730
6767
- test -z " $ac_cv_path_ac_pt_LLVM_PROFDATA " && ac_cv_path_ac_pt_LLVM_PROFDATA=" ''"
6768
6731
;;
6769
6732
esac
6770
6733
fi
@@ -6777,9 +6740,16 @@ else
6777
6740
$as_echo " no" >&6 ; }
6778
6741
fi
6779
6742
6780
- LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6781
- else
6743
+ if test " x$ac_pt_LLVM_PROFDATA " = x; then
6782
6744
LLVM_PROFDATA=" ''"
6745
+ else
6746
+ case $cross_compiling :$ac_tool_warned in
6747
+ yes:)
6748
+ { $as_echo " $as_me :${as_lineno-$LINENO } : WARNING: using cross tools not prefixed with host triplet" >&5
6749
+ $as_echo " $as_me : WARNING: using cross tools not prefixed with host triplet" >&2 ; }
6750
+ ac_tool_warned=yes ;;
6751
+ esac
6752
+ LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6783
6753
fi
6784
6754
else
6785
6755
LLVM_PROFDATA=" $ac_cv_path_LLVM_PROFDATA "
0 commit comments