include autoMakefile
+fix-kext-ownership:
+ @if test -d $(DESTDIR)$(kextdir) ; then \
+ echo chown -R root:wheel $(DESTDIR)$(kextdir) ; \
+ chown -R root:wheel $(DESTDIR)$(kextdir) || \
+ echo >&2 "*** WARNING: Could not fix kext ownership for $(DESTDIR)$(kextdir)" ; \
+ fi
+
else
include @LINUX_CONFIG@
AC_SUBST(EXTRA_KLDFLAGS)
AC_SUBST(EXTRA_KLIBS)
-plistdir='/System/Library/Extensions/$(firstword $(macos_PROGRAMS)).kext/Contents'
+kextdir='/System/Library/Extensions/$(firstword $(macos_PROGRAMS)).kext'
+plistdir='$(kextdir)/Contents'
macosdir='$(plistdir)/MacOS'
+AC_SUBST(kextdir)
AC_SUBST(plistdir)
AC_SUBST(macosdir)