From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342864
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@300
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
LIBS="$CHECK_LIBS $LIBS"
rm -f conf.check-test
- AC_TRY_RUN([
-#include <stdio.h>
-#include <stdlib.h>
-
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([AC_INCLUDES_DEFAULT([])
#include <check.h>
int main ()
return 1;
}
-],, no_check=yes, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
+])],, no_check=yes, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"