You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

243 lines
6.1 KiB

  1. --- a/configure.in
  2. +++ b/configure.in
  3. @@ -282,21 +282,7 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,i
  4. AC_CHECK_TYPES([boolean])
  5. # In case INADDR_NONE is not defined (like on Solaris)
  6. -have_inaddr_none="no"
  7. -AC_MSG_CHECKING([for INADDR_NONE])
  8. -AC_RUN_IFELSE(
  9. -[AC_LANG_PROGRAM(
  10. -[[
  11. -#include <sys/types.h>
  12. -#include <netinet/in.h>
  13. -#include <arpa/inet.h>
  14. -]],
  15. -[[
  16. - if (inet_addr("10,5,2") == INADDR_NONE);
  17. - return 0;
  18. -]])],
  19. -[have_inaddr_none="yes"],
  20. -[have_inaddr_none="no"])
  21. +have_inaddr_none="yes"
  22. AC_MSG_RESULT($have_inaddr_none)
  23. if test "x$have_inaddr_none" = "xno"; then
  24. AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
  25. @@ -428,17 +414,7 @@ if test "x$LPCAP" = "xno"; then
  26. fi
  27. fi
  28. -AC_MSG_CHECKING([for pcap_lex_destroy])
  29. -AC_RUN_IFELSE(
  30. -[AC_LANG_PROGRAM(
  31. -[[
  32. -#include <pcap.h>
  33. -]],
  34. -[[
  35. - pcap_lex_destroy();
  36. -]])],
  37. -[have_pcap_lex_destroy="yes"],
  38. -[have_pcap_lex_destroy="no"])
  39. +have_pcap_lex_destroy="yes"
  40. AC_MSG_RESULT($have_pcap_lex_destroy)
  41. if test "x$have_pcap_lex_destroy" = "xyes"; then
  42. AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
  43. @@ -716,18 +692,7 @@ fi
  44. AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta] [daq_dp_add_dc])
  45. -AC_MSG_CHECKING([for daq real addresses])
  46. -AC_RUN_IFELSE(
  47. -[AC_LANG_PROGRAM(
  48. -[[
  49. -#include <daq.h>
  50. -]],
  51. -[[
  52. - DAQ_PktHdr_t hdr;
  53. - hdr.n_real_dPort = 0;
  54. -]])],
  55. -[have_daq_real_addresses="yes"],
  56. -[have_daq_real_addresses="no"])
  57. +have_daq_address_space_id="yes"
  58. AC_MSG_RESULT($have_daq_real_addresses)
  59. if test "x$have_daq_real_addresses" = "xyes"; then
  60. AC_DEFINE([HAVE_DAQ_REAL_ADDRESSES],[1],
  61. @@ -770,56 +735,21 @@ if test "x$ac_cv_func_daq_dp_add_dc" = "
  62. fi
  63. -AC_MSG_CHECKING([for daq address space ID])
  64. -AC_RUN_IFELSE(
  65. -[AC_LANG_PROGRAM(
  66. -[[
  67. -#include <daq.h>
  68. -]],
  69. -[[
  70. - DAQ_PktHdr_t hdr;
  71. - hdr.address_space_id = 0;
  72. -]])],
  73. -[have_daq_address_space_id="yes"],
  74. -[have_daq_address_space_id="no"])
  75. +have_daq_address_space_id="yes"
  76. AC_MSG_RESULT($have_daq_address_space_id)
  77. if test "x$have_daq_address_space_id" = "xyes"; then
  78. AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
  79. [DAQ version supports address space ID in header.])
  80. fi
  81. -AC_MSG_CHECKING([for daq flow ID])
  82. -AC_RUN_IFELSE(
  83. -[AC_LANG_PROGRAM(
  84. -[[
  85. -#include <daq.h>
  86. -]],
  87. -[[
  88. - DAQ_PktHdr_t hdr;
  89. - hdr.flow_id = 0;
  90. -]])],
  91. -[have_daq_flow_id="yes"],
  92. -[have_daq_flow_id="no"])
  93. +have_daq_flow_id="yes"
  94. AC_MSG_RESULT($have_daq_flow_id)
  95. if test "x$have_daq_flow_id" = "xyes"; then
  96. AC_DEFINE([HAVE_DAQ_FLOW_ID],[1],
  97. [DAQ version supports flow ID in header.])
  98. fi
  99. -AC_MSG_CHECKING([for daq extended flow modifiers])
  100. -AC_RUN_IFELSE(
  101. -[AC_LANG_PROGRAM(
  102. -[[
  103. -#include <daq.h>
  104. -]],
  105. -[[
  106. - DAQ_ModFlow_t mod;
  107. - mod.type = 0;
  108. - mod.length = 0;
  109. - mod.value = NULL;
  110. -]])],
  111. -[have_daq_ext_modflow="yes"],
  112. -[have_daq_ext_modflow="no"])
  113. +have_daq_ext_modflow="yes"
  114. AC_MSG_RESULT($have_daq_ext_modflow)
  115. if test "x$have_daq_ext_modflow" = "xyes"; then
  116. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_EXT_MODFLOW"
  117. @@ -827,20 +757,7 @@ if test "x$have_daq_ext_modflow" = "xyes
  118. [DAQ version supports extended flow modifiers.])
  119. fi
  120. -AC_MSG_CHECKING([for daq query flow])
  121. -AC_RUN_IFELSE(
  122. -[AC_LANG_PROGRAM(
  123. -[[
  124. -#include <daq.h>
  125. -]],
  126. -[[
  127. - DAQ_QueryFlow_t mod;
  128. - mod.type = 0;
  129. - mod.length = 0;
  130. - mod.value = NULL;
  131. -]])],
  132. -[have_daq_queryflow="yes"],
  133. -[have_daq_queryflow="no"])
  134. +have_daq_queryflow="no"
  135. AC_MSG_RESULT($have_daq_queryflow)
  136. if test "x$have_daq_queryflow" = "xyes"; then
  137. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_QUERYFLOW"
  138. @@ -848,17 +765,7 @@ if test "x$have_daq_queryflow" = "xyes";
  139. [DAQ version supports query flow.])
  140. fi
  141. -AC_MSG_CHECKING([for daq data channel flags])
  142. -AC_RUN_IFELSE(
  143. -[AC_LANG_PROGRAM(
  144. -[[
  145. -#include <daq.h>
  146. -]],
  147. -[[
  148. - DAQ_Data_Channel_Params_t params;
  149. -]])],
  150. -[have_daq_data_channel_flags="yes"],
  151. -[have_daq_data_channel_flags="no"])
  152. +have_daq_data_channel_flags="yes"
  153. AC_MSG_RESULT($have_daq_data_channel_flags)
  154. if test "x$have_daq_data_channel_flags" = "xyes"; then
  155. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_PARAMS"
  156. @@ -866,18 +773,7 @@ if test "x$have_daq_data_channel_flags"
  157. [DAQ version supports data channel.])
  158. fi
  159. -AC_MSG_CHECKING([for separate IP versions on pinhole endpoints])
  160. -AC_RUN_IFELSE(
  161. -[AC_LANG_PROGRAM(
  162. -[[
  163. -#include <daq.h>
  164. -]],
  165. -[[
  166. - DAQ_DP_key_t dpKey;
  167. - dpKey.src_af = 0;
  168. -]])],
  169. -[have_daq_data_channel_separate_ip_versions="yes"],
  170. -[have_daq_data_channel_separate_ip_versions="no"])
  171. +have_daq_data_channel_separate_ip_versions="yes"
  172. AC_MSG_RESULT($have_daq_data_channel_separate_ip_versions)
  173. if test "x$have_daq_data_channel_separate_ip_versions" = "xyes"; then
  174. CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_SEPARATE_IP_VERSIONS"
  175. @@ -886,35 +782,14 @@ if test "x$have_daq_data_channel_separat
  176. fi
  177. AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
  178. -AC_RUN_IFELSE(
  179. -[AC_LANG_PROGRAM(
  180. -[[
  181. -#include <daq.h>
  182. -]],
  183. -[[
  184. - DAQ_Verdict verdict;
  185. - verdict = DAQ_VERDICT_RETRY;
  186. -]])],
  187. -[have_daq_verdict_retry="yes"],
  188. -[have_daq_verdict_retry="no"])
  189. +have_daq_verdict_retry="yes"
  190. AC_MSG_RESULT($have_daq_verdict_retry)
  191. if test "x$have_daq_verdict_retry" = "xyes"; then
  192. AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1],
  193. [DAQ version supports DAQ_VERDICT_RETRY in DAQ_Verdict.])
  194. fi
  195. -AC_MSG_CHECKING([for daq packet trace])
  196. -AC_RUN_IFELSE(
  197. -[AC_LANG_PROGRAM(
  198. -[[
  199. -#include <daq.h>
  200. -]],
  201. -[[
  202. - DAQ_PktHdr_t hdr;
  203. - hdr.flags = DAQ_PKT_FLAG_TRACE_ENABLED;
  204. -]])],
  205. -[have_daq_packet_trace="yes"],
  206. -[have_daq_packet_trace="no"])
  207. +have_daq_packet_trace="no"
  208. AC_MSG_RESULT($have_daq_packet_trace)
  209. if test "x$have_daq_packet_trace" = "xyes"; then
  210. AC_DEFINE([HAVE_DAQ_PKT_TRACE],[1],
  211. @@ -923,18 +798,7 @@ else
  212. echo "DAQ version doesn't support packet trace."
  213. fi
  214. -AC_MSG_CHECKING([for daq verdict reason])
  215. -AC_RUN_IFELSE(
  216. -[AC_LANG_PROGRAM(
  217. -[[
  218. -#include <daq.h>
  219. -]],
  220. -[[
  221. - DAQ_ModFlow_t fl;
  222. - fl.type = DAQ_MODFLOW_TYPE_VER_REASON;
  223. -]])],
  224. -[have_daq_verdict_reason="yes"],
  225. -[have_daq_verdict_reason="no"])
  226. +have_daq_verdict_reason="no"
  227. AC_MSG_RESULT($have_daq_verdict_reason)
  228. if test "x$have_daq_verdict_reason" = "xyes"; then
  229. AC_DEFINE([HAVE_DAQ_VERDICT_REASON],[1],