I have a C++ project and I'm trying to figure out how to get autotools to include the -lboost_unit_test_framework
flag dynamically during the build process. If I add it and compile manually using g++
it builds, it's just missing the flag when setting up the makefiles using autotools.
Also, when running ./configure
it returns:./configure: line 3113: AX_BOOST_UNIT_TEST_FRAMEWORK: command not found
My configure.ac:
AC_PREREQ([2.69])
AC_INIT([project], [0.1.0], [[email protected]])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
AX_BOOST_UNIT_TEST_FRAMEWORK
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile
test/Makefile])
AC_OUTPUT