3 AC_MSG_CHECKING(for supported operating system)
28 AC_MSG_ERROR(this operating system is not yet supported by strace)
33 # Autoheader trick. Heh, heh.
35 @@@syms="$syms LINUX SUNOS4 SVR4 FREEBSD"@@@
38 AC_MSG_CHECKING(for supported architecture)
80 AC_MSG_ERROR(this architecture is not yet supported by strace)
85 # Autoheader trick. Heh, heh.
87 @@@syms="$syms I386 IA64 M68K SPARC MIPS ALPHA ARM POWERPC S390 S390X HPPA SH X86_64"@@@
91 if test -d "$srcdir/$opsys/$arch"; then
95 OPSYS=`echo $opsys | tr '[[a-z]]' '[[A-Z]]'`
96 ARCH=`echo $arch | tr '[[a-z]]' '[[A-Z]]'`
98 CFLAGS="-D_GNU_SOURCE $CFLAGS"
99 AC_CONFIG_HEADER(config.h)
101 AC_DEFINE_UNQUOTED($OPSYS)
104 AC_DEFINE(UNIXWARE, 2)
107 AC_DEFINE(UNIXWARE, 7)
111 AC_DEFINE_UNQUOTED($ARCH)
114 AC_PROG_HOSTCC($host_alias $host)
118 AC_STRUCT_MSG_CONTROL
120 if test "x$OPSYS" = "xSUNOS4" && test "x$ARCH" = "xSPARC"
122 AC_MSG_CHECKING(for valid machine include directory)
123 if test -d "$includedir/sun4"
126 ln -s $includedir/sun4 machine
128 AC_DEFINE(SUNOS4_KERNEL_ARCH_KLUDGE)
134 if test "x$OPSYS" = "xSUNOS4"
138 # SunOS 4.x header files don't declare int functions.
139 WARNFLAGS="$WARNFLAGS -Wno-implicit"
143 AC_PROG_GCC_TRADITIONAL
162 AC_LITTLE_ENDIAN_LONG_LONG
163 AC_OFF_T_IS_LONG_LONG
164 AC_RLIM_T_IS_LONG_LONG
172 if test x$OPSYS != xLINUX; then
173 AC_CHECK_LIB(nsl, main)
175 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname)
176 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 sys/nscsys.h)
180 if test ! -d $osarch; then
183 AC_OUTPUT(Makefile $osarch/Makefile)