* m68klinux-nat.c: Include "gdb_proc_service.h".
[deliverable/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
db8274e6 22hppa*64*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only
ca0b7686
AC
23 # visible when _LARGEFILE64_SOURCE is defined.
24 # Without those declarations, real_ftell et.al.
25 # get mis-compiled.
db8274e6
DA
26 HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE"
27 host64=true;;
28hppa*-*-hpux*) HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;;
252b5132
RH
29hppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;;
30hppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;;
31hppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;;
32hppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;;
33
76f703bf
SE
34ia64-*-hpux*) HDEFINES=-D_LARGEFILE64_SOURCE
35 host64=true;;
6726e1ea 36ia64-*-*) host64=true;;
800eeca4 37
2cefff79
DS
38# Workaround for limitations on win9x where file contents are
39# not zero'd out if you seek past the end and then write.
40i[3-7]86-*-mingw32*) HDEFINES=-D__USE_MINGW_FSEEK;;
41
80c7c40a
NC
42i[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;;
43i[3-7]86-sequent-sysv4*) ;;
44i[3-7]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;;
252b5132 45
3dc70b57 46mips*-*-netbsd*) ;;
252b5132
RH
47mips*-*-openbsd*) ;;
48mips*-dec-*) HDEFINES="-G 4" ;;
49mips*-sgi-irix3*) HDEFINES="-G 4" ;;
50mips*-sgi-irix4*) HDEFINES="-G 4" ;;
6726e1ea
L
51mips*-sgi-irix6*) host64=true;;
52mips64*-*-linux*) host64=true;;
aeffff67 53mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu) host64=true;;
252b5132
RH
54mips*-*-sysv4*) ;;
55mips*-*-sysv*) HDEFINES="-G 4" ;;
56mips*-*-riscos*) HDEFINES="-G 4" ;;
57
58m68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;;
59
b946d5d8
DK
60# Some Solaris systems (osol0906 at least) have a libc that doesn't recognise
61# the "MS-ANSI" code page name, so we define an override for CP_ACP (sets the
62# default code page used by windres/windmc when not specified by a commandline
63# option) to select the "WINDOWS-1252" name instead. See PR11280 for details.
64*-*-solaris2.11) HDEFINES=-DCP_ACP=1 ;;
65
252b5132
RH
66*-*-windows*)
67 HOST_64BIT_TYPE=__int64
68 HOST_U_64BIT_TYPE="unsigned __int64"
69# The following krock is necessary because we can't run the build compiler
70# (MSVC) on the configure host, so we have to explicitly set the values here.
71# Note that this file is never run through autoconf, so we can't use any
72# autoconf macros here. Because of this, we have to muck with autoconf
73# variables explicitly.
74 ac_cv_func_mmap_fixed_mapped=no
75 ac_cv_header_time=no
76 ac_cv_func_getpagesize=no
77 ac_cv_func_madvise=no
78 ac_cv_func_mprotect=no
633fd09f
ILT
79 ac_cv_func_getuid=no
80 ac_cv_func_getgid=no
252b5132
RH
81 ac_cv_header_sys_file_h=no
82 ac_cv_header_sys_time_h=no
83 ac_cv_header_unistd_h=no
84 ;;
85esac
This page took 0.55023 seconds and 4 git commands to generate.