36 lines
1.7 KiB
Text
36 lines
1.7 KiB
Text
$NetBSD: patch-ae,v 1.3 2007/12/06 16:59:37 christos Exp $
|
|
|
|
--- configure.ac.orig 2007-01-11 06:37:55.000000000 -0500
|
|
+++ configure.ac 2007-12-06 11:55:17.000000000 -0500
|
|
@@ -33,6 +33,12 @@
|
|
freebsd*)
|
|
opsys=freebsd
|
|
AC_DEFINE([FREEBSD], 1, [Define for the FreeBSD operating system.])
|
|
+ AC_DEFINE([ALLBSD], 1, [Define for the BSD-like operating system.])
|
|
+ ;;
|
|
+netbsd*)
|
|
+ opsys=netbsd
|
|
+ AC_DEFINE([NETBSD], 1, [Define for the NetBSD operating system.])
|
|
+ AC_DEFINE([ALLBSD], 1, [Define for the BSD-like operating system.])
|
|
;;
|
|
*)
|
|
AC_MSG_RESULT([NO!])
|
|
@@ -119,6 +125,8 @@
|
|
AM_CONDITIONAL([SUNOS4], [test x$opsys = xsunos4])
|
|
AM_CONDITIONAL([SVR4], [test x$opsys = xsvr4])
|
|
AM_CONDITIONAL([FREEBSD], [test x$opsys = xfreebsd])
|
|
+AM_CONDITIONAL([NETBSD], [test x$opsys = xnetbsd])
|
|
+AM_CONDITIONAL([ALLBSD], [test x$opsys = xnetbsd -o x$opsys = xfreebsd])
|
|
|
|
AC_PROG_CC
|
|
AC_GNU_SOURCE
|
|
@@ -194,7 +202,8 @@
|
|
AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname)
|
|
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 ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h sys/uio.h sys/aio.h poll.h sys/poll.h sys/vfs.h asm/sysmips.h linux/utsname.h sys/nscsys.h mqueue.h sys/epoll.h libaio.h inttypes.h], [], [])
|
|
AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
|
|
- [], [], [#include <linux/socket.h>])
|
|
+ [], [], [#include <stddef.h>
|
|
+#include <linux/socket.h>])
|
|
AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>])
|
|
AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>])
|
|
|