From: Julian Seward Date: Wed, 8 Aug 2012 22:22:26 +0000 (+0000) Subject: Make the assembler-knows-POWER-DFP test a bit stricter, since it appears X-Git-Tag: svn/VALGRIND_3_8_0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e176db35912ae555197d2bed833a95f3d5e771ed;p=thirdparty%2Fvalgrind.git Make the assembler-knows-POWER-DFP test a bit stricter, since it appears some older assemblers know 'dadd' but not 'dcffix', which also appears in the DFP tests. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12864 --- diff --git a/configure.in b/configure.in index 06d63ae6a8..e7f5db135c 100644 --- a/configure.in +++ b/configure.in @@ -1184,11 +1184,13 @@ CFLAGS=$safe_CFLAGS AM_CONDITIONAL(HAS_VSX, test x$ac_have_vsx = xyes) + AC_MSG_CHECKING([that assembler knows DFP]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ __asm__ __volatile__("dadd 1, 2, 3"); + __asm__ __volatile__("dcffix 1, 2"); ]])], [ ac_asm_have_dfp=yes AC_MSG_RESULT([yes]) @@ -1197,12 +1199,14 @@ ac_asm_have_dfp=no AC_MSG_RESULT([no]) ]) + AC_MSG_CHECKING([that compiler knows -mhard-dfp switch]) safe_CFLAGS=$CFLAGS CFLAGS="-mhard-dfp" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ __asm__ __volatile__("dadd 1, 2, 3"); + __asm__ __volatile__("dcffix 1, 2"); ]])], [ ac_gcc_have_dfp=yes AC_MSG_RESULT([yes]) @@ -1215,6 +1219,7 @@ CFLAGS=$safe_CFLAGS AM_CONDITIONAL(HAS_DFP, test x$ac_asm_have_dfp = xyes -a x$ac_gcc_have_dfp = xyes) + # Check for pthread_create@GLIBC2.0 AC_MSG_CHECKING([for pthread_create@GLIBC2.0()])