I got it to work with a change in configure.ac. I am sure there is a better and more correct way to do it but it works for now. Thanks for your help.

#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME],[VERSION],[BUG-REPORT-ADDRESS])
AM_INIT_AUTOMAKE
PKG_CHECK_MODULES([DEPS], [gtkmm-3.0 >= 3.0.0])
PKG_CHECK_MODULES([DEPS], [libserialport-0.1.0 >= 0.1.0])
PKG_CHECK_MODULES([DEPS], [libusb20-2.0 >= 2.0])
LIBUSB_PATH="/usr/lib"
AM_CXXFLAGS="-I/usr/include -lusb"
#AC_CHECK_LIB(libusb20, [LIBUSB_LIBS="-lusb20"])
AC_CONFIG_SRCDIR([src/garden.cpp])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.
AC_ARG_WITH([libserialport-include-path],
          [AS_HELP_STRING([--with-libserialport-include-path],
[location of the libserialport headers, defaults to /usr/local/include])],
          [A_CFLAGS="-I$withval"],
          [A_CFLAGS='-I/usr/local/include'])
AC_SUBST([A_CFLAGS])

AC_ARG_WITH([libserialport-lib-path],
[AS_HELP_STRING([--with-libserialport-lib-path], [location of the libserialport libraries, defaults to /usr/local/lib])],
          [LIBS="-L$withval"],
[LIBS='-lserialport -L/usr/lib -lusb'])###################################### added _l/usr/lib -lusb to this line#####################
AC_SUBST([LIBS])

# Checks for header files.
AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL

# Checks for library functions.

AC_CONFIG_FILES([Makefile
                 src/Makefile])
AC_OUTPUT



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to