diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-08 20:23:37 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-09 03:52:30 -0500 |
commit | 936df7568a0e47547285a0dd57b81643264fef38 (patch) | |
tree | eb6e56f3f05e89ae94cd1df26cbcba439a5245d6 /sim/common/acinclude.m4 | |
parent | 80f3f9eecf3aec5903a1a52a7963e9029ef9d15f (diff) | |
download | gdb-936df7568a0e47547285a0dd57b81643264fef38.zip gdb-936df7568a0e47547285a0dd57b81643264fef38.tar.gz gdb-936df7568a0e47547285a0dd57b81643264fef38.tar.bz2 |
sim: drop common/cconfig.h in favor of a single config.h
The common subdir sets up a cconfig.h file to hold checks for the common
code. In practice, most files still end up using config.h instead which
just leads to confusion.
Merge all the configure checks that went into cconfig.h into SIM_AC_COMMON
so we can drop the cconfig.h file altogether. Now there is only a single
config.h file like normal.
Diffstat (limited to 'sim/common/acinclude.m4')
-rw-r--r-- | sim/common/acinclude.m4 | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4 index 47bc2de..a746ca8 100644 --- a/sim/common/acinclude.m4 +++ b/sim/common/acinclude.m4 @@ -84,10 +84,26 @@ ZW_GNU_GETTEXT_SISTER_DIR(../../intl) # FIXME: Seems to me this can cause problems for i386-windows hosts. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. AC_CHECK_HEADERS(stdlib.h string.h strings.h unistd.h time.h) -AC_CHECK_HEADERS(sys/time.h sys/resource.h) +AC_CHECK_HEADERS(sys/time.h sys/times.h sys/resource.h sys/mman.h) AC_CHECK_HEADERS(fcntl.h fpu_control.h) AC_CHECK_HEADERS(dlfcn.h errno.h sys/stat.h) AC_CHECK_FUNCS(getrusage time sigaction __setfpucw) +AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate posix_fallocate) +AC_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino], +[struct stat.st_mode], [struct stat.st_nlink], [struct stat.st_uid], +[struct stat.st_gid], [struct stat.st_rdev], [struct stat.st_size], +[struct stat.st_blksize], [struct stat.st_blocks], [struct stat.st_atime], +[struct stat.st_mtime], [struct stat.st_ctime]], [], [], +[[#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H +#include <sys/stat.h> +#endif]]) +AC_CHECK_TYPES(socklen_t, [], [], +[#include <sys/types.h> +#include <sys/socket.h> +]) # Check for socket libraries AC_CHECK_LIB(socket, bind) |