1
dnl This file is part of the KDE libraries/packages
2
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
4
dnl This file is free software; you can redistribute it and/or
5
dnl modify it under the terms of the GNU Library General Public
6
dnl License as published by the Free Software Foundation; either
7
dnl version 2 of the License, or (at your option) any later version.
9
dnl This library is distributed in the hope that it will be useful,
10
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
dnl Library General Public License for more details.
14
dnl You should have received a copy of the GNU Library General Public License
15
dnl along with this library; see the file COPYING.LIB. If not, write to
16
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
dnl Boston, MA 02111-1307, USA.
19
# Original Author was Kalle@kde.org
20
# I lifted it in some mater. (Stephan Kulow)
21
# I used much code from Janos Farkas
23
dnl Process this file with autoconf to produce a configure script.
25
AC_INIT(acinclude.m4) dnl a source file from your sub dir
27
dnl This is so we can use kde-common
28
AC_CONFIG_AUX_DIR(admin)
30
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
33
dnl Checking host/target/build systems, for make, install etc.
35
dnl Perform program name transformation
38
dnl Automake doc recommends to do this only here. (Janos)
39
AM_INIT_AUTOMAKE(kkbswitch, 1.4.3) dnl searches for some needed programs
43
dnl generate the config header
44
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
46
dnl Checks for programs.
52
dnl for NLS support. Call them in this order!
53
dnl WITH_NLS is for the po files
60
dnl PACKAGE set before
62
AC_CHECK_KDEMAXPATHLEN
64
AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
66
#include <X11/XKBlib.h>])
68
save_LDFLAGS="$LDFLAGS"
69
LDFLAGS="$LDFLAGS $all_libraries"
70
AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
71
LDFLAGS="$save_LDFLAGS"
73
AC_ARG_ENABLE(ru-ua-layout,
74
[ --enable-ru-ua-layout Install Russian/Ukrainian layout file
75
(default: don't install)],
76
enable_ru_ua_layout="$enableval",
77
enable_ru_ua_layout="no")
79
AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")
81
dnl set prefix according to installed KDE. Strange that KDE build scripts
82
dnl don't do it by default
83
AC_PREFIX_DEFAULT(`kde-config --prefix`)
85
KDE_CREATE_SUBDIRSLIST
86
AC_CONFIG_FILES([ Makefile ])
87
AC_CONFIG_FILES([ doc/Makefile ])
88
AC_CONFIG_FILES([ doc/en/Makefile ])
89
AC_CONFIG_FILES([ kkbswitch/Makefile ])
90
AC_CONFIG_FILES([ kkbswitch.upd/Makefile ])
91
AC_CONFIG_FILES([ po/Makefile ])
93
if test "$all_tests" = "bad"; then
94
if test ! "$cache_file" = "/dev/null"; then
96
echo "Please remove the file $cache_file after changing your setup"
97
echo "so that configure will find the changes next time."
102
echo "Good - your configure finished. Start make now"