aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/xorg-app/xgc-1.0.3/0001-config-replace-AC_CHECK_FILE-with-test-f.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/xorg-app/xgc-1.0.3/0001-config-replace-AC_CHECK_FILE-with-test-f.patch')
-rw-r--r--recipes/xorg-app/xgc-1.0.3/0001-config-replace-AC_CHECK_FILE-with-test-f.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/xorg-app/xgc-1.0.3/0001-config-replace-AC_CHECK_FILE-with-test-f.patch b/recipes/xorg-app/xgc-1.0.3/0001-config-replace-AC_CHECK_FILE-with-test-f.patch
new file mode 100644
index 0000000000..8b1973ad88
--- /dev/null
+++ b/recipes/xorg-app/xgc-1.0.3/0001-config-replace-AC_CHECK_FILE-with-test-f.patch
@@ -0,0 +1,32 @@
+From 5a95c043a630f1bf6c05eff81468f49d5037b6b2 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+Date: Mon, 1 Nov 2010 09:49:23 +0100
+Subject: [PATCH] config: replace AC_CHECK_FILE with test -f
+
+* AC_CHECK_FILE doesn't work for cross compilation
+* https://bugs.freedesktop.org/show_bug.cgi?id=31288
+---
+ configure.ac | 7 +++++--
+ 1 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 667a3e7..fce6ee8 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -36,8 +36,11 @@ XORG_DEFAULT_OPTIONS
+ AC_PROG_LEX
+ AC_PROG_YACC
+ AC_PATH_PROG([YACC_INST], $YACC)
+-AC_CHECK_FILE([$srcdir/gram.c], [],
+- [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y])])
++if test ! -f "$srcdir/gram.c"; then
++ if test -z "$YACC_INST"; then
++ AC_MSG_ERROR([yacc not found - unable to compile gram.y])
++ fi
++fi
+
+ PKG_CHECK_MODULES(XGC, xaw7 xt)
+ xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
+--
+1.7.3.2
+