aboutsummaryrefslogtreecommitdiff
path: root/sim/common/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/aclocal.m4')
-rw-r--r--sim/common/aclocal.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4
index 2e4e5a9..68896d0 100644
--- a/sim/common/aclocal.m4
+++ b/sim/common/aclocal.m4
@@ -30,7 +30,6 @@ AC_PROG_CC
AC_PROG_INSTALL
# Put a plausible default for CC_FOR_BUILD in Makefile.
-AC_C_CROSS
if test "x$cross_compiling" = "xno"; then
CC_FOR_BUILD='$(CC)'
else
@@ -45,7 +44,10 @@ AC_SUBST(AR)
AC_PROG_RANLIB
# Check for common headers.
-AC_CHECK_HEADERS(stdlib.h string.h strings.h unistd.h)
+# 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 sys/time.h sys/resource.h)
+AC_CHECK_FUNCS(getrusage time)
. ${srcdir}/../../bfd/configure.host
@@ -130,6 +132,10 @@ fi],[sim_trace=""])dnl
AC_SUBST(sim_trace)
+dnl Types used by common code
+AC_TYPE_SIGNAL
+
+
dnl These are available to append to as desired.
sim_link_files=
sim_link_links=