-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
207 lines (162 loc) · 6.18 KB
/
Copy pathconfigure.ac
File metadata and controls
207 lines (162 loc) · 6.18 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
dnl Making releases:
dnl GPINSTRUCT_MICRO_VERSION += 1;
dnl GPINSTRUCT_INTERFACE_AGE += 1;
dnl GPINSTRUCT_BINARY_AGE += 1;
dnl if any functions have been added, set GPINSTRUCT_INTERFACE_AGE to 0.
dnl if backwards compatibility has been broken,
dnl set GPINSTRUCT_BINARY_AGE and GPINSTRUCT_INTERFACE_AGE to 0.
m4_define([gpinstruct_major_version], [0])
m4_define([gpinstruct_minor_version], [1])
m4_define([gpinstruct_micro_version], [1])
m4_define([gpinstruct_interface_age], [1])
m4_define([gpinstruct_binary_age],
[m4_eval(100 * gpinstruct_minor_version + gpinstruct_micro_version)])
m4_define([gpinstruct_version],
[gpinstruct_major_version.gpinstruct_minor_version.gpinstruct_micro_version])
dnl This is the X.Y used in -lgpinstruct-FOO-X.Y
m4_define([gpinstruct_api_version], [0.0])
dnl Define a string for the earliest version that this release has
dnl backwards binary compatibility with for all interfaces a module
dnl might. Unless we add module-only API with lower stability
dnl guarantees, this should be unchanged until we break binary compat
dnl for GPInstruct.
dnl
dnl GPINSTRUCT_BINARY_VERSION=$GPINSTRUCT_MAJOR_VERSION.$GPINSTRUCT_MINOR_VERSION.$LT_CURRENT
m4_define([gpinstruct_binary_version], [0.0.0])
AC_INIT([GPInstruct], [gpinstruct_version],
[kyoushuu@yahoo.com],
[gpinstruct],
[http://gpinstruct.sourceforge.net/])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([ChangeLog])
AC_CONFIG_MACRO_DIR([m4])
GPINSTRUCT_MAJOR_VERSION=gpinstruct_major_version
GPINSTRUCT_MINOR_VERSION=gpinstruct_minor_version
GPINSTRUCT_MICRO_VERSION=gpinstruct_micro_version
GPINSTRUCT_INTERFACE_AGE=gpinstruct_interface_age
GPINSTRUCT_BINARY_AGE=gpinstruct_binary_age
GPINSTRUCT_VERSION=gpinstruct_version
GPINSTRUCT_API_VERSION=gpinstruct_api_version
GPINSTRUCT_BINARY_VERSION=gpinstruct_binary_version
AC_SUBST(GPINSTRUCT_MAJOR_VERSION)
AC_SUBST(GPINSTRUCT_MINOR_VERSION)
AC_SUBST(GPINSTRUCT_MICRO_VERSION)
AC_SUBST(GPINSTRUCT_INTERFACE_AGE)
AC_SUBST(GPINSTRUCT_BINARY_AGE)
AC_SUBST(GPINSTRUCT_API_VERSION)
AC_SUBST(GPINSTRUCT_VERSION)
AC_SUBST(GPINSTRUCT_BINARY_VERSION)
dnl libtool versioning
m4_define([lt_current], [m4_eval(100 * gpinstruct_minor_version + gpinstruct_micro_version - gpinstruct_interface_age)])
m4_define([lt_revision], [gpinstruct_interface_age])
m4_define([lt_age], [m4_eval(gpinstruct_binary_age - gpinstruct_interface_age)])
LT_VERSION_INFO="lt_current:lt_revision:lt_age"
LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age)
AC_SUBST(LT_VERSION_INFO)
AC_SUBST(LT_CURRENT_MINUS_AGE)
AM_INIT_AUTOMAKE([-Wall -Werror gnu dist-xz no-dist-gzip])
AM_MAINTAINER_MODE([enable])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC
LT_INIT([disable-static win32-dll])
LT_OUTPUT
dnl ***************************************************************************
dnl Configure options
dnl ***************************************************************************
AC_ARG_WITH([gstreamer],
[AS_HELP_STRING([--with-gstreamer],
[add gstreamer support @<:@default=check@:>@])],
[],
[with_gstreamer=check])
dnl ***************************************************************************
dnl Internationalization
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.40.1])
AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])
GETTEXT_PACKAGE="$PACKAGE"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
dnl ***************************************************************************
dnl Check for gtk-doc.
dnl ***************************************************************************
GTK_DOC_CHECK([1.4])
dnl ***************************************************************************
dnl User manual
dnl ***************************************************************************
YELP_HELP_INIT
dnl ***************************************************************************
dnl Check for windows
dnl ***************************************************************************
case $host_os in
*mingw* | pw32* | cygwin*)
platform_win32=yes
;;
*)
platform_win32=no
;;
esac
AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = "xyes")
case $host_os in
*mingw*)
native_win32=yes
;;
*)
native_win32=no
;;
esac
AM_CONDITIONAL(NATIVE_WIN32, test x"$native_win32" = "xyes")
if test "$native_win32" = "yes"; then
AC_CHECK_TOOL(WINDRES, windres, no)
if test "$WINDRES" = no; then
AC_MSG_ERROR([*** Could not find an implementation of windres in your PATH.])
fi
fi
PKG_CHECK_MODULES(LIBXML,libxml-2.0)
PKG_CHECK_MODULES(GOBJECT,gobject-2.0)
PKG_CHECK_MODULES(GIO,gio-2.0)
PKG_CHECK_MODULES(GLIB,glib-2.0)
PKG_CHECK_MODULES(LIBSOUP,libsoup-2.4)
PKG_CHECK_MODULES(LIBSOUP_SOAP,libsoup-soap-0.1)
PKG_CHECK_MODULES(GTK,gtk+-3.0,,[PKG_CHECK_MODULES(GTK,gtk+-2.0)])
if test "$with_gstreamer" != "no" ; then
PKG_CHECK_MODULES(GSTREAMER,
gstreamer-0.10,
[AC_DEFINE(HAVE_GSTREAMER, 1, [Define if gstreamer-0.10 is available]) have_gstreamer=yes],
have_gstreamer=no)
AC_SUBST(GSTREAMER_CFLAGS)
AC_SUBST(GSTREAMER_LIBS)
AM_CONDITIONAL(HAVE_GSTREAMER, [test "x$have_gstreamer" = "xyes"])
fi
AC_CONFIG_FILES([
Makefile
compat/Makefile
gpinstruct/Makefile
gpinstruct/libgpinstruct.rc
gpinstruct-view/Makefile
gpinstruct-view/gpinstruct-view.rc
gpinstruct-view/libgpinstruct-view.rc
gpinstruct-editor/Makefile
gpinstruct-editor/gpinstruct-editor.rc
gpinstruct-editor/libgpinstruct-editor.rc
gpinstruct-analyzer/Makefile
gpinstruct-analyzer/gpinstruct-analyzer.rc
gpinstruct-analyzer/libgpinstruct-analyzer.rc
gpinstruct-server/Makefile
gpinstruct-server/gpinstruct-server.rc
gpinstruct-server/libgpinstruct-server.rc
gpinstruct-client/Makefile
gpinstruct-client/gpinstruct-client.rc
gpinstruct-client/libgpinstruct-client.rc
data/gpinstruct-analyzer.desktop.in
data/gpinstruct-client.desktop.in
data/gpinstruct-editor.desktop.in
data/gpinstruct-server.desktop.in
data/gpinstruct-view.desktop.in
data/Makefile
data/icons/Makefile
help/Makefile
po/Makefile.in])
AC_OUTPUT