mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
2008-04-24 Emmanuele Bassi <ebassi@openedhand.com>
* configure.ac: Add the --with-json configure switch to allow building Clutter with the external dependency on the system JSON-GLib; the default is to use the internal copy unless explicitly asked to check.
This commit is contained in:
parent
e261affeea
commit
76735c0374
@ -1,3 +1,10 @@
|
||||
2008-04-24 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* configure.ac: Add the --with-json configure switch to
|
||||
allow building Clutter with the external dependency on
|
||||
the system JSON-GLib; the default is to use the internal
|
||||
copy unless explicitly asked to check.
|
||||
|
||||
2008-04-24 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* Makefile.am: Add HACKING.backends to the EXTRA_DIST.
|
||||
|
41
configure.ac
41
configure.ac
@ -345,18 +345,37 @@ AC_SUBST([clutterbackendlib])
|
||||
|
||||
dnl ========================================================================
|
||||
|
||||
# if we have json-glib installed, use the system library instead of
|
||||
# the internal copy
|
||||
AC_MSG_CHECKING([for installed JSON-GLib])
|
||||
PKG_CHECK_EXISTS(json-glib-1.0, [have_json=yes], [have_json=no])
|
||||
if test "x$have_json" = "xyes"; then
|
||||
JSON_PREFIX=json-glib
|
||||
JSON_GLIB_PC=json-glib-1.0
|
||||
AC_DEFINE(HAVE_JSON_GLIB, 1, [Have the JSON-GLib library installed])
|
||||
AC_MSG_RESULT([found])
|
||||
else
|
||||
# allow building clutter with an external dependency on json-glib
|
||||
# using the --with-json=check argument, but keep the default to
|
||||
# the internal version
|
||||
AC_ARG_WITH([json],
|
||||
AC_HELP_STRING([--with-json=@<:@internal/check@:>@],
|
||||
[Select the JSON-GLib copy to use @<:@default=internal@:>@]),
|
||||
[],
|
||||
[with_json=internal])
|
||||
|
||||
case $with_json in
|
||||
internal|check) ;;
|
||||
*) AC_MSG_ERROR([Invalid value for the JSON library: use internal or check]) ;;
|
||||
esac
|
||||
|
||||
if test "x$with_json" = "xinternal"; then
|
||||
JSON_PREFIX=json
|
||||
AC_MSG_RESULT([not found, using internal copy])
|
||||
have_json=no
|
||||
else
|
||||
# if the user asked for it and if we have json-glib installed,
|
||||
# prefer the system library instead of the internal copy
|
||||
AC_MSG_CHECKING([for installed JSON-GLib])
|
||||
PKG_CHECK_EXISTS(json-glib-1.0, [have_json=yes], [have_json=no])
|
||||
if test "x$have_json" = "xyes"; then
|
||||
JSON_PREFIX=json-glib
|
||||
JSON_GLIB_PC=json-glib-1.0
|
||||
AC_DEFINE(HAVE_JSON_GLIB, 1, [Have the JSON-GLib library installed])
|
||||
AC_MSG_RESULT([found])
|
||||
else
|
||||
JSON_PREFIX=json
|
||||
AC_MSG_RESULT([not found, using internal copy])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST(JSON_PREFIX)
|
||||
|
Loading…
Reference in New Issue
Block a user