Skip to content

Commit afae3a6

Browse files
committed
hal_gpio: Adapt to use libgpiod3 or libgpiod2 according to what is installed
1 parent ab1da99 commit afae3a6

2 files changed

Lines changed: 258 additions & 69 deletions

File tree

src/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ install with "sudo apt-get install libusb-1.0-0-dev" or disable with
533533
#
534534
# check for libgpiod
535535
#
536-
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod < 2.0.0],
536+
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod < 3.0.0],
537537
[AC_DEFINE_UNQUOTED([LIBGPIOD_VER], `pkg-config libgpiod --modversion | awk -F. '{print ($1 * 100)+($2) }'`,
538538
[libgpiod version, undefined if not present])
539539
LDFLAGS="$LDFLAGS $LIBGPIOD_LIBS"

0 commit comments

Comments
 (0)