summaryrefslogtreecommitdiff
path: root/package/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2012-01-12 10:02:02 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-01-12 11:12:08 +0100
commit74b46041e4622a00e9d7392986c974eb6c455d61 (patch)
tree209e88b25999c7caf4d6d2db45e9c41a8f0dfd21 /package/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch
parentd242cb20945bf00d3e0603ee446044a2067f3d18 (diff)
bluez_utils: bump to 4.97
patch removes dependency for check package Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch')
-rwxr-xr-xpackage/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/package/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch b/package/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch
new file mode 100755
index 000000000..b2f5303fb
--- /dev/null
+++ b/package/bluez_utils/bluez_utils-move-libcheck-under-TEST-conditional.patch
@@ -0,0 +1,85 @@
+From bf5d45f2fbd1b1463512f4eb8d30bffb3478ccc7 Mon Sep 17 00:00:00 2001
+From: Marcel Holtmann <marcel@holtmann.org>
+Date: Tue, 27 Dec 2011 20:09:56 -0800
+Subject: [PATCH] build: Move libcheck under TEST conditional
+
+---
+ Makefile.am | 5 ++++-
+ acinclude.m4 | 8 +++++++-
+ configure.ac | 3 +--
+ 3 files changed, 12 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 9112483..5cf287c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -449,6 +449,7 @@ endif
+
+ unit_objects =
+
++if TEST
+ unit_tests = unit/test-eir
+
+ noinst_PROGRAMS += $(unit_tests)
+@@ -456,8 +457,10 @@ noinst_PROGRAMS += $(unit_tests)
+ unit_test_eir_SOURCES = unit/test-eir.c src/eir.c src/glib-helper.c
+ unit_test_eir_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @CHECK_LIBS@
+ unit_test_eir_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@
+-unit_test_eir_SHORTNAME = unit
+ unit_objects += $(unit_test_eir_OBJECTS)
++else
++unit_tests =
++endif
+
+ TESTS = $(unit_tests)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 2097d77..753b994 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -170,6 +170,12 @@ AC_DEFUN([AC_PATH_READLINE], [
+ [])
+ ])
+
++AC_DEFUN([AC_PATH_CHECK], [
++ PKG_CHECK_MODULES(CHECK, check >= 0.9.4, check_found=yes, check_found=no)
++ AC_SUBST(CHECK_CFLAGS)
++ AC_SUBST(CHECK_LIBS)
++])
++
+ AC_DEFUN([AC_PATH_OUI], [
+ AC_ARG_WITH(ouifile,
+ AS_HELP_STRING([--with-ouifile=PATH],[Path to the oui.txt file @<:@auto@:>@]),
+@@ -422,7 +428,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
+ AM_CONDITIONAL(PAND, test "${pand_enable}" = "yes")
+ AM_CONDITIONAL(DUND, test "${dund_enable}" = "yes")
+ AM_CONDITIONAL(CUPS, test "${cups_enable}" = "yes")
+- AM_CONDITIONAL(TEST, test "${test_enable}" = "yes")
++ AM_CONDITIONAL(TEST, test "${test_enable}" = "yes" && test "${check_found}" = "yes")
+ AM_CONDITIONAL(TOOLS, test "${tools_enable}" = "yes")
+ AM_CONDITIONAL(BCCMD, test "${bccmd_enable}" = "yes")
+ AM_CONDITIONAL(PCMCIA, test "${pcmcia_enable}" = "yes")
+diff --git a/configure.ac b/configure.ac
+index 3a5dfde..a7670da 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,8 +24,6 @@ AC_PROG_YACC
+ AM_PROG_LEX
+ AM_PROG_MKDIR_P
+
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+-
+ m4_define([_LT_AC_TAGCONFIG], [])
+ m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
+
+@@ -50,6 +48,7 @@ AC_PATH_UDEV
+ AC_PATH_SNDFILE
+ AC_PATH_OUI
+ AC_PATH_READLINE
++AC_PATH_CHECK
+
+ AC_ARG_BLUEZ
+
+--
+1.7.6.5
+