From 959550953e9467b3aa3e168c8ea313e123626d9b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 10 Nov 2022 00:19:45 +0700 Subject: 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. --- sim/config.h.in | 6 ++++++ sim/configure | 10 ++++++++-- sim/m4/sim_ac_platform.m4 | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) (limited to 'sim') diff --git a/sim/config.h.in b/sim/config.h.in index 7c0087f..71f17fb 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 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 1916e1d..57c4fcf 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 abfb2bd..0a910c7 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 -- cgit v1.1