diff options
| author | Jan Djärv | 2014-03-30 12:44:33 +0200 |
|---|---|---|
| committer | Jan Djärv | 2014-03-30 12:44:33 +0200 |
| commit | 4e6c9f7b2e67521f3b6835622c71852cec2d612f (patch) | |
| tree | a9a29983f0e1c92f068f61f59bddaf139d3f2d5d | |
| parent | 8778eb5efac3bf8936fdf22231b46ac0f88e0ab5 (diff) | |
| download | emacs-4e6c9f7b2e67521f3b6835622c71852cec2d612f.tar.gz emacs-4e6c9f7b2e67521f3b6835622c71852cec2d612f.zip | |
* configure.ac: Add check that GSettings is in libgio. Backport from trunk.
Fixes: debbugs:17118
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.ac | 23 |
2 files changed, 25 insertions, 3 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * configure.ac: Add check that GSettings is in libgio (Bug#17118). | ||
| 4 | Backport from trunk. | ||
| 5 | |||
| 1 | 2014-03-26 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2014-03-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Merge from gnulib, incorporating: | 8 | Merge from gnulib, incorporating: |
diff --git a/configure.ac b/configure.ac index e112f7926a5..44199c1fb50 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -2432,9 +2432,26 @@ HAVE_GSETTINGS=no | |||
| 2432 | if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then | 2432 | if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then |
| 2433 | PKG_CHECK_MODULES(GSETTINGS, gio-2.0 >= 2.26, HAVE_GSETTINGS=yes, HAVE_GSETTINGS=no) | 2433 | PKG_CHECK_MODULES(GSETTINGS, gio-2.0 >= 2.26, HAVE_GSETTINGS=yes, HAVE_GSETTINGS=no) |
| 2434 | if test "$HAVE_GSETTINGS" = "yes"; then | 2434 | if test "$HAVE_GSETTINGS" = "yes"; then |
| 2435 | AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.]) | 2435 | AC_MSG_CHECKING([whether GSettings is in gio]) |
| 2436 | SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" | 2436 | GSETTINGS_COMPILES=no |
| 2437 | SETTINGS_LIBS="$GSETTINGS_LIBS" | 2437 | AC_LINK_IFELSE( |
| 2438 | [AC_LANG_PROGRAM( | ||
| 2439 | [[/* Check that gsettings really is present. */ | ||
| 2440 | #include <glib-object.h> | ||
| 2441 | #include <gio/gio.h> | ||
| 2442 | ]], | ||
| 2443 | [[ | ||
| 2444 | GSettings *settings; | ||
| 2445 | GVariant *val = g_settings_get_value (settings, ""); | ||
| 2446 | ]])], | ||
| 2447 | [GSETTINGS_COMPILES=yes]) | ||
| 2448 | AC_MSG_RESULT([$GSETTINGS_COMPILES]) | ||
| 2449 | |||
| 2450 | if test "$$GSETTINGS_COMPILES" = "yes"; then | ||
| 2451 | AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.]) | ||
| 2452 | SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" | ||
| 2453 | SETTINGS_LIBS="$GSETTINGS_LIBS" | ||
| 2454 | fi | ||
| 2438 | fi | 2455 | fi |
| 2439 | fi | 2456 | fi |
| 2440 | 2457 | ||