gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdbsupport / configure.ac
1 dnl Autoconf configure script for GDB support library
2 dnl Copyright (C) 2020 Free Software Foundation, Inc.
3 dnl
4 dnl This program is free software; you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation; either version 3 of the License, or
7 dnl (at your option) any later version.
8 dnl
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
13 dnl
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17 dnl Process this file with autoconf to produce a configure script.
18
19 AC_INIT([gdbsupport], 1.0)
20 AC_CONFIG_SRCDIR(common-defs.h)
21 AC_CONFIG_HEADER(config.h:config.in)
22 AC_CANONICAL_SYSTEM
23 AM_MAINTAINER_MODE
24 AC_CONFIG_AUX_DIR(..)
25 AM_INIT_AUTOMAKE
26 AM_SILENT_RULES([yes])
27
28 AC_PROG_CC
29 AC_PROG_CXX
30 AC_PROG_RANLIB
31
32 AC_USE_SYSTEM_EXTENSIONS
33 ACX_LARGEFILE
34 AM_PROG_CC_STDC
35
36 # We require a C++11 compiler. Check if one is available, and if
37 # necessary, set CXX_DIALECT to some -std=xxx switch.
38 AX_CXX_COMPILE_STDCXX(11, , mandatory)
39
40 dnl Set up for gettext.
41 ZW_GNU_GETTEXT_SISTER_DIR
42
43 libiberty_INIT
44 GDB_AC_COMMON
45 GDB_AC_SELFTEST
46 AM_CONDITIONAL(SELFTEST, $enable_unittests)
47
48 # Check the return and argument types of ptrace.
49 GDB_AC_PTRACE
50
51 # Detect support warning flags.
52 AM_GDB_WARNINGS
53
54 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
55 AC_DEFINE_UNQUOTED(TARGET_WORD_SIZE, $TARGET_WORD_SIZE,
56 [Define to the word size for the target.])
57
58 case ${host} in
59 *mingw32*)
60 AC_DEFINE(USE_WIN32API, 1,
61 [Define if we should use the Windows API, instead of the
62 POSIX API. On Windows, we use the Windows API when
63 building for MinGW, but the POSIX API when building
64 for Cygwin.])
65 ;;
66 esac
67
68 AC_CONFIG_FILES([Makefile])
69 AC_OUTPUT
This page took 0.031605 seconds and 4 git commands to generate.