* configure.in: Check for sys/select.h, termios.h, sys/socket.h,

netinet/in.h, and netinet/tcp.h.
* configure: Regenerate.
* config.in: Add those headers.
* main.c: Check for them.
(setup_tcp_console): Disable if no networking.
(main): Note missing networking or termios.
* mem.c: Check for those headers.
(stdin_ready): Disable if no termios.
(m32c_sim_restore_console): Disable if no termios.
(mem_get_byte): Disable console input if no termios.
This commit is contained in:
DJ Delorie
2009-08-14 04:24:30 +00:00
parent a109e2f558
commit 340cf1cfb6
6 changed files with 230 additions and 1 deletions

View File

@@ -28,4 +28,6 @@ sinclude(../common/aclocal.m4)
# it by inlining the macro's contents.
sinclude(../common/common.m4)
AC_CHECK_HEADERS(sys/select.h termios.h sys/socket.h netinet/in.h netinet/tcp.h)
SIM_AC_OUTPUT