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]

a question re: variable expansion


I hope it's ok to ask here, since i'm not sure if this is an autoconf or 
automake issue.

I have an AUTHORS file, and I pull it in in configure.in like this :

AUTHORS=`cat AUTHORS`

AC_DEFINE_UNQUOTED(AUTHORS, "$AUTHORS")
AC_SUBST(AUTHORS)


When AUTHORS is more than one line, of course this doesn't work, I get sed 
errors running configure.

My question is basically, what is the cleanest way to pull in the AUTHORS 
file and protect the newlines some way that later on the AUTHORS variable 
expands to a multiline where appropriate (for example, in a generated spec 
file) ?

Thomas

-- 

The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
<-*-                      -*->
We'll walk right up to the sun
hand in hand
<-*- thomas@apestaart.org -*->
URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/



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