diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2008-02-06 09:56:51 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2008-02-06 10:25:37 -0800 |
commit | 347e419b1e55bd9293b80831e661cc410123ef7c (patch) | |
tree | d7c1d32f7dddc3cf5126e4e1043dcfa76edd2679 | |
parent | 8df496aeffe3a7114fa01912d7605693c5bc64b9 (diff) |
pkg-config file to support 3rd party programs
A pkg-config file has been added to allow 3rd party programs to find out
about the user's pm-utils installation. This means they can make an
informed decision about where to install a sleep hook, for instance.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | pm-utils.pc.in | 11 |
4 files changed, 16 insertions, 0 deletions
@@ -23,6 +23,7 @@ ltmain.sh missing mkinstalldirs install-sh +pm-utils.pc stamp-h stamp-h1 stamp-h.in diff --git a/Makefile.am b/Makefile.am index 81bc418..6f5145a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,7 @@ SUBDIRS = pm man src +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = pm-utils.pc + clean-local : rm -f *~ diff --git a/configure.in b/configure.in index b59ad9d..4a85af8 100644 --- a/configure.in +++ b/configure.in @@ -31,6 +31,7 @@ dnl - Makefiles, etc. dnl --------------------------------------------------------------------------- AC_OUTPUT([ Makefile +pm-utils.pc man/Makefile src/Makefile pm/Makefile diff --git a/pm-utils.pc.in b/pm-utils.pc.in new file mode 100644 index 0000000..668ef29 --- /dev/null +++ b/pm-utils.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +sysconfdir=@sysconfdir@ + +pm_libdir=${libdir}/pm-utils +pm_sysconfdir=${sysconfdir}/pm + +Name: pm-utils +Description: Power management scripts for suspend and hibernate +Version: @PACKAGE_VERSION@ |