configure.host revision 89857
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
22alpha*-*-*)		host64=true; HOST_64BIT_TYPE=long ;;
23
24hppa*64*-*-hpux*)	HDEFINES=-DHOST_HPPAHPUX;
25			host64=true; HOST_64BIT_TYPE=long ;;
26hppa*-*-hpux*)		HDEFINES=-DHOST_HPPAHPUX ;;
27hppa*-*-hiux*)		HDEFINES=-DHOST_HPPAHPUX ;;
28hppa*64*-*-linux*)	host64=true; HOST_64BIT_TYPE=long ;;
29hppa*-*-mpeix*)		HDEFINES=-DHOST_HPPAMPEIX ;;
30hppa*-*-bsd*)		HDEFINES=-DHOST_HPPABSD ;;
31hppa*-*-osf*)		HDEFINES=-DHOST_HPPAOSF ;;
32
33ia64-*-linux*)		host64=true; HOST_64BIT_TYPE=long ;;
34ia64-*-aix*)		host64=true; HOST_64BIT_TYPE=long ;;
35
36i[3456]86-sequent-bsd*)	HDEFINES=-Dshared=genshared ;;
37i[3456]86-sequent-sysv4*) ;;
38i[3456]86-sequent-sysv*)	HDEFINES=-Dshared=genshared ;;
39
40mips*-*-netbsd*)	;;
41mips*-*-openbsd*)	;;
42mips*-dec-*)		HDEFINES="-G 4"	;;
43mips*-sgi-irix3*)	HDEFINES="-G 4" ;;
44mips*-sgi-irix4*)	HDEFINES="-G 4" ;;
45mips*-sgi-irix6*)	host64=true
46			HOST_64BIT_TYPE="long long";
47			HOST_U_64BIT_TYPE="unsigned long long";
48			;;
49mips64*-*-linux*)	host64=true
50			HOST_64BIT_TYPE="long long";
51			HOST_U_64BIT_TYPE="unsigned long long";
52			;;
53mips*-*-sysv4*)		;;
54mips*-*-sysv*)		HDEFINES="-G 4" ;;
55mips*-*-riscos*)	HDEFINES="-G 4" ;;
56
57m68*-hp-hpux*)		HDEFINES=-DHOST_HP300HPUX ;;
58
59*-*-aix*)		HOST_64BIT_TYPE="long long"
60			HOST_U_64BIT_TYPE="unsigned long long"
61			;;
62
63*-*-solaris*)		HOST_64BIT_TYPE="long long"
64			HOST_U_64BIT_TYPE="unsigned long long"
65			;;
66
67*-*-windows*)
68			HOST_64BIT_TYPE=__int64
69			HOST_U_64BIT_TYPE="unsigned __int64"
70# The following krock is necessary because we can't run the build compiler
71# (MSVC) on the configure host, so we have to explicitly set the values here.
72# Note that this file is never run through autoconf, so we can't use any
73# autoconf macros here.  Because of this, we have to muck with autoconf
74# variables explicitly.
75			ac_cv_func_mmap_fixed_mapped=no
76			ac_cv_header_time=no
77			ac_cv_func_getpagesize=no
78			ac_cv_func_madvise=no
79			ac_cv_func_mprotect=no
80			ac_cv_func_getuid=no
81			ac_cv_func_getgid=no
82			ac_cv_header_sys_file_h=no
83			ac_cv_header_sys_time_h=no
84			ac_cv_header_unistd_h=no
85			;;
86esac
87