summaryrefslogtreecommitdiff
blob: 28d2094288d8a5f8b98399bcec88b6d24725eb6a (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
diff -Nru libbtctl-0.6.0.orig/aclocal.m4 libbtctl-0.6.0/aclocal.m4
--- libbtctl-0.6.0.orig/aclocal.m4	2005-11-22 00:02:42.000000000 +0200
+++ libbtctl-0.6.0/aclocal.m4	2006-04-22 12:13:21.922401250 +0300
@@ -8268,63 +8268,3 @@
      ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
   fi
 ])
-
-
-
-dnl Check for openobex library
-dnl Written by Pontus Fuchs 2000-08-18
-dnl Version checking fixed by Christian W. Zuckschwerdt 2002-10-17
-
-AC_DEFUN([AM_PATH_OPENOBEX], [
-	AC_PATH_PROG(OPENOBEX_CONFIG, openobex-config, no)
-
-	if test "$OPENOBEX_CONFIG" = "no" ; then
-		AC_MSG_ERROR(openobex-config not found. Pehaps openobex is not installed.)
-	fi
-
-	min_obex_version=ifelse([$1], ,0.9.6,$1)
-	AC_MSG_CHECKING(for openobex - version >= $min_obex_version)
-
-	OPENOBEX_CFLAGS=`$OPENOBEX_CONFIG --cflags`
-	OPENOBEX_LIBS=`$OPENOBEX_CONFIG --libs`
-
-	obex_config_version=`$OPENOBEX_CONFIG --version`
-
-	obex_config_major_version=`$OPENOBEX_CONFIG --version | \
-		sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
-	obex_config_minor_version=`$OPENOBEX_CONFIG --version | \
-		sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
-	obex_config_micro_version=`$OPENOBEX_CONFIG --version | \
-		sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
-	obex_req_major_version=`echo $min_obex_version | \
-		sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
-	obex_req_minor_version=`echo $min_obex_version | \
-		sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
-	obex_req_micro_version=`echo $min_obex_version | \
-		sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
-
-	if test $obex_req_major_version -lt $obex_config_major_version ; then
-       		obex_config_version_ok="yes"
-       	fi
-	if test $obex_req_major_version -eq $obex_config_major_version ; then
-		if test $obex_req_minor_version -lt $obex_config_minor_version ; then
-       			obex_config_version_ok="yes"
-	       	fi
-		if test $obex_req_minor_version -eq $obex_config_minor_version ; then
-			if test $obex_req_micro_version -le $obex_config_micro_version ; then
-				obex_config_version_ok="yes"
-			fi
-		fi
-	fi
-	
-	if test "$obex_config_version_ok" != "yes" ; then
-		AC_MSG_ERROR(Installed openobex library too old ($obex_config_version))
-	fi
-
-	AC_SUBST(OPENOBEX_CFLAGS)
-	AC_SUBST(OPENOBEX_LIBS)
-	AC_MSG_RESULT(yes)
-])
-