Project

General

Profile

« Previous | Next » 

Revision c71ca2b5

Allow opening a tty by giving its (usb) serial number

Before opening the given path, try to match a usb serial number. If there
is a match, the corresponding device node is openened.

This uses libudev, so it's for linux only.

Added by Anthony Mallet over 3 years ago

View differences:

configure.ac
23 23
AC_CONFIG_AUX_DIR([autoconf])
24 24
AC_CONFIG_HEADERS([autoconf/acmikrokopter.h])
25 25
AM_INIT_AUTOMAKE([foreign no-define])
26
AC_CANONICAL_HOST
26 27

  
27 28
dnl Compilers
28 29
dnl
......
66 67
   AC_MSG_RESULT(no))
67 68
fi
68 69

  
70
# libudev for serial <-> tty
71
case "${host_os}" in
72
  linux*) PKG_CHECK_MODULES(libudev, [libudev]);;
73
esac
74

  
69 75
dnl Output
70 76
AC_CONFIG_FILES([
71 77
	mikrokopter-genom3.pc

Also available in: Unified diff