configure.host revision 130561
133965Sjdp# This file is a shell script that overrides some of the tools and 233965Sjdp# flags used on a host specific basis. 333965Sjdp 433965Sjdp# Since the "bfd/hosts" directory is shared by the bfd, opcodes, and 533965Sjdp# binutils directories (at least), the index to it is also shared. 633965Sjdp# This is that index. Each configure.in file should source this file 733965Sjdp# in its per-host part. 833965Sjdp 933965Sjdp# This sets the following shell variables: 1033965Sjdp# HDEFINES host specific compiler options 1133965Sjdp# host64 set to true if 64 bit types are as fast as 32 bit 1233965Sjdp# HOST_64BIT_TYPE host 64 bit type 1333965Sjdp# HOST_U_64BIT_TYPE unsigned 64 bit type (not needed if 64BIT_TYPE is long) 1433965Sjdp 1533965SjdpHDEFINES= 1633965Sjdphost64=false 1733965SjdpHOST_64BIT_TYPE= 1838889SjdpHOST_U_64BIT_TYPE= 1933965Sjdp 2033965Sjdpcase "${host}" in 2133965Sjdp 22130561Sobrienhppa*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only 23130561Sobrien # visible when _LARGEFILE64_SOURCE is defined. 24130561Sobrien # Without those declarations, real_ftell et.al. 25130561Sobrien # get mis-compiled. 26130561Sobrien HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;; 2733965Sjdphppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; 2860484Sobrienhppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;; 2933965Sjdphppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; 3033965Sjdphppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;; 3133965Sjdp 32130561Sobrienia64-*-*) host64=true;; 3377298Sobrien 34130561Sobrien# Workaround for limitations on win9x where file contents are 35130561Sobrien# not zero'd out if you seek past the end and then write. 36130561Sobrieni[3-7]86-*-mingw32*) HDEFINES=-D__USE_MINGW_FSEEK;; 3733965Sjdp 38130561Sobrieni[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;; 39130561Sobrieni[3-7]86-sequent-sysv4*) ;; 40130561Sobrieni[3-7]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; 41130561Sobrien 4289857Sobrienmips*-*-netbsd*) ;; 4333965Sjdpmips*-*-openbsd*) ;; 4433965Sjdpmips*-dec-*) HDEFINES="-G 4" ;; 4533965Sjdpmips*-sgi-irix3*) HDEFINES="-G 4" ;; 4633965Sjdpmips*-sgi-irix4*) HDEFINES="-G 4" ;; 47130561Sobrienmips*-sgi-irix6*) host64=true;; 48130561Sobrienmips64*-*-linux*) host64=true;; 4933965Sjdpmips*-*-sysv4*) ;; 5033965Sjdpmips*-*-sysv*) HDEFINES="-G 4" ;; 5133965Sjdpmips*-*-riscos*) HDEFINES="-G 4" ;; 5233965Sjdp 5333965Sjdpm68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;; 5433965Sjdp 5533965Sjdp*-*-windows*) 5633965Sjdp HOST_64BIT_TYPE=__int64 5733965Sjdp HOST_U_64BIT_TYPE="unsigned __int64" 5833965Sjdp# The following krock is necessary because we can't run the build compiler 5933965Sjdp# (MSVC) on the configure host, so we have to explicitly set the values here. 6033965Sjdp# Note that this file is never run through autoconf, so we can't use any 6133965Sjdp# autoconf macros here. Because of this, we have to muck with autoconf 6233965Sjdp# variables explicitly. 6333965Sjdp ac_cv_func_mmap_fixed_mapped=no 6433965Sjdp ac_cv_header_time=no 6533965Sjdp ac_cv_func_getpagesize=no 6633965Sjdp ac_cv_func_madvise=no 6733965Sjdp ac_cv_func_mprotect=no 6860484Sobrien ac_cv_func_getuid=no 6960484Sobrien ac_cv_func_getgid=no 7033965Sjdp ac_cv_header_sys_file_h=no 7133965Sjdp ac_cv_header_sys_time_h=no 7233965Sjdp ac_cv_header_unistd_h=no 7333965Sjdp ;; 7433965Sjdpesac 75