[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #107986] autoconf should reject or specifically warn about obviously
From: |
David A. Wheeler |
Subject: |
[sr #107986] autoconf should reject or specifically warn about obviously wrong configure.ac files |
Date: |
Sun, 18 Mar 2012 18:48:07 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0 |
Follow-up Comment #2, sr #107986 (project autoconf):
Okay, I have developed a git format-patch (attached) to detect a failure to
use AC_INIT. With this patch, if "autoconf" is invoked using an empty
"configure.ac" (for example), it correctly fails and reports:
autoconf: error: Failed to use AC_INIT in the input file configure.ac.
HOWEVER, autoreconf seems to ignore and hide ALL errors returned by autoconf,
including this one, so "autoreconf -i" doesn't error out as I expected. That
behavior seems fundamentally wrong. Is that the *expected* behavior? Or am I
missing something obvious?
This doesn't do everything I suggested, but it's a first step and useful. I
think it's better to do this sort of thing incrementally, so here is an
increment.
(file #25396)
_______________________________________________________
Additional Item Attachment:
File name: 0001-autoconf-Fail-if-AC_INIT-not-used.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?107986>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/