From 670ecd2ba1e4df95fe85c25706b2f1fb0a93b2f8 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 25 Aug 2004 09:19:12 +0000 Subject: [PATCH] Add check for nice priority changing Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1925 --- configure.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.in b/configure.in index fa8be44d..c7325bef 100644 --- a/configure.in +++ b/configure.in @@ -187,6 +187,16 @@ else AC_MSG_WARN([Can't find libSDL_sound, libSDL_sound support disabled]) fi +AH_TEMPLATE(C_PRIORITY_NICE,[Define to 1 if you have nice priority changing support]) +AC_MSG_CHECKING(for nice priority changing) +AC_LINK_IFELSE([ +#include +int main(int argc,char * argv[]) { + return nice(10); +}; +],AC_MSG_RESULT(yes);AC_DEFINE(C_PRIORITY_NICE,1),AC_MSG_RESULT(no)) + + dnl Some host detection and actions for them case "$target" in *-*-cygwin* | *-*-mingw32*)