openbsd-ports/net/avahi/patches/patch-configure_ac
ajacoutot 81b72c2d88 SECURITY update to avahi-0.6.27.
This is a bugfix release and fixes a minor security issue.
2010-07-31 14:33:20 +00:00

39 lines
2.1 KiB
Plaintext

$OpenBSD: patch-configure_ac,v 1.3 2010/07/31 14:33:20 ajacoutot Exp $
--- configure.ac.orig Tue Jul 13 05:05:05 2010
+++ configure.ac Sat Jul 31 16:06:23 2010
@@ -250,7 +250,7 @@ AC_TRY_COMPILE([#include <netinet/in.h>], [
#
# Detecting the linux distribution for specific things like init scripts.
#
-AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of lfs, debian, gentoo, archlinux, fedora, mandriva, darwin, netbsd, freebsd, slackware or none]))
+AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of lfs, debian, gentoo, archlinux, fedora, mandriva, darwin, netbsd, freebsd, openbsd, slackware or none]))
if test "z$with_distro" = "z"; then
if test "$cross_compiling" = yes; then
AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
@@ -273,7 +273,7 @@ with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[
case $with_distro in
lfs|debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|slackware|none)
;;
- netbsd)
+ netbsd|openbsd)
AC_MSG_WARN([Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)])
;;
linux)
@@ -294,6 +294,7 @@ AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" =
AM_CONDITIONAL(TARGET_DARWIN, test x"$with_distro" = xdarwin)
AM_CONDITIONAL(TARGET_NETBSD, test x"$with_distro" = xnetbsd)
AM_CONDITIONAL(TARGET_FREEBSD, test x"$with_distro" = xfreebsd)
+AM_CONDITIONAL(TARGET_OPENBSD, test x"$with_distro" = xopenbsd)
AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
test_gcc_flag() {
@@ -356,7 +357,7 @@ AC_HEADER_SYS_WAIT
# Solaris stuff
AC_SEARCH_LIBS([inet_ntop],[nsl])
AC_SEARCH_LIBS([recv],[socket])
- AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__", [[#include <sys/socket.h>]])
+ AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D__EXTENSIONS__", [[#include <sys/socket.h>]])
# Checks for library functions.
AC_FUNC_MEMCMP