aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-01 23:57:12 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-02 00:34:15 -0500
commit6bf212a8ac97a844db0ed8213eeb6deee723d453 (patch)
tree3398b4d3815d04bc83b72ea9620e6eb9ff48593f /sim/ppc
parent0168f1aedf7e797bb6cca302ea4f683e38850bb6 (diff)
downloadfsf-binutils-gdb-6bf212a8ac97a844db0ed8213eeb6deee723d453.zip
fsf-binutils-gdb-6bf212a8ac97a844db0ed8213eeb6deee723d453.tar.gz
fsf-binutils-gdb-6bf212a8ac97a844db0ed8213eeb6deee723d453.tar.bz2
sim: ppc: move termios probes to top-level
This is the last compile-time logic in the ppc subdir.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/config.in12
-rwxr-xr-xsim/ppc/configure192
-rw-r--r--sim/ppc/configure.ac69
3 files changed, 0 insertions, 273 deletions
diff --git a/sim/ppc/config.in b/sim/ppc/config.in
index 78786df..2a60b8d 100644
--- a/sim/ppc/config.in
+++ b/sim/ppc/config.in
@@ -1,17 +1,5 @@
/* config.in. Generated from configure.ac by autoheader. */
-/* Define if struct termios has c_line. */
-#undef HAVE_TERMIOS_CLINE
-
-/* Define if struct termios exists. */
-#undef HAVE_TERMIOS_STRUCTURE
-
-/* Define if struct termio has c_line. */
-#undef HAVE_TERMIO_CLINE
-
-/* Define if struct termio exists. */
-#undef HAVE_TERMIO_STRUCTURE
-
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
diff --git a/sim/ppc/configure b/sim/ppc/configure
index b64e4c4..4644439 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -1451,63 +1451,6 @@ fi
as_fn_set_status $ac_retval
} # ac_fn_c_try_compile
-
-# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
-# ----------------------------------------------------
-# Tries to find if the field MEMBER exists in type AGGR, after including
-# INCLUDES, setting cache variable VAR accordingly.
-ac_fn_c_check_member ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
-$as_echo_n "checking for $2.$3... " >&6; }
-if eval \${$4+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$5
-int
-main ()
-{
-static $2 ac_aggr;
-if (ac_aggr.$3)
-return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$5
-int
-main ()
-{
-static $2 ac_aggr;
-if (sizeof ac_aggr.$3)
-return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
-else
- eval "$4=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$4
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_member
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
@@ -3221,141 +3164,6 @@ ac_config_headers="$ac_config_headers config.h:config.in"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
-$as_echo_n "checking for struct termios... " >&6; }
-if ${sim_cv_termios_struct+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/termios.h>
-int
-main ()
-{
-
- static struct termios x;
- x.c_iflag = 0;
- x.c_oflag = 0;
- x.c_cflag = 0;
- x.c_lflag = 0;
- x.c_cc[NCCS] = 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- sim_cv_termios_struct="yes"
-else
- sim_cv_termios_struct="no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
-$as_echo "$sim_cv_termios_struct" >&6; }
-if test $sim_cv_termios_struct = yes; then
-
-$as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
-
-fi
-
-if test "$sim_cv_termios_struct" = "yes"; then
- if ${sim_cv_termios_cline+:} false; then :
- $as_echo_n "(cached) " >&6
-fi
-
- ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
-#include <sys/types.h>
-#include <sys/termios.h>
-
-"
-if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
- sim_cv_termios_cline="yes"
-else
- sim_cv_termios_cline="no"
-fi
-
- if test $sim_cv_termios_cline = yes; then
-
-$as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
-
- fi
-else
- sim_cv_termios_cline=no
-fi
-
-if test "$sim_cv_termios_struct" != "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
-$as_echo_n "checking for struct termio... " >&6; }
-if ${sim_cv_termio_struct+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/termio.h>
-int
-main ()
-{
-
- static struct termio x;
- x.c_iflag = 0;
- x.c_oflag = 0;
- x.c_cflag = 0;
- x.c_lflag = 0;
- x.c_cc[NCC] = 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- sim_cv_termio_struct="yes"
-else
- sim_cv_termio_struct="no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
-$as_echo "$sim_cv_termio_struct" >&6; }
- if test $sim_cv_termio_struct = yes; then
-
-$as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
-
- fi
-else
- sim_cv_termio_struct=no
-fi
-
-if test "$sim_cv_termio_struct" = "yes"; then
- if ${sim_cv_termio_cline+:} false; then :
- $as_echo_n "(cached) " >&6
-fi
-
- ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
-#include <sys/types.h>
-#include <sys/termio.h>
-
-"
-if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
- sim_cv_termio_cline="yes"
-else
- sim_cv_termio_cline="no"
-fi
-
- if test $sim_cv_termio_cline = yes; then
-
-$as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
-
- fi
-else
- sim_cv_termio_cline=no
-fi
-
-
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index 7b4b998..b19be90 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -288,75 +288,6 @@ fi],[sim_xor_endian=""])dnl
AC_CONFIG_HEADER(config.h:config.in)
-dnl Figure out what type of termio/termios support there is
-AC_CACHE_CHECK([for struct termios],
- [sim_cv_termios_struct],
- [AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/termios.h>], [
- static struct termios x;
- x.c_iflag = 0;
- x.c_oflag = 0;
- x.c_cflag = 0;
- x.c_lflag = 0;
- x.c_cc[NCCS] = 0;
-], [sim_cv_termios_struct="yes"], [sim_cv_termios_struct="no"])])
-if test $sim_cv_termios_struct = yes; then
- AC_DEFINE([HAVE_TERMIOS_STRUCTURE], 1, [Define if struct termios exists.])
-fi
-
-if test "$sim_cv_termios_struct" = "yes"; then
- AC_CACHE_VAL([sim_cv_termios_cline])
- AC_CHECK_MEMBER(
- [struct termios.c_line],
- [sim_cv_termios_cline="yes"],
- [sim_cv_termios_cline="no"], [
-#include <sys/types.h>
-#include <sys/termios.h>
-])
- if test $sim_cv_termios_cline = yes; then
- AC_DEFINE([HAVE_TERMIOS_CLINE], 1, [Define if struct termios has c_line.])
- fi
-else
- sim_cv_termios_cline=no
-fi
-
-if test "$sim_cv_termios_struct" != "yes"; then
- AC_CACHE_CHECK([for struct termio],
- [sim_cv_termio_struct],
- [AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/termio.h>], [
- static struct termio x;
- x.c_iflag = 0;
- x.c_oflag = 0;
- x.c_cflag = 0;
- x.c_lflag = 0;
- x.c_cc[NCC] = 0;
-], [sim_cv_termio_struct="yes"], [sim_cv_termio_struct="no"])])
- if test $sim_cv_termio_struct = yes; then
- AC_DEFINE([HAVE_TERMIO_STRUCTURE], 1, [Define if struct termio exists.])
- fi
-else
- sim_cv_termio_struct=no
-fi
-
-if test "$sim_cv_termio_struct" = "yes"; then
- AC_CACHE_VAL([sim_cv_termio_cline])
- AC_CHECK_MEMBER(
- [struct termio.c_line],
- [sim_cv_termio_cline="yes"],
- [sim_cv_termio_cline="no"], [
-#include <sys/types.h>
-#include <sys/termio.h>
-])
- if test $sim_cv_termio_cline = yes; then
- AC_DEFINE([HAVE_TERMIO_CLINE], 1, [Define if struct termio has c_line.])
- fi
-else
- sim_cv_termio_cline=no
-fi
-
AC_SUBST(sim_line_nr)
AC_SUBST(sim_opcode)
AC_SUBST(sim_switch)