3 AC_MSG_CHECKING(for supported operating system)
23 AC_MSG_ERROR(this operating system is not yet supported by strace)
28 # Autoheader trick. Heh, heh.
30 @@@syms="$syms LINUX SUNOS4 SVR4"@@@
33 AC_MSG_CHECKING(for supported architecture)
57 AC_MSG_ERROR(this architecture is not yet supported by strace)
62 # Autoheader trick. Heh, heh.
64 @@@syms="$syms I386 M68K SPARC MIPS ALPHA ARM POWERPC"@@@
68 if [ -d "$srcdir/$opsys/$arch" ]; then
72 OPSYS=`echo $opsys | tr '[a-z]' '[A-Z]'`
73 ARCH=`echo $arch | tr '[a-z]' '[A-Z]'`
76 CFLAGS="-D_GNU_SOURCE $CFLAGS"
77 AC_CONFIG_HEADER(config.h)
79 AC_DEFINE_UNQUOTED($OPSYS)
81 AC_DEFINE_UNQUOTED($ARCH)
84 AC_PROG_HOSTCC($host_alias $host)
89 if test "x$OPSYS" = "xSUNOS4" && test "x$ARCH" = "xSPARC"
91 AC_MSG_CHECKING(for valid machine include directory)
92 if test -d "$includedir/sun4"
95 ln -s $includedir/sun4 machine
97 AC_DEFINE(SUNOS4_KERNEL_ARCH_KLUDGE)
103 if test "x$OPSYS" = "xSUNOS4"
107 # SunOS 4.x header files don't declare int functions.
108 WARNFLAGS="$WARNFLAGS -Wno-implicit"
112 AC_PROG_GCC_TRADITIONAL
127 AC_CHECK_LIB(nsl, main)
128 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop)
129 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/in6.h sys/uio.h linux/netlink.h linux/if_packet.h)
133 if test ! -d $osarch; then
136 AC_OUTPUT(Makefile $osarch/Makefile)