gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / bfd / configure.host
index 634b0b12376de4ccf29c82328d95e1f451187f17..c824a47d45d78f66b1755287776fd4d4e93bab69 100644 (file)
@@ -1,9 +1,26 @@
+#
+#   Copyright (C) 2012-2020 Free Software Foundation, Inc.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING3.  If not see
+# <http://www.gnu.org/licenses/>.
+#
 # This file is a shell script that overrides some of the tools and
 # flags used on a host specific basis.
 
 # Since the "bfd/hosts" directory is shared by the bfd, opcodes, and
 # binutils directories (at least), the index to it is also shared.
-# This is that index.  Each configure.in file should source this file
+# This is that index.  Each configure.ac file should source this file
 # in its per-host part.
 
 # This sets the following shell variables:
@@ -19,54 +36,47 @@ HOST_U_64BIT_TYPE=
 
 case "${host}" in
 
-alpha*-*-*)            host64=true; HOST_64BIT_TYPE=long ;;
-
-hppa*64*-*-hpux*)      HDEFINES=-DHOST_HPPAHPUX;
-                       host64=true; HOST_64BIT_TYPE=long ;;
-hppa*-*-hpux*)         HDEFINES=-DHOST_HPPAHPUX ;;
+hppa*64*-*-hpux*)      # HP/UX's ftello64 et.al. declarations are only
+                       # visible when _LARGEFILE64_SOURCE is defined.
+                       # Without those declarations, real_ftell et.al.
+                       # get mis-compiled.
+                       HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE"
+                       host64=true;;
+hppa*-*-hpux*)         HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;;
 hppa*-*-hiux*)         HDEFINES=-DHOST_HPPAHPUX ;;
-hppa*64*-*-linux*)     host64=true; HOST_64BIT_TYPE=long ;;
 hppa*-*-mpeix*)                HDEFINES=-DHOST_HPPAMPEIX ;;
 hppa*-*-bsd*)          HDEFINES=-DHOST_HPPABSD ;;
 hppa*-*-osf*)          HDEFINES=-DHOST_HPPAOSF ;;
 
-ia64-*-linux*)         host64=true; HOST_64BIT_TYPE=long ;;
-ia64-*-aix*)           host64=true; HOST_64BIT_TYPE=long ;;
-ia64-*-hpux*)          host64=true
-                       HOST_64BIT_TYPE="long long";
-                       HOST_U_64BIT_TYPE="unsigned long long";
-                       ;;
+ia64-*-hpux*)          HDEFINES=-D_LARGEFILE64_SOURCE
+                       host64=true;;
+ia64-*-*)              host64=true;;
+
+# Workaround for limitations on win9x where file contents are
+# not zero'd out if you seek past the end and then write.
+i[3-7]86-*-mingw32*)   HDEFINES=-D__USE_MINGW_FSEEK;;
 
-i[3456]86-sequent-bsd*)        HDEFINES=-Dshared=genshared ;;
-i[3456]86-sequent-sysv4*) ;;
-i[3456]86-sequent-sysv*)       HDEFINES=-Dshared=genshared ;;
+i[3-7]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;;
+i[3-7]86-sequent-sysv4*) ;;
+i[3-7]86-sequent-sysv*)        HDEFINES=-Dshared=genshared ;;
 
 mips*-*-netbsd*)       ;;
 mips*-*-openbsd*)      ;;
 mips*-dec-*)           HDEFINES="-G 4" ;;
 mips*-sgi-irix3*)      HDEFINES="-G 4" ;;
 mips*-sgi-irix4*)      HDEFINES="-G 4" ;;
-mips*-sgi-irix6*)      host64=true
-                       HOST_64BIT_TYPE="long long";
-                       HOST_U_64BIT_TYPE="unsigned long long";
-                       ;;
-mips64*-*-linux*)      host64=true
-                       HOST_64BIT_TYPE="long long";
-                       HOST_U_64BIT_TYPE="unsigned long long";
-                       ;;
+mips*-sgi-irix6*)      host64=true;;
+mips64*-*-linux*)      host64=true;;
+mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu) host64=true;;
 mips*-*-sysv4*)                ;;
 mips*-*-sysv*)         HDEFINES="-G 4" ;;
 mips*-*-riscos*)       HDEFINES="-G 4" ;;
 
-m68*-hp-hpux*)         HDEFINES=-DHOST_HP300HPUX ;;
-
-*-*-aix*)              HOST_64BIT_TYPE="long long"
-                       HOST_U_64BIT_TYPE="unsigned long long"
-                       ;;
-
-*-*-solaris*)          HOST_64BIT_TYPE="long long"
-                       HOST_U_64BIT_TYPE="unsigned long long"
-                       ;;
+# Some Solaris systems (osol0906 at least) have a libc that doesn't recognise
+# the "MS-ANSI" code page name, so we define an override for CP_ACP (sets the
+# default code page used by windres/windmc when not specified by a commandline
+# option) to select the "WINDOWS-1252" name instead.  See PR11280 for details.
+*-*-solaris2.11)       HDEFINES=-DCP_ACP=1 ;;
 
 *-*-windows*)
                        HOST_64BIT_TYPE=__int64
This page took 0.025269 seconds and 4 git commands to generate.