1 # This file is a shell script that overrides some of the tools and
2 # flags used on a host specific basis.
4 # Since the "bfd/hosts" directory is shared by the bfd, opcodes, and
5 # binutils directories (at least), the index to it is also shared.
6 # This is that index. Each configure.in file should source this file
7 # in its per-host part.
9 # This sets the following shell variables:
10 # HDEFINES host specific compiler options
11 # host64 set to true if 64 bit types are as fast as 32 bit
12 # HOST_64BIT_TYPE host 64 bit type
13 # HOST_U_64BIT_TYPE unsigned 64 bit type (not needed if 64BIT_TYPE is long)
22 hppa*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only
23 # visible when _LARGEFILE64_SOURCE is defined.
24 # Without those declarations, real_ftell et.al.
26 HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;;
27 hppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;;
28 hppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;;
29 hppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;;
30 hppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;;
32 ia64-*-*) host64=true;;
34 # Workaround for limitations on win9x where file contents are
35 # not zero'd out if you seek past the end and then write.
36 i[3-7]86-*-mingw32*) HDEFINES=-D__USE_MINGW_FSEEK;;
38 i[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;;
39 i[3-7]86-sequent-sysv4*) ;;
40 i[3-7]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;;
44 mips*-dec-*) HDEFINES="-G 4" ;;
45 mips*-sgi-irix3*) HDEFINES="-G 4" ;;
46 mips*-sgi-irix4*) HDEFINES="-G 4" ;;
47 mips*-sgi-irix6*) host64=true;;
48 mips64*-*-linux*) host64=true;;
50 mips*-*-sysv*) HDEFINES="-G 4" ;;
51 mips*-*-riscos*) HDEFINES="-G 4" ;;
53 m68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;;
56 HOST_64BIT_TYPE=__int64
57 HOST_U_64BIT_TYPE="unsigned __int64"
58 # The following krock is necessary because we can't run the build compiler
59 # (MSVC) on the configure host, so we have to explicitly set the values here.
60 # Note that this file is never run through autoconf, so we can't use any
61 # autoconf macros here. Because of this, we have to muck with autoconf
62 # variables explicitly.
63 ac_cv_func_mmap_fixed_mapped=no
65 ac_cv_func_getpagesize=no
67 ac_cv_func_mprotect=no
70 ac_cv_header_sys_file_h=no
71 ac_cv_header_sys_time_h=no
72 ac_cv_header_unistd_h=no