summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronestone <onestone>2007-02-01 15:54:01 +0000
committeronestone <onestone>2007-02-01 15:54:01 +0000
commit715979874ef6ba54f3d6698f1829be264aa6f6e6 (patch)
tree55b775ee9a846332ffeedbed3a20413f3c00323d
parent42aef7ff3f01c749776445b3e89ddc43e70e084a (diff)
downloadaquamarine-715979874ef6ba54f3d6698f1829be264aa6f6e6.tar.gz
aquamarine-715979874ef6ba54f3d6698f1829be264aa6f6e6.tar.bz2
aquamarine: get beryl libdir from pkg-config to install backend to the right place
-rw-r--r--configure.in.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in.in b/configure.in.in
index de9f4ed..668e535 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -24,7 +24,16 @@ if test "$berylsettings" = "yes"; then
if test "$berylsettings_found" = "yes"; then
AC_DEFINE(HAVE_BERYL_SETTINGS,1,[check for berylsettings])
- plugindir=$prefix/lib/beryl
+ if test -z "$PKG_CONFIG"; then
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ fi
+
+ if test "$PKG_CONFIG" = "no" ; then
+ plugindir=$prefix/lib/beryl
+ else
+ bs_libdir=`$PKG_CONFIG --variable=libdir berylsettings`
+ plugindir=$bs_libdir/beryl
+ fi
AC_SUBST(plugindir)
fi