-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
130 lines (113 loc) · 3.5 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
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
AC_INIT([osso-xterm],[0.14.mh26])
dnl Initialize automake
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_INSTALL
AC_ISC_POSIX
AC_HEADER_STDC
AC_PROG_LIBTOOL
AX_CFLAGS_GCC_OPTION(-std=c99)
AX_CFLAGS_GCC_OPTION(-Wall)
dnl AX_CFLAGS_GCC_OPTION(-Werror)
AX_CFLAGS_GCC_OPTION(-Wmissing-prototypes)
AX_CFLAGS_GCC_OPTION(-Wmissing-declarations)
AX_CFLAGS_GCC_OPTION(-Wunreachable-code)
AX_CFLAGS_GCC_OPTION(-Wwrite-strings)
AC_MSG_CHECKING([whether to use maemo launcher])
AC_ARG_ENABLE([maemo-launcher],
[AS_HELP_STRING([--enable-maemo-launcher],
[default=yes])],
[
case "${enableval}" in
yes) maemo_launcher=true
AC_MSG_RESULT([yes])
PKG_CHECK_MODULES(MAEMO_LAUNCHER, [maemo-launcher-app])
AC_SUBST(MAEMO_LAUNCHER_CFLAGS)
AC_SUBST(MAEMO_LAUNCHER_LIBS)
;;
no) maemo_launcher=false
AC_MSG_RESULT([no])
;;
*) AC_MSG_ERROR([
"Bad value ${enableval} for --enable-maemo-launcher,\n"
"give exactly 'yes' or 'no' value."]) ;;
esac
], [maemo_launcher=false])
AC_ARG_WITH(
svgpix,
[ --with-svgpix[[=ARG]] use SVG icons ARG=[[detect]]|yes|no ],
[ svgpix=$withval ],
[ svgpix=detect ])
if test "x$svgpix" != "xno"; then
PKG_CHECK_MODULES(LIBRSVG, librsvg-2.0,
[
AC_DEFINE(HAVE_SVG)
svgpix="yes"
],
[
if test "x$svgpix" = "xyes"; then
AC_ERROR([ librsvg not found. Either install the library and its devel package, or turn off --with-svgpix at configure time.])
fi
svgpix="no"
]
)
fi
AM_CONDITIONAL(HAVE_SVG, test "x$svgpix" = "xyes")
PKG_CHECK_MODULES(VTE, vte >= 0.11.0)
AC_SUBST(VTE_LIBS)
AC_SUBST(VTE_CFLAGS)
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.60)
AC_SUBST(DBUS_LIBS)
AC_SUBST(DBUS_CFLAGS)
PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6.0)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)
PKG_CHECK_MODULES(OSSO, libosso >= 0.7.5)
AC_SUBST(VTE_LIBS)
AC_SUBST(VTE_CFLAGS)
PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, hildon1=yes, hildon1=no)
if test "$hildon1" == "yes"; then
AC_DEFINE(HILDON, 1, [Version of hildon libraries])
else
PKG_CHECK_MODULES(HILDON_LIBS, hildon-libs >= 0.12.0)
AC_DEFINE(HILDON, 0, [Version of hildon libraries])
fi
PKG_CHECK_MODULES(BROWSER, maemo-browser-interface, [], [
PKG_CHECK_MODULES(BROWSER, osso-browser-interface,[], [
PKG_CHECK_MODULES(BROWSER, tablet-browser-interface)
])
])
PKG_CHECK_MODULES(TABLET_BROWSER, tablet-browser-interface, tabletbrowser=yes, tabletbrowser=no)
if test "x$tabletbrowser" == "xno"; then
AC_DEFINE(HAVE_OSSO_BROWSER, 1, [have osso-browser])
fi
AC_SUBST(HILDON_LIBS)
AC_SUBST(HILDON_CFLAGS)
AC_SUBST(HILDON_LIBS_LIBS)
AC_SUBST(HILDON_LIBS_CFLAGS)
AC_DEFINE_UNQUOTED(LOCALEDIR, "/usr/share/locale", Locale dir)
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
if test "x$GLIB_GENMARSHAL" == "x"; then
AC_ERROR([Can't find glib-genmarshal in path. Fix your installation.])
fi
AC_SUBST([GLIB_GENMARSHAL])
dnl ===========================================================================
dnl === gettext ===
dnl ===========================================================================
GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="cs da de es_ES es_MX fi fr_CA fr_FR it nl no pl pt ru sv"
AM_GLIB_GNU_GETTEXT
AC_OUTPUT([
Makefile
icons/Makefile
icons/24x24/Makefile
icons/25x25/Makefile
icons/48x48/Makefile
icons/64x64/Makefile
etc/Makefile
src/Makefile
pixmaps/Makefile
po/Makefile.in
])