Added Readline build support on more *nix platforms

This commit is contained in:
Mark Pizzolato 2011-09-19 17:08:35 -07:00
parent 5151c341a4
commit a280dd2b1f

View file

@ -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