Move gdbsupport to the top level
[deliverable/binutils-gdb.git] / gdbsupport / configure.ac
CommitLineData
01027315
TT
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(support-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
48TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
49AC_DEFINE_UNQUOTED(TARGET_WORD_SIZE, $TARGET_WORD_SIZE,
50 [Define to the word size for the target.])
51
52case ${host} in
53 *mingw32*)
54 AC_DEFINE(USE_WIN32API, 1,
55 [Define if we should use the Windows API, instead of the
56 POSIX API. On Windows, we use the Windows API when
57 building for MinGW, but the POSIX API when building
58 for Cygwin.])
59 ;;
60esac
61
62AC_CONFIG_FILES([Makefile])
63AC_OUTPUT
This page took 0.027957 seconds and 4 git commands to generate.