summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Udaltsov <svu@gnome.org>2011-02-04 21:02:05 +0000
committerSergey Udaltsov <svu@gnome.org>2011-02-04 21:02:05 +0000
commit1fee1572d0f72272760ad0b89692c4b6a47269a8 (patch)
treef983259d2b03c37c73846655bf6e55af67a3b652
parent174b0be37b2583b229e1c27b7a7a7f876f20f0ee (diff)
Fixed location of x11 base dir
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index fb40a21..f400038 100644
--- a/configure.in
+++ b/configure.in
@@ -57,10 +57,11 @@ AC_SUBST(X_CFLAGS)
AC_ARG_WITH( xkb_base,
[ --with-xkb-base=DIR XKB base path (by default it is /usr/share/X11/xkb)],
xkb_base="$withval",
- if test -z "$X_LIBS" ; then
+ xorgdata=`$PKG_CONFIG --variable=datarootdir xorg-server`
+ if test -z "$xorgdata" ; then
xkb_base="/usr/share/X11/xkb"
else
- xkb_base="$X_LIBS/X11/xkb"
+ xkb_base="$xorgdata/X11/xkb"
fi )
AC_DEFINE_UNQUOTED(XKB_BASE,"${xkb_base}",Base for XKB configuration)