configure.host revision 60484
133965Sjdp# This file is a shell script that overrides some of the tools and
233965Sjdp# flags used on a host specific basis.
333965Sjdp
433965Sjdp# Since the "bfd/hosts" directory is shared by the bfd, opcodes, and
533965Sjdp# binutils directories (at least), the index to it is also shared.
633965Sjdp# This is that index.  Each configure.in file should source this file
733965Sjdp# in its per-host part.
833965Sjdp
933965Sjdp# This sets the following shell variables:
1033965Sjdp#  HDEFINES		host specific compiler options
1133965Sjdp#  host64		set to true if 64 bit types are as fast as 32 bit
1233965Sjdp#  HOST_64BIT_TYPE	host 64 bit type
1333965Sjdp#  HOST_U_64BIT_TYPE	unsigned 64 bit type (not needed if 64BIT_TYPE is long)
1433965Sjdp
1533965SjdpHDEFINES=
1633965Sjdphost64=false
1733965SjdpHOST_64BIT_TYPE=
1838889SjdpHOST_U_64BIT_TYPE=
1933965Sjdp
2033965Sjdpcase "${host}" in
2133965Sjdp
2238889Sjdpalpha*-*-*)		host64=true; HOST_64BIT_TYPE=long ;;
2333965Sjdp
2433965Sjdphppa*-*-hpux*)		HDEFINES=-DHOST_HPPAHPUX ;;
2533965Sjdphppa*-*-hiux*)		HDEFINES=-DHOST_HPPAHPUX ;;
2660484Sobrienhppa*-*-mpeix*)		HDEFINES=-DHOST_HPPAMPEIX ;;
2733965Sjdphppa*-*-bsd*)		HDEFINES=-DHOST_HPPABSD ;;
2833965Sjdphppa*-*-osf*)		HDEFINES=-DHOST_HPPAOSF ;;
2933965Sjdp
3033965Sjdpi[3456]86-sequent-bsd*)	HDEFINES=-Dshared=genshared ;;
3133965Sjdpi[3456]86-sequent-sysv4*) ;;
3233965Sjdpi[3456]86-sequent-sysv*)	HDEFINES=-Dshared=genshared ;;
3333965Sjdp
3433965Sjdpmips*-dec-netbsd*)	;;
3533965Sjdpmips*-*-openbsd*)	;;
3633965Sjdpmips*-dec-*)		HDEFINES="-G 4"	;;
3733965Sjdpmips*-sgi-irix3*)	HDEFINES="-G 4" ;;
3833965Sjdpmips*-sgi-irix4*)	HDEFINES="-G 4" ;;
3933965Sjdpmips*-sgi-irix6*)	host64=true
4033965Sjdp			HOST_64BIT_TYPE="long long";
4133965Sjdp			HOST_U_64BIT_TYPE="unsigned long long";
4233965Sjdp			;;
4333965Sjdpmips*-*-sysv4*)		;;
4433965Sjdpmips*-*-sysv*)		HDEFINES="-G 4" ;;
4533965Sjdpmips*-*-riscos*)	HDEFINES="-G 4" ;;
4633965Sjdp
4733965Sjdpm68*-hp-hpux*)		HDEFINES=-DHOST_HP300HPUX ;;
4833965Sjdp
4933965Sjdp*-*-solaris*)		HOST_64BIT_TYPE="long long"
5033965Sjdp			HOST_U_64BIT_TYPE="unsigned long long"
5133965Sjdp			;;
5233965Sjdp
5333965Sjdp*-*-windows*)
5433965Sjdp			HOST_64BIT_TYPE=__int64
5533965Sjdp			HOST_U_64BIT_TYPE="unsigned __int64"
5633965Sjdp# The following krock is necessary because we can't run the build compiler
5733965Sjdp# (MSVC) on the configure host, so we have to explicitly set the values here.
5833965Sjdp# Note that this file is never run through autoconf, so we can't use any
5933965Sjdp# autoconf macros here.  Because of this, we have to muck with autoconf
6033965Sjdp# variables explicitly.
6133965Sjdp			ac_cv_func_mmap_fixed_mapped=no
6233965Sjdp			ac_cv_header_time=no
6333965Sjdp			ac_cv_func_getpagesize=no
6433965Sjdp			ac_cv_func_madvise=no
6533965Sjdp			ac_cv_func_mprotect=no
6660484Sobrien			ac_cv_func_getuid=no
6760484Sobrien			ac_cv_func_getgid=no
6833965Sjdp			ac_cv_header_sys_file_h=no
6933965Sjdp			ac_cv_header_sys_time_h=no
7033965Sjdp			ac_cv_header_unistd_h=no
7133965Sjdp			;;
7233965Sjdpesac
73