diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-07-12 21:01:39 +0800 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-23 20:34:17 +0800 |
commit | 8671084e03f71a709b12ba6e813ae77f62cc0732 (patch) | |
tree | da35abcde4b9d4b8014abf47e3adc1148dcdb546 | |
parent | 1e02bad1344fa4ddc750c95ce6cc135145a1c548 (diff) | |
download | gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.tar gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.tar.gz gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.tar.bz2 gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.tar.lz gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.tar.xz gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.tar.zst gsoc2013-empathy-8671084e03f71a709b12ba6e813ae77f62cc0732.zip |
configure: detect if Ubuntu Online Accounts dep is present
-rw-r--r-- | configure.ac | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 43530a548..b3ad14085 100644 --- a/configure.ac +++ b/configure.ac @@ -494,6 +494,35 @@ else fi AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes) +# ----------------------------------------------------------- +# ubuntu-online-accounts support +# ----------------------------------------------------------- +AC_ARG_ENABLE(ubuntu-online-accounts, + AS_HELP_STRING([--enable-ubuntu-online-accounts=@<:@no/yes/auto@:>@], + [build Ubuntu Online Accounts plugins]), , + enable_ubuntu_online_accounts=auto) + +if test "x$enable_ubuntu_online_accounts" != "xno"; then + PKG_CHECK_MODULES(UOA, + [ + account-plugin + ], have_uoa="yes", have_uoa="no") +else + have_uoa=no +fi + +if test "x$enable_ubuntu_online_accounts" = "xyes" -a "x$have_uoa" != "xyes"; then + AC_MSG_ERROR([Could not find Ubuntu Online Accounts dependencies: + +$UOA_PKG_ERRORS]) +fi + +if test "x$have_uoa" = "xyes"; then + AC_DEFINE(HAVE_UOA, 1, [Define to 1 to build Ubuntu Online Accounts plugins]) +fi + +AM_CONDITIONAL(HAVE_UOA, test "x$have_uoa" = "xyes") + # Help documentation YELP_HELP_INIT @@ -552,4 +581,5 @@ Configure summary: Extras: Nautilus-sendto plugin......: ${have_nst} GOA MC plugin...............: ${have_goa} + Ubuntu Online plugins.......: ${have_uoa} " |