patch-configure_in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --- Libnet-1.0.2a.orig/configure.in 2001-01-17 21:59:30.000000000 +0100
  2. +++ Libnet-1.0.2a/configure.in 2009-06-12 21:48:27.000000000 +0200
  3. @@ -8,6 +8,14 @@ dnl Process this file with autoconf to p
  4. AC_INIT(src/libnet_build_ip.c)
  5. +dnl
  6. +dnl Determine hosttype and set the root install directory.
  7. +dnl
  8. +AC_CANONICAL_SYSTEM
  9. +AC_PREFIX_DEFAULT(/usr)
  10. +
  11. +AM_INIT_AUTOMAKE(libnet, 1.0.2a)
  12. +
  13. VER=`cat VERSION`
  14. AC_MSG_RESULT(Beginning autoconfiguration process for libnet-$VER...)
  15. @@ -25,16 +33,14 @@ AC_SUBST(LIBNET_CONFIG_DEFINES)
  16. AC_SUBST(LIBNET_CONFIG_LIBS)
  17. AC_SUBST(LIBNET_CONFIG_CFLAGS)
  18. -dnl
  19. -dnl Determine hosttype and set the root install directory.
  20. -dnl
  21. -AC_CANONICAL_SYSTEM
  22. -AC_PREFIX_DEFAULT(/usr)
  23. -
  24. if test "$prefix" = "NONE"; then
  25. prefix="/usr"
  26. fi
  27. +if test "$mandir" = "NONE"; then
  28. + mandir="$prefix/man"
  29. +fi
  30. +
  31. dnl
  32. dnl Check compiler type.
  33. dnl
  34. @@ -74,6 +80,8 @@ AC_CHECK_PROGS(RANLIB, ranlib, @true)
  35. AC_CHECK_PROGS(AR, ar, @true)
  36. AC_CHECK_PROGS(LN, ln, @true)
  37. +AC_PROG_LIBTOOL
  38. +
  39. dnl
  40. dnl Check for library functions.
  41. dnl
  42. @@ -110,7 +118,7 @@ elif test -r /usr/include/sys/dlpi.h ; t
  43. AC_DEFINE(HAVE_DLPI)
  44. elif test -r /usr/include/linux/socket.h ; then
  45. LL_INT_TYPE=sockpacket
  46. - AC_MSG_RESULT(found SOCK_PACKET)
  47. + AC_MSG_RESULT(found linux primitives)
  48. if test $with_pf_packet = yes; then
  49. AC_LIBNET_CHECK_PF_PACKET
  50. fi
  51. @@ -147,7 +155,7 @@ case "$target_os" in
  52. LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  53. AC_CHECK_HEADERS(net/ethernet.h, \
  54. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
  55. - MAN_PREFIX="$prefix/man/man3/"
  56. + MAN_PREFIX="$mandir/man3/"
  57. LIB_PREFIX="$prefix/lib/"
  58. INC_PREFIX="$prefix/include/"
  59. BIN_PREFIX="$prefix/bin/"
  60. @@ -258,9 +266,11 @@ AC_LBL_UNALIGNED_ACCESS
  61. AC_CHECK_HEADERS(sys/sockio.h)
  62. AC_CONFIG_HEADER(include/config.h)
  63. -AC_OUTPUT(Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  64. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  65. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  66. - libnet-config, chmod +x libnet-config)
  67. +AC_OUTPUT( \
  68. + Makefile \
  69. + src/Makefile \
  70. + include/Makefile \
  71. + include/libnet/Makefile \
  72. + libnet-config)
  73. dnl EOF