]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure.host
* readelf.c (get_machine_name): Add case for Blackfin.
[thirdparty/binutils-gdb.git] / bfd / configure.host
CommitLineData
252b5132
RH
1# This file is a shell script that overrides some of the tools and
2# flags used on a host specific basis.
3
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.
8
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)
14
15HDEFINES=
16host64=false
17HOST_64BIT_TYPE=
18HOST_U_64BIT_TYPE=
19
20case "${host}" in
21
ca0b7686
AC
22hppa*-*-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.
25 # get mis-compiled.
26 HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;;
252b5132
RH
27hppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;;
28hppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;;
29hppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;;
30hppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;;
31
76f703bf
SE
32ia64-*-hpux*) HDEFINES=-D_LARGEFILE64_SOURCE
33 host64=true;;
6726e1ea 34ia64-*-*) host64=true;;
800eeca4 35
2cefff79
DS
36# Workaround for limitations on win9x where file contents are
37# not zero'd out if you seek past the end and then write.
38i[3-7]86-*-mingw32*) HDEFINES=-D__USE_MINGW_FSEEK;;
39
80c7c40a
NC
40i[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;;
41i[3-7]86-sequent-sysv4*) ;;
42i[3-7]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;;
252b5132 43
3dc70b57 44mips*-*-netbsd*) ;;
252b5132
RH
45mips*-*-openbsd*) ;;
46mips*-dec-*) HDEFINES="-G 4" ;;
47mips*-sgi-irix3*) HDEFINES="-G 4" ;;
48mips*-sgi-irix4*) HDEFINES="-G 4" ;;
6726e1ea
L
49mips*-sgi-irix6*) host64=true;;
50mips64*-*-linux*) host64=true;;
252b5132
RH
51mips*-*-sysv4*) ;;
52mips*-*-sysv*) HDEFINES="-G 4" ;;
53mips*-*-riscos*) HDEFINES="-G 4" ;;
54
55m68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;;
56
252b5132
RH
57*-*-windows*)
58 HOST_64BIT_TYPE=__int64
59 HOST_U_64BIT_TYPE="unsigned __int64"
60# The following krock is necessary because we can't run the build compiler
61# (MSVC) on the configure host, so we have to explicitly set the values here.
62# Note that this file is never run through autoconf, so we can't use any
63# autoconf macros here. Because of this, we have to muck with autoconf
64# variables explicitly.
65 ac_cv_func_mmap_fixed_mapped=no
66 ac_cv_header_time=no
67 ac_cv_func_getpagesize=no
68 ac_cv_func_madvise=no
69 ac_cv_func_mprotect=no
633fd09f
ILT
70 ac_cv_func_getuid=no
71 ac_cv_func_getgid=no
252b5132
RH
72 ac_cv_header_sys_file_h=no
73 ac_cv_header_sys_time_h=no
74 ac_cv_header_unistd_h=no
75 ;;
76esac