summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/talloc/Makefile.in9
-rw-r--r--source4/lib/talloc/configure.in2
-rw-r--r--source4/lib/talloc/talloc.pc.in10
3 files changed, 20 insertions, 1 deletions
diff --git a/source4/lib/talloc/Makefile.in b/source4/lib/talloc/Makefile.in
index ff4fc7f561..a3dd3f3e0b 100644
--- a/source4/lib/talloc/Makefile.in
+++ b/source4/lib/talloc/Makefile.in
@@ -1,6 +1,10 @@
#OPT = -g -ftest-coverage -fprofile-arcs
#LIBS = -lgcov
OPT = -O
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+includedir = @includedir@
+libdir = @libdir@
CFLAGS = $(OPT) -Wall
@@ -13,6 +17,11 @@ testsuite: $(LIBOBJ) testsuite.o
libtalloc.a: libtalloc.a($(LIBOBJ))
+install:
+ cp libtalloc.a $(libdir)
+ cp talloc.h $(includedir)
+ cp talloc.pc $(libdir)/pkgconfig
+
clean:
rm -f *~ *.o testsuite *.gc??
diff --git a/source4/lib/talloc/configure.in b/source4/lib/talloc/configure.in
index 5c30200118..0ebbde9fcf 100644
--- a/source4/lib/talloc/configure.in
+++ b/source4/lib/talloc/configure.in
@@ -4,4 +4,4 @@ AC_INIT(talloc.h)
AC_PROG_CC
AC_PATH_PROG(GCOV,gcov)
sinclude(config.m4)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile talloc.pc)
diff --git a/source4/lib/talloc/talloc.pc.in b/source4/lib/talloc/talloc.pc.in
new file mode 100644
index 0000000000..7f9ef754cb
--- /dev/null
+++ b/source4/lib/talloc/talloc.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: talloc
+Description: A hierarchical pool based memory system with destructors
+Version: 4.0
+Libs: @LIBS@ -L${libdir} -ltalloc
+Cflags: -I${includedir} @CFLAGS@