diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-20 09:21:28 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-20 09:23:56 -0400 |
commit | d549b029d6d622af531211ef4c7bc48cb5011d93 (patch) | |
tree | ed70bf9345526cfbcef5b01359621ab1dab583b4 /sim/rl78 | |
parent | aee4e85e27f94be438e480b59f3218c6fa3463d5 (diff) | |
download | binutils-d549b029d6d622af531211ef4c7bc48cb5011d93.zip binutils-d549b029d6d622af531211ef4c7bc48cb5011d93.tar.gz binutils-d549b029d6d622af531211ef4c7bc48cb5011d93.tar.bz2 |
sim: rl78/rx: drop unnecessary getopt.h probing
Since getopt.h is provided by libiberty, there's no need to probe for
a system version of it. Plus we already assume it exists in other
parts of the sim.
Diffstat (limited to 'sim/rl78')
-rw-r--r-- | sim/rl78/ChangeLog | 6 | ||||
-rw-r--r-- | sim/rl78/config.in | 3 | ||||
-rwxr-xr-x | sim/rl78/configure | 9 | ||||
-rw-r--r-- | sim/rl78/configure.ac | 2 | ||||
-rw-r--r-- | sim/rl78/main.c | 2 |
5 files changed, 8 insertions, 14 deletions
diff --git a/sim/rl78/ChangeLog b/sim/rl78/ChangeLog index 32cd435..f14e4fc 100644 --- a/sim/rl78/ChangeLog +++ b/sim/rl78/ChangeLog @@ -1,3 +1,9 @@ +2021-04-20 Mike Frysinger <vapier@gentoo.org> + + * configure.ac: Delete AC_CHECK_HEADERS_ONCE. + * main.c: Delete HAVE_GETOPT_H. + * config.in, configure: Regenerate. + 2021-04-18 Mike Frysinger <vapier@gentoo.org> * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE. diff --git a/sim/rl78/config.in b/sim/rl78/config.in index e4894c4..cb5ea1b 100644 --- a/sim/rl78/config.in +++ b/sim/rl78/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/rl78/configure b/sim/rl78/configure index 8ba5fd0..7ad7eac 100755 --- a/sim/rl78/configure +++ b/sim/rl78/configure @@ -2302,7 +2302,6 @@ as_fn_append ac_func_list " posix_fallocate" as_fn_append ac_func_list " sigaction" as_fn_append ac_func_list " time" as_fn_append ac_func_list " truncate" -as_fn_append ac_header_list " getopt.h" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -11244,7 +11243,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11247 "configure" +#line 11246 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11350,7 +11349,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11353 "configure" +#line 11352 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11996,10 +11995,6 @@ fi - - - - cgen_breaks="" if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then cgen_breaks="break cgen_rtx_error"; diff --git a/sim/rl78/configure.ac b/sim/rl78/configure.ac index fad367c..0e5f69c 100644 --- a/sim/rl78/configure.ac +++ b/sim/rl78/configure.ac @@ -24,6 +24,4 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config]) SIM_AC_COMMON SIM_AC_OPTION_WARNINGS(no) -AC_CHECK_HEADERS_ONCE(getopt.h) - SIM_AC_OUTPUT diff --git a/sim/rl78/main.c b/sim/rl78/main.c index 3050863..8d8a79d 100644 --- a/sim/rl78/main.c +++ b/sim/rl78/main.c @@ -30,9 +30,7 @@ #include <assert.h> #include <setjmp.h> #include <signal.h> -#ifdef HAVE_GETOPT_H #include <getopt.h> -#endif #include "libiberty.h" #include "bfd.h" |