]> git.sur5r.net Git - iec16022/blob - configure.ac
Import Debian changes 0.2.4-1.2
[iec16022] / configure.ac
1 AC_INIT(iec16022, 0.2.4, stefan@datenfreihafen.org)
2 AM_INIT_AUTOMAKE([subdir-objects])
3 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
4 AM_MAINTAINER_MODE
5
6 AM_CONFIG_HEADER(config.h)
7
8
9 dnl
10 dnl LIB API versioning
11 dnl
12 dnl From the libtool manual:
13 dnl 1. Start with version information of `0:0:0' for each libtool library.
14 dnl 2. Update the version information only immediately before a public release.
15 dnl    More frequent updates are unnecessary, and only guarantee that the current
16 dnl    interface number gets larger faster.
17 dnl 3. If the library source code has changed at all since the last update, then increment
18 dnl    revision (`c:r:a' becomes `c:r+1:a').
19 dnl 4. If any interfaces have been added, removed, or changed since the last update,
20 dnl    increment current, and set revision to 0.
21 dnl 5. If any interfaces have been added since the last public release, then increment age.
22 dnl 6. If any interfaces have been removed since the last public release, then set age
23 dnl    to 0.
24 LT_VERSION_C=0
25 LT_VERSION_R=0
26 LT_VERSION_A=0
27
28 AC_SUBST(LT_VERSION_C)
29 AC_SUBST(LT_VERSION_R)
30 AC_SUBST(LT_VERSION_A)
31
32
33 dnl
34 dnl Require programs
35 dnl
36 AC_PROG_CC
37 AM_PROG_CC_C_O
38 AC_PROG_INSTALL
39 AC_PROG_LIBTOOL
40
41 dnl
42 dnl Required headers
43 dnl
44 AC_HEADER_STDC
45
46 dnl
47 dnl Checks for typedefs, structures, and compiler characteristics.
48 dnl
49 AC_HEADER_TIME
50
51 AC_CHECK_LIB([popt], [main],,AC_MSG_ERROR([Missing library: popt not found.]))
52 AC_CHECK_LIB([z], [main],,AC_MSG_ERROR([Missing library: zlib not found.]))
53
54 dnl Output the files
55 AC_OUTPUT([
56 Makefile
57 test/Makefile
58 libiec16022.pc
59 ])