diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch b/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch new file mode 100644 index 0000000000..9f7002a028 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch | |||
@@ -0,0 +1,65 @@ | |||
1 | From 877b8ea9a79d1d51f8e6b032801731538590d39e Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Liu <net147@gmail.com> | ||
3 | Date: Tue, 4 Jun 2013 06:04:44 -0700 | ||
4 | Subject: [PATCH] configure: Avoid use of AC_CHECK_FILE for cross compiling | ||
5 | |||
6 | The AC_CHECK_FILE macro can't be used for cross compiling as it will | ||
7 | result in "error: cannot check for file existence when cross compiling". | ||
8 | Replace it with the AS_IF macro. | ||
9 | |||
10 | Upstream-Status: Submitted | ||
11 | http://lists.freedesktop.org/archives/mesa-dev/2013-June/040168.html | ||
12 | |||
13 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | --- | ||
16 | configure.ac | 12 ++++++------ | ||
17 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
18 | |||
19 | diff --git a/configure.ac b/configure.ac | ||
20 | index 36065f1..2b4a374 100644 | ||
21 | --- a/configure.ac | ||
22 | +++ b/configure.ac | ||
23 | @@ -1694,8 +1694,8 @@ if test "x$enable_gallium_llvm" = xyes; then | ||
24 | CLANG_LIBDIR=${LLVM_LIBDIR} | ||
25 | fi | ||
26 | CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION} | ||
27 | - AC_CHECK_FILE("$CLANG_RESOURCE_DIR/include/stddef.h",, | ||
28 | - AC_MSG_ERROR([Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries.])) | ||
29 | + AS_IF([test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"], | ||
30 | + [AC_MSG_ERROR([Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries.])]) | ||
31 | fi | ||
32 | else | ||
33 | MESA_LLVM=0 | ||
34 | @@ -1912,7 +1912,7 @@ if test "x$MESA_LLVM" != x0; then | ||
35 | if test "x$with_llvm_shared_libs" = xyes; then | ||
36 | dnl We can't use $LLVM_VERSION because it has 'svn' stripped out, | ||
37 | LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version` | ||
38 | - AC_CHECK_FILE("$LLVM_LIBDIR/lib$LLVM_SO_NAME.so", llvm_have_one_so=yes,) | ||
39 | + AS_IF([test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.so"], [llvm_have_one_so=yes]) | ||
40 | |||
41 | if test "x$llvm_have_one_so" = xyes; then | ||
42 | dnl LLVM was built using auto*, so there is only one shared object. | ||
43 | @@ -1920,8 +1920,8 @@ if test "x$MESA_LLVM" != x0; then | ||
44 | else | ||
45 | dnl If LLVM was built with CMake, there will be one shared object per | ||
46 | dnl component. | ||
47 | - AC_CHECK_FILE("$LLVM_LIBDIR/libLLVMTarget.so",, | ||
48 | - AC_MSG_ERROR([Could not find llvm shared libraries: | ||
49 | + AS_IF([test ! -f "$LLVM_LIBDIR/libLLVMTarget.so"], | ||
50 | + [AC_MSG_ERROR([Could not find llvm shared libraries: | ||
51 | Please make sure you have built llvm with the --enable-shared option | ||
52 | and that your llvm libraries are installed in $LLVM_LIBDIR | ||
53 | If you have installed your llvm libraries to a different directory you | ||
54 | @@ -1932,7 +1932,7 @@ if test "x$MESA_LLVM" != x0; then | ||
55 | --enable-opencl | ||
56 | If you do not want to build with llvm shared libraries and instead want to | ||
57 | use llvm static libraries then remove these options from your configure | ||
58 | - invocation and reconfigure.])) | ||
59 | + invocation and reconfigure.])]) | ||
60 | |||
61 | dnl We don't need to update LLVM_LIBS in this case because the LLVM | ||
62 | dnl install uses a shared object for each compoenent and we have | ||
63 | -- | ||
64 | 1.8.2.1 | ||
65 | |||