diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-11-01 09:54:44 +0100 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-11-01 12:56:22 -0400 |
commit | 1ca7092e44e87038ba95a962a3c952ef72b4f146 (patch) | |
tree | 1d7355113d72a79bd19e37ed92a58b749042ceeb | |
parent | b3af92c7bca31b3bf73428d46291b88c3f86026e (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.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index ef9c4b4..b590e57 100644 --- a/configure.ac +++ b/configure.ac @@ -36,8 +36,11 @@ XORG_DEFAULT_OPTIONS 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 AC_PROG_LEX AC_CHECK_FUNCS([mkstemp]) |