I have a package that does in configure.in

   GNOME_GEN_H_FILES=`cd $srcdir/src ; ls *.gen_h | xargs echo`
   AC_SUBST(GNOME_GEN_H_FILES)

and then a subdir Makefile.am has

  gnomemmc = wrap.cc $(GNOME_GEN_H_FILES:.gen_h=.cc) gnome--.cc
  libgnomemm_la_SOURCES = $(gnomemmc) [.....]

And automake complains that this isn't allowed. So far it's behaving as
documented. But if I change the above to

  gnomemm_gen_files = $(shell cd $(top_srcdir)/src; ls *.gen_h | xargs echo)
  gnomemmc = wrap.cc $(gnomemm_gen_files:.gen_h=.cc) gnome--.cc

Automake will accept this, allthough it's in the end the same substitution,
only this time not via configure.

Question now is, if this is an acceptable workaround or a case that
automake should detect and also flag as error.

Philipp

-- 
Philipp Thomas <[EMAIL PROTECTED]>
SuSE Linux AG, Deutscherrnstr. 15-19, D-90429 Nuremberg, Germany

Reply via email to