]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/configure.ac
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdbsupport / configure.ac
CommitLineData
01027315 1dnl Autoconf configure script for GDB support library
1d506c26 2dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
01027315
TT
3dnl
4dnl This program is free software; you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation; either version 3 of the License, or
7dnl (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17dnl Process this file with autoconf to produce a configure script.
18
19AC_INIT([gdbsupport], 1.0)
20AC_CONFIG_SRCDIR(common-defs.h)
3684d331 21AC_CONFIG_HEADER(config.h:config.in)
91e1a0ed
SM
22
23# Set build, build_cpu, build_vendor and build_os.
24AC_CANONICAL_BUILD
25
26# Set host, host_cpu, host_vendor, and host_os.
27AC_CANONICAL_HOST
28
29# Set target, target_cpu, target_vendor, and target_os.
30AC_CANONICAL_TARGET
31
01027315
TT
32AM_MAINTAINER_MODE
33AC_CONFIG_AUX_DIR(..)
34AM_INIT_AUTOMAKE
35AM_SILENT_RULES([yes])
36
37AC_PROG_CC
38AC_PROG_CXX
39AC_PROG_RANLIB
40
41AC_USE_SYSTEM_EXTENSIONS
42ACX_LARGEFILE
01027315 43
f74dc267 44# We require a C++17 compiler. Check if one is available, and if
01027315 45# necessary, set CXX_DIALECT to some -std=xxx switch.
f74dc267 46AX_CXX_COMPILE_STDCXX(17, , mandatory)
01027315
TT
47
48dnl Set up for gettext.
49ZW_GNU_GETTEXT_SISTER_DIR
50
51libiberty_INIT
52GDB_AC_COMMON
53GDB_AC_SELFTEST
54AM_CONDITIONAL(SELFTEST, $enable_unittests)
55
ea3e7446
JB
56AM_CONDITIONAL(HAVE_PIPE_OR_PIPE2,
57 [test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ])
58
05ea2a05
TT
59# Check the return and argument types of ptrace.
60GDB_AC_PTRACE
61
629c2962 62# Detect support warning flags.
4b74833d 63AM_GDB_COMPILER_TYPE
629c2962
SM
64AM_GDB_WARNINGS
65
171fba11
PA
66# Set the 'development' global.
67. $srcdir/../bfd/development.sh
68
69if test "$development" = true ; then
70 AC_DEFINE(DEVELOPMENT, 1,
71 [Define if development-mode features are enabled.])
72fi
73
01027315
TT
74case ${host} in
75 *mingw32*)
76 AC_DEFINE(USE_WIN32API, 1,
77 [Define if we should use the Windows API, instead of the
78 POSIX API. On Windows, we use the Windows API when
79 building for MinGW, but the POSIX API when building
80 for Cygwin.])
81 ;;
82esac
83
39eedb20 84AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(srcdir)/../bfd/development.sh'])
171fba11 85
01027315
TT
86AC_CONFIG_FILES([Makefile])
87AC_OUTPUT