summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-08-18 15:43:45 +0200
committerSlávek Banko <[email protected]>2013-08-18 15:43:45 +0200
commitae0c828ac29043e7adc56a78fc18d816b32c12b4 (patch)
tree51cc9b30f40faa951fc029f72c5f5b5e573e863d /configure.in.in
downloadkkbswitch-ae0c828ac29043e7adc56a78fc18d816b32c12b4.tar.gz
kkbswitch-ae0c828ac29043e7adc56a78fc18d816b32c12b4.zip
Initial import of kkbswitch 1.4.3
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
new file mode 100644
index 0000000..600ed88
--- /dev/null
+++ b/configure.in.in
@@ -0,0 +1,27 @@
+#MIN_CONFIG(3.0.0)
+
+AM_INIT_AUTOMAKE(kkbswitch, 1.4.3)
+AC_C_BIGENDIAN
+AC_CHECK_KDEMAXPATHLEN
+
+AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
+ #include <stdio.h>
+ #include <X11/XKBlib.h>])
+
+save_LDFLAGS="$LDFLAGS"
+LDFLAGS="$LDFLAGS $all_libraries"
+AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
+LDFLAGS="$save_LDFLAGS"
+
+AC_ARG_ENABLE(ru-ua-layout,
+ [ --enable-ru-ua-layout Install Russian/Ukrainian layout file
+ (default: don't install)],
+ enable_ru_ua_layout="$enableval",
+ enable_ru_ua_layout="no")
+
+AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")
+
+dnl set prefix according to installed KDE. Strange that KDE build scripts
+dnl don't do it by default
+AC_PREFIX_DEFAULT(`kde-config --prefix`)
+