diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2023-01-04 01:33:29 +0000 |
---|---|---|
committer | Tsukasa OI <research_trasio@irq.a4lg.com> | 2023-01-05 03:31:42 +0000 |
commit | 9f046489d0e3c4f5128a128ba3ecda3e45bc2544 (patch) | |
tree | bbe4fc8e86ab830257a58f8a9895f415832e3722 /sim/configure.ac | |
parent | 7cbf35923d31f1f02e69131a9e0f6f065ad8053c (diff) | |
download | gdb-9f046489d0e3c4f5128a128ba3ecda3e45bc2544.zip gdb-9f046489d0e3c4f5128a128ba3ecda3e45bc2544.tar.gz gdb-9f046489d0e3c4f5128a128ba3ecda3e45bc2544.tar.bz2 |
sim: Move getopt checking inside SIM_AC_PLATFORM
This commit moves getopt declaration checker originally in sim/
configure.ac; added in commit 340aa4f6872c ("sim: Check known getopt
definition existence") to sim/m4/sim_ac_platform.m4 (inside the
SIM_AC_PLATFORM macro).
It also regenerates configuration files using the maintainer mode.
Diffstat (limited to 'sim/configure.ac')
-rw-r--r-- | sim/configure.ac | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sim/configure.ac b/sim/configure.ac index 45a9e13..714754e 100644 --- a/sim/configure.ac +++ b/sim/configure.ac @@ -187,16 +187,6 @@ SIM_AC_OPTION_STDIO SIM_AC_OPTION_TRACE SIM_AC_OPTION_WARNINGS -AC_MSG_CHECKING(for a known getopt prototype in unistd.h) -AC_CACHE_VAL(sim_cv_decl_getopt_unistd_h, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])], -sim_cv_decl_getopt_unistd_h=yes, sim_cv_decl_getopt_unistd_h=no)]) -AC_MSG_RESULT($sim_cv_decl_getopt_unistd_h) -if test $sim_cv_decl_getopt_unistd_h = yes; then - AC_DEFINE([HAVE_DECL_GETOPT], 1, - [Is the prototype for getopt in <unistd.h> in the expected format?]) -fi - dnl These are unfortunate. They are conditionally called by other sim macros dnl but always used by common/Make-common.in. So we have to subst here even dnl when the rest of the code is in the respective macros. Once we merge the |