summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-02-01 12:52:39 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-02-03 10:35:18 -0500
commite4a1d122c1cb26296354f1a04c57409f04260d7a (patch)
tree1ee2fb64a8fda557c312cfeed6a25622277b03f1 /common
parent622e7d5442f7a066389ac4a2a6d971b478ebd574 (diff)
downloadsssd-e4a1d122c1cb26296354f1a04c57409f04260d7a.tar.gz
sssd-e4a1d122c1cb26296354f1a04c57409f04260d7a.tar.xz
sssd-e4a1d122c1cb26296354f1a04c57409f04260d7a.zip
Split refarray off into a shared library
Diffstat (limited to 'common')
-rw-r--r--common/refarray/Makefile.am15
-rw-r--r--common/refarray/README1
-rw-r--r--common/refarray/configure.ac5
-rw-r--r--common/refarray/ref_array.pc.in2
4 files changed, 13 insertions, 10 deletions
diff --git a/common/refarray/Makefile.am b/common/refarray/Makefile.am
index 573173ac3..724131fe7 100644
--- a/common/refarray/Makefile.am
+++ b/common/refarray/Makefile.am
@@ -16,15 +16,18 @@ ACLOCAL_AMFLAGS = -I m4
# Set up the pkg-config file
pkgconfigdir = $(libdir)/pkgconfig
-dist_noinst_DATA = \
- ref_array.pc \
- m4
+pkgconfig_DATA = ref_array.pc
+
+dist_noinst_DATA = m4
+
+dist_include_HEADERS = ref_array.h
# Build library
-noinst_LTLIBRARIES = libref_array.la
+lib_LTLIBRARIES = libref_array.la
libref_array_la_SOURCES = \
- ref_array.c \
- ref_array.h
+ ref_array.c
+libref_array_la_LDFLAGS = \
+ -version-info 1:0:0
# Build unit test
check_PROGRAMS = ref_array_ut
diff --git a/common/refarray/README b/common/refarray/README
new file mode 100644
index 000000000..a3e4f617a
--- /dev/null
+++ b/common/refarray/README
@@ -0,0 +1 @@
+Documentation for libref_array can be found in ref_array.h
diff --git a/common/refarray/configure.ac b/common/refarray/configure.ac
index b220c521f..ebcfaa6d4 100644
--- a/common/refarray/configure.ac
+++ b/common/refarray/configure.ac
@@ -1,6 +1,5 @@
-m4_include([../../version.m4])
-AC_INIT([sssd_libs],
- VERSION_NUMBER,
+AC_INIT([ref_array],
+ 0.1.0,
[sssd-devel@lists.fedorahosted.org])
AC_CONFIG_SRCDIR([ref_array.c])
AC_CONFIG_AUX_DIR([build])
diff --git a/common/refarray/ref_array.pc.in b/common/refarray/ref_array.pc.in
index 1fc06f71b..c4fe94141 100644
--- a/common/refarray/ref_array.pc.in
+++ b/common/refarray/ref_array.pc.in
@@ -4,7 +4,7 @@ libdir=@libdir@
includedir=@includedir@
Name: @PACKAGE_NAME@
-Description: Reference library
+Description: A dynamically-growing, reference-counted array
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lref_array
Cflags: -I${includedir}