summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-app/xkbcomp/cross-compile-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-app/xkbcomp/cross-compile-fix.patch')
-rw-r--r--meta/recipes-graphics/xorg-app/xkbcomp/cross-compile-fix.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-graphics/xorg-app/xkbcomp/cross-compile-fix.patch b/meta/recipes-graphics/xorg-app/xkbcomp/cross-compile-fix.patch
deleted file mode 100644
index ca65345636..0000000000
--- a/meta/recipes-graphics/xorg-app/xkbcomp/cross-compile-fix.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1commit cc55d8f5ab021861308b071aab9c03016be15187
2Author: Gaetan Nadon <memsize@videotron.ca>
3Date: Sun Oct 31 20:35:24 2010 -0400
4
5 config: replace AC_CHECK_FILE with test -f as it fails to cross-compile
6
7 Testing for the presence of xkbparse.c is legitimate as this is a build
8 file, but the Autoconf macro assumes it is testing on the host system
9 and fails.
10
11 Tested-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
12 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13
14diff --git a/configure.ac b/configure.ac
15index c69230b..8e6bd6e 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -34,11 +34,14 @@ XORG_DEFAULT_OPTIONS
19
20 AM_CONFIG_HEADER(config.h)
21
22+# If both the C file and YACC are missing, the package cannot be build.
23 AC_PROG_YACC
24 AC_PATH_PROG([YACC_INST], $YACC)
25-AC_CHECK_FILE([$srcdir/xkbparse.c], [],
26- [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])])
27-
28+if test ! -f "$srcdir/xkbparse.c"; then
29+ if test -z "$YACC_INST"; then
30+ AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])
31+ fi
32+fi
33
34 AC_CHECK_FUNCS([strdup strcasecmp])
35