configure.host revision 218822
1221420Sdes# This file is a shell script that overrides some of the tools and 276259Sgreen# flags used on a host specific basis. 365668Skris 465668Skris# Since the "bfd/hosts" directory is shared by the bfd, opcodes, and 565668Skris# binutils directories (at least), the index to it is also shared. 665668Skris# This is that index. Each configure.in file should source this file 765668Skris# in its per-host part. 865668Skris 965668Skris# This sets the following shell variables: 1065668Skris# HDEFINES host specific compiler options 1165668Skris# host64 set to true if 64 bit types are as fast as 32 bit 1265668Skris# HOST_64BIT_TYPE host 64 bit type 1365668Skris# HOST_U_64BIT_TYPE unsigned 64 bit type (not needed if 64BIT_TYPE is long) 1458582Skris 1558582SkrisHDEFINES= 1658582Skrishost64=false 1758582SkrisHOST_64BIT_TYPE= 18204917SdesHOST_U_64BIT_TYPE= 1958582Skris 2076259Sgreencase "${host}" in 21221420Sdes 22221420Sdeshppa*64*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only 23221420Sdes # visible when _LARGEFILE64_SOURCE is defined. 24221420Sdes # Without those declarations, real_ftell et.al. 25221420Sdes # get mis-compiled. 26221420Sdes HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" 27221420Sdes host64=true;; 28221420Sdeshppa*-*-hpux*) HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;; 29221420Sdeshppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; 30221420Sdeshppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;; 31221420Sdeshppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; 32221420Sdeshppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;; 33221420Sdes 34221420Sdesia64-*-hpux*) HDEFINES=-D_LARGEFILE64_SOURCE 35221420Sdes host64=true;; 36221420Sdesia64-*-*) host64=true;; 37221420Sdes 38221420Sdes# Workaround for limitations on win9x where file contents are 39221420Sdes# not zero'd out if you seek past the end and then write. 40221420Sdesi[3-7]86-*-mingw32*) HDEFINES=-D__USE_MINGW_FSEEK;; 41221420Sdes 42221420Sdesi[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;; 4392555Sdesi[3-7]86-sequent-sysv4*) ;; 44221420Sdesi[3-7]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; 4558582Skris 46146998Sdesmips*-*-netbsd*) ;; 47146998Sdesmips*-*-openbsd*) ;; 48146998Sdesmips*-dec-*) HDEFINES="-G 4" ;; 49204917Sdesmips*-sgi-irix3*) HDEFINES="-G 4" ;; 50204917Sdesmips*-sgi-irix4*) HDEFINES="-G 4" ;; 51204917Sdesmips*-sgi-irix6*) host64=true;; 52146998Sdesmips64*-*-linux*) host64=true;; 53146998Sdesmips*-*-sysv4*) ;; 5458582Skrismips*-*-sysv*) HDEFINES="-G 4" ;; 55mips*-*-riscos*) HDEFINES="-G 4" ;; 56 57m68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;; 58 59*-*-windows*) 60 HOST_64BIT_TYPE=__int64 61 HOST_U_64BIT_TYPE="unsigned __int64" 62# The following krock is necessary because we can't run the build compiler 63# (MSVC) on the configure host, so we have to explicitly set the values here. 64# Note that this file is never run through autoconf, so we can't use any 65# autoconf macros here. Because of this, we have to muck with autoconf 66# variables explicitly. 67 ac_cv_func_mmap_fixed_mapped=no 68 ac_cv_header_time=no 69 ac_cv_func_getpagesize=no 70 ac_cv_func_madvise=no 71 ac_cv_func_mprotect=no 72 ac_cv_func_getuid=no 73 ac_cv_func_getgid=no 74 ac_cv_header_sys_file_h=no 75 ac_cv_header_sys_time_h=no 76 ac_cv_header_unistd_h=no 77 ;; 78esac 79