[package] sipsak: disable checking for c-ares and ruli
[packages.git] / net / sipsak / patches / 002-no_cares_ruli.patch
1 diff -urN sipsak-0.9.6/configure sipsak-0.9.6.new/configure
2 --- sipsak-0.9.6/configure      2006-01-28 22:11:34.000000000 +0100
3 +++ sipsak-0.9.6.new/configure  2012-08-06 16:45:07.051588486 +0200
4 @@ -5954,264 +5954,6 @@
5  
6  
7  
8 -       echo "$as_me:$LINENO: checking for ares_version.h" >&5
9 -echo $ECHO_N "checking for ares_version.h... $ECHO_C" >&6
10 -
11 -       ares_incdir=NONE
12 -       ares_libdir=NONE
13 -       ares_libcall=NONE
14 -       ares_incdirs="/usr/include /usr/local/include /sw/include"
15 -       ares_libdirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /sw/lib"
16 -       ares_libexten=".so .dylib .a"
17 -
18 -       for dir in $ares_incdirs; do
19 -               try="$dir/ares_version.h"
20 -               if test -f $try; then
21 -                       ares_incdir=$dir;
22 -                       break;
23 -               fi
24 -       done
25 -
26 -       if test "$ares_incdir" = "NONE"; then
27 -               echo "$as_me:$LINENO: result: not found" >&5
28 -echo "${ECHO_T}not found" >&6
29 -       else
30 -               echo "$as_me:$LINENO: result: found at $ares_incdir" >&5
31 -echo "${ECHO_T}found at $ares_incdir" >&6
32 -
33 -               echo "$as_me:$LINENO: checking for c-ares lib" >&5
34 -echo $ECHO_N "checking for c-ares lib... $ECHO_C" >&6
35 -
36 -               for dir in $ares_libdirs; do
37 -                       for extension in $ares_libexten; do
38 -                               try="$dir/libcares$extension"
39 -                               if test -f $try; then
40 -                                       ares_libdir=$dir;
41 -                                       ares_libcall=cares;
42 -                                       break;
43 -                               fi
44 -                       done
45 -                       if test "$ares_libdir" != "NONE"; then
46 -                               break;
47 -                       fi
48 -               done
49 -
50 -               if test "$ares_libdir" = "NONE"; then
51 -                       echo "$as_me:$LINENO: result: not found" >&5
52 -echo "${ECHO_T}not found" >&6
53 -               else
54 -                       echo "$as_me:$LINENO: result: found at $ares_libdir" >&5
55 -echo "${ECHO_T}found at $ares_libdir" >&6
56 -               fi
57 -
58 -               echo "$as_me:$LINENO: checking for ares_version in -lcares" >&5
59 -echo $ECHO_N "checking for ares_version in -lcares... $ECHO_C" >&6
60 -if test "${ac_cv_lib_cares_ares_version+set}" = set; then
61 -  echo $ECHO_N "(cached) $ECHO_C" >&6
62 -else
63 -  ac_check_lib_save_LIBS=$LIBS
64 -LIBS="-lcares  $LIBS"
65 -cat >conftest.$ac_ext <<_ACEOF
66 -/* confdefs.h.  */
67 -_ACEOF
68 -cat confdefs.h >>conftest.$ac_ext
69 -cat >>conftest.$ac_ext <<_ACEOF
70 -/* end confdefs.h.  */
71 -
72 -/* Override any gcc2 internal prototype to avoid an error.  */
73 -#ifdef __cplusplus
74 -extern "C"
75 -#endif
76 -/* We use char because int might match the return type of a gcc2
77 -   builtin and then its argument prototype would still apply.  */
78 -char ares_version ();
79 -int
80 -main ()
81 -{
82 -ares_version ();
83 -  ;
84 -  return 0;
85 -}
86 -_ACEOF
87 -rm -f conftest.$ac_objext conftest$ac_exeext
88 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
89 -  (eval $ac_link) 2>conftest.er1
90 -  ac_status=$?
91 -  grep -v '^ *+' conftest.er1 >conftest.err
92 -  rm -f conftest.er1
93 -  cat conftest.err >&5
94 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
95 -  (exit $ac_status); } &&
96 -        { ac_try='test -z "$ac_c_werror_flag"
97 -                        || test ! -s conftest.err'
98 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
99 -  (eval $ac_try) 2>&5
100 -  ac_status=$?
101 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
102 -  (exit $ac_status); }; } &&
103 -        { ac_try='test -s conftest$ac_exeext'
104 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
105 -  (eval $ac_try) 2>&5
106 -  ac_status=$?
107 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
108 -  (exit $ac_status); }; }; then
109 -  ac_cv_lib_cares_ares_version=yes
110 -else
111 -  echo "$as_me: failed program was:" >&5
112 -sed 's/^/| /' conftest.$ac_ext >&5
113 -
114 -ac_cv_lib_cares_ares_version=no
115 -fi
116 -rm -f conftest.err conftest.$ac_objext \
117 -      conftest$ac_exeext conftest.$ac_ext
118 -LIBS=$ac_check_lib_save_LIBS
119 -fi
120 -echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_version" >&5
121 -echo "${ECHO_T}$ac_cv_lib_cares_ares_version" >&6
122 -if test $ac_cv_lib_cares_ares_version = yes; then
123 -
124 -cat >>confdefs.h <<\_ACEOF
125 -#define HAVE_CARES_H 1
126 -_ACEOF
127 -
128 -                 LIBS="$LIBS -L$ares_libdir -l$ares_libcall"
129 -                 CFLAGS="$CFLAGS -I$ares_incdir"
130 -                 SIPSAK_HAVE_ARES="1"
131 -
132 -
133 -fi
134 -
135 -       fi
136 -
137 -if test "X$SIPSAK_HAVE_ARES" == "X"; then
138 -
139 -       echo "$as_me:$LINENO: checking for ruli.h" >&5
140 -echo $ECHO_N "checking for ruli.h... $ECHO_C" >&6
141 -
142 -       ruli_incdir=NONE
143 -       ruli_libdir=NONE
144 -       ruli_incdirs="/usr/include /usr/local/include /sw/include"
145 -       ruli_libdirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /sw/lib"
146 -       ruli_libexten=".so .dylib .a"
147 -
148 -       for dir in $ruli_incdirs; do
149 -               try="$dir/ruli.h"
150 -               if test -f $try; then
151 -                       ruli_incdir=$dir;
152 -                       break;
153 -               fi
154 -       done
155 -
156 -       if test "$ruli_incdir" = "NONE"; then
157 -               echo "$as_me:$LINENO: result: not found" >&5
158 -echo "${ECHO_T}not found" >&6
159 -       else
160 -               echo "$as_me:$LINENO: result: found at $ruli_incdir" >&5
161 -echo "${ECHO_T}found at $ruli_incdir" >&6
162 -
163 -               echo "$as_me:$LINENO: checking for libruli" >&5
164 -echo $ECHO_N "checking for libruli... $ECHO_C" >&6
165 -
166 -               for dir in $ruli_libdirs; do
167 -                       for extension in $ruli_libexten; do
168 -                               try="$dir/libruli$extension"
169 -                               if test -f $try; then
170 -                                       ruli_libdir=$dir;
171 -                                       break;
172 -                               fi
173 -                       done
174 -                       if test "$ruli_libdir" != "NONE"; then
175 -                               break;
176 -                       fi
177 -               done
178 -
179 -               if test "$ruli_libdir" = "NONE"; then
180 -                       echo "$as_me:$LINENO: result: not found" >&5
181 -echo "${ECHO_T}not found" >&6
182 -               else
183 -                       echo "$as_me:$LINENO: result: found at $ruli_libdir" >&5
184 -echo "${ECHO_T}found at $ruli_libdir" >&6
185 -               fi
186 -
187 -               echo "$as_me:$LINENO: checking for ruli_sync_query in -lruli" >&5
188 -echo $ECHO_N "checking for ruli_sync_query in -lruli... $ECHO_C" >&6
189 -if test "${ac_cv_lib_ruli_ruli_sync_query+set}" = set; then
190 -  echo $ECHO_N "(cached) $ECHO_C" >&6
191 -else
192 -  ac_check_lib_save_LIBS=$LIBS
193 -LIBS="-lruli  $LIBS"
194 -cat >conftest.$ac_ext <<_ACEOF
195 -/* confdefs.h.  */
196 -_ACEOF
197 -cat confdefs.h >>conftest.$ac_ext
198 -cat >>conftest.$ac_ext <<_ACEOF
199 -/* end confdefs.h.  */
200 -
201 -/* Override any gcc2 internal prototype to avoid an error.  */
202 -#ifdef __cplusplus
203 -extern "C"
204 -#endif
205 -/* We use char because int might match the return type of a gcc2
206 -   builtin and then its argument prototype would still apply.  */
207 -char ruli_sync_query ();
208 -int
209 -main ()
210 -{
211 -ruli_sync_query ();
212 -  ;
213 -  return 0;
214 -}
215 -_ACEOF
216 -rm -f conftest.$ac_objext conftest$ac_exeext
217 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
218 -  (eval $ac_link) 2>conftest.er1
219 -  ac_status=$?
220 -  grep -v '^ *+' conftest.er1 >conftest.err
221 -  rm -f conftest.er1
222 -  cat conftest.err >&5
223 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
224 -  (exit $ac_status); } &&
225 -        { ac_try='test -z "$ac_c_werror_flag"
226 -                        || test ! -s conftest.err'
227 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
228 -  (eval $ac_try) 2>&5
229 -  ac_status=$?
230 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
231 -  (exit $ac_status); }; } &&
232 -        { ac_try='test -s conftest$ac_exeext'
233 -  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
234 -  (eval $ac_try) 2>&5
235 -  ac_status=$?
236 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
237 -  (exit $ac_status); }; }; then
238 -  ac_cv_lib_ruli_ruli_sync_query=yes
239 -else
240 -  echo "$as_me: failed program was:" >&5
241 -sed 's/^/| /' conftest.$ac_ext >&5
242 -
243 -ac_cv_lib_ruli_ruli_sync_query=no
244 -fi
245 -rm -f conftest.err conftest.$ac_objext \
246 -      conftest$ac_exeext conftest.$ac_ext
247 -LIBS=$ac_check_lib_save_LIBS
248 -fi
249 -echo "$as_me:$LINENO: result: $ac_cv_lib_ruli_ruli_sync_query" >&5
250 -echo "${ECHO_T}$ac_cv_lib_ruli_ruli_sync_query" >&6
251 -if test $ac_cv_lib_ruli_ruli_sync_query = yes; then
252 -
253 -cat >>confdefs.h <<\_ACEOF
254 -#define HAVE_RULI_H 1
255 -_ACEOF
256 -
257 -                 LIBS="$LIBS -L$ruli_libdir -lruli"
258 -                 CFLAGS="$CFLAGS -I$ruli_incdir"
259 -
260 -fi
261 -
262 -       fi
263 -
264 -else
265 -
266  for ac_header in arpa/nameser.h
267  do
268  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
269 @@ -6361,7 +6103,6 @@
270  
271  done
272  
273 -fi
274  
275  
276         # Check for T1 timer value