From: Sandro Santilli Date: Thu, 9 May 2019 13:21:17 +0000 (+0000) Subject: Give meaningful error upon missing flex/bison X-Git-Tag: 3.0.0alpha1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72a4ee27556afabc698ba47a1c0ce616a40457af;p=postgis Give meaningful error upon missing flex/bison git-svn-id: http://svn.osgeo.org/postgis/trunk@17434 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/Makefile.in b/liblwgeom/Makefile.in index 82aaa6561..a5127d06d 100644 --- a/liblwgeom/Makefile.in +++ b/liblwgeom/Makefile.in @@ -202,9 +202,17 @@ $(LT_NM_OBJS): %.lo: %.c $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(NUMERICFLAGS) -c -o $@ $< lwin_wkt_parse.c lwin_wkt_parse.h: lwin_wkt_parse.y + @test -n "$(YACC)" || { \ + echo "No yacc found, cannot build parser" >&2; \ + false; \ + } $(YACC) -p wkt_yy -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y lwin_wkt_lex.c: lwin_wkt_lex.l + @test -n "$(LEX)" || { \ + echo "No lex found, cannot build parser" >&2; \ + false; \ + } $(LEX) -i lwin_wkt_lex.l liblwgeom.h: liblwgeom.h.in