-
Notifications
You must be signed in to change notification settings - Fork 22
/
configure.ac
88 lines (70 loc) · 1.96 KB
/
configure.ac
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
# Increment the:
# MAJOR version when you make incompatible API changes,
# MINOR version when you add functionality in a backwards-compatible manner
# PATCH version when you make backwards-compatible bug fixes.
m4_define([version_major],2)
m4_define([version_minor],1)
m4_define([version_micro],2)
m4_define([version_triplet],version_major.version_minor.version_micro)
AC_PREREQ([2.63])
AC_INIT([ytnef],
[version_triplet],
[ytnef])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([ytnef/main.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
if test -z "$enable_maintainer_mode"; then
enable_maintainer_mode=yes
fi
AM_MAINTAINER_MODE([enable])
# Libtool versioning
m4_define([lt_revision], m4_if(m4_eval(version_minor%2),1,0,version_micro))
m4_define([lt_age], m4_eval(version_minor*100+version_micro-lt_revision))
m4_define([lt_current], m4_eval(version_major+lt_age))
m4_define([lt_triplet],lt_current:lt_revision:lt_age)
LT_VERSION_INFO="lt_triplet()"
AC_SUBST([LT_VERSION_INFO])
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
#AC_USE_SYSTEM_EXTENSIONS
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
# Checks for library functions.
AC_CHECK_FUNCS([memset strstr])
AC_SYS_LARGEFILE
# Initialize libtool
LT_PREREQ([2.2])
LT_INIT
LT_LANG([C])
case "$host" in
*-mingw* | MSYS* | *MSYS* )
LDFLAGS="-no-undefined $LDFLAGS"
;;
*)
;;
esac
AC_SUBST([YTNEF_MAJOR_VERSION],[version_major])
AC_SUBST([YTNEF_MINOR_VERSION],[version_minor])
AC_SUBST([YTNEF_MICRO_VERSION],[version_micro])
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_CXXFLAGS])
AC_SUBST([AM_LDFLAGS])
AC_CONFIG_FILES([
Makefile
ytnef/Makefile
ytnefprint/Makefile
lib/Makefile
lib/libytnef.pc
test-data/Makefile
])
AC_OUTPUT
AC_OUTPUT([ytnef.spec])