comparison configure.ac @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
148 target_libraries="target-libgcc \ 148 target_libraries="target-libgcc \
149 target-libbacktrace \ 149 target-libbacktrace \
150 target-libgloss \ 150 target-libgloss \
151 target-newlib \ 151 target-newlib \
152 target-libgomp \ 152 target-libgomp \
153 target-libcilkrts \
154 target-liboffloadmic \ 153 target-liboffloadmic \
155 target-libhsail-rt \ 154 target-libhsail-rt \
156 target-libatomic \ 155 target-libatomic \
157 target-libitm \ 156 target-libitm \
158 target-libstdc++-v3 \ 157 target-libstdc++-v3 \
159 target-libsanitizer \ 158 target-libsanitizer \
160 target-libvtv \ 159 target-libvtv \
161 target-libmpx \
162 target-libssp \ 160 target-libssp \
163 target-libquadmath \ 161 target-libquadmath \
164 target-libgfortran \ 162 target-libgfortran \
165 target-libffi \ 163 target-libffi \
166 target-libobjc \ 164 target-libobjc \
535 AC_MSG_RESULT([yes]) 533 AC_MSG_RESULT([yes])
536 fi 534 fi
537 fi 535 fi
538 fi 536 fi
539 537
540 # Disable libcilkrts on unsupported systems.
541 if test -d ${srcdir}/libcilkrts; then
542 if test x$enable_libcilkrts = x; then
543 AC_MSG_CHECKING([for libcilkrts support])
544 if (srcdir=${srcdir}/libcilkrts; \
545 . ${srcdir}/configure.tgt; \
546 test -n "$UNSUPPORTED")
547 then
548 AC_MSG_RESULT([no])
549 noconfigdirs="$noconfigdirs target-libcilkrts"
550 else
551 AC_MSG_RESULT([yes])
552 fi
553 fi
554 fi
555
556 # Disable liboffloadmic on unsupported systems. 538 # Disable liboffloadmic on unsupported systems.
557 if test -d ${srcdir}/liboffloadmic; then 539 if test -d ${srcdir}/liboffloadmic; then
558 if test x$enable_liboffloadmic != xno; then 540 if test x$enable_liboffloadmic != xno; then
559 AC_MSG_CHECKING([for liboffloadmic support]) 541 AC_MSG_CHECKING([for liboffloadmic support])
560 if (srcdir=${srcdir}/liboffloadmic; \ 542 if (srcdir=${srcdir}/liboffloadmic; \
615 AC_MSG_RESULT([yes]) 597 AC_MSG_RESULT([yes])
616 fi 598 fi
617 fi 599 fi
618 fi 600 fi
619 601
620
621 # Enable libmpx on supported systems by request.
622 if test -d ${srcdir}/libmpx; then
623 if test x$enable_libmpx = x; then
624 AC_MSG_CHECKING([for libmpx support])
625 if (srcdir=${srcdir}/libmpx; \
626 . ${srcdir}/configure.tgt; \
627 test "$LIBMPX_SUPPORTED" != "yes")
628 then
629 AC_MSG_RESULT([no])
630 noconfigdirs="$noconfigdirs target-libmpx"
631 else
632 AC_MSG_RESULT([yes])
633 fi
634 fi
635 fi
636 602
637 # Disable libhsail-rt on unsupported systems. 603 # Disable libhsail-rt on unsupported systems.
638 if test -d ${srcdir}/libhsail-rt; then 604 if test -d ${srcdir}/libhsail-rt; then
639 if test x$enable_libhsail_rt = x; then 605 if test x$enable_libhsail_rt = x; then
640 AC_MSG_CHECKING([for libhsail-rt support]) 606 AC_MSG_CHECKING([for libhsail-rt support])
976 *-*-phoenix*) 942 *-*-phoenix*)
977 noconfigdirs="$noconfigdirs target-libgloss" 943 noconfigdirs="$noconfigdirs target-libgloss"
978 ;; 944 ;;
979 *-*-rtems*) 945 *-*-rtems*)
980 noconfigdirs="$noconfigdirs target-libgloss" 946 noconfigdirs="$noconfigdirs target-libgloss"
981 # this is not caught below because this stanza matches earlier
982 case $target in
983 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
984 esac
985 ;; 947 ;;
986 # The tpf target doesn't support gdb yet. 948 # The tpf target doesn't support gdb yet.
987 *-*-tpf*) 949 *-*-tpf*)
988 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" 950 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
989 ;; 951 ;;
1127 noconfigdirs="$noconfigdirs gdb" 1089 noconfigdirs="$noconfigdirs gdb"
1128 ;; 1090 ;;
1129 mt-*-*) 1091 mt-*-*)
1130 noconfigdirs="$noconfigdirs sim" 1092 noconfigdirs="$noconfigdirs sim"
1131 ;; 1093 ;;
1094 nfp-*-*)
1095 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
1096 noconfigdirs="$noconfigdirs $target_libraries"
1097 ;;
1132 powerpc-*-aix*) 1098 powerpc-*-aix*)
1133 # copied from rs6000-*-* entry 1099 # copied from rs6000-*-* entry
1134 noconfigdirs="$noconfigdirs gprof" 1100 noconfigdirs="$noconfigdirs gprof"
1135 ;; 1101 ;;
1136 powerpc*-*-winnt* | powerpc*-*-pe*) 1102 powerpc*-*-winnt* | powerpc*-*-pe*)
1184 mips*-*-*) 1150 mips*-*-*)
1185 noconfigdirs="$noconfigdirs gprof" 1151 noconfigdirs="$noconfigdirs gprof"
1186 ;; 1152 ;;
1187 nvptx*-*-*) 1153 nvptx*-*-*)
1188 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" 1154 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
1189 ;;
1190 or1k*-*-*)
1191 noconfigdirs="$noconfigdirs gdb"
1192 ;; 1155 ;;
1193 sh-*-*) 1156 sh-*-*)
1194 case "${target}" in 1157 case "${target}" in
1195 sh*-*-elf) 1158 sh*-*-elf)
1196 ;; 1159 ;;
1212 v810-*-*) 1175 v810-*-*)
1213 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" 1176 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
1214 ;; 1177 ;;
1215 vax-*-*) 1178 vax-*-*)
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1179 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1180 ;;
1181 wasm32-*-*)
1182 noconfigdirs="$noconfigdirs ld"
1217 ;; 1183 ;;
1218 esac 1184 esac
1219 1185
1220 # If we aren't building newlib, then don't build libgloss, since libgloss 1186 # If we aren't building newlib, then don't build libgloss, since libgloss
1221 # depends upon some newlib header files. 1187 # depends upon some newlib header files.
2154 AC_MSG_RESULT([using paths configured with --with-target-bdw-gc options]) 2120 AC_MSG_RESULT([using paths configured with --with-target-bdw-gc options])
2155 fi 2121 fi
2156 fi 2122 fi
2157 esac 2123 esac
2158 2124
2159 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ 2125 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
2160 case ,${enable_languages}, in 2126 case ,${enable_languages}, in
2161 *,c++,*) 2127 *,c++,*)
2162 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ 2128 # Disable libitm, libsanitizer if we're not building libstdc++
2163 case "${noconfigdirs}" in 2129 case "${noconfigdirs}" in
2164 *target-libstdc++-v3*) 2130 *target-libstdc++-v3*)
2165 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" 2131 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
2166 ;; 2132 ;;
2167 *) ;; 2133 *) ;;
2168 esac 2134 esac
2169 ;; 2135 ;;
2170 *) 2136 *)
2171 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" 2137 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
2172 ;; 2138 ;;
2173 esac 2139 esac
2174 2140
2175 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, 2141 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2176 # $build_configdirs and $target_configdirs. 2142 # $build_configdirs and $target_configdirs.
2711 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && 2677 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
2712 test "$enable_vtable_verify" != no; then 2678 test "$enable_vtable_verify" != no; then
2713 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, 2679 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
2714 fi 2680 fi
2715 2681
2716 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
2717 # bootstrap it.
2718 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
2719 case "$BUILD_CONFIG" in
2720 *bootstrap-mpx* )
2721 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
2722 ;;
2723 esac
2724 fi
2725
2726 # Determine whether gdb needs tk/tcl or not. 2682 # Determine whether gdb needs tk/tcl or not.
2727 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available 2683 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2728 # and in that case we want gdb to be built without tk. Ugh! 2684 # and in that case we want gdb to be built without tk. Ugh!
2729 # In fact I believe gdb is the *only* package directly dependent on tk, 2685 # In fact I believe gdb is the *only* package directly dependent on tk,
2730 # so we should be able to put the 'maybe's in unconditionally and 2686 # so we should be able to put the 'maybe's in unconditionally and
2761 # but now we're fixing up the Makefile ourselves with the additional 2717 # but now we're fixing up the Makefile ourselves with the additional
2762 # commands passed to AC_CONFIG_FILES. Use separate variables 2718 # commands passed to AC_CONFIG_FILES. Use separate variables
2763 # extrasub-{build,host,target} not because there is any reason to split 2719 # extrasub-{build,host,target} not because there is any reason to split
2764 # the substitutions up that way, but only to remain below the limit of 2720 # the substitutions up that way, but only to remain below the limit of
2765 # 99 commands in a script, for HP-UX sed. 2721 # 99 commands in a script, for HP-UX sed.
2766 # Do not nest @if/@endif pairs, because configure will not warn you at all. 2722
2723 # Do not nest @if/@endif or @unless/@endunless pairs, because
2724 # configure will not warn you at all.
2767 2725
2768 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in 2726 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
2769 yes:yes:*\ gold\ *:*,c++,*) ;; 2727 yes:yes:*\ gold\ *:*,c++,*) ;;
2770 yes:yes:*\ gold\ *:*) 2728 yes:yes:*\ gold\ *:*)
2771 AC_MSG_ERROR([in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages]) 2729 AC_MSG_ERROR([in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages])
2780 rm -f ${build_subdir}/${module}/Makefile 2738 rm -f ${build_subdir}/${module}/Makefile
2781 fi 2739 fi
2782 extrasub_build="$extrasub_build 2740 extrasub_build="$extrasub_build
2783 /^@if build-$module\$/d 2741 /^@if build-$module\$/d
2784 /^@endif build-$module\$/d 2742 /^@endif build-$module\$/d
2743 /^@unless build-$module\$/,/^@endunless build-$module\$/d
2785 /^@if build-$module-$bootstrap_suffix\$/d 2744 /^@if build-$module-$bootstrap_suffix\$/d
2786 /^@endif build-$module-$bootstrap_suffix\$/d" 2745 /^@endif build-$module-$bootstrap_suffix\$/d
2746 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
2787 done 2747 done
2788 extrasub_host= 2748 extrasub_host=
2789 for module in ${configdirs} ; do 2749 for module in ${configdirs} ; do
2790 if test -z "${no_recursion}"; then 2750 if test -z "${no_recursion}"; then
2791 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do 2751 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
2800 *) host_bootstrap_suffix=$bootstrap_suffix ;; 2760 *) host_bootstrap_suffix=$bootstrap_suffix ;;
2801 esac 2761 esac
2802 extrasub_host="$extrasub_host 2762 extrasub_host="$extrasub_host
2803 /^@if $module\$/d 2763 /^@if $module\$/d
2804 /^@endif $module\$/d 2764 /^@endif $module\$/d
2765 /^@unless $module\$/,/^@endunless $module\$/d
2805 /^@if $module-$host_bootstrap_suffix\$/d 2766 /^@if $module-$host_bootstrap_suffix\$/d
2806 /^@endif $module-$host_bootstrap_suffix\$/d" 2767 /^@endif $module-$host_bootstrap_suffix\$/d
2768 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
2807 done 2769 done
2808 extrasub_target= 2770 extrasub_target=
2809 for module in ${target_configdirs} ; do 2771 for module in ${target_configdirs} ; do
2810 if test -z "${no_recursion}" \ 2772 if test -z "${no_recursion}" \
2811 && test -f ${target_subdir}/${module}/Makefile; then 2773 && test -f ${target_subdir}/${module}/Makefile; then
2820 esac 2782 esac
2821 2783
2822 extrasub_target="$extrasub_target 2784 extrasub_target="$extrasub_target
2823 /^@if target-$module\$/d 2785 /^@if target-$module\$/d
2824 /^@endif target-$module\$/d 2786 /^@endif target-$module\$/d
2787 /^@unless target-$module\$/,/^@endunless target-$module\$/d
2825 /^@if target-$module-$target_bootstrap_suffix\$/d 2788 /^@if target-$module-$target_bootstrap_suffix\$/d
2826 /^@endif target-$module-$target_bootstrap_suffix\$/d" 2789 /^@endif target-$module-$target_bootstrap_suffix\$/d
2790 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
2827 done 2791 done
2828 2792
2829 # Do the final fixup along with target modules. 2793 # Do the final fixup along with target modules.
2830 extrasub_target="$extrasub_target 2794 extrasub_target="$extrasub_target
2831 /^@if /,/^@endif /d" 2795 /^@if /,/^@endif /d
2796 /^@unless /d
2797 /^@endunless /d"
2832 2798
2833 # Create the serialization dependencies. This uses a temporary file. 2799 # Create the serialization dependencies. This uses a temporary file.
2834 2800
2835 AC_ARG_ENABLE([serial-configure], 2801 AC_ARG_ENABLE([serial-configure],
2836 [AS_HELP_STRING([[--enable-serial-[{host,target,build}-]configure]], 2802 [AS_HELP_STRING([[--enable-serial-[{host,target,build}-]configure]],