aboutsummaryrefslogtreecommitdiff
path: root/sim/m4/sim_ac_common.m4
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m4/sim_ac_common.m4')
-rw-r--r--sim/m4/sim_ac_common.m414
1 files changed, 12 insertions, 2 deletions
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4
index 8cb45a8..7845142 100644
--- a/sim/m4/sim_ac_common.m4
+++ b/sim/m4/sim_ac_common.m4
@@ -56,8 +56,18 @@ AC_CHECK_HEADERS(unistd.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 sys/stat.h)
-AC_CHECK_FUNCS(getrusage time sigaction __setfpucw)
-AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate posix_fallocate)
+AC_CHECK_FUNCS_ONCE(m4_flatten([
+ __setfpucw
+ ftruncate
+ getrusage
+ lstat
+ mmap
+ munmap
+ posix_fallocate
+ sigaction
+ time
+ truncate
+]))
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],