From: Stefan Weil Date: Fri, 7 Mar 2014 09:43:38 +0000 (+0100) Subject: configure: Don't use __int128_t for clang versions before 3.2 X-Git-Tag: v1.7.2~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0414abe04f9782404ef08179763bca5e26633177;p=thirdparty%2Fqemu.git configure: Don't use __int128_t for clang versions before 3.2 Those versions don't fully support __int128_t. Cc: qemu-stable@nongnu.org Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev (cherry picked from commit a00f66ab9b3021e781695a73c579b6292501ab37) Signed-off-by: Michael Roth --- diff --git a/configure b/configure index 3cbcea14481..c0882dc8d1c 100755 --- a/configure +++ b/configure @@ -3520,6 +3520,11 @@ fi int128=no cat > $TMPC << EOF +#if defined(__clang_major__) && defined(__clang_minor__) +# if ((__clang_major__ < 3) || (__clang_major__ == 3) && (__clang_minor__ < 2)) +# error __int128_t does not work in CLANG before 3.2 +# endif +#endif __int128_t a; __uint128_t b; int main (void) {