From 0f4930dd8bdc1bb67c197fd3cdc3d8d832323209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 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=], + [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