summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch
blob: f78387dc02164a8cab10a0338a674bd97834014c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
configure will check endianness of build machine. When cross compile it fails.
So remove the check for Yocto.

Upstream-Status: Pending

Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Sen Zhang <sen.zhang@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>

--- base/configure.ac.orig	2013-06-24 03:58:26.224723002 -0400
+++ base/configure.ac	2013-06-24 04:03:29.730807957 -0400
@@ -255,13 +255,13 @@
 
 AC_MSG_CHECKING([for big endian])
 
-AC_RUN_IFELSE(
-  [AC_LANG_PROGRAM([#include <stdio.h>], [
-   static const int one = 1;
-   return (*(char*)&one == 0 ? 0 : 1);
-  ])],
-  [BIGENDIAN=1;AC_MSG_RESULT(big)],
-  [BIGENDIAN=0;AC_MSG_RESULT(little)])
+#AC_RUN_IFELSE(
+#  [AC_LANG_PROGRAM([#include <stdio.h>], [
+#   static const int one = 1;
+#   return (*(char*)&one == 0 ? 0 : 1);
+#  ])],
+#  [BIGENDIAN=1;AC_MSG_RESULT(big)],
+#  [BIGENDIAN=0;AC_MSG_RESULT(little)])
 
 
 
@@ -1922,9 +1922,11 @@
 if test "x$BIGENDIAN" != "x0"; then
   LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$BIGENDIAN"
   LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$BIGENDIAN"
+  AC_MSG_RESULT(big)
 else
   LCMS_ENDIAN=
   LCMS2_ENDIAN=
+  AC_MSG_RESULT(little)
 fi
 
 AC_SUBST(LCMS_ENDIAN)