summaryrefslogtreecommitdiffstats
path: root/net/belle-sip/files/patch-configure
blob: 1ccfa2118654f865ae6f9dbad8cbae0b31386ca0 (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
--- configure.orig	2015-03-11 16:44:12 UTC
+++ configure
@@ -16787,10 +16787,10 @@ libresolv_have_res_get_servers=no
 resolv_h_hav_res_ndestroy=no
 LIBS_save=$LIBS
 
-LIBS="$LIBS -lresolv"
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <netinet/in.h>
 #include <resolv.h>
 int
 main ()
@@ -16814,7 +16814,8 @@ fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
 
-ac_fn_c_check_decl "$LINENO" "res_ndestroy" "ac_cv_have_decl_res_ndestroy" "#include <resolv.h>
+ac_fn_c_check_decl "$LINENO" "res_ndestroy" "ac_cv_have_decl_res_ndestroy" "#include <netinet/in.h>
+#include <resolv.h>
 "
 if test "x$ac_cv_have_decl_res_ndestroy" = xyes; then :
   resolv_h_hav_res_ndestroy=yes
@@ -16877,17 +16878,11 @@ fi
 
 
 if test $ANTLR = "no" ; then
-antlr_java_prefixes="$antlr_prefix/share/java /usr/local/share/java /usr/share/java /opt/local/share/java"
+antlr_java_prefixes="%%WRKDIR%%"
 
 	for antlr_java_prefix in $antlr_java_prefixes
 	do
-		antlr_jar=$antlr_java_prefix/antlr.jar
-		if test -f $antlr_jar ; then
-			break
-		else
-			antlr_jar=no
-		fi
-		antlr_jar=$antlr_java_prefix/antlr3.jar
+		antlr_jar=$antlr_java_prefix/antlr-complete.jar
 		if test -f $antlr_jar ; then
 			break
 		else
OpenPOWER on IntegriCloud