]> git.0d.be Git - empathy.git/commitdiff
Do not install MC plugins into MC's prefix
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Mon, 23 Jul 2012 13:27:20 +0000 (15:27 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Mon, 23 Jul 2012 13:56:00 +0000 (15:56 +0200)
MC and Empathy could be installed in different prefixes

configure.ac

index 3c9435dc1c55c65d244cc28ef02f0185a20f04fb..868b0640927b9cc1349a69e169fe0fe3ad4e6afc 100644 (file)
@@ -458,12 +458,6 @@ if test "x$enable_goa" != "xno"; then
        mission-control-plugins
        goa-1.0 >= $GOA_REQUIRED
     ], have_goa="yes", have_goa="no")
-
-   AC_MSG_CHECKING([Mission Control plugins dir])
-   MISSION_CONTROL_PLUGINS_DIR=`pkg-config --variable=plugindir mission-control-plugins`
-
-   AC_MSG_RESULT([$MISSION_CONTROL_PLUGINS_DIR])
-   AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
 else
    have_goa=no
 fi
@@ -518,13 +512,6 @@ if test "x$enable_ubuntu_online_accounts" != "xno"; then
        libsignon-glib >= $LIBSIGNON_REQUIRED
     ], have_uoa="yes", have_uoa="no")
 
-   # MC plugins dir
-   AC_MSG_CHECKING([Mission Control plugins dir])
-   MISSION_CONTROL_PLUGINS_DIR=`pkg-config --variable=plugindir mission-control-plugins`
-
-   AC_MSG_RESULT([$MISSION_CONTROL_PLUGINS_DIR])
-   AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
-
    # provider plugin dir
    AC_MSG_CHECKING([Accounts provider plugin dir])
    ACCOUNTS_PROVIDER_PLUGIN_DIR=`pkg-config --variable=provider_plugindir account-plugin`
@@ -561,6 +548,15 @@ fi
 
 AM_CONDITIONAL(HAVE_UOA, test "x$have_uoa" = "xyes")
 
+if test "x$have_uoa" = "xyes" -o "x$have_goa" = "xyes"; then
+   AC_MSG_CHECKING([Mission Control plugins dir])
+   MISSION_CONTROL_PLUGINS_DIR=${libdir}/mission-control-plugins.`pkg-config --variable=MCP_ABI_VERSION mission-control-plugins`
+
+   AC_MSG_RESULT([$MISSION_CONTROL_PLUGINS_DIR])
+   AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
+fi
+
+
 # Help documentation
 YELP_HELP_INIT