summaryrefslogtreecommitdiffstats
path: root/kmilo/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch)
tree8d927b7b47a90c4adb646482a52613f58acd6f8c /kmilo/configure.in.in
downloadtdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz
tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmilo/configure.in.in')
-rw-r--r--kmilo/configure.in.in60
1 files changed, 60 insertions, 0 deletions
diff --git a/kmilo/configure.in.in b/kmilo/configure.in.in
new file mode 100644
index 0000000..048c5b3
--- /dev/null
+++ b/kmilo/configure.in.in
@@ -0,0 +1,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)