diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-06-18 18:00:38 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2013-06-18 18:00:38 +0100 |
commit | 49c5906338ba0f03ba664f84b5695aea7a5f586c (patch) | |
tree | 55067ae317d2f744b83fe67ab01c07cb4e25b018 | |
parent | ffb056b1ead134aa9b7bf885e7b973d131b160b2 (diff) |
Ensure yacc and lex are found by ./configure
We really need yacc and lex to be available to successfully build tarballs
made by cygport directly from a git tag and not by 'make dist'.
DO NOT UPSTREAM THIS PATCH.
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e9b3b6c8c..d0eb0ffe8 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,16 @@ AC_PROG_YACC AC_SYS_LARGEFILE XORG_PROG_RAWCPP +dnl we really need yacc and lex to build tarballs made by cygport directly from a git tag not 'make dist' +AC_PATH_PROG(YACC_INST, $YACC) +if test -z "$YACC_INST"; then + AC_MSG_ERROR([yacc not found]) +fi +AC_PATH_PROG(LEX_INST, $LEX) +if test -z "$LEX_INST"; then + AC_MSG_ERROR([lex not found]) +fi + # Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow # easier overrides at build time. XSERVER_CFLAGS='$(CWARNFLAGS)' |