72 lines
1.5 KiB
Diff
72 lines
1.5 KiB
Diff
|
From 90742e38c6b932d3c8182785f164c9ca282ea57e Mon Sep 17 00:00:00 2001
|
||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||
|
Date: Sat, 18 Jan 2014 23:28:14 -0500
|
||
|
Subject: [PATCH 17/34] build: ship a pkgconfig file for libacl
|
||
|
|
||
|
---
|
||
|
.gitignore | 1 +
|
||
|
Makefile.am | 2 ++
|
||
|
configure.ac | 1 +
|
||
|
libacl.pc.in | 10 ++++++++++
|
||
|
4 files changed, 14 insertions(+)
|
||
|
create mode 100644 libacl.pc.in
|
||
|
|
||
|
diff --git a/.gitignore b/.gitignore
|
||
|
index 307fbe9..7a19031 100644
|
||
|
--- a/.gitignore
|
||
|
+++ b/.gitignore
|
||
|
@@ -3,6 +3,7 @@
|
||
|
*.lo
|
||
|
*.mo
|
||
|
*.o
|
||
|
+*.pc
|
||
|
.dirstamp
|
||
|
.deps/
|
||
|
.libs/
|
||
|
diff --git a/Makefile.am b/Makefile.am
|
||
|
index 915ab2a..47d2a4e 100644
|
||
|
--- a/Makefile.am
|
||
|
+++ b/Makefile.am
|
||
|
@@ -10,8 +10,10 @@ AM_CPPFLAGS = \
|
||
|
-I$(top_srcdir)/include \
|
||
|
-DLOCALEDIR=\"$(localedir)\"
|
||
|
|
||
|
+pkgconfdir = $(libdir)/pkgconfig
|
||
|
sysincludedir = $(includedir)/sys
|
||
|
|
||
|
+pkgconf_DATA = libacl.pc
|
||
|
pkginclude_HEADERS =
|
||
|
sysinclude_HEADERS =
|
||
|
bin_PROGRAMS =
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 27ea05d..2182e81 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -59,6 +59,7 @@ AC_CONFIG_COMMANDS([include/sys],
|
||
|
$as_ln_s "$ac_abs_top_srcdir/include" include/sys
|
||
|
])
|
||
|
AC_CONFIG_FILES([
|
||
|
+ libacl.pc
|
||
|
Makefile
|
||
|
po/Makefile.in
|
||
|
])
|
||
|
diff --git a/libacl.pc.in b/libacl.pc.in
|
||
|
new file mode 100644
|
||
|
index 0000000..707a887
|
||
|
--- /dev/null
|
||
|
+++ b/libacl.pc.in
|
||
|
@@ -0,0 +1,10 @@
|
||
|
+prefix=@prefix@
|
||
|
+exec_prefix=@exec_prefix@
|
||
|
+libdir=@libdir@
|
||
|
+includedir=@includedir@
|
||
|
+
|
||
|
+Name: libacl
|
||
|
+Description: A library for POSIX Access Control Lists
|
||
|
+Version: @PACKAGE_VERSION@
|
||
|
+Cflags: -I${includedir}
|
||
|
+Libs: -L${libdir} -lacl
|
||
|
--
|
||
|
2.5.2
|
||
|
|