Skip to content
Snippets Groups Projects
Commit e8528f0c authored by Jan Trávníček's avatar Jan Trávníček
Browse files

attempt to fix detection of readline

parent d1ea919c
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -84,7 +84,7 @@ ifneq (0, $(CPPUNIT_EXISTS)) ...@@ -84,7 +84,7 @@ ifneq (0, $(CPPUNIT_EXISTS))
$(error You need cppunit installed) $(error You need cppunit installed)
endif endif
   
READLINE_EXISTS = $(shell $(CXX) -o /dev/null -lcppunit -xc++ - <<< $$'\#include <readline/readline.h>\nint main() {\nreturn 0;\n}'; echo $$?) READLINE_EXISTS = $(shell $(CXX) -o /dev/null -lcppunit -xc++ - <<< $$'\#include <stdio.h>\n\#include <readline/readline.h>\nint main() {\nreturn 0;\n}'; echo $$?)
ifneq (0, $(READLINE_EXISTS)) ifneq (0, $(READLINE_EXISTS))
$(error You need readline installed) $(error You need readline installed)
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment