public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: ppc: fix bad AC_CACHE_CHECK call with semun
@ 2024-01-02 6:30 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2024-01-02 6:30 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4d4952a63dd231110cd91d2e88c75ad56aa2726f
commit 4d4952a63dd231110cd91d2e88c75ad56aa2726f
Author: Mike Frysinger <vapier@gentoo.org>
Date: Mon Jan 1 19:54:10 2024 -0500
sim: ppc: fix bad AC_CACHE_CHECK call with semun
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.
Diff:
---
sim/ppc/configure | 7 ++-----
sim/ppc/configure.ac | 6 ++----
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/sim/ppc/configure b/sim/ppc/configure
index 59c4d17d344..79157215005 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -3144,7 +3144,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
$as_echo_n "checking if union semun defined... " >&6; }
-if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
+if ${ac_cv_has_union_semun+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3167,13 +3167,10 @@ else
ac_cv_has_union_semun="no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
$as_echo "$ac_cv_has_union_semun" >&6; }
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
-$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
-
if test "$ac_cv_has_union_semun" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index adb4fc00a01..1f61ff1bace 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-02 6:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 6:30 [binutils-gdb] sim: ppc: fix bad AC_CACHE_CHECK call with semun Michael 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).