patch-configure 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. $Id$
  2. --- dsniff-2.4.orig/configure 2001-03-19 07:52:37.000000000 +0100
  3. +++ dsniff-2.4/configure 2007-01-23 00:24:04.000000000 +0100
  4. @@ -16,6 +16,8 @@ ac_help="$ac_help
  5. ac_help="$ac_help
  6. --with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
  7. ac_help="$ac_help
  8. + --with-gdbm=DIR use GNU DBM in DIR"
  9. +ac_help="$ac_help
  10. --with-libpcap=DIR use libpcap in DIR"
  11. ac_help="$ac_help
  12. --with-libnet=DIR use libnet in DIR"
  13. @@ -3031,7 +3033,7 @@ if test "${with_libpcap+set}" = set; the
  14. PCAPINC="-I$withval -I$withval/bpf"
  15. PCAPLIB="-L$withval -lpcap"
  16. elif test -f $withval/include/pcap.h -a \
  17. - -f $withval/include/net/bpf.h -a \
  18. + -f $withval/include/pcap-bpf.h -a \
  19. -f $withval/lib/libpcap.a; then
  20. owd=`pwd`
  21. if cd $withval; then withval=`pwd`; cd $owd; fi
  22. @@ -3059,7 +3061,40 @@ else
  23. fi
  24. +echo $ac_n "checking for libgdbm""... $ac_c" 1>&6
  25. +echo "configure:3059: checking for libgdbm" >&5
  26. +# Check whether --with-gdbm or --without-gdbm was given.
  27. +if test "${with_gdbm+set}" = set; then
  28. + withval="$with_gdbm"
  29. + case "$withval" in
  30. + yes|no)
  31. + echo "$ac_t""no" 1>&6
  32. + ;;
  33. + *)
  34. + echo "$ac_t""$withval" 1>&6
  35. + if test -f $withval/include/gdbm.h -a -f $withval/lib/libgdbm.so; then
  36. + owd=`pwd`
  37. + if cd $withval; then withval=`pwd`; cd $owd; fi
  38. + DBINC="-I$withval/include"
  39. + DBLIB="-L$withval/lib -lgdbm"
  40. + else
  41. + { echo "configure: error: gdbm.h or libgdbm.so not found in $withval" 1>&2; exit 1; }
  42. + fi
  43. + ;;
  44. + esac
  45. +else
  46. + if test -f ${prefix}/include/gdbm.h; then
  47. + LNETINC="-I${prefix}/include"
  48. + LNETLIB="-L${prefix}/lib -lgdbm"
  49. + elif test -f /usr/include/gdbm.h; then
  50. + LNETLIB="-lgdbm"
  51. + else
  52. + echo "$ac_t""no" 1>&6
  53. + { echo "configure: error: libgdbm not found" 1>&2; exit 1; }
  54. + fi
  55. + echo "$ac_t""yes" 1>&6
  56. +fi
  57. echo $ac_n "checking for libnet""... $ac_c" 1>&6
  58. @@ -3073,7 +3108,7 @@ if test "${with_libnet+set}" = set; then
  59. ;;
  60. *)
  61. echo "$ac_t""$withval" 1>&6
  62. - if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then
  63. + if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.so; then
  64. owd=`pwd`
  65. if cd $withval; then withval=`pwd`; cd $owd; fi
  66. if test -f $withval/bin/libnet-config; then
  67. @@ -3086,7 +3121,7 @@ if test "${with_libnet+set}" = set; then
  68. LNETINC="-I$withval/include"
  69. LNETLIB="-L$withval/lib -lnet"
  70. else
  71. - { echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; }
  72. + { echo "configure: error: libnet.h or libnet.so not found in $withval" 1>&2; exit 1; }
  73. fi
  74. ;;
  75. esac
  76. @@ -3120,18 +3155,18 @@ if test "${with_libnids+set}" = set; the
  77. ;;
  78. *)
  79. echo "$ac_t""$withval" 1>&6
  80. - if test -f $withval/src/nids.h -a -f $withval/src/libnids.a; then
  81. + if test -f $withval/include/nids.h -a -f $withval/lib/libnids.so; then
  82. owd=`pwd`
  83. if cd $withval; then withval=`pwd`; cd $owd; fi
  84. - NIDSINC="-I$withval/src"
  85. - NIDSLIB="-L$withval/src -lnids"
  86. - elif test -f $withval/include/nids.h -a -f $withval/lib/libnids.a; then
  87. + NIDSINC="-I$withval/include"
  88. + NIDSLIB="-L$withval/lib -lnids"
  89. + elif test -f $withval/include/nids.h -a -f $withval/lib/libnids.so; then
  90. owd=`pwd`
  91. if cd $withval; then withval=`pwd`; cd $owd; fi
  92. NIDSINC="-I$withval/include"
  93. NIDSLIB="-L$withval/lib -lnids"
  94. else
  95. - { echo "configure: error: nids.h or libnids.a not found in $withval" 1>&2; exit 1; }
  96. + { echo "configure: error: nids.h or libnids.so not found in $withval" 1>&2; exit 1; }
  97. fi
  98. ;;
  99. esac