diff options
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 667a3e7..0644050 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 "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` |