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*)