Here are my cleaned up configure.ac and Makefile.am files. Thanks for your help.

configure.ac:

#                                               -*- 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])
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 -lusr here ########################
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



Makefile.am

gardendir = /home/blm/garden/src
garden_DATA = ../data/state_table
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
cc=g++
bin_PROGRAMS = garden
garden_SOURCES = main.cpp garden.cpp
garden_CPPFLAGS = $(GTKMM_CFLAGS)
garden_CPPFLAGS += -std=c++11
garden_LDFLAGS = $(GTKMM_LIBS)
garden_CXXFLAGS = $(DEPS_CFLAGS)
garden_LDADD = $(DEPS_LIBS)

------------------------------------------------------------------------------
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