File: configure.ac

package info (click to toggle)
libmialm 1.0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,772 kB
  • sloc: sh: 3,977; ansic: 2,216; makefile: 91
file content (116 lines) | stat: -rw-r--r-- 3,473 bytes parent folder | download | duplicates (2)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
dnl
dnl  Copyright (c) 2004-2013 Gert Wollny <gw.fossdev@gmail.com>
dnl
dnl  This program is free software; you can redistribute it and/or modify
dnl  it under the terms of the GNU General Public License as published by
dnl  the Free Software Foundation; either version 3 of the License, or
dnl  (at your option) any later version.
dnl
dnl  This program is distributed in the hope that it will be useful,
dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl  GNU General Public License for more details.
dnl
dnl  You should have received a copy of the GNU General Public License
dnl  along with this program; if not, write to the Free Software
dnl  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
dnl
dnl  As an exception to this license, "NEC C&C Research Labs" may use
dnl  this software under the terms of the GNU Lesser General Public License as
dnl  published by the Free Software Foundation.
dnl


dnl Making releases:
dnl   mialm_micro_version += 1
dnl   mialm_interface_age += 1
dnl   mialm_binary_age    += 1
dnl 
dnl if any functions have been added, set mialm_interface_age to 0.
dnl if backwards compatibility has been broken, set   
dnl    mialm_binary_age = 0
dnl    mialm_interface_age  = 0
dnl    mialm_current_interface += 1

m4_define([mialm_major_version], [1])
m4_define([mialm_minor_version], [0])
m4_define([mialm_micro_version], [9])
m4_define([mialm_real_version],
          [mialm_major_version.mialm_minor_version.mialm_micro_version])
m4_define([mialm_version], [mialm_real_version])

m4_define([mialm_current_interface], [3])
m4_define([mialm_interface_age], [0])
m4_define([mialm_binary_age], [0])

m4_define([mialm_unstable],
          m4_if(m4_eval(mialm_minor_version % 2), [1], [yes], [no]))
m4_define([mialm_full_name], [The MIA-Landmark library])

AC_INIT([mialm], [mialm_version], [gw.fossdev@gmail.com])

MIALM_MAJOR_VERSION=mialm_major_version
MIALM_MINOR_VERSION=mialm_minor_version
MIALM_MICRO_VERSION=mialm_micro_version
MIALM_INTERFACE_AGE=mialm_interface_age
MIALM_BINARY_AGE=mialm_binary_age
MIALM_VERSION=mialm_version
MIALM_UNSTABLE=mialm_unstable
AC_SUBST(MIALM_MAJOR_VERSION)
AC_SUBST(MIALM_MINOR_VERSION)
AC_SUBST(MIALM_MICRO_VERSION)
AC_SUBST(MIALM_INTERFACE_AGE)
AC_SUBST(MIALM_BINARY_AGE)
AC_SUBST(MIALM_VERSION)

m4_define([lt_release], [mialm_major_version.mialm_minor_version])
m4_define([lt_current], [mialm_current_interface])
m4_define([lt_revision], [mialm_interface_age])
m4_define([lt_age], [m4_eval(mialm_binary_age - mialm_interface_age)])
LT_RELEASE=lt_release
LT_CURRENT=lt_current
LT_REVISION=lt_revision
LT_AGE=lt_age
LT_VERSION_INFO="lt_current:lt_revision:lt_age"
m4_define([LT_CURRENT_MINUS_AGE],[m4_eval(lt_current - lt_age)])
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AC_SUBST(LT_VERSION_INFO)


AM_INIT_AUTOMAKE(no-define)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR(m4)

AM_MAINTAINER_MODE 

AC_ISC_POSIX
AC_SUBST(CFLAGS,$CFLAGS)
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AM_PROG_LIBTOOL

m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
],[
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
])

PKG_CHECK_MODULES(GLIB, glib-2.0 gobject-2.0 libxml-2.0,,exit)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)

AC_SEARCH_LIBS([sqrtf], [m])


AC_OUTPUT([
Makefile
docs/Makefile
docs/reference/Makefile
mialm/Makefile
test/Makefile
mialm.pc
])