TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.9KB

  1. dnl Check whether ksysguardd can run;
  2. AC_MSG_CHECKING([if ksysguardd can be compiled])
  3. case "$host" in
  4. *-*-linux*) ksysguardd_compile=yes; UNAME='Linux' ;;
  5. *-*-freebsd*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
  6. *-*-kfreebsd*-gnu) ksysguardd_compile=yes; UNAME='Linux' ;;
  7. *-*-dragonfly*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
  8. *-*-netbsd*) ksysguardd_compile=yes; UNAME='NetBSD' ;;
  9. *-*-solaris*) ksysguardd_compile=yes; UNAME='Solaris' ;;
  10. *-*-osf*) ksysguardd_compile=yes; UNAME='Tru64' ;;
  11. *-*-irix*) ksysguardd_compile=yes; UNAME='Irix' ;;
  12. *-*-openbsd*) ksysguardd_compile=yes; UNAME='OpenBSD' ;;
  13. *) ksysguardd_compile=no; UNAME='' ;;
  14. esac
  15. AC_MSG_RESULT($ksysguardd_compile)
  16. AM_CONDITIONAL(include_ksysguardd, test "$ksysguardd_compile" = "yes")
  17. AM_CONDITIONAL(include_ksysguardd_linux, test "$UNAME" = Linux)
  18. AM_CONDITIONAL(include_ksysguardd_freebsd, test "$UNAME" = FreeBSD)
  19. AM_CONDITIONAL(include_ksysguardd_netbsd, test "$UNAME" = NetBSD)
  20. AM_CONDITIONAL(include_ksysguardd_solaris, test "$UNAME" = Solaris)
  21. AM_CONDITIONAL(include_ksysguardd_tru64, test "$UNAME" = Tru64)
  22. AM_CONDITIONAL(include_ksysguardd_irix, test "$UNAME" = Irix)
  23. AM_CONDITIONAL(include_ksysguardd_openbsd, test "$UNAME" = OpenBSD)
  24. AC_SUBST(UNAME)
  25. AC_ARG_WITH(sensors,
  26. [AC_HELP_STRING(--with-sensors,
  27. [enable support for lm_sensors @<:@default=check@:>@])],
  28. [], with_sensors=check)
  29. if test "x$with_sensors" != xno; then
  30. KDE_CHECK_HEADERS(sensors/sensors.h)
  31. KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"])
  32. if test "x$with_sensors" != xcheck && test -z "$LIBSENSORS"; then
  33. AC_MSG_ERROR([--with-sensors was given, but test for lm_sensors failed])
  34. fi
  35. fi
  36. case "$UNAME" in
  37. Linux) LIBHOSTS="$LIBSENSORS" ;;
  38. FreeBSD) LIBHOSTS="$LIBSENSORS -lkvm" ;;
  39. Solaris) LIBHOSTS="$LIBSENSORS -lkstat -lsocket" ;;
  40. esac
  41. AC_SUBST(LIBHOSTS)
  42. AC_SUBST(LIBSENSORS)
  43. dnl Check for dell laptop support
  44. AM_CONDITIONAL(supports_i8k, test -f /proc/i8k)