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

Add new APIs to get some USB descriptor details for USB serial ports.

This commit is contained in:
Aurelien Jacobs
2014-05-30 22:49:04 +02:00
parent 98cac5d63e
commit a93fb46888
6 changed files with 986 additions and 7 deletions

View File

@@ -76,6 +76,7 @@ AC_SUBST(SP_LIB_LDFLAGS)
# It is then used to construct the "Requires.private:" field in the
# libserialport.pc file.
SP_PKGLIBS=""
SP_LIBS=""
case $target_os in
*linux*)
@@ -86,11 +87,16 @@ case $target_os in
LDFLAGS="$LDFLAGS -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation"
AC_CHECK_HEADER(IOKit/IOKitLib.h, [], [AC_MSG_ERROR([IOKit/IOKitLib.h not found])])
;;
mingw* | cygwin*)
AM_CONDITIONAL([LINUX], false)
SP_LIBS="-lsetupapi -luuid"
;;
*)
AM_CONDITIONAL([LINUX], false)
esac
AC_SUBST(SP_PKGLIBS)
AC_SUBST(SP_LIBS)
# Define size_t if not defined as standard.
AC_TYPE_SIZE_T