1dnl Autoconf configure script for GDB support library 2dnl Copyright (C) 2020 Free Software Foundation, Inc. 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) 21AC_CONFIG_HEADER(config.h:config.in) 22AC_CANONICAL_SYSTEM 23AM_MAINTAINER_MODE 24AC_CONFIG_AUX_DIR(..) 25AM_INIT_AUTOMAKE 26AM_SILENT_RULES([yes]) 27 28AC_PROG_CC 29AC_PROG_CXX 30AC_PROG_RANLIB 31 32AC_USE_SYSTEM_EXTENSIONS 33ACX_LARGEFILE 34AM_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. 38AX_CXX_COMPILE_STDCXX(11, , mandatory) 39 40dnl Set up for gettext. 41ZW_GNU_GETTEXT_SISTER_DIR 42 43libiberty_INIT 44GDB_AC_COMMON 45GDB_AC_SELFTEST 46AM_CONDITIONAL(SELFTEST, $enable_unittests) 47 48# Check the return and argument types of ptrace. 49GDB_AC_PTRACE 50 51# Detect support warning flags. 52AM_GDB_WARNINGS 53 54TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h` 55AC_DEFINE_UNQUOTED(TARGET_WORD_SIZE, $TARGET_WORD_SIZE, 56 [Define to the word size for the target.]) 57 58case ${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 ;; 66esac 67 68AC_CONFIG_FILES([Makefile]) 69AC_OUTPUT 70