automake-patches
[Top][All Lists]
Advanced

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

Re: Internal Error with 1.10, unterminated IF


From: Jason Curl
Subject: Re: Internal Error with 1.10, unterminated IF
Date: Fri, 10 Aug 2007 20:11:07 +0200
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Ralf Wildenhues wrote:
Hello Jason,

* Jason Curl wrote on Mon, Jul 30, 2007 at 04:06:44PM CEST:
Makefile.am
  FILES = dir1 dir2
  if BUILD_DIR3
  FILES += dir3
  fi
  SUBDIRS = $(FILES)

Then you get an error output like:
Makefile.am:19: unterminated conditionals: BUILD_DIR3_TRUE
automake-1.10: ####################
automake-1.10: ## Internal Error ##
automake-1.10: ####################
[...]

Do you think it would be more helpful if the error were like this?
| Makefile.am:4: conditional terminated with `endif' instead of `fi'

OK to apply the patch below to this end (and add Jason to THANKS)?
Looking at the patch, I can see why you've added 'fi' as a check. But does the problem remain when an 'if' is unterminated automake would still report an error? I just didn't think it was necessary to explicitly deal with "fi" except for those who get confused between sh and automake :).

But given GCC diagnostics for unterminated if's, it might be a real nightmare to do anything other than what Ralf has graciously implemented.
Cheers, and thanks,
Ralf




reply via email to

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