summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-11-01 09:46:20 +0100
committerGaetan Nadon <memsize@videotron.ca>2010-11-01 13:05:46 -0400
commitc9e521f4ab7d07ee9b4b0ce7779bc939e7051e95 (patch)
treef65b967701971b76f4c285b56b2c608f863ca362
parent14e12f714eead3f0185ab7996d6a1a38897c25cc (diff)
config: replace AC_CHECK_FILE with test -f
* AC_CHECK_FILE doesn't work for cross compilation Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 611861c..73c7def 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,8 +35,11 @@ AM_CONFIG_HEADER(config.h)
AC_PROG_YACC
AC_PATH_PROG([YACC_INST], $YACC)
-AC_CHECK_FILE([$srcdir/cfgparse.c], [],
- [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile cfgparse.y])])
+if test ! -f "$srcdir/cfgparse.c"; then
+ if test -z "$YACC_INST"; then
+ AC_MSG_ERROR([yacc not found - unable to compile cfgparse.y])
+ fi
+fi
XORG_DEFAULT_OPTIONS