introduce common.m4
[deliverable/binutils-gdb.git] / gdb / common / common.m4
1 dnl Autoconf configure snippets for common.
2 dnl Copyright (C) 1995-2013 Free Software Foundation, Inc.
3 dnl
4 dnl This file is part of GDB.
5 dnl
6 dnl This program is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 3 of the License, or
9 dnl (at your option) any later version.
10 dnl
11 dnl This program is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
15 dnl
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 dnl Invoke configury needed by the files in 'common'.
20 AC_DEFUN([GDB_AC_COMMON], [
21 AC_HEADER_STDC
22 AC_HEADER_DIRENT
23 AC_FUNC_ALLOCA
24
25 dnl Note that this requires codeset.m4, which is included
26 dnl by the users of common.m4.
27 AM_LANGINFO_CODESET
28
29 AC_CHECK_HEADERS(linux/perf_event.h locale.h memory.h signal.h dnl
30 string.h strings.h dnl
31 sys/resource.h sys/socket.h sys/syscall.h dnl
32 sys/un.h sys/wait.h dnl
33 thread_db.h wait.h)
34
35 AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 socketpair])
36
37 AC_CHECK_DECLS([strerror, strstr])
38 ])
This page took 0.031811 seconds and 5 git commands to generate.