summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-07-21 15:34:21 +0200
committerSaul Wold <sgw@linux.intel.com>2013-07-27 23:28:26 -0700
commita886f2f78c847df9d6fbbcbd3c4ad3581b928e2f (patch)
treef025b4e98bb8ad144dee15cbd9384fdfb338207a /meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch
parent203d5e1deb53e1c968498ff7595f57c73dc2697a (diff)
downloadopenembedded-core-contrib-a886f2f78c847df9d6fbbcbd3c4ad3581b928e2f.tar.gz
minicom: add configure option and PACKAGECONFIG for lockdev
* it's autodetected from sysroot * add PACKAGECONFIG to make it deterministic Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch')
-rw-r--r--meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch b/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch
new file mode 100644
index 0000000000..f5c08896ff
--- /dev/null
+++ b/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch
@@ -0,0 +1,21 @@
+Upstream-Status: Pending
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+
+--- a/configure.in 2013-02-06 18:18:13.000000000 +0100
++++ b/configure.in 2013-07-21 15:31:27.614828894 +0200
+@@ -40,7 +40,13 @@
+ fi
+
+ PKG_PROG_PKG_CONFIG
+-if test -n "$PKG_CONFIG"; then
++
++AC_ARG_ENABLE([lockdev],
++ AS_HELP_STRING([--enable-lockdev],
++ [Enable lockdev support (def: enabled)]),
++ [], [enable_lockdev="yes"])
++
++if test -n "$PKG_CONFIG" && test "x$enable_lockdev" = xyes; then
+ PKG_CHECK_MODULES([LOCKDEV], [lockdev], AC_DEFINE([HAVE_LOCKDEV],[1],[Define if you have lockdev]),[:])
+ fi
+