summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-10 00:19:45 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-10 00:19:45 +0700
commit959550953e9467b3aa3e168c8ea313e123626d9b (patch)
tree3bc4a50d3930ff7055becbe8dc3ce2d182ac55f9
parent31b40f11f1cf7c79eff80bed214d3350a9a209a4 (diff)
downloadbinutils-gdb-959550953e9467b3aa3e168c8ea313e123626d9b.tar.gz
sim: restore lstat & mkdir func checks
When merging ppc configure checks into the top-level, these 2 funcs were accidentally dropped (probably due to incorrect resolution of conflicts). Restore them since the ppc code utilizes them both.
-rw-r--r--sim/config.h.in6
-rwxr-xr-xsim/configure10
-rw-r--r--sim/m4/sim_ac_platform.m42
3 files changed, 16 insertions, 2 deletions
diff --git a/sim/config.h.in b/sim/config.h.in
index 7c0087fcd0b..71f17fb926b 100644
--- a/sim/config.h.in
+++ b/sim/config.h.in
@@ -135,9 +135,15 @@
/* Define to 1 if you have the `lseek' function. */
#undef HAVE_LSEEK
+/* Define to 1 if you have the `lstat' function. */
+#undef HAVE_LSTAT
+
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
+/* Define to 1 if you have the `mkdir' function. */
+#undef HAVE_MKDIR
+
/* Define to 1 if you have the `mmap' function. */
#undef HAVE_MMAP
diff --git a/sim/configure b/sim/configure
index 1916e1d37f6..57c4fcf6972 100755
--- a/sim/configure
+++ b/sim/configure
@@ -2929,6 +2929,8 @@ as_fn_append ac_func_list " ioctl"
as_fn_append ac_func_list " kill"
as_fn_append ac_func_list " link"
as_fn_append ac_func_list " lseek"
+as_fn_append ac_func_list " lstat"
+as_fn_append ac_func_list " mkdir"
as_fn_append ac_func_list " mmap"
as_fn_append ac_func_list " munmap"
as_fn_append ac_func_list " pipe"
@@ -5544,6 +5546,10 @@ done
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
if ${ac_cv_struct_tm+:} false; then :
@@ -12425,7 +12431,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12428 "configure"
+#line 12434 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12531,7 +12537,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12534 "configure"
+#line 12540 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4
index abfb2bd9e6e..0a910c7f5b3 100644
--- a/sim/m4/sim_ac_platform.m4
+++ b/sim/m4/sim_ac_platform.m4
@@ -79,6 +79,8 @@ AC_CHECK_FUNCS_ONCE(m4_flatten([
kill
link
lseek
+ lstat
+ mkdir
mmap
munmap
pipe