[gnumeric] config: make it work when gsetting isn't there.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] config: make it work when gsetting isn't there.
- Date: Thu, 3 Mar 2011 19:54:33 +0000 (UTC)
commit e6a6305be61c4c1e980ba7ad1fbdca2a0bf6e400
Author: Morten Welinder <terra gnome org>
Date: Thu Mar 3 14:54:12 2011 -0500
config: make it work when gsetting isn't there.
configure.in | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/configure.in b/configure.in
index 8363cf9..7b3e913 100644
--- a/configure.in
+++ b/configure.in
@@ -845,9 +845,15 @@ AC_ARG_WITH(long_double,
dnl **************************************************
dnl * Check for GSettings
dnl **************************************************
-AC_CHECK_LIB(gio-2.0,[g_settings_new])
-GLIB_GSETTINGS
-AM_CONDITIONAL(HAVE_GSETTINGS, test $ac_cv_lib_gio_2_0_g_settings_new=yes)
+have_gsettings=no
+AC_CHECK_LIB(gio-2.0,[g_settings_new],
+ [AC_DEFINE(HAVE_G_SETTINGS_NEW, 1,
+ [Define if the g_settings_new function is available])
+ GLIB_GSETTINGS
+ have_gsettings=yes],
+ [GSETTINGS_RULES=""
+ AC_SUBST(GSETTINGS_RULES)])
+AM_CONDITIONAL(HAVE_GSETTINGS, test $have_gsettings=yes)
dnl **************************************************
dnl * Check for Perl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]