diff --git a/ChangeLog b/ChangeLog index 262d17307..1203e954b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-09-21 Kristian Høgsberg + + * configure.ac: Accept --with-xkb-output argument to specify + output dir for compiled xkb keymaps. Define XKM_OUTPUT_DIR and + XKB_BIN_DIRECTORY. + + * include/xkb-config.h.in: Add XKM_OUTPUT_DIR and XKB_BIN_DIRECTORY. + + * xkb/Makefile.am (AM_CFLAGS): Add XKB_CFLAGS. + 2005-09-20 Adam Jackson * hw/xfree86/os-support/Makefile.am: diff --git a/configure.ac b/configure.ac index c2cbbdf66..5a37ccc62 100644 --- a/configure.ac +++ b/configure.ac @@ -308,6 +308,9 @@ AC_ARG_WITH(default-font-path, [ --with-default-font-path=PATH ], AC_ARG_WITH(xkb-path, [ --with-xkb-path=PATH ], [ XKBPATH="$withval" ], [ XKBPATH="${datadir}/X11/xkb" ]) +AC_ARG_WITH(xkb-output, [ --with-xkb-output=PATH ], + [ XKBOUTPUT="$withval" ], + [ XKBOUTPUT="compiled/" ]) AC_ARG_WITH(rgb-path, [ --with-rgb-path=PATH ], [ RGBPATH="$withval" ], [ RGBPATH="${datadir}/X11/rgb" ]) @@ -968,6 +971,8 @@ AM_CONDITIONAL(XWIN_XV, [test "x$XWIN" = xyes && test "x$XV" = xyes]) dnl these only go in xkb-config.h (which is shared by the Xorg and Xnest servers) AC_DEFINE(__XKBDEFRULES__, "xorg", [Default XKB rules]) AC_DEFINE_DIR(XKB_BASE_DIRECTORY, XKBPATH, [Path to XKB data]) +AC_DEFINE_DIR(XKB_BIN_DIRECTORY, bindir, [Path to XKB bin dir]) +AC_DEFINE_DIR(XKM_OUTPUT_DIR, XKBOUTPUT, [Path to XKB output dir]) dnl and the rest of these are generic, so they're in config.h AC_DEFINE(XFree86XDGA, 1, [Build XDGA support]) diff --git a/include/xkb-config.h.in b/include/xkb-config.h.in index 2d6713a5e..25cceb031 100644 --- a/include/xkb-config.h.in +++ b/include/xkb-config.h.in @@ -11,4 +11,10 @@ /* Path to XKB definitions. */ #undef XKB_BASE_DIRECTORY +/* Path to xkbcomp. */ +#undef XKB_BIN_DIRECTORY + +/* XKB output dir for compiled keymaps. */ +#undef XKM_OUTPUT_DIR + #endif /* _XKB_CONFIG_H_ */