001-remove_pcap_debug.patch 2.4 KB

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