automake
[Top][All Lists]
Advanced

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

Re: AC_CONFIG_FILES problem


From: Raja R Harinath
Subject: Re: AC_CONFIG_FILES problem
Date: 08 Nov 2000 00:29:11 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Harlan Stenn <address@hidden> writes:
> I'm generating a site-local file during configure that I use in
> AC_CONFIG_FILES.
> 
> The filename is in the $GUTS variable, and I create the target via:
> 
>  GUTS=$build_cpu-localname
>  echo stuff > $GUTS
>  AC_CONFIG_FILES([foo:foo-top.in:$GUTS:foo-bot.in])

Would AC_SUBST_FILE be more appropriate?  Do you have any @...@
substitutions in $GUTS that can't be done otherwise.
 
> Also, automake detects:
> 
>  address@hidden> gmake
>  cd . && /bin/sh /home/harlan/src/foo/missing --run automake --foreign 
> Makefile
>  configure.in: 74: required file `./$GUTS' not found
> 
> What's a good way to solve this problem?

Well, the AC_CONFIG_FILES are the set of files that automake
automatically generates config.status rules for.  If you can stand
writing Makefile.am rules instead, you can remove the $GUTS config
file from AC_CONFIG_FILES and use:

  EXTRA_DIST += foo-top.in foo-bot.in
  foo: $(srcdir)/foo-top.in $(GUTS) $(srcdir)/foo-bot.in config.status
        CONFIG_HEADERS= CONFIG_FILES=foo:foo-top.in:$(GUTS):foo-bot.in \
        $SHELL ./config.status

or a more readable command with a beta autoconf (2.49a):

  $SHELL ./config.status --file=foo:foo-top.in:$(GUTS):foo-bot.in

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



reply via email to

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