1
0

patch-libnet-config 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --- Libnet-1.0.2a.orig/libnet-config 1970-01-01 00:00:00.000000000 +0100
  2. +++ Libnet-1.0.2a/libnet-config 2009-06-12 21:52:51.000000000 +0200
  3. @@ -0,0 +1,62 @@
  4. +#!/bin/sh
  5. +#
  6. +# $Id: libnet-config.in,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  7. +#
  8. +# Libnet 1.0 libnet-config compilation script
  9. +# (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
  10. +#
  11. +# libnet-config. Generated from libnet-config.in by configure.
  12. +
  13. +libnet_defines="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN"
  14. +libnet_cflags=""
  15. +libnet_libs=" -lnet"
  16. +
  17. +usage()
  18. +{
  19. + cat <<EOF
  20. +Usage: libnet-config [OPTIONS]
  21. +Options:
  22. + [--libs]
  23. + [--cflags]
  24. + [--defines]
  25. +EOF
  26. + exit
  27. +}
  28. +
  29. +while test $# -gt 0; do
  30. + case "$1" in
  31. + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  32. + *) optarg= ;;
  33. + esac
  34. +
  35. + case $1 in
  36. + --libs)
  37. + echo_libs=yes
  38. + ;;
  39. +
  40. + --cflags)
  41. + echo_cflags=yes
  42. + ;;
  43. +
  44. + --defines)
  45. + echo_defines=yes
  46. + ;;
  47. + *)
  48. + usage 1
  49. + esac
  50. + shift
  51. +done
  52. +
  53. +if test "$echo_libs" = "yes"; then
  54. + echo $libnet_libs
  55. +fi
  56. +
  57. +if test "$echo_cflags" = "yes"; then
  58. + echo $libnet_cflags
  59. +fi
  60. +
  61. +if test "$echo_defines" = "yes"; then
  62. + echo $libnet_defines
  63. +fi
  64. +
  65. +# EOF