summaryrefslogtreecommitdiffstats
path: root/kmilo/configure.in.in
blob: 048c5b30df81a777150221c60e215ff95d3fbf44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

##################################################################
## 
##    KMilo configure script
##    George Staikos <staikos@kde.org>
##
##################################################################

dnl ---------------------------------------------------------------------
dnl PowerBook IPC Library

AC_ARG_WITH(powerbook,
  [AC_HELP_STRING(--with-powerbook,
    [enable support for PPC PowerBook @<:@default=check@:>@])],
  [], with_powerbook=check)

have_pbbipc=""
have_pbb=""
if test "x$with_powerbook" != xno; then

KDE_CHECK_LIB(pbbipc, create_msgport,
[
KEYBOARD_LIBS="-lpbbipc $KEYBOARD_LIBS"
AC_DEFINE(HAVE_POWERBOOK, 1, [If we have Apple PowerBook support])
have_pbbipc=true
])

KDE_CHECK_LIB(pbb, init_libpbb,
[
KEYBOARD_LIBS="-lpbb $KEYBOARD_LIBS"
AC_DEFINE(HAVE_POWERBOOK, 1, [If we have Apple PowerBook support])
have_pbb=true
])

if test "x$with_powerbook" != xcheck && test -z "$have_pbbipc$have_pbb"; then
  AC_MSG_ERROR([--with-powerbook was given, but test for libpbb failed])
fi
fi

AM_CONDITIONAL(include_kmilo_powerbook, test x$have_pbbipc = xtrue)
AM_CONDITIONAL(include_kmilo_pbb, test x$have_pbb = xtrue)

dnl -----------------------------------------------------------------------
dnl Check if Dell I8K module should be compiled (Linux systems only)
AC_MSG_CHECKING([if dellI8k KMilo module should be compiled])
case "$host" in
  *-*-linux*) kmilo_delli8k_compile=yes; UNAME='Linux' ;;
  *) kmilo_delli8k_compile=no; UNAME='' ;;
esac

AC_MSG_RESULT($kmilo_delli8k_compile)
AM_CONDITIONAL(include_kmilo_delli8k, test x$kmilo_delli8k_compile = xyes)
dnl -----------------------------------------------------------------------



AC_CHECK_HEADER(linux/sonypi.h, [have_sonypi=true])
AM_CONDITIONAL(include_kmilo_kvaio, test x$have_sonypi = xtrue)

AC_SUBST(KEYBOARD_LIBS)