From: Julian Seward Date: Mon, 17 Dec 2012 14:46:48 +0000 (+0000) Subject: Fix the configure check so that fair-sched works on Android too. X-Git-Tag: svn/VALGRIND_3_9_0~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3a364d25d985591bb82ccacd870d4ba09fd121;p=thirdparty%2Fvalgrind.git Fix the configure check so that fair-sched works on Android too. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13186 --- diff --git a/configure.in b/configure.in index da0f5d4086..78b5339613 100644 --- a/configure.in +++ b/configure.in @@ -1972,6 +1972,8 @@ AC_CHECK_HEADERS([ \ # Verify whether the header is usable. AC_MSG_CHECKING([if is usable]) +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -D__user=" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include ]], [[ @@ -1985,6 +1987,8 @@ AC_MSG_RESULT([yes]) ac_have_usable_linux_futex_h=no AC_MSG_RESULT([no]) ]) +CFLAGS="$save_CFLAGS" + #---------------------------------------------------------------------------- # Checks for typedefs, structures, and compiler characteristics.