summaryrefslogtreecommitdiff
path: root/net-analyzer/fragroute/files/fragroute-1.2.6-libdir.patch
blob: 69fa067859aaf6ee3f688ebb05993cc980713c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
--- a/configure.in
+++ b/configure.in
@@ -22,157 +22,12 @@
 AC_PROG_LN_S
 AC_PROG_RANLIB
 
-dnl XXX - we need MingW32 under Cygwin for win32
-AC_CYGWIN
-if test "$CYGWIN" = yes ; then
-   if test -d /usr/include/mingw; then
-      CPPFLAGS="$CPPFLAGS -mno-cygwin"
-      CFLAGS="$CFLAGS -mno-cygwin"
-      AC_DEFINE(WIN32_LEAN_AND_MEAN, 1, 
-          [Define for faster code generation.])
-      AC_DEFINE(snprintf, _snprintf, [Use MingW32's internal snprintf])
-      AC_DEFINE(vsnprintf, _vsnprintf, [Use MingW32's internal vsnprintf])
-   else
-      AC_MSG_ERROR([need MingW32 package to build under Cygwin])
-   fi
-   dnl XXX - use our internal event-win32 hack
-   EVENTINC="-I${srcdir}/win32"
-   AC_LIBOBJ([event-win32])
-   AC_SUBST(EVENTINC)
-
-else
-dnl XXX - BEGIN !CYGWIN
-
-
-dnl Checks for libevent
-AC_MSG_CHECKING(for libevent)
-AC_ARG_WITH(libevent,
-[  --with-libevent=DIR     use libevent in DIR],
-[ case "$withval" in
-  yes|no)
-     AC_MSG_RESULT(no)
-     ;;
-  *)
-     AC_MSG_RESULT($withval)
-     if test -f $withval/include/event.h -a -f $withval/lib/libevent.so; then
-        owd=`pwd`
-        if cd $withval; then withval=`pwd`; cd $owd; fi
-        EVENTINC="-I$withval/include"
-        EVENTLIB="-L$withval/lib -levent"
-     elif test -f $withval/include/event.h -a -f $withval/lib64/libevent.so; then
-        owd=`pwd`
-        if cd $withval; then withval=`pwd`; cd $owd; fi
-        EVENTINC="-I$withval/include"
-        EVENTLIB="-L$withval/lib64 -levent"
-     elif test -f $withval/event.h -a -f $withval/libevent.so; then
-        owd=`pwd`
-        if cd $withval; then withval=`pwd`; cd $owd; fi
-        EVENTINC="-I$withval"
-        EVENTLIB="-L$withval -levent"
-     else
-        AC_ERROR(event.h or libevent.so not found in $withval)
-     fi
-     ;;
-  esac ],
-[ if test -f ${prefix}/include/event.h -a -f ${prefix}/lib/libevent.so; then
-     EVENTINC="-I${prefix}/include"
-     EVENTLIB="-L${prefix}/lib -levent"
-  elif test -f ${prefix}/include/event.h -a -f ${prefix}/lib64/libevent.so; then
-     EVENTINC="-I${prefix}/include"
-     EVENTLIB="-L${prefix}/lib64 -levent"
-  else
-     AC_MSG_RESULT(no)
-     AC_ERROR(libevent not found)
-  fi
-  AC_MSG_RESULT(yes) ]
-)
 AC_SUBST(EVENTINC)
 AC_SUBST(EVENTLIB)
 
-dnl XXX - END !CYGWIN
-fi
-
-dnl Checks for libpcap
-AC_MSG_CHECKING(for libpcap)
-AC_ARG_WITH(libpcap,
-[  --with-libpcap=DIR      use libpcap in DIR],
-[ case "$withval" in
-  yes|no)
-     AC_MSG_RESULT(no)
-     ;;
-  *)
-     AC_MSG_RESULT($withval)
-     if test -f $withval/pcap.h -a -f $withval/libpcap.so; then
-        owd=`pwd`
-        if cd $withval; then withval=`pwd`; cd $owd; fi
-	PCAPINC="-I$withval -I$withval/bpf"
-	PCAPLIB="-L$withval -lpcap"
-     elif test -f $withval/include/pcap.h -a \
-	       -f $withval/include/pcap-bpf.h; then
-	owd=`pwd`
-	if cd $withval; then withval=`pwd`; cd $owd; fi
-	PCAPINC="-I$withval/include"
-	if test -f $withval/lib/libwpcap.a; then
-	   PCAPLIB="-L$withval/lib -lwpcap"
-	else
-	   PCAPLIB="-L$withval/lib -lpcap"
-        fi
-     else
-        AC_ERROR(pcap.h, pcap-bpf.h, or libpcap.so not found in $withval)
-     fi
-     ;;
-  esac ],
-[ if test -f ${prefix}/include/pcap.h; then
-     PCAPINC="-I${prefix}/include"
-     if test -f ${prefix}/lib/libwpcap.a; then
-	PCAPLIB="-L${prefix}/lib -lwpcap"
-     else
-        PCAPLIB="-L${prefix}/lib -lpcap"
-     fi
-  elif test -f /usr/include/pcap/pcap.h; then
-     PCAPINC="-I/usr/include/pcap"
-     PCAPLIB="-lpcap"
-  elif test -f /usr/include/pcap.h; then
-     PCAPLIB="-lpcap"
-  else
-     AC_MSG_RESULT(no)
-     AC_ERROR(libpcap not found)
-  fi
-  AC_MSG_RESULT(yes) ]
-)
 AC_SUBST(PCAPINC)
 AC_SUBST(PCAPLIB)
 
-dnl Checks for (installed) libdnet
-AC_MSG_CHECKING(for libdnet)
-AC_ARG_WITH(libdnet,
-[  --with-libdnet=DIR      use libdnet in DIR],
-[ case "$withval" in
-  yes|no)
-     AC_MSG_RESULT(no)
-     ;;
-  *)
-     AC_MSG_RESULT($withval)
-     if test -f $withval/src/libdnet.so; then
-	DNETINC="-I$withval/include"
-	DNETLIB="-L$withval/src -ldnet `$withval/dnet-config --libs`"
-     elif test -x $withval/bin/dnet-config; then
-	DNETINC="`$withval/bin/dnet-config --cflags`"
-	DNETLIB="`$withval/bin/dnet-config --libs`"
-     else
-        AC_ERROR(dnet-config not found in $withval/bin)
-     fi
-     ;;
-  esac ],
-[ if test -x ${prefix}/bin/dnet-config; then
-     DNETINC="`${prefix}/bin/dnet-config --cflags`"
-     DNETLIB="`${prefix}/bin/dnet-config --libs`"
-  else
-     AC_MSG_RESULT(no)
-     AC_ERROR(libdnet not found)
-  fi
-  AC_MSG_RESULT(yes) ]
-)
 AC_SUBST(DNETINC)
 AC_SUBST(DNETLIB)