added plock
diff --git a/config.h.in b/config.h.in
index 76bbf5d..33b0044 100644
--- a/config.h.in
+++ b/config.h.in
@@ -184,6 +184,9 @@
 /* Define if you have the nice function.  */
 #undef HAVE_NICE
 
+/* Define if you have the plock function.  */
+#undef HAVE_PLOCK
+
 /* Define if you have the readlink function.  */
 #undef HAVE_READLINK
 
@@ -277,6 +280,9 @@
 /* Define if you have the <sys/dir.h> header file.  */
 #undef HAVE_SYS_DIR_H
 
+/* Define if you have the <sys/lock.h> header file.  */
+#undef HAVE_SYS_LOCK_H
+
 /* Define if you have the <sys/ndir.h> header file.  */
 #undef HAVE_SYS_NDIR_H
 
diff --git a/configure b/configure
index 1b3fad0..1f4ad8d 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# From configure.in Revision: 1.26 
+# From configure.in Revision: 1.27 
 
 # Guess values for system-dependent variables and create Makefiles.
 # Generated automatically using autoconf version 2.10 
@@ -1019,7 +1019,7 @@
 
 for ac_hdr in dlfcn.h fcntl.h limits.h ncurses.h \
 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
-sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h \
+sys/audioio.h sys/lock.h sys/param.h sys/select.h sys/time.h sys/times.h \
 sys/un.h sys/utsname.h sys/wait.h
 do
 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
@@ -2133,7 +2133,7 @@
 # checks for library functions
 for ac_func in chown clock dlopen flock ftime ftruncate \
  gethostname_r getpeername getpgrp getpid gettimeofday getwd \
- link lstat mkfifo nice readlink \
+ link lstat mkfifo nice plock readlink \
  select setgid setuid setsid setpgid setpgrp setvbuf \
  sigaction siginterrupt sigrelse strftime symlink \
  tcgetpgrp tcsetpgrp times truncate uname waitpid
diff --git a/configure.in b/configure.in
index f8ef394..8417fe0 100644
--- a/configure.in
+++ b/configure.in
@@ -60,7 +60,7 @@
 AC_HEADER_STDC
 AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h ncurses.h \
 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
-sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h \
+sys/audioio.h sys/lock.h sys/param.h sys/select.h sys/time.h sys/times.h \
 sys/un.h sys/utsname.h sys/wait.h)
 AC_HEADER_DIRENT
 
@@ -255,7 +255,7 @@
 # checks for library functions
 AC_CHECK_FUNCS(chown clock dlopen flock ftime ftruncate \
  gethostname_r getpeername getpgrp getpid gettimeofday getwd \
- link lstat mkfifo nice readlink \
+ link lstat mkfifo nice plock readlink \
  select setgid setuid setsid setpgid setpgrp setvbuf \
  sigaction siginterrupt sigrelse strftime symlink \
  tcgetpgrp tcsetpgrp times truncate uname waitpid) \