This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question about AC_CONFIG_FILES



Dear all,
I have a c++ "template" main program. I mean by this that the skeleton of
the program is the same but different class can be used. What I would like
to do is from the main.cpp.in template program where a variable class_name
is used for example as
int main
{
@class_name@ simulator;
...
}
to be able to replace the @class_name@ using AC_CONFIG_FILES.
I was thinking to write in the configure.in something like
class_name="class1"
AC_CONFIG_FILES(class1.cpp)
class_name="class2"
AC_CONFIG_FILES(class2.cpp)
and so on...
The problem is that AC_CONFIG_FILES will look for a class1.cpp.in,
class2.cpp.in while I would like it to always look for the default
main.cpp.in.
Any idea of how to do that?
Sincerely
Patrick

======================================================================
				  Patrick Guio
		    Institute of Physics, University of Oslo
		      P.O. box 1048, Blindern, N-0316 Oslo
	       Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
			E-mail : patrick.guio@fys.uio.no
		  URL : http://folk.uio.no/~patricg



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]