[BACK]Return to patch-na CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / hal / patches

File: [cvs.NetBSD.org] / pkgsrc / sysutils / hal / patches / Attic / patch-na (download)

Revision 1.3, Sat Dec 20 21:11:05 2008 UTC (15 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +12 -3 lines

PR# pkg/40230: "libvolume_id" doesn't build under Mac OS X

Fix HAL build on OS X. Tested on 10.5.6 powerpc.

$NetBSD: patch-na,v 1.3 2008/12/20 21:11:05 jmcneill Exp $

--- configure.in.orig	2008-05-07 19:24:31.000000000 -0400
+++ configure.in	2008-12-20 15:28:11.000000000 -0500
@@ -448,7 +448,7 @@
 
 AC_ARG_WITH([backend],
 	    AS_HELP_STRING([--with-backend=<name>],
-	                   [backend to use (linux/solaris/freebsd/dummy)]),
+	                   [backend to use (linux/solaris/netbsd/freebsd/dummy)]),
 	    [backend=$withval])
 if ! test -z "$with_backend" ; then
     HALD_BACKEND="$with_backend"
@@ -457,6 +457,9 @@
         *-*-solaris*)
 		   HALD_BACKEND="solaris"
 		   ;;
+        *-*-netbsd*)
+                   HALD_BACKEND="netbsd"
+		   ;;
         *-*-freebsd*)
                    HALD_BACKEND="freebsd"
                    ;;
@@ -472,6 +475,7 @@
 AM_CONDITIONAL(HALD_COMPILE_LINUX, [test x$HALD_BACKEND = xlinux], [Compiling for Linux])
 AM_CONDITIONAL(HALD_COMPILE_FREEBSD, [test x$HALD_BACKEND = xfreebsd], [Compiling for FreeBSD])
 AM_CONDITIONAL(HALD_COMPILE_SOLARIS, [test x$HALD_BACKEND = xsolaris], [Compiling for Solaris])
+AM_CONDITIONAL(HALD_COMPILE_NETBSD, [test x$HALD_BACKEND = xnetbsd], [Compiling for NetBSD])
 AC_SUBST(HALD_BACKEND)
 
 dnl DBUS API is subject to changes
@@ -644,6 +648,8 @@
 case "$host" in
 *-*-solaris*)
 	;;
+*-*-darwin*)
+	;;
 *)
 	PKG_CHECK_MODULES(VOLUME_ID, [$volume_id_module])
 	AC_SUBST(VOLUME_ID_CFLAGS)
@@ -1004,6 +1010,9 @@
 hald/solaris/Makefile
 hald/solaris/probing/Makefile
 hald/solaris/addons/Makefile
+hald/netbsd/Makefile
+hald/netbsd/probing/Makefile
+hald/netbsd/addons/Makefile
 hald/freebsd/Makefile
 hald/freebsd/probing/Makefile
 hald/freebsd/libprobe/Makefile
@@ -1014,6 +1023,7 @@
 tools/Makefile
 tools/freebsd/Makefile
 tools/linux/Makefile
+tools/netbsd/Makefile
 partutil/Makefile
 policy/Makefile
 fdi/Makefile