From: Wichert Akkerman Date: Tue, 10 Apr 2001 10:32:26 +0000 (+0000) Subject: add more configure tests for system headers X-Git-Tag: v4.5.18~1044 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42080d852e2dc0ef3eb507ef561e91cc97cff515;p=strace add more configure tests for system headers --- diff --git a/ChangeLog b/ChangeLog index 98a7185a..bb02532f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ + util.c: add code to print PC for MIPS + linux/mips/syscallent.h: updated + system.c: formating fixes for sys_sysmips + + configure.in: test for yet more headers + + stream.c: use configure-headertests instead of relying on OS hints 2001-04-07 Wichert Akkerman diff --git a/configure.in b/configure.in index f4425a85..d5cfcf06 100644 --- a/configure.in +++ b/configure.in @@ -163,7 +163,7 @@ if test x$OPSYS != xLINUX; then AC_CHECK_LIB(nsl, main) fi AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop if_indextoname) -AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h asm/sysmips.h linux/utsname.h) +AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h poll.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h asm/sysmips.h linux/utsname.h) AC_DECL_SYS_ERRLIST AC_DECL_SYS_SIGLIST AC_DECL__SYS_SIGLIST diff --git a/stream.c b/stream.c index 1c266727..872ba594 100644 --- a/stream.c +++ b/stream.c @@ -30,13 +30,28 @@ #include "defs.h" -#if defined(HAVE_SYS_STREAM_H) || defined(linux) || defined(FREEBSD) - -#if defined(linux) +#ifdef HAVE_POLL_H +#include +#endif #ifdef HAVE_SYS_POLL_H #include #endif +#ifdef HAVE_STROPTS_H +#include +#endif +#ifdef HAVE_SYS_CONF_H +#include +#endif +#ifdef HAVE_SYS_STREAM_H +#include +#endif +#ifdef HAVE_SYS_TIHDR_H +#include +#endif +#if defined(HAVE_SYS_STREAM_H) || defined(linux) || defined(FREEBSD) + +#ifndef HAVE_STROPTS_H #define RS_HIPRI 1 struct strbuf { int maxlen; /* no. of bytes in buffer */ @@ -45,20 +60,7 @@ struct strbuf { }; #define MORECTL 1 #define MOREDATA 2 - -#else /* linux */ - -#ifndef FREEBSD -#include -#include -#include -#include -#include -#else /* FREEBSD */ -#include -#endif /* FREEBSD */ - -#endif /* linux */ +#endif /* !HAVE_STROPTS_H */ #ifdef HAVE_SYS_TIUSER_H #include