File 0011-configure-add-with-lock-dir-option.patch of Package alsa-utils.openSUSE_13.1_Update

From 24a7b2fec2fdac87aa3594daa2b3ed979dd45706 Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Wed, 7 May 2014 09:19:36 +0200
Subject: [PATCH] configure: add --with-lock-dir option

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
 alsactl/Makefile.am |    9 +++++++--
 configure.in        |    6 ++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

--- a/alsactl/Makefile.am
+++ b/alsactl/Makefile.am
@@ -8,8 +8,13 @@ endif
 EXTRA_DIST=alsactl.1 alsactl_init.xml
 
 alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c daemon.c
-alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
-noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c init_utils_run.c init_sysfs.c
+alsactl_CFLAGS=$(AM_CFLAGS) -D__USE_GNU \
+               -DSYS_ASOUNDRC=\"$(ASOUND_STATE_DIR)/asound.state\" \
+               -DSYS_LOCKPATH=\"$(ASOUND_LOCK_DIR)\" \
+               -DSYS_PIDFILE=\"$(ALSACTL_PIDFILE_DIR)/alsactl.pid\"
+
+noinst_HEADERS=alsactl.h list.h init_sysdeps.c init_utils_string.c \
+               init_utils_run.c init_sysfs.c
 
 udevrules_DATA = \
 	90-alsa-restore.rules
--- a/configure.in
+++ b/configure.in
@@ -324,6 +324,12 @@ AC_ARG_WITH([asound-state-dir],
         [ASOUND_STATE_DIR="/var/lib/alsa"])
 AC_SUBST(ASOUND_STATE_DIR)
 
+AC_ARG_WITH([alsactl-lock-dir],
+        AS_HELP_STRING([--with-alsactl-lock-dir=DIR], [Directory to place lock files in]),
+        [ASOUND_LOCK_DIR="$withval"],
+        [ASOUND_LOCK_DIR="/var/lock"])
+AC_SUBST(ASOUND_LOCK_DIR)
+
 AC_ARG_WITH([alsactl-pidfile-dir],
         AS_HELP_STRING([--with-alsactl-pidfile-dir=DIR], [Directory to place alsactl.pid file in]),
         [ALSACTL_PIDFILE_DIR="$withval"],
openSUSE Build Service is sponsored by