| @@ -1,29 +1,43 @@ | | | @@ -1,29 +1,43 @@ |
1 | $NetBSD: patch-aa,v 1.9 2014/08/11 19:42:46 adam Exp $ | | 1 | $NetBSD: patch-aa,v 1.10 2015/04/13 18:45:46 jperkin Exp $ |
2 | | | 2 | |
3 | Shell portability fix: see | | 3 | Shell portability fix: see |
4 | https://savannah.nongnu.org/bugs/index.php?22222 | | 4 | https://savannah.nongnu.org/bugs/index.php?22222 |
| | | 5 | Ensure asm instructions are checked correctly. |
5 | | | 6 | |
6 | --- configure.orig 2014-08-10 04:48:26.000000000 +0000 | | 7 | --- configure.orig 2014-08-10 04:48:26.000000000 +0000 |
7 | +++ configure | | 8 | +++ configure |
8 | @@ -15660,7 +15660,7 @@ else | | 9 | @@ -15660,7 +15660,7 @@ else |
9 | fi | | 10 | fi |
10 | | | 11 | |
11 | | | 12 | |
12 | -if test x$PKG_CONFIG == xno && test "x${multithread}" != xno ; then | | 13 | -if test x$PKG_CONFIG == xno && test "x${multithread}" != xno ; then |
13 | +if test x$PKG_CONFIG = xno && test "x${multithread}" != xno ; then | | 14 | +if test x$PKG_CONFIG = xno && test "x${multithread}" != xno ; then |
14 | | | 15 | |
15 | | | 16 | |
16 | | | 17 | |
| | | 18 | @@ -17584,10 +17584,10 @@ main () |
| | | 19 | int n = 0; |
| | | 20 | int eax = 0; |
| | | 21 | int edx = 0; |
| | | 22 | - __asm__( |
| | | 23 | + __asm__ volatile ( |
| | | 24 | "xgetbv \n" |
| | | 25 | "vzeroupper " |
| | | 26 | - : "=a"(eax), "=d"(edx) : "c"(n) : ); |
| | | 27 | + : "=a"(eax), "=d"(edx) : "c"(n) ); |
| | | 28 | #else |
| | | 29 | #error No GCC style inline asm supported for AVX instructions |
| | | 30 | #endif |
17 | @@ -17631,7 +17631,7 @@ fi | | 31 | @@ -17631,7 +17631,7 @@ fi |
18 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 32 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19 | { $as_echo "$as_me:$LINENO: result: $gcc_inline_asm_avx" >&5 | | 33 | { $as_echo "$as_me:$LINENO: result: $gcc_inline_asm_avx" >&5 |
20 | $as_echo "$gcc_inline_asm_avx" >&6; } | | 34 | $as_echo "$gcc_inline_asm_avx" >&6; } |
21 | -if test "x${gcc_inline_asm_avx}" == xyes ; then | | 35 | -if test "x${gcc_inline_asm_avx}" == xyes ; then |
22 | +if test "x${gcc_inline_asm_avx}" = xyes ; then | | 36 | +if test "x${gcc_inline_asm_avx}" = xyes ; then |
23 | cat >>confdefs.h <<\_ACEOF | | 37 | cat >>confdefs.h <<\_ACEOF |
24 | #define OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX 1 | | 38 | #define OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX 1 |
25 | _ACEOF | | 39 | _ACEOF |
26 | @@ -17689,7 +17689,7 @@ fi | | 40 | @@ -17689,7 +17689,7 @@ fi |
27 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 41 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
28 | { $as_echo "$as_me:$LINENO: result: $sysconf_nproc" >&5 | | 42 | { $as_echo "$as_me:$LINENO: result: $sysconf_nproc" >&5 |
29 | $as_echo "$sysconf_nproc" >&6; } | | 43 | $as_echo "$sysconf_nproc" >&6; } |