mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 06:26:12 -04:00
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
$NetBSD: patch-aa,v 1.5 2014/08/17 15:59:07 wiz Exp $
|
|
|
|
Add backends for NetBSD, Dragonfly, and OpenBSD.
|
|
|
|
--- configure.ac.orig 2011-02-17 00:37:16.000000000 +0000
|
|
+++ configure.ac
|
|
@@ -190,6 +201,21 @@ case "$host" in
|
|
*-*-solaris*)
|
|
CK_BACKEND="solaris"
|
|
;;
|
|
+ *-*-netbsd*)
|
|
+ CK_BACKEND="netbsd"
|
|
+ ;;
|
|
+ *-*-dragonfly*)
|
|
+ CK_BACKEND="freebsd"
|
|
+ KVM_LIBS="-lkvm"
|
|
+ ;;
|
|
+ *-*-openbsd*)
|
|
+ CK_BACKEND="openbsd"
|
|
+ AC_CHECK_LIB(kvm, kvm_openfiles, have_kvm=yes,
|
|
+ AC_MSG_ERROR([Unable to find libkvm which is needed on OpenBSD]))
|
|
+ if test "x$have_kvm" = "xyes"; then
|
|
+ KVM_LIBS="-lkvm"
|
|
+ fi
|
|
+ ;;
|
|
*)
|
|
AC_MSG_ERROR([No sysdeps back-end implemented for host $host])
|
|
;;
|
|
@@ -199,7 +225,9 @@ AC_SUBST(KVM_LIBS)
|
|
|
|
AM_CONDITIONAL(CK_COMPILE_LINUX, test x$CK_BACKEND = xlinux, [Compiling for Linux])
|
|
AM_CONDITIONAL(CK_COMPILE_FREEBSD, test x$CK_BACKEND = xfreebsd, [Compiling for FreeBSD])
|
|
+AM_CONDITIONAL(CK_COMPILE_NETBSD, test x$CK_BACKEND = xnetbsd, [Compiling for NetBSD])
|
|
AM_CONDITIONAL(CK_COMPILE_SOLARIS, test x$CK_BACKEND = xsolaris, [Compiling for Solaris])
|
|
+AM_CONDITIONAL(CK_COMPILE_OPENBSD, test x$CK_BACKEND = xopenbsd, [Compiling for OpenBSD])
|
|
AC_SUBST(CK_BACKEND)
|
|
|
|
dnl ---------------------------------------------------------------------------
|