summaryrefslogtreecommitdiff
path: root/configure.ac.in
diff options
context:
space:
mode:
authorAli Abdallah <ali@xfce.org>2018-07-13 21:07:27 +0200
committerAli Abdallah <ali@xfce.org>2018-07-13 21:07:27 +0200
commit05fe7967666170ad4ef8f7623c107857b41e5b56 (patch)
treeb5f63dec9726427201de0d1801e27e0e8485a13c /configure.ac.in
parent5816ed0fa21d2b440da605c1129f30d7a842444f (diff)
downloadxfconf-05fe7967666170ad4ef8f7623c107857b41e5b56.tar.gz
Added skeleton file to GSettings backend support.
Diffstat (limited to 'configure.ac.in')
-rw-r--r--configure.ac.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/configure.ac.in b/configure.ac.in
index a736b95..cc73403 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -181,6 +181,22 @@ if test "x$xfconf_backend_perchannel_xml" = "xyes"; then
[Define if the perchannel-xml backend should be built])
fi
+dnl check for GSettings backend support
+AC_ARG_ENABLE([gsettings_backend], AC_HELP_STRING([--disable-gsettings-backend], [Don't build GSettings backend module]),
+ [ac_gsettings_backend=$enableval], [ac_gsettings_backend=yes])
+AC_MSG_CHECKING([whether to build the GSettings backend module])
+AM_CONDITIONAL([XFCONF_ENABLE_GSETTINGS_BACKEND], [test x"$ac_gsettings_backend" = x"yes"])
+AC_MSG_RESULT([$ac_gsettings_backend])
+
+dnl GModule is required in order to build the GSettings backend module
+if test "x$ac_gsettings_backend"; then
+ XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.30.0])
+ GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`"
+ AC_DEFINE_UNQUOTED(GIO_MODULE_DIR, "$GIO_MODULE_DIR",
+ [The GIO modules directory.])
+ AC_SUBST(GIO_MODULE_DIR)
+fi
+
dnl check for debugging support
XDT_FEATURE_DEBUG([xfconf_default_debug])
dnl gtk-doc is broken
@@ -199,6 +215,14 @@ fi
dnl check whether the compiler supports the visibility attribute
XDT_FEATURE_VISIBILITY
+if test "x$have_gnuc_visibility" = "xyes"; then
+AC_DEFINE([XFCONF_EXPORT], [__attribute__((visibility("default")))],
+ [defines how to decorate public symbols while building])
+else
+AC_DEFINE([XFCONF_EXPORT], [],
+ [defines how to decorate public symbols while building])
+fi
+
dnl add -O1 and --as-needed to LDFLAGS if supported
XDT_FEATURE_LINKER_OPTS
@@ -236,4 +260,16 @@ xfconf-perl/Xfconf.pm
xfconf-perl/xs/Makefile
xfconf-query/Makefile
xfconfd/Makefile
+gsettings-backend/Makefile
])
+
+dnl ***************************
+dnl *** Print configuration ***
+dnl ***************************
+echo
+echo "Build Configuration:"
+echo
+echo " * GSettings Backend: $ac_gsettings_backend"
+echo
+echo " * Debug: $enable_debug"
+echo