001-remove_pcap_debug.patch 2.5 KB

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