autoconf
[Top][All Lists]
Advanced

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

Re: Newbee : back to square (problem) one


From: Ralf Wildenhues
Subject: Re: Newbee : back to square (problem) one
Date: Thu, 14 Sep 2006 16:45:38 +0200
User-agent: Mutt/1.5.13 (2006-09-01)

* Karl Schmitt wrote on Thu, Sep 14, 2006 at 04:37:53PM CEST:
> 
> it was actually me who added that nasty "dnl" :-(
> I did as you told and got the next or prior problem
> which was the reason why I added that nasty "dnl"

Why didn't you say so right away?

> address@hidden:/vobs/old_cvs_stuff7> aclocal
> configure.in:618: error: `src/plandisp/Makefile' is already registered 
> with AC_CONFIG_FILES.

Yes, because the file is listed twice, just a few lines away.  Just
remove the line completely, so that the file is listed only once.


In case you're interested in the reason behind the failure with dnl:
The AC_OUTPUT macro makes m4 look at its arguments in order.  And you
quote the argument list once.  Like so:
  AC_OUTPUT([file1
  file2
  file3
  ...
  ])

If you wanted to correctly comment out a line here, so that m4 would not
see the 'dnl' in the list at all, you would have to write something like
this:
  AC_OUTPUT([file1
  file2
  ]dnl file3
  [file4
  ...
  ])

Hope that helps.

Cheers,
Ralf




reply via email to

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