public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/submitted 1/5] sim: ppc: fix bad AC_CACHE_CHECK call with semun
@ 2024-01-02  5:30 Mike Frysinger
  2024-01-02  5:30 ` [PATCH/submitted 2/5] sim: ppc: merge System V semaphores checks Mike Frysinger
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mike Frysinger @ 2024-01-02  5:30 UTC (permalink / raw)
  To: gdb-patches

The first arg is the cache var name, and this one was typoed relative
to what the call actually set.  We also don't need the manual call to
AC_MSG_RESULT as the AC_CACHE_CHECK takes care of it for us.
---
 sim/ppc/configure    | 7 ++-----
 sim/ppc/configure.ac | 6 ++----
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index adb4fc00a01d..1f61ff1bacef 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -97,16 +97,14 @@ esac
 ])dnl
 
 AC_CACHE_CHECK([if union semun defined],
-  ac_cv_HAS_UNION_SEMUN,
+  [ac_cv_has_union_semun],
   [AC_TRY_COMPILE([
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>],
 [union semun arg ;],
 [ac_cv_has_union_semun="yes"],
-[ac_cv_has_union_semun="no"])
-AC_MSG_RESULT($ac_cv_has_union_semun)
-])
+[ac_cv_has_union_semun="no"])])
 
 
 if test "$ac_cv_has_union_semun" = "yes"; then
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-02  6:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02  5:30 [PATCH/submitted 1/5] sim: ppc: fix bad AC_CACHE_CHECK call with semun Mike Frysinger
2024-01-02  5:30 ` [PATCH/submitted 2/5] sim: ppc: merge System V semaphores checks Mike Frysinger
2024-01-02  5:30 ` [PATCH/submitted 3/5] sim: ppc: change SysV sem & shm tests to compile-time Mike Frysinger
2024-01-02  5:30 ` [PATCH/submitted 4/5] sim: ppc: always compile in the sysv sem & shm device files Mike Frysinger
2024-01-02  5:30 ` [PATCH/submitted 5/5] sim: ppc: hoist sysv tests to top-level Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).