configure.host revision 38889
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 2238889Sjdpalpha*-*-*) host64=true; HOST_64BIT_TYPE=long ;; 2333965Sjdp 2433965Sjdphppa*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX ;; 2533965Sjdphppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; 2633965Sjdphppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; 2733965Sjdphppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;; 2833965Sjdp 2933965Sjdpi[3456]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;; 3033965Sjdpi[3456]86-sequent-sysv4*) ;; 3133965Sjdpi[3456]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; 3233965Sjdp 3333965Sjdpmips*-dec-netbsd*) ;; 3433965Sjdpmips*-*-openbsd*) ;; 3533965Sjdpmips*-dec-*) HDEFINES="-G 4" ;; 3633965Sjdpmips*-sgi-irix3*) HDEFINES="-G 4" ;; 3733965Sjdpmips*-sgi-irix4*) HDEFINES="-G 4" ;; 3833965Sjdpmips*-sgi-irix6*) host64=true 3933965Sjdp HOST_64BIT_TYPE="long long"; 4033965Sjdp HOST_U_64BIT_TYPE="unsigned long long"; 4133965Sjdp ;; 4233965Sjdpmips*-*-sysv4*) ;; 4333965Sjdpmips*-*-sysv*) HDEFINES="-G 4" ;; 4433965Sjdpmips*-*-riscos*) HDEFINES="-G 4" ;; 4533965Sjdp 4633965Sjdpm68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;; 4733965Sjdp 4833965Sjdp*-*-solaris*) HOST_64BIT_TYPE="long long" 4933965Sjdp HOST_U_64BIT_TYPE="unsigned long long" 5033965Sjdp ;; 5133965Sjdp 5233965Sjdp*-*-windows*) 5333965Sjdp HOST_64BIT_TYPE=__int64 5433965Sjdp HOST_U_64BIT_TYPE="unsigned __int64" 5533965Sjdp# The following krock is necessary because we can't run the build compiler 5633965Sjdp# (MSVC) on the configure host, so we have to explicitly set the values here. 5733965Sjdp# Note that this file is never run through autoconf, so we can't use any 5833965Sjdp# autoconf macros here. Because of this, we have to muck with autoconf 5933965Sjdp# variables explicitly. 6033965Sjdp ac_cv_func_mmap_fixed_mapped=no 6133965Sjdp ac_cv_header_time=no 6233965Sjdp ac_cv_func_getpagesize=no 6333965Sjdp ac_cv_func_madvise=no 6433965Sjdp ac_cv_func_mprotect=no 6533965Sjdp ac_cv_header_sys_file_h=no 6633965Sjdp ac_cv_header_sys_time_h=no 6733965Sjdp ac_cv_header_unistd_h=no 6833965Sjdp ;; 6933965Sjdpesac 70