|
@@ -19,7 +19,8 @@ ONE_OBJS+=osdep/LinuxEthernetTap.o
|
|
|
# otherwise build into binary as done on Mac and Windows.
|
|
|
ONE_OBJS+=osdep/PortMapper.o
|
|
|
override DEFS+=-DZT_USE_MINIUPNPC
|
|
|
-MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2.."' /usr/include/miniupnpc/miniupnpc.h && echo 1)
|
|
|
+MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2..*"' /usr/include/miniupnpc/miniupnpc.h && echo 1)
|
|
|
+#MINIUPNPC_IS_NEW_ENOUGH=$(shell grep -sqr '.*define.*MINIUPNPC_VERSION.*"2.."' /usr/include/miniupnpc/miniupnpc.h && echo 1)
|
|
|
ifeq ($(MINIUPNPC_IS_NEW_ENOUGH),1)
|
|
|
override DEFS+=-DZT_USE_SYSTEM_MINIUPNPC
|
|
|
LDLIBS+=-lminiupnpc
|