Bug 160207 - Regression: AC_LIBOBJ and subdir-objects
Regression: AC_LIBOBJ and subdir-objects
Product: Fedora
Classification: Fedora
Component: automake (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-06-13 09:59 EDT by Tim Waugh
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-29 13:15:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
foo-0.0.1.tar.bz2 (57.14 KB, application/octet-stream)
2005-06-13 10:00 EDT, Tim Waugh
no flags Details

  None (edit)
Description Tim Waugh 2005-06-13 09:59:38 EDT
Description of problem:
When using subdir-objects, this sort of thing should work:

AC_CHECK_FUNCS(getopt_long , , [

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

How reproducible:

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.
Comment 1 Tim Waugh 2005-06-13 10:00:08 EDT
Created attachment 115352 [details]
Comment 2 Tim Waugh 2005-06-13 10:01:18 EDT
FWIW, this was distilled from the patchutils package.
Comment 3 Karsten Hopp 2006-08-02 09:00:03 EDT
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.
Comment 4 Tom Tromey 2006-08-03 13:29:38 EDT
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 :(
Comment 5 Ralf Wildenhues 2006-10-20 09:11:58 EDT
Automake 1.10 is out now.  It supports AC_CONFIG_LIBOBJ_DIR.  So now you should
be able to write

AM_INIT_AUTOMAKE([1.10 subdir-objects])
# ...
AC_CHECK_FUNCS(getopt_long , , [

Hope that helps.
Comment 6 Stepan Kasal 2007-10-29 13:15:32 EDT
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).

Note You need to log in before you can comment on or make changes to this bug.