File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ifndef VERBOSE
55endif
66# To compile with rules, use 'make HAVE_RULES=yes'
77ifndef HAVE_RULES
8- HAVE_RULES =no
8+ HAVE_RULES =
99endif
1010
1111ifndef MATCHCOMPILER
@@ -160,6 +160,8 @@ ifeq ($(HAVE_RULES),yes)
160160 else
161161 LIBS =$(shell $(PCRE_CONFIG ) --libs)
162162 endif
163+ else ifneq ($(HAVE_RULES),)
164+ $(error invalid HAVE_RULES value '$(HAVE_RULES)')
163165endif
164166
165167ifndef PREFIX
Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ int main(int argc, char **argv)
584584 << " endif\n " ;
585585
586586 fout << " # To compile with rules, use 'make HAVE_RULES=yes'\n " ;
587- makeConditionalVariable (fout, " HAVE_RULES" , " no " );
587+ makeConditionalVariable (fout, " HAVE_RULES" , " " );
588588
589589 makeMatchcompiler (fout, emptyString, emptyString);
590590
@@ -743,6 +743,8 @@ int main(int argc, char **argv)
743743 << " else\n "
744744 << " LIBS=$(shell $(PCRE_CONFIG) --libs)\n "
745745 << " endif\n "
746+ << " else ifneq ($(HAVE_RULES),)\n "
747+ << " $(error invalid HAVE_RULES value '$(HAVE_RULES)')\n "
746748 << " endif\n\n " ;
747749
748750 makeConditionalVariable (fout, " PREFIX" , " /usr" );
You can’t perform that action at this time.
0 commit comments