comparison libgcc/configure @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents b7f97abdc517
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
574 STRIP 574 STRIP
575 RANLIB 575 RANLIB
576 NM 576 NM
577 LIPO 577 LIPO
578 AR 578 AR
579 toolexeclibdir
580 toolexecdir
579 target_subdir 581 target_subdir
580 host_subdir 582 host_subdir
581 build_subdir 583 build_subdir
582 build_libsubdir 584 build_libsubdir
585 target_noncanonical
583 host_noncanonical 586 host_noncanonical
584 host_os 587 host_os
585 host_vendor 588 host_vendor
586 host_cpu 589 host_cpu
587 host 590 host
2172 "") target_noncanonical=${host_noncanonical} ;; 2175 "") target_noncanonical=${host_noncanonical} ;;
2173 *) target_noncanonical=${target_alias} ;; 2176 *) target_noncanonical=${target_alias} ;;
2174 esac 2177 esac
2175 2178
2176 2179
2180
2181
2177 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2182 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2178 # have matching libraries, they should use host libraries: Makefile.tpl 2183 # have matching libraries, they should use host libraries: Makefile.tpl
2179 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2184 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2180 # However, they still use the build modules, because the corresponding 2185 # However, they still use the build modules, because the corresponding
2181 # host modules (e.g. bison) are only built for the host when bootstrap 2186 # host modules (e.g. bison) are only built for the host when bootstrap
2200 else 2205 else
2201 host_subdir=. 2206 host_subdir=.
2202 fi 2207 fi
2203 # No prefix. 2208 # No prefix.
2204 target_subdir=${target_noncanonical} 2209 target_subdir=${target_noncanonical}
2210
2211
2212 # Calculate toolexeclibdir
2213 # Also toolexecdir, though it's only used in toolexeclibdir
2214 case ${version_specific_libs} in
2215 yes)
2216 # Need the gcc compiler version to know where to install libraries
2217 # and header files if --enable-version-specific-runtime-libs option
2218 # is selected.
2219 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2220 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2221 ;;
2222 no)
2223 if test -n "$with_cross_host" &&
2224 test x"$with_cross_host" != x"no"; then
2225 # Install a library built with a cross compiler in tooldir, not libdir.
2226 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2227 toolexeclibdir='$(toolexecdir)/lib'
2228 else
2229 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2230 toolexeclibdir='$(libdir)'
2231 fi
2232 multi_os_directory=`$CC -print-multi-os-directory`
2233 case $multi_os_directory in
2234 .) ;; # Avoid trailing /.
2235 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2236 esac
2237 ;;
2238 esac
2239
2205 2240
2206 2241
2207 if test -n "$ac_tool_prefix"; then 2242 if test -n "$ac_tool_prefix"; then
2208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2209 set dummy ${ac_tool_prefix}ar; ac_word=$2 2244 set dummy ${ac_tool_prefix}ar; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
3633 $as_echo "$libgcc_cv_dfp" >&6; } 3668 $as_echo "$libgcc_cv_dfp" >&6; }
3634 decimal_float=$libgcc_cv_dfp 3669 decimal_float=$libgcc_cv_dfp
3635 3670
3636 3671
3672
3637 # Check whether --enable-decimal-float was given. 3673 # Check whether --enable-decimal-float was given.
3638 if test "${enable_decimal_float+set}" = set; then : 3674 if test "${enable_decimal_float+set}" = set; then :
3639 enableval=$enable_decimal_float; 3675 enableval=$enable_decimal_float;
3640 case $enable_decimal_float in 3676 case $enable_decimal_float in
3641 yes | no | bid | dpd) ;; 3677 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
3642 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 3678 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
3643 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 3679 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
3644 esac 3680 esac
3645 3681
3646 else 3682 else
3647 3683
3648 case $host in 3684 case $host in
3649 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*) 3685 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
3686 i?86*-*-mingw* | x86_64*-*-mingw* | \
3687 i?86*-*-cygwin*)
3650 enable_decimal_float=yes 3688 enable_decimal_float=yes
3651 ;; 3689 ;;
3652 *) 3690 *)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
3692 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
3653 enable_decimal_float=no 3693 enable_decimal_float=no
3654 ;; 3694 ;;
3655 esac 3695 esac
3656 3696
3657 fi 3697 fi
3658 3698
3659 3699
3660 # x86's use BID format instead of DPD 3700 # x86's use BID format instead of DPD
3661 if test x$enable_decimal_float = xyes; then 3701 case x$enable_decimal_float in
3662 case $host in 3702 xyes)
3663 i?86*-*-linux* | x86_64*-*-linux*) 3703 case $host in
3664 enable_decimal_float=bid 3704 i?86*-*-* | x86_64*-*-*)
3665 ;; 3705 enable_decimal_float=bid
3666 *) 3706 ;;
3667 enable_decimal_float=dpd 3707 *)
3668 ;; 3708 enable_decimal_float=dpd
3669 esac 3709 ;;
3670 fi 3710 esac
3711 default_decimal_float=$enable_decimal_float
3712 ;;
3713 xno)
3714 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
3715 # dependency on libdecnumber.
3716 default_decimal_float=dpd
3717 ;;
3718 esac
3719
3720
3671 3721
3672 3722
3673 # Check for fixed-point support. 3723 # Check for fixed-point support.
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
3675 $as_echo_n "checking whether fixed-point is supported... " >&6; } 3725 $as_echo_n "checking whether fixed-point is supported... " >&6; }
3689 fi 3739 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
3691 $as_echo "$libgcc_cv_fixed_point" >&6; } 3741 $as_echo "$libgcc_cv_fixed_point" >&6; }
3692 fixed_point=$libgcc_cv_fixed_point 3742 fixed_point=$libgcc_cv_fixed_point
3693 3743
3744
3745 # Check for assembler CFI support.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
3747 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
3748 if test "${libgcc_cv_cfi+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753 asm("\n\
3754 .text\n\
3755 .cfi_startproc\n\
3756 .cfi_personality 0, symbol\n\
3757 .cfi_endproc");
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 libgcc_cv_cfi=yes
3761 else
3762 libgcc_cv_cfi=no
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
3767 $as_echo "$libgcc_cv_cfi" >&6; }
3694 3768
3695 # Check 32bit or 64bit for x86. 3769 # Check 32bit or 64bit for x86.
3696 case ${host} in 3770 case ${host} in
3697 i?86*-*-* | x86_64*-*-*) 3771 i?86*-*-* | x86_64*-*-*)
3698 cat > conftest.c <<EOF 3772 cat > conftest.c <<EOF
3713 # Check if Solaris/x86 linker supports ZERO terminator unwind entries. 3787 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
3714 # This is after config.host so we can augment tmake_file. 3788 # This is after config.host so we can augment tmake_file.
3715 # Link with -nostartfiles -nodefaultlibs since neither are present while 3789 # Link with -nostartfiles -nodefaultlibs since neither are present while
3716 # building libgcc. 3790 # building libgcc.
3717 case ${host} in 3791 case ${host} in
3718 i?86-*-solaris2.1[0-9]*) 3792 i?86-*-solaris2*)
3719 cat > conftest.s <<EOF 3793 cat > conftest.s <<EOF
3720 .section .eh_frame,"a",@unwind 3794 .section .eh_frame,"a",@unwind
3721 .zero 4 3795 .zero 4
3722 .section .jcr,"aw",@progbits 3796 .section .jcr,"aw",@progbits
3723 .zero 8 3797 .zero 8