• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libv4l/0007-configure.ac-add-disable-libv4l-option.patch
Hugues FruchetHugues Fruchet committed f837251785e09 Jun 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 702722a43ee6472993fabdd810272d3599064866 Mon Sep 17 00:00:00 2001
2
From: Hugues Fruchet <hugues.fruchet@st.com>
3
Date: Wed, 17 May 2017 10:03:11 +0200
4
Subject: [PATCH] configure.ac: add --disable-libv4l option
5
​
6
Add an option to disable libv4l libraries and plugins compilation.
7
If system is not supporting dynamic shared libraries, this option
8
is automatically set.
9
dlopen() is no more a mandatory dependency (warning is kept).
10
lib/ and contrib/ folders are no more built with this option set
11
because of libv4l dependency.
12
utils/ folder is still built with this options set but without
13
rds-ctl because of its libv4l dependency.
14
v4l2-compliance and v4l2-ctl are also built but without any links
15
on libv4l and libv4lconvert libraries.
16
​
17
Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
18
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
19
---
20
 Makefile.am                       | 11 +++++++++--
21
 configure.ac                      | 12 +++++++++++-
22
 utils/Makefile.am                 |  6 +++++-
23
 utils/v4l2-compliance/Makefile.am |  4 ++++
24
 utils/v4l2-ctl/Makefile.am        |  4 ++++
25
 5 files changed, 33 insertions(+), 4 deletions(-)
26
​
27
diff --git a/Makefile.am b/Makefile.am
28
index e603472..07c3ef8 100644
29
--- a/Makefile.am
30
+++ b/Makefile.am
31
@@ -1,10 +1,17 @@
32
 AUTOMAKE_OPTIONS = foreign
33
 ACLOCAL_AMFLAGS = -I m4
34
 
35
-SUBDIRS = v4l-utils-po libdvbv5-po lib
36
+SUBDIRS = v4l-utils-po libdvbv5-po
37
+
38
+if WITH_LIBV4L
39
+SUBDIRS += lib
40
+endif
41
 
42
 if WITH_V4LUTILS
43
-SUBDIRS += utils contrib
44
+SUBDIRS += utils
45
+if WITH_LIBV4L
46
+SUBDIRS += contrib
47
+endif
48
 endif
49
 
50
 EXTRA_DIST = android-config.h bootstrap.sh doxygen_libdvbv5.cfg include COPYING.libv4l \
51
diff --git a/configure.ac b/configure.ac
52
index 8e536cc..b9fc59a 100644
53
--- a/configure.ac
54
+++ b/configure.ac
55
@@ -285,7 +285,7 @@ dl_saved_libs=$LIBS
56
   AC_SEARCH_LIBS([dlopen],
57
                  [dl],
58
                  [test "$ac_cv_search_dlopen" = "none required" || DLOPEN_LIBS=$ac_cv_search_dlopen],
59
-                 [AC_MSG_ERROR([unable to find the dlopen() function])])
60
+                 [AC_MSG_WARN([unable to find the dlopen() function])])
61
   AC_SUBST([DLOPEN_LIBS])
62
 LIBS=$dl_saved_libs
63
 
64
@@ -371,6 +371,14 @@ AC_ARG_ENABLE(libdvbv5,
65
    esac]
66
 )
67
 
68
+AC_ARG_ENABLE(libv4l,
69
+  AS_HELP_STRING([--disable-libv4l], [disable libv4l compilation]),
70
+  [case "${enableval}" in
71
+     yes | no ) ;;
72
+     *) AC_MSG_ERROR(bad value ${enableval} for --disable-libv4l) ;;
73
+   esac]
74
+)
75
+
76
 AC_ARG_ENABLE(dyn-libv4l,
77
   AS_HELP_STRING([--disable-dyn-libv4l], [disable dynamic libv4l support]),
78
   [case "${enableval}" in
79
@@ -428,6 +436,7 @@ AM_CONDITIONAL([WITH_LIBDVBV5],     [test x$enable_libdvbv5  != xno -a x$have_li
80
 AM_CONDITIONAL([WITH_DVBV5_REMOTE], [test x$enable_libdvbv5  != xno -a x$have_libudev = xyes -a x$have_pthread = xyes])
81
 
82
 AM_CONDITIONAL([WITH_DYN_LIBV4L],   [test x$enable_dyn_libv4l != xno])
83
+AM_CONDITIONAL([WITH_LIBV4L],       [test x$enable_libv4l    != xno -a x$enable_shared != xno])
84
 AM_CONDITIONAL([WITH_V4LUTILS],        [test x$enable_v4l_utils != xno -a x$linux_os = xyes])
85
 AM_CONDITIONAL([WITH_QV4L2],       [test x${qt_pkgconfig} = xtrue -a x$enable_qv4l2 != xno])
86
 AM_CONDITIONAL([WITH_V4L_PLUGINS],  [test x$enable_dyn_libv4l != xno -a x$enable_shared != xno])
87
@@ -455,6 +464,7 @@ AM_COND_IF([WITH_LIBDVBV5], [USE_LIBDVBV5="yes"], [USE_LIBDVBV5="no"])
88
 AM_COND_IF([WITH_DVBV5_REMOTE], [USE_DVBV5_REMOTE="yes"
89
                 AC_DEFINE([HAVE_DVBV5_REMOTE], [1], [Usage of DVBv5 remote enabled])],
90
                    [USE_DVBV5_REMOTE="no"])
91
+AM_COND_IF([WITH_LIBV4L], [USE_LIBV4L="yes"], [USE_LIBV4L="no"])
92
 AM_COND_IF([WITH_DYN_LIBV4L], [USE_DYN_LIBV4L="yes"], [USE_DYN_LIBV4L="no"])
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.