📄 configure.in
字号:
esac noconfigdirs="$noconfigdirs ld shellutils" ;; ia64*-*-elf*) # No gdb support yet. noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb" ;; i[3456]86-*-coff | i[3456]86-*-elf) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-libstub target-cygmon" fi ;; i[3456]86-*-go32* | i[3456]-*-msdosdjgpp*) # but don't build gdb noconfigdirs="$noconfigdirs gdb ${libstdcxx_version} target-libffi" ;; i[3456]86-*-mingw32*) target_configdirs="$target_configdirs target-mingw" noconfigdirs="$noconfigdirs expect target-libgloss target-libffi" # Can't build gdb for mingw32 if not native. case "${host}" in i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc. *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db snavigator gnuserv" ;; esac ;; *-*-cygwin*) target_configdirs="$target_configdirs target-libtermcap target-winsup" noconfigdirs="$noconfigdirs target-gperf target-libgloss target-libffi" # always build newlib. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` # Can't build gdb for Cygwin if not native. case "${host}" in *-*-cygwin*) ;; # keep gdb tcl tk expect etc. *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui db snavigator gnuserv" ;; esac ;; i[3456]86-*-pe) noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss target-libffi" ;; i[3456]86-*-sco3.2v5*) # The linker does not yet know about weak symbols in COFF, # and is not configured to handle mixed ELF and COFF. noconfigdirs="$noconfigdirs ld target-libgloss target-libffi" ;; i[3456]86-*-sco*) noconfigdirs="$noconfigdirs gprof target-libgloss target-libffi" ;; i[3456]86-*-solaris2*) noconfigdirs="$noconfigdirs target-libgloss" ;; i[3456]86-*-sysv4*) # The SYSV4 C compiler doesn't handle Emacs correctly case "${CC}" in "" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;; *) ;; esac # but that's okay since emacs doesn't work anyway noconfigdirs="$noconfigdirs emacs emacs19 target-libgloss target-libffi" ;; i[3456]86-*-beos*) noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" ;; m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) noconfigdirs="$noconfigdirs target-libiberty target-librx target-libg++ target-libstdc++ target-libio target-libf2c target-libchill target-zlib target-libobjc" ;; m68k-*-elf*) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; m68k-*-coff*) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; mn10200-*-*) noconfigdirs="$noconfigdirs target-libffi" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-libstub target-cygmon" fi ;; mn10300-*-*) noconfigdirs="$noconfigdirs target-libffi" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" fi ;; powerpc-*-aix*) # copied from rs6000-*-* entry # The configure and build of ld are currently disabled because # GNU ld is known to be broken for AIX 4.2 and 4.3 (at least) # The symptom is that GDBtk 4.18 fails at startup with a segfault # if linked by GNU ld, but not if linked by the native ld. noconfigdirs="$noconfigdirs gprof cvssrc target-libgloss target-libffi ld" use_gnu_ld=no ;; powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) target_configdirs="$target_configdirs target-winsup" noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix db snavigator gnuserv target-libffi" # always build newlib. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; # This is temporary until we can link against shared libraries powerpcle-*-solaris*) noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix db snavigator gnuserv target-libffi" ;; powerpc-*-beos*) noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" ;; powerpc-*-eabi) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" fi ;; rs6000-*-lynxos*) # The CVS server code doesn't work on the RS/6000 noconfigdirs="$noconfigdirs target-newlib gprof cvssrc target-libffi" ;; rs6000-*-aix*) # The configure and build of ld are currently disabled because # GNU ld is known to be broken for AIX 4.2 and 4.3 (at least) # The symptom is that GDBtk 4.18 fails at startup with a segfault # if linked by GNU ld, but not if linked by the native ld. noconfigdirs="$noconfigdirs gprof target-libffi ld" use_gnu_ld=no ;; rs6000-*-*) noconfigdirs="$noconfigdirs gprof target-libffi" ;; m68k-apollo-*) noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss target-libffi" ;; mips*-*-irix5*) # The GNU linker does not support shared libraries. # emacs is emacs 18, which does not work on Irix 5 (emacs19 does work) noconfigdirs="$noconfigdirs ld gprof emacs target-libgloss" ;; mips*-*-irix6*) # The GNU assembler does not support IRIX 6. # emacs is emacs 18, which does not work on Irix 5 (emacs19 does work) noconfigdirs="$noconfigdirs gas gprof emacs target-libgloss" ;; mips*-dec-bsd*) noconfigdirs="$noconfigdirs gprof target-libgloss target-libffi" ;; mips*-*-bsd*) noconfigdirs="$noconfigdirs gprof target-libgloss target-libffi" ;; mipstx39-*-*) noconfigdirs="$noconfigdirs gprof target-libffi" # same as generic mips target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" ;; mips*-*-*) noconfigdirs="$noconfigdirs gprof target-libffi" ;; romp-*-*) noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss target-libffi" ;; sh-*-*) case "${host}" in i[3456]86-*-vsta) ;; # don't add gprof back in i[3456]86-*-go32*) ;; # don't add gprof back in i[3456]86-*-msdosdjgpp*) ;; # don't add gprof back in *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; esac noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; sparc-*-elf*) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-libstub target-cygmon" fi ;; sparc64-*-elf*) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-libstub target-cygmon" fi noconfigdirs="target-libffi" ;; sparclite-*-*) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" fi noconfigdirs="target-libffi" ;; sparc-*-sunos4*) if [ x${is_cross_compiler} != xno ] ; then noconfigdirs="$noconfigdirs gdb gdbtest target-newlib target-libgloss" else use_gnu_ld=no fi ;; v810-*-*) noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld ${libstdcxx_version} opcodes target-libgloss target-libffi" ;; v850-*-*) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; v850e-*-*) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; v850ea-*-*) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; vax-*-vms) noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss target-libffi" ;; vax-*-*) noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libffi" ;; *-*-lynxos*) noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libffi" ;; *-*-macos* | \ *-*-mpw*) # Macs want a resource compiler. configdirs="$configdirs grez" noconfigdirs="target-libffi" ;; esac# If we aren't building newlib, then don't build libgloss, since libgloss# depends upon some newlib header files.case "${noconfigdirs}" in *target-libgloss*) ;; *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;esac# Make sure we don't let GNU ld be added if we didn't want it.if [ x$with_gnu_ld = xno ]; then use_gnu_ld=no noconfigdirs="$noconfigdirs ld"fi# Make sure we don't let GNU as be added if we didn't want it.if [ x$with_gnu_as = xno ]; then use_gnu_as=no noconfigdirs="$noconfigdirs gas"fi# Figure out what language subdirectories are present.# Look if the user specified --enable-languages="..."; if not, use# the environment variable $LANGUAGES if defined. $LANGUAGES might# go away some day.if test x"${enable_languages+set}" != xset; then if test x"${LANGUAGES+set}" = xset; then enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" else enable_languages=all fielse if test x"${enable_languages}" = x; then echo configure.in: --enable-languages needs at least one argument 1>&2 exit 1 fifisubdirs=for lang in ${srcdir}/gcc/*/config-lang.in ..do case $lang in ..) ;; # The odd quoting in the next line works around # an apparent bug in bash 1.12 on linux. ${srcdir}/gcc/[*]/config-lang.in) ;; *) lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang` build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang` if test "x$lang_alias" = x then echo "$lang doesn't set \$language." 1>&2 exit 1 fi case ${build_by_default},${enable_languages}, in *,$lang_alias,*) add_this_lang=yes ;; no,*) add_this_lang=no ;; *,all,*) add_this_lang=yes ;; *) add_this_lang=no ;; esac if test x"${add_this_lang}" = xyes; then eval target_libs='"$target_libs "'\"$this_lang_libs\" else eval noconfigdirs='"$noconfigdirs "'\"$this_lang_libs\" fi ;; esacdone# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and# $target_configdirs.# If we have the source for $noconfigdirs entries, add them to $notsupp.notsupp=""for dir in . $skipdirs $noconfigdirs ; do dirname=`echo $dir | sed -e s/target-//g` if [ $dir != . ] && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` if [ -r $srcdir/$dirname/configure ] \ || [ -r $srcdir/$dirname/configure.in ]; then if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then true else notsupp="$notsupp $dir" fi fi fi if [ $dir != . ] && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` if [ -r $srcdir/$dirname/configure ] \ || [ -r $srcdir/$dirname/configure.in ]; then if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then true else notsupp="$notsupp $dir" fi fi fidone# Sometimes the tools are distributed with libiberty but with no other# libraries. In that case, we don't want to build target-libiberty.if [ -n "${target_configdirs}" ]; then others= for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do if [ "$i" != "libiberty" ]; then if [ -r $srcdir/$i/configure ] || [ -r $srcdir/$i/configure.in ]; then others=yes; break; fi fi done if [ -z "${others}" ]; then target_configdirs= fifi# Deconfigure all subdirectories, in case we are changing the# configuration from one where a subdirectory is supported to one where it# is not.if [ -z "${norecursion}" ] && [ -n "${configdirs}" ]; then for i in `echo ${configdirs} | sed -e s/target-//g` ; do rm -f $i/Makefile donefiif [ -z "${norecursion}" ] && [ -n "${target_configdirs}" ]; then for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do rm -f ${target_subdir}/$i/Makefile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -