configure.host revision 130562
1219069Sdim# This file is a shell script that overrides some of the tools and 2219069Sdim# flags used on a host specific basis. 3219069Sdim 4219069Sdim# Since the "bfd/hosts" directory is shared by the bfd, opcodes, and 5219069Sdim# binutils directories (at least), the index to it is also shared. 6219069Sdim# This is that index. Each configure.in file should source this file 7219069Sdim# in its per-host part. 8219069Sdim 9219069Sdim# This sets the following shell variables: 10219069Sdim# HDEFINES host specific compiler options 11219069Sdim# host64 set to true if 64 bit types are as fast as 32 bit 12219069Sdim# HOST_64BIT_TYPE host 64 bit type 13219069Sdim# HOST_U_64BIT_TYPE unsigned 64 bit type (not needed if 64BIT_TYPE is long) 14219069Sdim 15219069SdimHDEFINES= 16219069Sdimhost64=false 17219069SdimHOST_64BIT_TYPE= 18219069SdimHOST_U_64BIT_TYPE= 19219069Sdim 20219069Sdimcase "${host}" in 21219069Sdim 22219069Sdimhppa*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only 23219069Sdim # visible when _LARGEFILE64_SOURCE is defined. 24219069Sdim # Without those declarations, real_ftell et.al. 25234353Sdim # get mis-compiled. 26219069Sdim HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;; 27234353Sdimhppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; 28234353Sdimhppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;; 29234353Sdimhppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; 30234353Sdimhppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;; 31234353Sdim 32226633Sdimia64-*-*) host64=true;; 33234353Sdim 34234353Sdim# Workaround for limitations on win9x where file contents are 35219069Sdim# not zero'd out if you seek past the end and then write. 36234353Sdimi[3-7]86-*-mingw32*) HDEFINES=-D__USE_MINGW_FSEEK;; 37234353Sdim 38234353Sdimi[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;; 39234353Sdimi[3-7]86-sequent-sysv4*) ;; 40234353Sdimi[3-7]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; 41226633Sdim 42226633Sdimmips*-*-netbsd*) ;; 43226633Sdimmips*-*-openbsd*) ;; 44234353Sdimmips*-dec-*) HDEFINES="-G 4" ;; 45234353Sdimmips*-sgi-irix3*) HDEFINES="-G 4" ;; 46226633Sdimmips*-sgi-irix4*) HDEFINES="-G 4" ;; 47234353Sdimmips*-sgi-irix6*) host64=true;; 48226633Sdimmips64*-*-linux*) host64=true;; 49234353Sdimmips*-*-sysv4*) ;; 50234353Sdimmips*-*-sysv*) HDEFINES="-G 4" ;; 51234353Sdimmips*-*-riscos*) HDEFINES="-G 4" ;; 52234353Sdim 53219069Sdimm68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;; 54219069Sdim 55219069Sdim*-*-windows*) 56219069Sdim HOST_64BIT_TYPE=__int64 57219069Sdim HOST_U_64BIT_TYPE="unsigned __int64" 58219069Sdim# The following krock is necessary because we can't run the build compiler 59219069Sdim# (MSVC) on the configure host, so we have to explicitly set the values here. 60219069Sdim# Note that this file is never run through autoconf, so we can't use any 61219069Sdim# autoconf macros here. Because of this, we have to muck with autoconf 62219069Sdim# variables explicitly. 63219069Sdim ac_cv_func_mmap_fixed_mapped=no 64219069Sdim ac_cv_header_time=no 65219069Sdim ac_cv_func_getpagesize=no 66219069Sdim ac_cv_func_madvise=no 67234353Sdim ac_cv_func_mprotect=no 68234353Sdim ac_cv_func_getuid=no 69234353Sdim ac_cv_func_getgid=no 70234353Sdim ac_cv_header_sys_file_h=no 71234353Sdim ac_cv_header_sys_time_h=no 72219069Sdim ac_cv_header_unistd_h=no 73234353Sdim ;; 74234353Sdimesac 75234353Sdim