001-remove_pcap_debug.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --- a/configure
  2. +++ b/configure
  3. @@ -6183,97 +6183,6 @@ $as_echo "no" >&6; }
  4. fi
  5. fi
  6. -#
  7. -# Check for special debugging functions
  8. -#
  9. -for ac_func in pcap_set_parser_debug
  10. -do :
  11. - ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug"
  12. -if test "x$ac_cv_func_pcap_set_parser_debug" = xyes; then :
  13. - cat >>confdefs.h <<_ACEOF
  14. -#define HAVE_PCAP_SET_PARSER_DEBUG 1
  15. -_ACEOF
  16. -
  17. -fi
  18. -done
  19. -
  20. -if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
  21. - #
  22. - # OK, we don't have pcap_set_parser_debug() to set the libpcap
  23. - # filter expression parser debug flag; can we directly set the
  24. - # flag?
  25. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
  26. -$as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
  27. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28. -/* end confdefs.h. */
  29. -
  30. -int
  31. -main ()
  32. -{
  33. -
  34. - extern int pcap_debug;
  35. -
  36. - return pcap_debug;
  37. -
  38. - ;
  39. - return 0;
  40. -}
  41. -_ACEOF
  42. -if ac_fn_c_try_link "$LINENO"; then :
  43. - ac_lbl_cv_pcap_debug_defined=yes
  44. -else
  45. - ac_lbl_cv_pcap_debug_defined=no
  46. -fi
  47. -rm -f core conftest.err conftest.$ac_objext \
  48. - conftest$ac_exeext conftest.$ac_ext
  49. - if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
  50. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  51. -$as_echo "yes" >&6; }
  52. -
  53. -$as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
  54. -
  55. - else
  56. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  57. -$as_echo "no" >&6; }
  58. - #
  59. - # OK, what about "yydebug"?
  60. - #
  61. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
  62. -$as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
  63. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  64. -/* end confdefs.h. */
  65. -
  66. -int
  67. -main ()
  68. -{
  69. -
  70. - extern int yydebug;
  71. -
  72. - return yydebug;
  73. -
  74. - ;
  75. - return 0;
  76. -}
  77. -_ACEOF
  78. -if ac_fn_c_try_link "$LINENO"; then :
  79. - ac_lbl_cv_yydebug_defined=yes
  80. -else
  81. - ac_lbl_cv_yydebug_defined=no
  82. -fi
  83. -rm -f core conftest.err conftest.$ac_objext \
  84. - conftest$ac_exeext conftest.$ac_ext
  85. - if test "$ac_lbl_cv_yydebug_defined" = yes ; then
  86. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  87. -$as_echo "yes" >&6; }
  88. -
  89. -$as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
  90. -
  91. - else
  92. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  93. -$as_echo "no" >&6; }
  94. - fi
  95. - fi
  96. -fi
  97. for ac_func in pcap_set_optimizer_debug
  98. do :
  99. ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug"