[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-pm-utils
Subject:    Re: [Pm-utils] RFC - PATCH to functions.in to support Slackware	init
From:       Victor Lowther <victor.lowther () gmail ! com>
Date:       2008-10-08 12:11:36
Message-ID: 1223467896.4520.154.camel () sentry-no ! fnordovax ! org
[Download RAW message or body]

On Tue, 2008-10-07 at 18:45 -0700, Dan Nicholson wrote:
> On Tue, Oct 7, 2008 at 5:23 PM, Victor Lowther <victor.lowther@gmail.com> wrote:
> >
> > Along those lines, how does pkgconfig and autoconf interact?  The docs
> > that I have been able to find have been of little assistance, and I have
> > made little progress in trying to understand by example using
> > NetworkManager.
> 
> You mean, how do you check during the network manager build if
> pm-utils is installed? I would do something like this for NM:
> 
> # configure.ac
> HAVE_PM_UTILS=no
> PM_HOOKS_DIR=""
> PKG_CHECK_EXISTS([pm-utils],[
>     HAVE_PM_UTILS=yes
>     PM_HOOKS_DIR="`$PKG_CONFIG --variable=pm_libdir pm-utils`/sleep.d"
> ])
> AC_SUBST([PM_HOOKS_DIR])
> AM_CONDITIONAL([HAVE_PM_UTILS],[test "$HAVE_PM_UTILS" = yes])
> 
> # Makefile.am
> if HAVE_PM_UTILS
> pmhooksdir = $(PM_HOOKS_DIR)
> pmhooks_DATA = 10NetworkManager
> endif

Nice.  I forsee a wave of patches to various projects that have sleep
hooks in the near future.

> It would be nice if we exported the sleep.d directory directly in the
> pm-utils.pc file instead of always assuming that it's at
> $pm_libdir/sleep.d.

That can be arranged. :)

Looks like it is time to start working on splitting the sleep hooks off
into their own project.

> --
> Dan
-- 
Victor Lowther
Ubuntu Certified Professional

_______________________________________________
Pm-utils mailing list
Pm-utils@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic