[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting AC_CONFIG_SUBDIRS output before AC_OUTPUT

From: Rhys Ulerich
Subject: Getting AC_CONFIG_SUBDIRS output before AC_OUTPUT
Date: Fri, 10 Jan 2014 11:45:40 -0600

Hi all,

I've got an autoconfiscated project and two subprojects where I'd like
to use AC_CONFIG_SUBDIRS.  The subprojects configure scripts perform
some nontrivial checks, and dump their results into pkg-config files
sub1.pc and sub2.pc.  The usual,
wait-until-AC_OUTPUT-to-invoke-subconfigure behavior won't generate
sub1.pc from until well after I need to snarf those

I've done some reading on how Audacity tried doing this in the past
[1] but I'm unsure if a better pattern has arisen since then.  In
particular, I notice that the hack [2] discussed in [1] doesn't cause
autoreconf to run on the subdirectories.  This makes me think it is

I have tried issuing
well before AC_OUTPUT in my, which seems to solve the
autoreconf issue but it has the side-effect of configure being run
twice.  First when _AC_OUTPUT_SUBDIRS is run and second when AC_OUTPUT
is encountered.

Is there some way to tell AC_OUTPUT that _AC_OUTPUT_SUBDIRS has
already been run?  Possibly by redefining it to be empty?

I am way of manipulating $subdirs directly as [3] comments that
Makefiles can use $(subdirs).

The Audacity-related messages are quite old.  Has a better pattern for
accomplishing this arisen in the meantime?

- Rhys


reply via email to

[Prev in Thread] Current Thread [Next in Thread]