amplc_dio200: Protect access to counter subdevices with a spin lock.
[comedi.git] / configure.ac
index 6870c14945ec400cf4f4a8e639b5e1abf090b8a7..7b056f07b7d90e84d90b052c02f2cbb1909c49cf 100644 (file)
@@ -89,7 +89,7 @@ AM_CONDITIONAL([CONFIG_COMEDI_PCI],[test "$USE_PCI" = "yes"])
 
 COMEDI_CHECK_PCMCIA_PROBE([$LINUX_SRC_DIR],
        [AS_CHECK_LINUX_CONFIG_OPTION([CONFIG_PCMCIA],
-               [HAVE_PCMCIA="yes"][HAVE_PCMCIA="yes"],[HAVE_PCMCIA="no"])],
+               [HAVE_PCMCIA="yes"],[HAVE_PCMCIA="yes"],[HAVE_PCMCIA="no"])],
        [HAVE_PCMCIA="no"])
 AM_CONDITIONAL([CONFIG_PCMCIA],[test "$HAVE_PCMCIA" = "yes"])
 AC_ARG_ENABLE([pcmcia],[  --disable-pcmcia     Disable support for PCMCIA devices],
@@ -104,7 +104,7 @@ if test "$HAVE_PCMCIA" = "yes" ; then
        fi
 else
        if test "$ENABLE_PCMCIA" = "yes" ; then
-               AC_MSG_ERROR([Kernel does not support PCMCIA or its API is not suported by Comedi])
+               AC_MSG_ERROR([Kernel does not support PCMCIA or its API is not supported by Comedi])
        fi
        USE_PCMCIA="no"
 fi
@@ -135,6 +135,9 @@ AC_ARG_ENABLE([kbuild], [  --enable-kbuild  Force use (or not) of kernel's Kbuild
        [ENABLE_KBUILD=$enableval], [])
 AM_CONDITIONAL([CONFIG_KBUILD], [test ${ENABLE_KBUILD} = "yes"])
 COMEDI_CHECK_HAVE_MUTEX_H([$LINUX_SRC_DIR], [HAVE_MUTEX_H="yes"], [HAVE_MUTEX_H="no"])
+if test ${HAVE_MUTEX_H} = "yes" ; then
+       AC_DEFINE([CONFIG_COMEDI_HAVE_MUTEX_H], [true], [Define if Linux kernel has mutex.h header])
+fi
 AS_LINUX_CONFIG_OPTION_MODULE(CONFIG_ISA)
 
 AC_DEFINE(CONFIG_COMEDI_DEBUG, true, [Define if debugging is enabled])