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