Description of problem: When using subdir-objects, this sort of thing should work: AC_CHECK_FUNCS(getopt_long , , [ AC_LIBOBJ(src/getopt) AC_LIBOBJ(src/getopt1) ]) and in previous automake releases it did. With automake-1.9.5-1 it says those files do not exist (when they do). Version-Release number of selected component (if applicable): automake-1.9.5-1 How reproducible: 100% Steps to Reproduce: See attached tarball. 1. tar jxf foo-0.0.1.tar.bz2; cd foo-0.0.1 2. aclocal 3. automake Actual results: Makefile.am:4: required file `./src/getopt.c' not found Makefile.am:4: required file `./src/getopt1.c' not found Expected results: No errors.
Created attachment 115352 [details] foo-0.0.1.tar.bz2
FWIW, this was distilled from the patchutils package.
Tom, any idea how to fix this ? I've already tried AC_CONFIG_LIBOBJ_DIR([src]), but automake doesn't seem to use it. That's with automake-1.9.6-2.1, btw.
I'm afraid I don't really know. I haven't been actively involved in automake for quite a while. All I can really suggest is an upstream bug report, sorry :(
Automake 1.10 is out now. It supports AC_CONFIG_LIBOBJ_DIR. So now you should be able to write AC_INIT AC_CONFIG_LIBOBJ_DIR([src]) AM_INIT_AUTOMAKE([1.10 subdir-objects]) # ... AC_CHECK_FUNCS(getopt_long , , [ AC_LIBOBJ(getopt) AC_LIBOBJ(getopt1) ]) Hope that helps.
If there is only one libobj directory, then comment #5 shows the way. Current Autotools do not support more than one libobj directory; if that was what you needed, please discuss it upstream (lists bug-auto{make,conf} at gnu.org).