config.host revision 161651
1132718Skan# GCC host-specific configuration file. 2132718Skan# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 3132718Skan# Free Software Foundation, Inc. 4132718Skan 5132718Skan#This file is part of GCC. 6132718Skan 7132718Skan#GCC is free software; you can redistribute it and/or modify it under 8132718Skan#the terms of the GNU General Public License as published by the Free 9132718Skan#Software Foundation; either version 2, or (at your option) any later 10132718Skan#version. 11132718Skan 12132718Skan#GCC is distributed in the hope that it will be useful, but WITHOUT 13132718Skan#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14132718Skan#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15132718Skan#for more details. 16132718Skan 17132718Skan#You should have received a copy of the GNU General Public License 18132718Skan#along with GCC; see the file COPYING. If not, write to the Free 19132718Skan#Software Foundation, 59 Temple Place - Suite 330, Boston, MA 20132718Skan#02111-1307, USA. 21132718Skan 22132718Skan# This is the GCC host-specific configuration file 23132718Skan# where a configuration type is mapped to different system-specific 24132718Skan# definitions and files. This is invoked by the autoconf-generated 25132718Skan# configure script. Putting it in a separate shell file lets us skip 26132718Skan# running autoconf when modifying host-specific information. 27132718Skan 28132718Skan# This file switches on the shell variable ${host}. As much of this as 29132718Skan# is reasonable should be replaced with autoconf tests in the future. 30132718Skan 31132718Skan# This file sets the following shell variables for use by the 32132718Skan# autoconf-generated configure script: 33132718Skan# 34132718Skan# host_xm_file List of files to include when compiling for the 35132718Skan# host machine. 36132718Skan# 37132718Skan# host_xm_defines List of macros to define when compiling for the 38132718Skan# host machine. 39132718Skan# 40132718Skan# host_xmake_file List of host-specific makefile-fragments. 41132718Skan# 42132718Skan# host_exeext Set to the suffix, if the host machine requires 43132718Skan# executables to have a file name suffix. 44132718Skan# 45132718Skan# host_extra_objs List of extra host-dependent objects that should 46132718Skan# be linked into the compiler proper. 47132718Skan# 48132718Skan# host_extra_gcc_objs List of extra host-dependent objects that should 49132718Skan# be linked into the gcc driver. 50132718Skan# 51132718Skan# out_host_hook_obj An object file that provides the host hooks. 52132718Skan 53132718Skan# When setting any of these variables, check to see if a corresponding 54132718Skan# variable is present in config.build; if so, you will likely want to 55132718Skan# set it in both places. 56132718Skan 57132718Skan# Default settings. 58132718Skanhost_xm_file= 59132718Skanhost_xm_defines= 60132718Skanhost_xmake_file= 61132718Skanhost_exeext= 62132718Skanhost_extra_objs= 63132718Skanhost_extra_gcc_objs= 64132718Skanout_host_hook_obj=host-default.o 65132718Skan 66132718Skan# Unsupported hosts list. Generally, only include hosts known to fail here, 67132718Skan# since we allow hosts not listed to be supported generically. 68132718Skancase ${host} in 69132718Skan i[34567]86-sequent-sysv \ 70132718Skan | i[34567]86-sequent-sysv[123]* \ 71132718Skan | i[34567]86-go32-* \ 72132718Skan | i[34567]86-*-go32* \ 73132718Skan | vax-*-vms*) 74132718Skan echo "*** Configuration for host ${host} not supported" 1>&2 75132718Skan exit 1 76132718Skan ;; 77132718Skanesac 78132718Skan 79132718Skan# Machine-specific settings. 80132718Skancase ${host} in 81132718Skan alpha*-dec-*vms*) 82132718Skan host_xm_file=alpha/xm-vms.h 83132718Skan host_xmake_file=alpha/x-vms 84132718Skan host_exeext=.exe 85132718Skan # This removes the cpu type and manufacturer components and 86132718Skan # replaces "." with "_" in the operating system version. 87132718Skan target_noncanonical=`echo $host | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'` 88132718Skan prefix=/gnu 89132718Skan local_prefix=/gnu 90132718Skan ;; 91132718Skan hppa1.1-*-pro*) 92132718Skan host_xmake_file="pa/x-ada" 93132718Skan ;; 94132718Skan hppa1.1-*-osf*) 95132718Skan host_xmake_file="pa/x-ada" 96132718Skan ;; 97132718Skan hppa1.1-*-rtems*) 98132718Skan host_xmake_file="pa/x-ada" 99132718Skan ;; 100132718Skan hppa1.1-*-bsd*) 101132718Skan host_xmake_file="pa/x-ada" 102132718Skan ;; 103132718Skan hppa1.0-*-hpux10* | hppa1.1-*-hpux10* | hppa2*-*-hpux10* | \ 104132718Skan hppa1.0-*-hpux11* | hppa1.1-*-hpux11* | hppa2*-*-hpux11* | \ 105132718Skan hppa*64*-*-hpux11*) 106161651Skan out_host_hook_obj=pa-host.o 107161651Skan host_xmake_file=pa/x-hpux 108132718Skan ;; 109161651Skan hppa*-*-linux*) 110161651Skan out_host_hook_obj=pa-host.o 111161651Skan host_xmake_file=pa/x-linux 112161651Skan ;; 113132718Skan i370-*-opened* | i370-*-mvs* ) # IBM 360/370/390 Architecture 114132718Skan host_xm_defines='FATAL_EXIT_CODE=12' 115132718Skan ;; 116132718Skan i[34567]86-sequent-ptx4*) 117132718Skan host_xm_defines="SMALL_ARG_MAX" 118132718Skan ;; 119132718Skan i[34567]86-*-solaris2*) 120132718Skan host_xm_defines="SMALL_ARG_MAX" 121161651Skan out_host_hook_obj=host-solaris.o 122161651Skan host_xmake_file=x-solaris 123132718Skan ;; 124132718Skan i[34567]86-*-sysv4*) # Intel 80386's running System V Release 4 125132718Skan host_xm_defines="SMALL_ARG_MAX" 126132718Skan ;; 127132718Skan i[34567]86-pc-msdosdjgpp*) 128132718Skan host_xm_file=i386/xm-djgpp.h 129132718Skan host_exeext=.exe 130132718Skan # Shorten $target_noncanonical for 8.3 filename conventions. 131132718Skan case ${target} in 132132718Skan *pc-msdosdjgpp*) 133132718Skan target_noncanonical=djgpp 134132718Skan ;; 135132718Skan esac 136132718Skan ;; 137132718Skan i[34567]86-*-pe | i[34567]86-*-cygwin*) 138132718Skan host_xm_file=i386/xm-cygwin.h 139132718Skan host_exeext=.exe 140132718Skan ;; 141132718Skan i[34567]86-*-mingw32*) 142132718Skan host_xm_file=i386/xm-mingw32.h 143132718Skan host_xmake_file=i386/x-mingw32 144132718Skan host_exeext=.exe 145132718Skan ;; 146132718Skan i[34567]86-*-uwin*) 147132718Skan echo "*** UWIN may not be used as a host platform because" 148132718Skan echo "*** linking with posix.dll is not allowed by the GNU GPL." 149132718Skan exit 1 150132718Skan ;; 151132718Skan i[34567]86-*-interix3*) 152132718Skan host_xmake_file="x-interix" 153132718Skan ;; 154132718Skan i860-*-sysv4*) 155132718Skan host_xmake_file=i860/x-sysv4 156132718Skan ;; 157132718Skan powerpc-*-darwin*) 158132718Skan # powerpc-darwin host support. 159132718Skan out_host_hook_obj=host-darwin.o 160132718Skan host_xmake_file=rs6000/x-darwin 161132718Skan ;; 162161651Skan *-*-solaris2*) 163161651Skan out_host_hook_obj=host-solaris.o 164161651Skan host_xmake_file=x-solaris 165161651Skan ;; 166161651Skan *-*-linux*) 167161651Skan out_host_hook_obj=host-linux.o 168161651Skan host_xmake_file=x-linux 169161651Skan ;; 170132718Skanesac 171