1
dnl Process this file with autoconf to produce a configure script.
2
dnl Created by Anjuta application wizard.
5
AM_INIT_AUTOMAKE(gecko-mediaplayer, 1.0.4)
6
AM_CONFIG_HEADER(config.h)
8
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
21
dnl Set gettext package name
22
GETTEXT_PACKAGE=gecko-mediaplayer
23
AC_SUBST(GETTEXT_PACKAGE)
24
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
26
dnl Add the languages which your application supports here.
27
ALL_LINGUAS="cs de es fr ja it nl pl pt pt_BR tr"
30
PKG_CHECK_MODULES(GLIB, [glib-2.0])
35
[AS_HELP_STRING([--with-gconf],
36
[Use Gconf to store preferences])],
39
AS_IF([test "x$with_gconf" != xyes],
40
[PKG_CHECK_MODULES(GLIB2_26,[glib-2.0 >= 2.26.0],[with_gconf=no with_gsettings=yes with_gio=yes GLIB2_26_DEFINES="-DGLIB2_26_ENABLED" AC_DEFINE([GLIB2_26_ENABLED],[1],[Define to 1 if you have GLIB 2.26 or higher])],AC_MSG_NOTICE([Using GLIB < 2.26 specific features]))
43
AC_SUBST(GLIB2_26_DEFINES)
45
AC_SUBST(PULSE_CFLAGS)
48
AC_ARG_WITH([xulrunner-sdk],
49
[AS_HELP_STRING([--with-xulrunner-sdk=path_to_sdk],
50
[Path to xulrunner SDK for build --with-xulrunner-sdk=/path/to/sdk])],
52
XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk
53
GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java"
54
GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
55
AC_ARG_ENABLE(new-libxul,
56
AC_HELP_STRING([--enable-new-libxul],[libxul/xulrunner-sdk is 1.9.2 or higher]),
57
[usenewlibxul=$enableval],[usenewlibxul=no])
59
if test "$usenewlibxul" = "yes"; then
60
GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC"
61
AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 1.9.2 or higher])
67
if test "$GECKO_CFLAGS" = ""; then
68
PKG_CHECK_MODULES(GECKO, [libxul >= 2],[GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC" AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 2.0.0 or higher]) AC_MSG_NOTICE([Using libxul >= 2.0 ])
69
],[AC_MSG_NOTICE([libxul >= 2 not found, trying another])])
72
if test "$GECKO_CFLAGS" = ""; then
73
PKG_CHECK_MODULES(GECKO, [libxul >= 1.9.2],[ AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 1.9.2 or higher]) AC_MSG_NOTICE([Using libxul >= 1.9.2])
74
],[AC_MSG_NOTICE([libxul >= 1.9.2 not found, trying another])])
77
if test "$GECKO_CFLAGS" = ""; then
78
PKG_CHECK_MODULES(GECKO, [libxul < 1.9.2],[ AC_MSG_NOTICE([Using libxul < 1.9.2])
79
],[AC_MSG_WARN([libxul < 1.9.2 not found, trying another])])
82
if test "$GECKO_CFLAGS" = ""; then
83
PKG_CHECK_MODULES(GECKO, [libxul-unstable],[ AC_MSG_NOTICE([Using libxul-unstable])
84
],[AC_MSG_WARN([libxul-unstable not found, trying another])])
87
if test "$GECKO_CFLAGS" = ""; then
88
PKG_CHECK_MODULES(GECKO, [mozilla-plugin mozilla-xpcom],[ AC_MSG_NOTICE([Using mozilla])
89
],[AC_MSG_WARN([mozilla-plugin not found, trying another])])
92
if test "$GECKO_CFLAGS" = ""; then
93
PKG_CHECK_MODULES(GECKO, [firefox-plugin firefox-xpcom],[ AC_MSG_NOTICE([Using firefox])
94
],[AC_MSG_WARN([firefox-plugin not found, trying another])])
97
if test "$GECKO_CFLAGS" = ""; then
98
PKG_CHECK_MODULES(GECKO, [seamonkey-plugin seamonkey-xpcom],[ AC_MSG_NOTICE([Using seamonkey])
99
],[AC_MSG_WARN([seamokey-plugin not found, trying another])])
102
if test "$GECKO_CFLAGS" = ""; then
103
PKG_CHECK_MODULES(GECKO, [xulrunner-plugin xulrunner-xpcom],[ AC_MSG_NOTICE([Using xulrunner])
104
],[AC_MSG_WARN([xulrunner-plugin not found, trying another])])
107
if test "$GECKO_CFLAGS" = ""; then
108
PKG_CHECK_MODULES(GECKO, [iceape-plugin iceape-xpcom],[ AC_MSG_NOTICE([Using iceape])
109
],[AC_MSG_WARN([iceape-plugin not found, trying another])])
112
PKG_CHECK_MODULES(NSPR, [nspr],[
113
libdir=`$PKG_CONFIG --variable=libdir nspr`
115
],[AC_MSG_WARN([nspr not found, may not be needed])])
118
AC_SUBST(GECKO_CFLAGS)
121
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.95 dbus-glib-1 >= 0.70])
122
AC_SUBST(DBUS_CFLAGS)
127
[AS_HELP_STRING([--with-gconf],
128
[Use Gconf to store preferences])],
129
[AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false])],
131
AS_IF([test "x$with_gconf" != xno],
132
[PKG_CHECK_MODULES(GCONF, [gconf-2.0],[AM_GCONF_SOURCE_2 USE_GCONF=1
133
GCONF_DEFINES="-DHAVE_GCONF" AC_DEFINE([HAVE_GCONF],[1],[Define to 1 to use GConf to store preferences])],[AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL],[false]) AC_MSG_NOTICE([Using keystore for preferences])])
134
AC_SUBST(GCONF_DEFINES)
135
AC_SUBST(GCONF_CFLAGS)
141
[AS_HELP_STRING([--with-gio],
142
[Use GIO for file I/O])],
145
AS_IF([test "x$with_gio" != xno],
146
[PKG_CHECK_MODULES(GIO,[gio-2.0],[GIO_DEFINES="-DGIO_ENABLED" AC_DEFINE([GIO_ENABLED],[1],[Define to 1 if you have GIO support])],AC_MSG_WARN([Compiling without gio support]))
147
AC_SUBST(GIO_DEFINES)
152
AC_ARG_WITH([plugin_dir],
153
[AS_HELP_STRING([--with-plugin-dir=dir],
154
[Directory where plugins are stored])],
155
[plugindir=$withval],
156
[plugindir='$(libdir)/mozilla/plugins'])
159
AC_ARG_ENABLE(caching,
160
AC_HELP_STRING([--disable-caching],[Disable caching of remote media to local storage]),
161
[usecache=$enableval],[usecache=yes])
163
if test $usecache != yes; then
164
GECKO_CFLAGS="$GECKO_CFLAGS -DDISABLE_CACHE"
167
AC_ARG_WITH([libcurl],
168
[AS_HELP_STRING([--with-libcurl],
169
[Add support for libcurl])],
171
[with_libcurl=check])
172
AS_IF([test "x$with_libcurl" != xno],
173
[PKG_CHECK_MODULES(CURL,[libcurl],[CURL_DEFINES="-DHAVE_CURL" AC_DEFINE([CURL_ENABLED],[1],[Define to 1 if you have curl support])],AC_MSG_NOTICE([Compiling without curl support. May disable apple.com sites]))
174
AC_SUBST(CURL_DEFINES)
175
AC_SUBST(CURL_CFLAGS)
182
gecko-mediaplayer.spec
184
src/libgmlib/Makefile