Added Readline build support on more *nix platforms
This commit is contained in:
parent
5151c341a4
commit
a280dd2b1f
1 changed files with 7 additions and 0 deletions
7
makefile
7
makefile
|
@ -50,6 +50,13 @@ ifeq ($(WIN32),)
|
||||||
OS_CCDEFS += -DHAVE_READLINE
|
OS_CCDEFS += -DHAVE_READLINE
|
||||||
OS_LDFLAGS += -lreadline
|
OS_LDFLAGS += -lreadline
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
ifeq (readline_h,$(shell if $(TEST) -e /usr/include/readline/readline.h; then echo readline_h; fi))
|
||||||
|
ifeq (Linux,$(shell uname))
|
||||||
|
OS_CCDEFS += -DHAVE_READLINE
|
||||||
|
OS_LDFLAGS += -lreadline
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq (pcap,$(shell if $(TEST) -e /usr/include/pcap.h -o -e /opt/sfw/include/pcap.h; then echo pcap; fi))
|
ifeq (pcap,$(shell if $(TEST) -e /usr/include/pcap.h -o -e /opt/sfw/include/pcap.h; then echo pcap; fi))
|
||||||
# Use Locally installed and available pcap support
|
# Use Locally installed and available pcap support
|
||||||
|
|
Loading…
Add table
Reference in a new issue