From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id EC6DA3858D28; Wed, 9 Nov 2022 17:21:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC6DA3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668014468; bh=Trdrq9uTxGmQzIb15ZJAwXqdREy2jrP9qOOFQVPVfE0=; h=From:To:Subject:Date:From; b=LPJPW+13dfTrjeH0xdofGQB0zW67055Z8yvOfR/Rg4DuVsG9Pc9uIGMou92LUKRv/ kSiYf6HN/hQvRpjJAj62ithGiXXDEPcVuBd5nm3p3RxkKvw7UhDj0hzMmF+MLS8Tus kVgGjIJxKIgBczvXlCZhIq/97sYXBlBBXlPjN3iA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: restore lstat & mkdir func checks X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 31b40f11f1cf7c79eff80bed214d3350a9a209a4 X-Git-Newrev: 959550953e9467b3aa3e168c8ea313e123626d9b Message-Id: <20221109172108.EC6DA3858D28@sourceware.org> Date: Wed, 9 Nov 2022 17:21:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D959550953e94= 67b3aa3e168c8ea313e123626d9b commit 959550953e9467b3aa3e168c8ea313e123626d9b Author: Mike Frysinger Date: Thu Nov 10 00:19:45 2022 +0700 sim: restore lstat & mkdir func checks =20 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. Diff: --- sim/config.h.in | 6 ++++++ sim/configure | 10 ++++++++-- sim/m4/sim_ac_platform.m4 | 2 ++ 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 =20 +/* 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 =20 +/* Define to 1 if you have the `mkdir' function. */ +#undef HAVE_MKDIR + /* Define to 1 if you have the `mmap' function. */ #undef HAVE_MMAP =20 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" @@ -5539,6 +5541,10 @@ done =20 =20 =20 + + + + =20 =20 =20 @@ -12425,7 +12431,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12428 "configure" +#line 12434 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -12531,7 +12537,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12534 "configure" +#line 12540 "configure" #include "confdefs.h" =20 #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