1 dnl Autoconf configure script for GDB support library
2 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
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.
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.
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/>.
17 dnl Process this file with autoconf to produce a configure script.
19 AC_INIT([gdbsupport], 1.0)
20 AC_CONFIG_SRCDIR(common-defs.h)
21 AC_CONFIG_HEADER(config.h:config.in)
23 # Set build, build_cpu, build_vendor and build_os.
26 # Set host, host_cpu, host_vendor, and host_os.
29 # Set target, target_cpu, target_vendor, and target_os.
35 AM_SILENT_RULES([yes])
41 AC_USE_SYSTEM_EXTENSIONS
44 # We require a C++17 compiler. Check if one is available, and if
45 # necessary, set CXX_DIALECT to some -std=xxx switch.
46 AX_CXX_COMPILE_STDCXX(17, , mandatory)
48 dnl Set up for gettext.
49 ZW_GNU_GETTEXT_SISTER_DIR
54 AM_CONDITIONAL(SELFTEST, $enable_unittests)
56 AM_CONDITIONAL(HAVE_PIPE_OR_PIPE2,
57 [test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ])
59 # Check the return and argument types of ptrace.
62 # Detect support warning flags.
66 # Set the 'development' global.
67 . $srcdir/../bfd/development.sh
69 if test "$development" = true ; then
70 AC_DEFINE(DEVELOPMENT, 1,
71 [Define if development-mode features are enabled.])
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
84 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(srcdir)/../bfd/development.sh'])
86 AC_CONFIG_FILES([Makefile])