summaryrefslogtreecommitdiff
blob: 15b62284b4f91a0dd21b25ec4cddaee6e268ee7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 0f4930dd8bdc1bb67c197fd3cdc3d8d832323209 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 6 Jan 2011 17:30:56 +0100
Subject: [PATCH] Add autotools files.

Now with libtool support!
---
 Makefile.am  |  5 +++++
 configure.ac | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 Makefile.am
 create mode 100644 configure.ac

diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..c60308f
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,5 @@
+lib_LTLIBRARIES = libzpaq.la
+include_HEADERS = libzpaq.h
+
+libzpaq_la_SOURCES = libzpaq.cpp libzpaq.h
+libzpaq_la_LDFLAGS = -version-info @ABI_VERSION@
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..4118d18
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,17 @@
+AC_PREREQ([2.60])
+AC_INIT([libzpaq], [na])
+AC_CONFIG_AUX_DIR([build-aux])
+AM_INIT_AUTOMAKE([1.6 foreign no-dependencies])
+
+LT_INIT([disable-static])
+AC_PROG_CXX
+
+AC_ARG_WITH([library-version],
+	[AS_HELP_STRING([--with-library-version=<VERSION>],
+		[Set library libtool version])],, [
+	AC_MSG_ERROR([--with-library-version not set])
+])
+AC_SUBST([ABI_VERSION], [$with_library_version])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
-- 
1.9.0