1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Canonicalize symlinks in portnames

This allows users to supply symlinks created e.g. by udev rules instead
of the actual device names.
This commit is contained in:
Stefan Tauner
2017-05-21 23:42:06 +02:00
committed by Uwe Hermann
parent 2a6c24be33
commit 95bad38c5b
3 changed files with 18 additions and 1 deletions

View File

@@ -126,6 +126,9 @@ AC_CHECK_DECLS([BOTHER],,, [[#include <linux/termios.h>]])
# Check for serial_struct.
AC_CHECK_TYPES([struct serial_struct],,, [[#include <linux/serial.h>]])
# Check for realpath().
AC_CHECK_FUNC([realpath], [AC_DEFINE(HAVE_REALPATH, 1, [realpath is available.])], [])
AC_CACHE_CHECK([for visibility control], [sp_cv_visibility_control], [
sp_saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror"