summaryrefslogtreecommitdiff
path: root/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in.in')
-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