Index: gdb/common/common.m4 |
diff --git a/sim/m32c/configure.ac b/gdb/common/common.m4 |
similarity index 51% |
copy from sim/m32c/configure.ac |
copy to gdb/common/common.m4 |
index 85a14cdf6c316043acf946e73efe4e420641cb5e..29debd1b8fb671e77e46de11c9e956da845e6b1d 100644 |
--- a/sim/m32c/configure.ac |
+++ b/gdb/common/common.m4 |
@@ -1,9 +1,7 @@ |
-dnl Process this file with autoconf to produce a configure script. |
- |
-dnl Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc. |
-dnl Contributed by Red Hat, Inc. |
-dnl |
-dnl This file is part of the GNU simulators. |
+dnl Autoconf configure snippets for common. |
+dnl Copyright (C) 1995-2013 Free Software Foundation, Inc. |
+dnl |
+dnl This file is part of GDB. |
dnl |
dnl This program is free software; you can redistribute it and/or modify |
dnl it under the terms of the GNU General Public License as published by |
@@ -17,13 +15,22 @@ dnl GNU General Public License for more details. |
dnl |
dnl You should have received a copy of the GNU General Public License |
dnl along with this program. If not, see <http://www.gnu.org/licenses/>. |
-dnl |
-AC_PREREQ(2.64)dnl |
-AC_INIT(Makefile.in) |
-sinclude(../common/acinclude.m4) |
-SIM_AC_COMMON |
+dnl Invoke configury needed by the files in 'common'. |
+AC_DEFUN([GDB_AC_COMMON], [ |
+ AC_HEADER_STDC |
+ AC_FUNC_ALLOCA |
+ |
+ dnl Note that this requires codeset.m4, which is included |
+ dnl by the users of common.m4. |
+ AM_LANGINFO_CODESET |
+ |
+ AC_CHECK_HEADERS(linux/perf_event.h locale.h memory.h signal.h dnl |
+ sys/resource.h sys/socket.h sys/syscall.h dnl |
+ sys/un.h sys/wait.h dnl |
+ thread_db.h wait.h) |
-AC_CHECK_HEADERS(sys/select.h termios.h sys/socket.h netinet/in.h netinet/tcp.h) |
+ AC_CHECK_FUNCS([fdwalk getrlimit pipe pipe2 socketpair]) |
-SIM_AC_OUTPUT |
+ AC_CHECK_DECLS([strerror, strstr]) |
+]) |