summaryrefslogtreecommitdiffstats
path: root/ksysguard/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
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /ksysguard/configure.in.in
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.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/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/configure.in.in')
-rw-r--r--ksysguard/configure.in.in50
1 files changed, 50 insertions, 0 deletions
diff --git a/ksysguard/configure.in.in b/ksysguard/configure.in.in
new file mode 100644
index 000000000..0173b28ea
--- /dev/null
+++ b/ksysguard/configure.in.in
@@ -0,0 +1,50 @@
+dnl Check whether ksysguardd can run;
+AC_MSG_CHECKING([if ksysguardd can be compiled])
+case "$host" in
+ *-*-linux*) ksysguardd_compile=yes; UNAME='Linux' ;;
+ *-*-freebsd*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
+ *-*-dragonfly*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
+ *-*-netbsd*) ksysguardd_compile=yes; UNAME='NetBSD' ;;
+ *-*-solaris*) ksysguardd_compile=yes; UNAME='Solaris' ;;
+ *-*-osf*) ksysguardd_compile=yes; UNAME='Tru64' ;;
+ *-*-irix*) ksysguardd_compile=yes; UNAME='Irix' ;;
+ *-*-openbsd*) ksysguardd_compile=yes; UNAME='OpenBSD' ;;
+ *) ksysguardd_compile=no; UNAME='' ;;
+esac
+
+AC_MSG_RESULT($ksysguardd_compile)
+
+AM_CONDITIONAL(include_ksysguardd, test "$ksysguardd_compile" = "yes")
+AM_CONDITIONAL(include_ksysguardd_linux, test "$UNAME" = Linux)
+AM_CONDITIONAL(include_ksysguardd_freebsd, test "$UNAME" = FreeBSD)
+AM_CONDITIONAL(include_ksysguardd_netbsd, test "$UNAME" = NetBSD)
+AM_CONDITIONAL(include_ksysguardd_solaris, test "$UNAME" = Solaris)
+AM_CONDITIONAL(include_ksysguardd_tru64, test "$UNAME" = Tru64)
+AM_CONDITIONAL(include_ksysguardd_irix, test "$UNAME" = Irix)
+AM_CONDITIONAL(include_ksysguardd_openbsd, test "$UNAME" = OpenBSD)
+AC_SUBST(UNAME)
+
+AC_ARG_WITH(sensors,
+ [AC_HELP_STRING(--with-sensors,
+ [enable support for lm_sensors @<:@default=check@:>@])],
+ [], with_sensors=check)
+
+if test "x$with_sensors" != xno; then
+ KDE_CHECK_HEADERS(sensors/sensors.h)
+ KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"])
+
+ if test "x$with_sensors" != xcheck && test -z "$LIBSENSORS"; then
+ AC_MSG_ERROR([--with-sensors was given, but test for lm_sensors failed])
+ fi
+fi
+
+case "$UNAME" in
+ Linux) LIBHOSTS="$LIBSENSORS" ;;
+ FreeBSD) LIBHOSTS="$LIBSENSORS -lkvm" ;;
+ Solaris) LIBHOSTS="$LIBSENSORS -lkstat -lsocket" ;;
+esac
+AC_SUBST(LIBHOSTS)
+AC_SUBST(LIBSENSORS)
+
+dnl Check for dell laptop support
+AM_CONDITIONAL(supports_i8k, test -f /proc/i8k)