0006-configure.ac-revisit-disable-libv4l-to-disable-dyn-l.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. From 73efcd77d17fe92750bf5f76896786ca8e147a9f Mon Sep 17 00:00:00 2001
  2. From: Hugues Fruchet <hugues.fruchet@st.com>
  3. Date: Wed, 17 May 2017 10:03:10 +0200
  4. Subject: [PATCH] configure.ac: revisit --disable-libv4l to
  5. --disable-dyn-libv4l
  6. --disable-libv4l is not disabling libv4l compilation, but only
  7. dynamic library support of libv4l libraries.
  8. Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
  9. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
  10. ---
  11. configure.ac | 16 ++++++++--------
  12. lib/libv4l1/Makefile.am | 2 +-
  13. lib/libv4l2/Makefile.am | 2 +-
  14. lib/libv4l2rds/Makefile.am | 2 +-
  15. lib/libv4lconvert/Makefile.am | 2 +-
  16. 5 files changed, 12 insertions(+), 12 deletions(-)
  17. diff --git a/configure.ac b/configure.ac
  18. index 5f20fc8..8e536cc 100644
  19. --- a/configure.ac
  20. +++ b/configure.ac
  21. @@ -371,11 +371,11 @@ AC_ARG_ENABLE(libdvbv5,
  22. esac]
  23. )
  24. -AC_ARG_ENABLE(libv4l,
  25. - AS_HELP_STRING([--disable-libv4l], [disable dynamic libv4l compilation]),
  26. +AC_ARG_ENABLE(dyn-libv4l,
  27. + AS_HELP_STRING([--disable-dyn-libv4l], [disable dynamic libv4l support]),
  28. [case "${enableval}" in
  29. yes | no ) ;;
  30. - *) AC_MSG_ERROR(bad value ${enableval} for --disable-libv4l) ;;
  31. + *) AC_MSG_ERROR(bad value ${enableval} for --disable-dyn-libv4l) ;;
  32. esac]
  33. )
  34. @@ -427,11 +427,11 @@ AC_SEARCH_LIBS([backtrace], [execinfo], [
  35. AM_CONDITIONAL([WITH_LIBDVBV5], [test x$enable_libdvbv5 != xno -a x$have_libudev = xyes])
  36. AM_CONDITIONAL([WITH_DVBV5_REMOTE], [test x$enable_libdvbv5 != xno -a x$have_libudev = xyes -a x$have_pthread = xyes])
  37. -AM_CONDITIONAL([WITH_LIBV4L], [test x$enable_libv4l != xno])
  38. +AM_CONDITIONAL([WITH_DYN_LIBV4L], [test x$enable_dyn_libv4l != xno])
  39. AM_CONDITIONAL([WITH_V4LUTILS], [test x$enable_v4l_utils != xno -a x$linux_os = xyes])
  40. AM_CONDITIONAL([WITH_QV4L2], [test x${qt_pkgconfig} = xtrue -a x$enable_qv4l2 != xno])
  41. -AM_CONDITIONAL([WITH_V4L_PLUGINS], [test x$enable_libv4l != xno -a x$enable_shared != xno])
  42. -AM_CONDITIONAL([WITH_V4L_WRAPPERS], [test x$enable_libv4l != xno -a x$enable_shared != xno])
  43. +AM_CONDITIONAL([WITH_V4L_PLUGINS], [test x$enable_dyn_libv4l != xno -a x$enable_shared != xno])
  44. +AM_CONDITIONAL([WITH_V4L_WRAPPERS], [test x$enable_dyn_libv4l != xno -a x$enable_shared != xno])
  45. AM_CONDITIONAL([WITH_QTGL], [test x${qt_pkgconfig_gl} = xtrue])
  46. AM_CONDITIONAL([WITH_GCONV], [test x${enable_gconv} = xyes])
  47. AM_CONDITIONAL([WITH_V4L2_CTL_LIBV4L], [test x${enable_v4l2_ctl_libv4l} != xno])
  48. @@ -455,7 +455,7 @@ AM_COND_IF([WITH_LIBDVBV5], [USE_LIBDVBV5="yes"], [USE_LIBDVBV5="no"])
  49. AM_COND_IF([WITH_DVBV5_REMOTE], [USE_DVBV5_REMOTE="yes"
  50. AC_DEFINE([HAVE_DVBV5_REMOTE], [1], [Usage of DVBv5 remote enabled])],
  51. [USE_DVBV5_REMOTE="no"])
  52. -AM_COND_IF([WITH_LIBV4L], [USE_LIBV4L="yes"], [USE_LIBV4L="no"])
  53. +AM_COND_IF([WITH_DYN_LIBV4L], [USE_DYN_LIBV4L="yes"], [USE_DYN_LIBV4L="no"])
  54. AM_COND_IF([WITH_V4LUTILS], [USE_V4LUTILS="yes"], [USE_V4LUTILS="no"])
  55. AM_COND_IF([WITH_QV4L2], [USE_QV4L2="yes"], [USE_QV4L2="no"])
  56. AM_COND_IF([WITH_V4L_PLUGINS], [USE_V4L_PLUGINS="yes"], [USE_V4L_PLUGINS="no"])
  57. @@ -490,7 +490,7 @@ compile time options summary
  58. gconv : $USE_GCONV
  59. - dynamic libv4l : $USE_LIBV4L
  60. + dynamic libv4l : $USE_DYN_LIBV4L
  61. v4l_plugins : $USE_V4L_PLUGINS
  62. v4l_wrappers : $USE_V4L_WRAPPERS
  63. libdvbv5 : $USE_LIBDVBV5
  64. diff --git a/lib/libv4l1/Makefile.am b/lib/libv4l1/Makefile.am
  65. index f768eaa..42cb3db 100644
  66. --- a/lib/libv4l1/Makefile.am
  67. +++ b/lib/libv4l1/Makefile.am
  68. @@ -1,4 +1,4 @@
  69. -if WITH_LIBV4L
  70. +if WITH_DYN_LIBV4L
  71. lib_LTLIBRARIES = libv4l1.la
  72. include_HEADERS = ../include/libv4l1.h ../include/libv4l1-videodev.h
  73. pkgconfig_DATA = libv4l1.pc
  74. diff --git a/lib/libv4l2/Makefile.am b/lib/libv4l2/Makefile.am
  75. index 1314a99..811c45c 100644
  76. --- a/lib/libv4l2/Makefile.am
  77. +++ b/lib/libv4l2/Makefile.am
  78. @@ -1,4 +1,4 @@
  79. -if WITH_LIBV4L
  80. +if WITH_DYN_LIBV4L
  81. lib_LTLIBRARIES = libv4l2.la
  82. include_HEADERS = ../include/libv4l2.h ../include/libv4l-plugin.h
  83. pkgconfig_DATA = libv4l2.pc
  84. diff --git a/lib/libv4l2rds/Makefile.am b/lib/libv4l2rds/Makefile.am
  85. index 4f23a3f..73fdd3e 100644
  86. --- a/lib/libv4l2rds/Makefile.am
  87. +++ b/lib/libv4l2rds/Makefile.am
  88. @@ -1,4 +1,4 @@
  89. -if WITH_LIBV4L
  90. +if WITH_DYN_LIBV4L
  91. lib_LTLIBRARIES = libv4l2rds.la
  92. include_HEADERS = ../include/libv4l2rds.h
  93. pkgconfig_DATA = libv4l2rds.pc
  94. diff --git a/lib/libv4lconvert/Makefile.am b/lib/libv4lconvert/Makefile.am
  95. index 5c8a1cf..4f332fa 100644
  96. --- a/lib/libv4lconvert/Makefile.am
  97. +++ b/lib/libv4lconvert/Makefile.am
  98. @@ -1,4 +1,4 @@
  99. -if WITH_LIBV4L
  100. +if WITH_DYN_LIBV4L
  101. lib_LTLIBRARIES = libv4lconvert.la
  102. libv4lconvertpriv_PROGRAMS = ov511-decomp ov518-decomp
  103. include_HEADERS = ../include/libv4lconvert.h
  104. --
  105. 1.9.1