Allow the UI code to be disabled at configure time
This commit is contained in:
parent
54cad448e1
commit
8f3951cab5
12
Makefile.am
12
Makefile.am
|
@ -1,11 +1,7 @@
|
||||||
SUBDIRS = \
|
basedirs = build help SmartIrc4net SparkleLib data po
|
||||||
build \
|
|
||||||
help \
|
SUBDIRS = $(basedirs) $(GUISUBDIRS)
|
||||||
SmartIrc4net \
|
DIST_SUBDIRS = $(basedirs) SparkleShare
|
||||||
SparkleLib \
|
|
||||||
SparkleShare \
|
|
||||||
data \
|
|
||||||
po
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
gnome-doc-utils.make \
|
gnome-doc-utils.make \
|
||||||
|
|
81
configure.ac
81
configure.ac
|
@ -99,52 +99,64 @@ PKG_CHECK_MODULES([SMARTIRC4NET], [smartirc4net],
|
||||||
)
|
)
|
||||||
AM_CONDITIONAL([HAVE_SMARTIRC4NET], test x$SPARKLE_SMARTIRC4NETDIR = x)
|
AM_CONDITIONAL([HAVE_SMARTIRC4NET], test x$SPARKLE_SMARTIRC4NETDIR = x)
|
||||||
|
|
||||||
dnl check for webkit-sharp
|
AC_ARG_ENABLE(gtkui,
|
||||||
PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0, have_webkit_sharp=yes, have_webkit_sharp=no)
|
AS_HELP_STRING([--disable-gtkui], [Do not build the Gtk+ user interface]),
|
||||||
if test "x$have_webkit_sharp" = "xno" ; then
|
[ enable_gtkui=no ], [ enable_gtkui=yes ])
|
||||||
AC_ERROR("webkit-sharp is a required dependency: you need to install the appropriate devel package before you can compile")
|
|
||||||
fi
|
|
||||||
AC_SUBST(WEBKIT_SHARP_LIBS)
|
|
||||||
|
|
||||||
dnl check for notify-sharp
|
|
||||||
PKG_CHECK_MODULES(NOTIFY_SHARP, notify-sharp, have_notify_sharp=yes, have_notify_sharp=no)
|
|
||||||
if test "x$have_notify_sharp" = "xno" ; then
|
|
||||||
AC_ERROR("notify-sharp is a required dependency: you need to install the appropriate devel package before you can compile")
|
|
||||||
fi
|
|
||||||
AC_SUBST(NOTIFY_SHARP_LIBS)
|
|
||||||
|
|
||||||
SHAMROCK_CHECK_NUNIT
|
|
||||||
|
|
||||||
APPINDICATOR_REQUIRED=0.0.7
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(appindicator,
|
AC_ARG_ENABLE(appindicator,
|
||||||
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
|
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
|
||||||
[enable_appindicator=$enableval],
|
[enable_appindicator=$enableval],
|
||||||
[enable_appindicator="auto"])
|
[enable_appindicator="auto"])
|
||||||
|
|
||||||
if test x$enable_appindicator = xauto ; then
|
AM_CONDITIONAL(ENABLE_GTKUI, test x$enable_gtkui = xyes)
|
||||||
PKG_CHECK_EXISTS([appindicator-sharp-0.1 >= $APPINDICATOR_REQUIRED],
|
if test "x$enable_gtkui" = "xyes" ; then
|
||||||
enable_appindicator="yes",
|
dnl check for webkit-sharp
|
||||||
enable_appindicator="no")
|
PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0, have_webkit_sharp=yes, have_webkit_sharp=no)
|
||||||
|
if test "x$have_webkit_sharp" = "xno" ; then
|
||||||
|
AC_ERROR("webkit-sharp is a required dependency: you need to install the appropriate devel package before you can compile")
|
||||||
|
fi
|
||||||
|
AC_SUBST(WEBKIT_SHARP_LIBS)
|
||||||
|
|
||||||
|
dnl check for notify-sharp
|
||||||
|
PKG_CHECK_MODULES(NOTIFY_SHARP, notify-sharp, have_notify_sharp=yes, have_notify_sharp=no)
|
||||||
|
if test "x$have_notify_sharp" = "xno" ; then
|
||||||
|
AC_ERROR("notify-sharp is a required dependency: you need to install the appropriate devel package before you can compile")
|
||||||
|
fi
|
||||||
|
AC_SUBST(NOTIFY_SHARP_LIBS)
|
||||||
|
|
||||||
|
APPINDICATOR_REQUIRED=0.0.7
|
||||||
|
|
||||||
|
if test x$enable_appindicator = xauto ; then
|
||||||
|
PKG_CHECK_EXISTS([appindicator-sharp-0.1 >= $APPINDICATOR_REQUIRED],
|
||||||
|
enable_appindicator="yes",
|
||||||
|
enable_appindicator="no")
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$enable_appindicator = xyes ; then
|
||||||
|
PKG_CHECK_EXISTS([appindicator-sharp-0.1 >= $APPINDICATOR_REQUIRED],,
|
||||||
|
AC_MSG_ERROR([appindicator-sharp-0.1 is not installed]))
|
||||||
|
PKG_CHECK_MODULES(APP_INDICATOR,
|
||||||
|
appindicator-sharp-0.1 >= $APPINDICATOR_REQUIRED)
|
||||||
|
AC_SUBST(APP_INDICATOR_CFLAGS)
|
||||||
|
AC_SUBST(APP_INDICATOR_LIBS)
|
||||||
|
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
|
||||||
|
fi
|
||||||
|
|
||||||
|
GUISUBDIRS=SparkleShare
|
||||||
|
else
|
||||||
|
GUISUBDIRS=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_appindicator = xyes ; then
|
|
||||||
PKG_CHECK_EXISTS([appindicator-sharp-0.1 >= $APPINDICATOR_REQUIRED],,
|
|
||||||
AC_MSG_ERROR([appindicator-sharp-0.1 is not installed]))
|
|
||||||
PKG_CHECK_MODULES(APP_INDICATOR,
|
|
||||||
appindicator-sharp-0.1 >= $APPINDICATOR_REQUIRED)
|
|
||||||
AC_SUBST(APP_INDICATOR_CFLAGS)
|
|
||||||
AC_SUBST(APP_INDICATOR_LIBS)
|
|
||||||
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
|
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
|
||||||
|
AC_SUBST([GUISUBDIRS])
|
||||||
|
|
||||||
|
SHAMROCK_CHECK_NUNIT
|
||||||
|
|
||||||
dnl Get nautilus extensions directory
|
dnl Get nautilus extensions directory
|
||||||
SPARKLESHARE_NAUTILUS_PYTHON
|
SPARKLESHARE_NAUTILUS_PYTHON
|
||||||
|
|
||||||
SHAVE_INIT([build/m4/shave], [enable])
|
SHAVE_INIT([build/m4/shave], [enable])
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
build/Makefile
|
build/Makefile
|
||||||
build/m4/Makefile
|
build/m4/Makefile
|
||||||
|
@ -171,6 +183,7 @@ SparkleShare ${VERSION}
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
Prefix : ${prefix}
|
Prefix : ${prefix}
|
||||||
|
Build Gtk+ UI : ${enable_gtkui}
|
||||||
Nautilus plugin : ${have_nautilus_python}
|
Nautilus plugin : ${have_nautilus_python}
|
||||||
User Help : ${enable_user_help} (requires gnome-doc-utils >= 0.17.3)
|
User Help : ${enable_user_help} (requires gnome-doc-utils >= 0.17.3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue