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.
tdeutils/ksim/configure.in.in

50 lines
1.3 KiB

AC_CHECK_FUNCS(getloadavg)
sysinfo_check=no
case "$target" in
*-*-linux*)
sysinfo_check=yes
;;
esac
if test x$sysinfo_check = xyes; then
sysinfo_ok=no
AC_MSG_CHECKING(for totalhigh and totalfree in sysinfo)
AC_TRY_COMPILE(
[
#include <linux/kernel.h>
static void check()
{
struct sysinfo system; /* dummy sysinfo */
int totalhigh = system.totalhigh;
int freehigh = system.freehigh;
}
], [],
[
sysinfo_ok=yes
AC_DEFINE_UNQUOTED(HAVE_SYSINFO_HIGH, 1, [whether we have totalhigh and freehigh])
])
AC_MSG_RESULT($sysinfo_ok)
fi
dnl Check for dell laptop support
AC_MSG_CHECKING([if dellI8k ksim module should be compiled])
case "$host" in
*-*-linux*) ksim_delli8k_compile=yes; UNAME='Linux' ;;
*) ksim_delli8k_compile=no; UNAME='' ;;
esac
AC_MSG_RESULT($ksim_delli8k_compile)
AM_CONDITIONAL(supports_i8k, test x$ksim_delli8k_compile = xyes)
kde_safe_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -include X11/Xlib.h -include X11/Xutil.h -include X11/Xproto.h"
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER(X11/extensions/extutil.h, AC_DEFINE(HAVE_EXTUTIL_H, 1, [If we have extutil.h]) have_extutil_h=yes, , )
AM_CONDITIONAL(include_nv, test "x$have_extutil_h" = "xyes")
AC_LANG_RESTORE
CPPFLAGS=$kde_safe_cppflags