config.host revision 161651
1167465Smp# GCC host-specific configuration file. 269408Sache# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 369408Sache# Free Software Foundation, Inc. 469408Sache 569408Sache#This file is part of GCC. 669408Sache 769408Sache#GCC is free software; you can redistribute it and/or modify it under 869408Sache#the terms of the GNU General Public License as published by the Free 969408Sache#Software Foundation; either version 2, or (at your option) any later 1069408Sache#version. 1169408Sache 1269408Sache#GCC is distributed in the hope that it will be useful, but WITHOUT 1369408Sache#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1469408Sache#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1569408Sache#for more details. 1669408Sache 1769408Sache#You should have received a copy of the GNU General Public License 1869408Sache#along with GCC; see the file COPYING. If not, write to the Free 1969408Sache#Software Foundation, 59 Temple Place - Suite 330, Boston, MA 2069408Sache#02111-1307, USA. 2169408Sache 2269408Sache# This is the GCC host-specific configuration file 2369408Sache# where a configuration type is mapped to different system-specific 2469408Sache# definitions and files. This is invoked by the autoconf-generated 2569408Sache# configure script. Putting it in a separate shell file lets us skip 2669408Sache# running autoconf when modifying host-specific information. 2769408Sache 2869408Sache# This file switches on the shell variable ${host}. As much of this as 2969408Sache# is reasonable should be replaced with autoconf tests in the future. 3069408Sache 3169408Sache# This file sets the following shell variables for use by the 3269408Sache# autoconf-generated configure script: 3369408Sache# 3469408Sache# host_xm_file List of files to include when compiling for the 3569408Sache# host machine. 3669408Sache# 3769408Sache# host_xm_defines List of macros to define when compiling for the 3869408Sache# host machine. 3969408Sache# 4069408Sache# host_xmake_file List of host-specific makefile-fragments. 4169408Sache# 4269408Sache# host_exeext Set to the suffix, if the host machine requires 4369408Sache# executables to have a file name suffix. 4469408Sache# 4569408Sache# host_extra_objs List of extra host-dependent objects that should 4669408Sache# be linked into the compiler proper. 4769408Sache# 4869408Sache# host_extra_gcc_objs List of extra host-dependent objects that should 4969408Sache# be linked into the gcc driver. 5069408Sache# 5169408Sache# out_host_hook_obj An object file that provides the host hooks. 5269408Sache 5369408Sache# When setting any of these variables, check to see if a corresponding 5469408Sache# variable is present in config.build; if so, you will likely want to 5569408Sache# set it in both places. 5669408Sache 5769408Sache# Default settings. 5869408Sachehost_xm_file= 5969408Sachehost_xm_defines= 6069408Sachehost_xmake_file= 6169408Sachehost_exeext= 6269408Sachehost_extra_objs= 6369408Sachehost_extra_gcc_objs= 6469408Sacheout_host_hook_obj=host-default.o 6569408Sache 6669408Sache# Unsupported hosts list. Generally, only include hosts known to fail here, 6769408Sache# since we allow hosts not listed to be supported generically. 6869408Sachecase ${host} in 6969408Sache i[34567]86-sequent-sysv \ 7069408Sache | i[34567]86-sequent-sysv[123]* \ 7169408Sache | i[34567]86-go32-* \ 7269408Sache | i[34567]86-*-go32* \ 7369408Sache | vax-*-vms*) 7469408Sache echo "*** Configuration for host ${host} not supported" 1>&2 7569408Sache exit 1 7669408Sache ;; 7769408Sacheesac 7869408Sache 7969408Sache# Machine-specific settings. 8069408Sachecase ${host} in 8169408Sache alpha*-dec-*vms*) 8269408Sache host_xm_file=alpha/xm-vms.h 8369408Sache host_xmake_file=alpha/x-vms 8469408Sache host_exeext=.exe 8569408Sache # This removes the cpu type and manufacturer components and 8669408Sache # replaces "." with "_" in the operating system version. 8769408Sache target_noncanonical=`echo $host | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` 8869408Sache prefix=/gnu 8969408Sache local_prefix=/gnu 9069408Sache ;; 9169408Sache hppa1.1-*-pro*) 9269408Sache host_xmake_file="pa/x-ada" 9369408Sache ;; 9469408Sache hppa1.1-*-osf*) 9569408Sache host_xmake_file="pa/x-ada" 9669408Sache ;; 9769408Sache hppa1.1-*-rtems*) 9869408Sache host_xmake_file="pa/x-ada" 9969408Sache ;; 10069408Sache hppa1.1-*-bsd*) 10169408Sache host_xmake_file="pa/x-ada" 10269408Sache ;; 10369408Sache hppa1.0-*-hpux10* | hppa1.1-*-hpux10* | hppa2*-*-hpux10* | \ 10469408Sache hppa1.0-*-hpux11* | hppa1.1-*-hpux11* | hppa2*-*-hpux11* | \ 10569408Sache hppa*64*-*-hpux11*) 10669408Sache out_host_hook_obj=pa-host.o 10769408Sache host_xmake_file=pa/x-hpux 10869408Sache ;; 10969408Sache hppa*-*-linux*) 11069408Sache out_host_hook_obj=pa-host.o 11169408Sache host_xmake_file=pa/x-linux 11269408Sache ;; 11369408Sache i370-*-opened* | i370-*-mvs* ) # IBM 360/370/390 Architecture 11469408Sache host_xm_defines='FATAL_EXIT_CODE=12' 11569408Sache ;; 11669408Sache i[34567]86-sequent-ptx4*) 11769408Sache host_xm_defines="SMALL_ARG_MAX" 11883098Smp ;; 11983098Smp i[34567]86-*-solaris2*) 12083098Smp host_xm_defines="SMALL_ARG_MAX" 12183098Smp out_host_hook_obj=host-solaris.o 12283098Smp host_xmake_file=x-solaris 12383098Smp ;; 12483098Smp i[34567]86-*-sysv4*) # Intel 80386's running System V Release 4 125 host_xm_defines="SMALL_ARG_MAX" 126 ;; 127 i[34567]86-pc-msdosdjgpp*) 128 host_xm_file=i386/xm-djgpp.h 129 host_exeext=.exe 130 # Shorten $target_noncanonical for 8.3 filename conventions. 131 case ${target} in 132 *pc-msdosdjgpp*) 133 target_noncanonical=djgpp 134 ;; 135 esac 136 ;; 137 i[34567]86-*-pe | i[34567]86-*-cygwin*) 138 host_xm_file=i386/xm-cygwin.h 139 host_exeext=.exe 140 ;; 141 i[34567]86-*-mingw32*) 142 host_xm_file=i386/xm-mingw32.h 143 host_xmake_file=i386/x-mingw32 144 host_exeext=.exe 145 ;; 146 i[34567]86-*-uwin*) 147 echo "*** UWIN may not be used as a host platform because" 148 echo "*** linking with posix.dll is not allowed by the GNU GPL." 149 exit 1 150 ;; 151 i[34567]86-*-interix3*) 152 host_xmake_file="x-interix" 153 ;; 154 i860-*-sysv4*) 155 host_xmake_file=i860/x-sysv4 156 ;; 157 powerpc-*-darwin*) 158 # powerpc-darwin host support. 159 out_host_hook_obj=host-darwin.o 160 host_xmake_file=rs6000/x-darwin 161 ;; 162 *-*-solaris2*) 163 out_host_hook_obj=host-solaris.o 164 host_xmake_file=x-solaris 165 ;; 166 *-*-linux*) 167 out_host_hook_obj=host-linux.o 168 host_xmake_file=x-linux 169 ;; 170esac 171