GNU bug report logs - #12495
AC_CONFIG_HEADERS with

Previous Next

Package: automake;

Reported by: Hib Eris <hib <at> hiberis.nl>

Date: Sun, 23 Sep 2012 18:21:02 UTC

Severity: normal

Tags: patch

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Hib Eris <hib <at> hiberis.nl>
To: 12495 <at> debbugs.gnu.org
Subject: bug#12495: AC_CONFIG_HEADERS with
Date: Sun, 23 Sep 2012 17:57:39 +0200
[Message part 1 (text/plain, inline)]
Hi,

With AC_CONFIG_HEADERS(config.h subdir/myconfig.h) in configure.ac,
automake generates a target to build config.h.in with autoheader in
Makefile.in (as expected),
but it also generates a target in subdir/Makefile.in to build
subdir/myconfig.h.in which also runs autoheader.
This last target does not create subdir/myconfig.h as autoheader only
generates config.h, so this seems wrong.

I could not find much in the documentation of automake about what is
supposed to happen, but in the
source of  lib/am/remake-hdr.am I read:

## Only the first file of AC_CONFIG_HEADERS is assumed to be generated
## by autoheader.

So I understand that it is not the intention to have more then one
header file to trigger autoheader.
This only seems to happen when the second header file is in a subdir. With
AC_CONFIG_HEADERS(config.h myconfig.h) things work as expected, so I
guess this might be a bug that gets triggered only with header files
in subdirs.

I have attached a patch that fixes this problem for me.

Kind regards,

Hib Eris
[0001-Do-not-call-autoheader-with-header-files-in-subdirs.patch (application/octet-stream, attachment)]

This bug report was last modified 12 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.