Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH/committed] sim: msp430: delete unused getopt.h probe
@ 2021-04-19  3:34 Mike Frysinger via Gdb-patches
  2021-04-19 14:26 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger via Gdb-patches @ 2021-04-19  3:34 UTC (permalink / raw)
  To: gdb-patches

This port doesn't include it anywhere, so drop the test.
---
 sim/msp430/ChangeLog    |  5 +++++
 sim/msp430/config.in    |  3 ---
 sim/msp430/configure    | 13 -------------
 sim/msp430/configure.ac |  2 --
 4 files changed, 5 insertions(+), 18 deletions(-)

diff --git a/sim/msp430/ChangeLog b/sim/msp430/ChangeLog
index 3fb96802f669..cdc5cbd74800 100644
--- a/sim/msp430/ChangeLog
+++ b/sim/msp430/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-18  Mike Frysinger  <vapier@gentoo.org>
+
+	* configure.ac: Delete AC_CHECK_HEADERS call.
+	* config.in, configure: Regenerate.
+
 2021-04-18  Mike Frysinger  <vapier@gentoo.org>
 
 	* configure: Regenerate.
diff --git a/sim/msp430/config.in b/sim/msp430/config.in
index e4894c4c5105..cb5ea1b01c95 100644
--- a/sim/msp430/config.in
+++ b/sim/msp430/config.in
@@ -22,9 +22,6 @@
 /* Define to 1 if you have the `ftruncate' function. */
 #undef HAVE_FTRUNCATE
 
-/* Define to 1 if you have the <getopt.h> header file. */
-#undef HAVE_GETOPT_H
-
 /* Define to 1 if you have the `getrusage' function. */
 #undef HAVE_GETRUSAGE
 
diff --git a/sim/msp430/configure b/sim/msp430/configure
index 86a1946b4665..4488524eea66 100755
--- a/sim/msp430/configure
+++ b/sim/msp430/configure
@@ -11909,19 +11909,6 @@ _ACEOF
 
 
 
-for ac_header in getopt.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
-if test "x$ac_cv_header_getopt_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_GETOPT_H 1
-_ACEOF
-
-fi
-
-done
-
-
 
 wire_endian="LITTLE"
 default_endian=""
diff --git a/sim/msp430/configure.ac b/sim/msp430/configure.ac
index 68e9467339a9..0277d7f497e3 100644
--- a/sim/msp430/configure.ac
+++ b/sim/msp430/configure.ac
@@ -23,8 +23,6 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
 
 SIM_AC_COMMON
 
-AC_CHECK_HEADERS(getopt.h)
-
 SIM_AC_OPTION_ENDIAN(LITTLE)
 SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT)
 SIM_AC_OPTION_WARNINGS
-- 
2.30.2


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

* Re: [PATCH/committed] sim: msp430: delete unused getopt.h probe
  2021-04-19  3:34 [PATCH/committed] sim: msp430: delete unused getopt.h probe Mike Frysinger via Gdb-patches
@ 2021-04-19 14:26 ` Tom Tromey
  2021-04-19 14:44   ` Mike Frysinger via Gdb-patches
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2021-04-19 14:26 UTC (permalink / raw)
  To: Mike Frysinger via Gdb-patches

>>>>> "Mike" == Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org> writes:

Mike> This port doesn't include it anywhere, so drop the test.

Note that getopt.h is in the top-level include directory anyway; getopt
is included with libiberty.

Tom

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

* Re: [PATCH/committed] sim: msp430: delete unused getopt.h probe
  2021-04-19 14:26 ` Tom Tromey
@ 2021-04-19 14:44   ` Mike Frysinger via Gdb-patches
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger via Gdb-patches @ 2021-04-19 14:44 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

On 19 Apr 2021 08:26, Tom Tromey wrote:
> >>>>> "Mike" == Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Mike> This port doesn't include it anywhere, so drop the test.
> 
> Note that getopt.h is in the top-level include directory anyway; getopt
> is included with libiberty.

thanks, i hadn't noticed that.  there's more ports doing this that i can
clean up.
-mike

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

end of thread, other threads:[~2021-04-19 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19  3:34 [PATCH/committed] sim: msp430: delete unused getopt.h probe Mike Frysinger via Gdb-patches
2021-04-19 14:26 ` Tom Tromey
2021-04-19 14:44   ` Mike Frysinger via Gdb-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox