Hi folks, apologies if I have missed something obvious, but I don't seem to understand how one should use AC_LIBOBJ?
I have taken the AC_FUNC_SNPRINTF macro from the ac-archive and put it in acsite.m4. This macro calls AC_LIBOBJ(snprintf) if the system's snprintf is missing or broken. In my project's src directory I have snprintf.c which I want to compile if it is needed. So, what do I need to put into the src/Makefile.am? I thought I just needed: lib_LTLIBRARIES = libfoo.la libfoo_la_SOURCES = foo.c foo.h foo_error.h foo_types.h foo_common.h include_HEADERS = foo.h foo_error.h foo_types.h foo_common.h libfoo_la_LIBADD = @LTLIBOBJS@ noinst_PROGRAMS = test test_debug test_SOURCES = test.c test_LDADD = libfoo.la @LIBOBJS@ # An easier-to-debug version of test test_debug_SOURCES = test.c test_debug_LDADD = libfoo.la @LIBOBJS@ test_debug_LDFLAGS = -static But when I do "autoconf && automake" I get: src/Makefile.am:9: @LTLIBOBJS@ seen but never set in `configure.in' src/Makefile.am:13: @LIBOBJS@ seen but never set in `configure.in' src/Makefile.am:18: @LIBOBJS@ seen but never set in `configure.in' What am I missing?