1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
1 |
# ================= initialization =================== #
|
83
by Osmo Antero
Version 0.8 with some clean ups. |
2 |
AC_INIT([Audio Recorder], [0.8], [https://bugs.launchpad.net/audio-recorder/+filebug], [audio-recorder]) |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
3 |
|
4 |
AM_INIT_AUTOMAKE
|
|
5 |
AC_CONFIG_SRCDIR([src/main.c]) |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
6 |
#AC_CONFIG_HEADER([src/config.h])
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
7 |
AM_MAINTAINER_MODE
|
8 |
||
9 |
# ============== basic compiler settings ============= #
|
|
10 |
AC_PROG_CC
|
|
11 |
AC_HEADER_STDC
|
|
12 |
||
13 |
# *************************
|
|
14 |
# Checks for programs.
|
|
15 |
# *************************
|
|
16 |
AC_PROG_CXX
|
|
17 |
AC_PROG_CC
|
|
18 |
AC_PROG_INSTALL
|
|
19 |
AC_PROG_MAKE_SET
|
|
20 |
||
77
by Osmo Antero
Updated version (v0.7) for Fedora 16+ and Ubuntu 12.04. |
21 |
# ---- compile with -Wall -----
|
22 |
CFLAGS="$CFLAGS -Wall" |
|
23 |
||
24 |
# ---- lib math (-lm) -----
|
|
25 |
# LDFLAGS="$LDFLAGS -lm"
|
|
26 |
# Edit: See the MATH_LIB variable below.
|
|
27 |
||
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
28 |
# ========== export compiler / linker options ======== #
|
29 |
AC_SUBST(CFLAGS) |
|
30 |
AC_SUBST(CPPFLAGS) |
|
31 |
AC_SUBST(LDFLAGS) |
|
32 |
AC_SUBST(LIBS) |
|
33 |
||
77
by Osmo Antero
Updated version (v0.7) for Fedora 16+ and Ubuntu 12.04. |
34 |
# Math library -lm is required by Fedora during linking. Ubuntu can do with or without it.
|
35 |
# But Ubuntu fails to link if -lm is in the beginning of linking list, therefore we add -lm at the end.
|
|
36 |
# See src/Makefile.am
|
|
37 |
MATH_LIB=-lm |
|
38 |
AC_SUBST(MATH_LIB) |
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
39 |
|
40 |
# ============== look for dependencies =============== #
|
|
41 |
# check for headers needed for standard interfaces
|
|
42 |
AC_CHECK_HEADERS( |
|
43 |
stdlib.h \ |
|
44 |
string.h \ |
|
45 |
stdio.h \ |
|
46 |
unistd.h |
|
47 |
)
|
|
48 |
||
49 |
GLIB_REQUIRED=2.14.0 |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
50 |
GTK_REQUIRED=3.0.0 |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
51 |
GTHREAD_REQUIRED=2.0.0 |
77
by Osmo Antero
Updated version (v0.7) for Fedora 16+ and Ubuntu 12.04. |
52 |
GSTREAMER_REQUIRED=0.10.0 |
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
53 |
APPINDICATOR_REQUIRED=0.3 |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
54 |
|
55 |
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) |
|
56 |
AC_SUBST(GLIB_CFLAGS) |
|
57 |
AC_SUBST(GLIB_LIBS) |
|
58 |
||
101
by Osmo Antero
New media-player interface that's based on the MediaPlayer2 standard. See src/dbus-mpris2.c. |
59 |
PKG_CHECK_MODULES(GIO, gio-2.0 >= $GLIB_REQUIRED) |
60 |
AC_SUBST(GIO_CFLAGS) |
|
61 |
AC_SUBST(GIO_LIBS) |
|
62 |
||
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
63 |
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
64 |
AC_SUBST(GTK_CFLAGS) |
65 |
AC_SUBST(GTK_LIBS) |
|
66 |
||
67 |
PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 >= $GSTREAMER_REQUIRED) |
|
68 |
AC_SUBST(GSTREAMER_CFLAGS) |
|
69 |
AC_SUBST(GSTREAMER_LIBS) |
|
70 |
||
71 |
PKG_CHECK_MODULES(GSTREAMER_INTERFACE, gstreamer-interfaces-0.10 >= $GSTREAMER_REQUIRED) |
|
72 |
AC_SUBST(GSTREAMER_INTERFACE_CFLAGS) |
|
73 |
AC_SUBST(GSTREAMER_INTERFACE_LIBS) |
|
74 |
||
75 |
PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED) |
|
76 |
AC_SUBST(GTHREAD_CFLAGS) |
|
77 |
AC_SUBST(GTHREAD_LIBS) |
|
78 |
||
79 |
PKG_CHECK_MODULES(PULSEAUDIO, libpulse >= 0.0) |
|
80 |
AC_SUBST(PULSEAUDIO_CFLAGS) |
|
81 |
AC_SUBST(PULSEAUDIO_LIBS) |
|
82 |
||
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
83 |
PKG_CHECK_MODULES(MEDIA_PROFILES, libgnome-media-profiles-3.0 >= 3.0) |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
84 |
AC_SUBST(MEDIA_PROFILES_CFLAGS) |
85 |
AC_SUBST(MEDIA_PROFILES_LIBS) |
|
86 |
||
87 |
# current dbus-1 version is 1.4
|
|
88 |
PKG_CHECK_MODULES(DBUS, dbus-1 >= 0.8) |
|
89 |
AC_SUBST(DBUS_CFLAGS) |
|
90 |
AC_SUBST(DBUS_LIBS) |
|
91 |
||
92 |
# current dbus-glib-1 version is 0.88
|
|
93 |
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.4) |
|
94 |
AC_SUBST(DBUS_GLIB_CFLAGS) |
|
95 |
AC_SUBST(DBUS_GLIB_LIBS) |
|
96 |
||
97 |
# Supports AppIndicator?
|
|
98 |
# Ref: https://launchpad.net/indicator-application |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
99 |
|
100 |
# TODO:
|
|
101 |
# libappindicator3-dev
|
|
102 |
# libappindicator3-1
|
|
103 |
# appindicator3-0.1
|
|
104 |
# orig: appindicator-0.1
|
|
105 |
PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED], |
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
106 |
enable_appindicator="yes", |
107 |
enable_appindicator="no") |
|
108 |
||
109 |
if test x$enable_appindicator = xyes ; then |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
110 |
PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],, |
111 |
AC_MSG_ERROR([appindicator3-0.1 is not installed])) |
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
112 |
|
113 |
PKG_CHECK_MODULES(APP_INDICATOR, |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
114 |
appindicator3-0.1 >= $APPINDICATOR_REQUIRED) |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
115 |
AC_SUBST(APP_INDICATOR_CFLAGS) |
116 |
AC_SUBST(APP_INDICATOR_LIBS) |
|
117 |
AC_DEFINE(HAS_APP_INDICATOR, 1, [Has AppIndicator]) |
|
118 |
fi
|
|
119 |
AM_CONDITIONAL(HAS_APP_INDICATOR, test x"$enable_appindicator" = xyes) |
|
120 |
||
121 |
# *************************
|
|
122 |
# Checks for library functions.
|
|
123 |
# *************************
|
|
124 |
AC_FUNC_STAT
|
|
125 |
AC_FUNC_VPRINTF
|
|
126 |
AC_CHECK_FUNCS([exp pow]) |
|
127 |
||
128 |
# *************************
|
|
77
by Osmo Antero
Updated version (v0.7) for Fedora 16+ and Ubuntu 12.04. |
129 |
# Add code for supported languages here. See audio-recorder/po/*.po files.
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
130 |
# *************************
|
94
by Osmo Antero
Language updates. New language nl (dutch) |
131 |
ALL_LINGUAS="cs de en_AU en_GB es eu fi fr hr hu it nb nl pl pt pt_BR ru sk sr tr uk vi" |
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
132 |
|
133 |
GETTEXT_PACKAGE=audio-recorder |
|
134 |
||
135 |
AC_SUBST(GETTEXT_PACKAGE) |
|
136 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) |
|
137 |
||
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
138 |
# For po/Makefile
|
139 |
# Ref: https://bugs.launchpad.net/ubuntu/+source/gettext/+bug/122343 |
|
140 |
top_builddir=`pwd` |
|
141 |
AC_SUBST(top_builddir) |
|
142 |
||
56
by Osmo Antero
Version 0.5 |
143 |
#AM_GLIB_GNU_GETTEXT
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
144 |
#AC_PROG_INTLTOOL
|
145 |
AM_GNU_GETTEXT
|
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
146 |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
147 |
# Support for GSetting schemas
|
148 |
GLIB_GSETTINGS
|
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
149 |
|
150 |
# Change default from /usr/local to /usr
|
|
151 |
AC_PREFIX_DEFAULT(/usr) |
|
152 |
||
101
by Osmo Antero
New media-player interface that's based on the MediaPlayer2 standard. See src/dbus-mpris2.c. |
153 |
AC_CONFIG_FILES([ |
154 |
Makefile
|
|
56
by Osmo Antero
Version 0.5 |
155 |
src/Makefile |
156 |
pixmaps/Makefile |
|
157 |
icons/Makefile |
|
158 |
icons/hicolor/Makefile |
|
159 |
icons/hicolor/16x16/Makefile |
|
160 |
icons/hicolor/16x16/apps/Makefile |
|
161 |
icons/hicolor/22x22/Makefile |
|
162 |
icons/hicolor/22x22/apps/Makefile |
|
163 |
icons/hicolor/24x24/Makefile |
|
164 |
icons/hicolor/24x24/apps/Makefile |
|
165 |
icons/hicolor/32x32/Makefile |
|
166 |
icons/hicolor/32x32/apps/Makefile |
|
167 |
icons/hicolor/48x48/Makefile |
|
168 |
icons/hicolor/48x48/apps/Makefile |
|
169 |
icons/hicolor/64x64/Makefile |
|
170 |
icons/hicolor/64x64/apps/Makefile |
|
171 |
icons/hicolor/256x256/Makefile |
|
172 |
icons/hicolor/256x256/apps/Makefile |
|
173 |
data/Makefile |
|
69
by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2 |
174 |
po/Makefile.in |
175 |
po/Makefile]) |
|
1
by Osmo Antero Maatta
Initial import 17.jan.2011 |
176 |
|
177 |
AC_OUTPUT
|
|
178 |
||
179 |
||
180 |