* doc/autoconf.texi (autoconf Invocation): Explain `-W error'

gives back traces.
This commit is contained in:
Akim Demaille 2000-11-14 10:00:25 +00:00
parent edf0d70863
commit 774e64915e
4 changed files with 43 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2000-11-14 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (autoconf Invocation): Explain `-W error'
gives back traces.
2000-11-11 Pavel Roskin <proski@gnu.org>
* acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.

View File

@ -1012,9 +1012,42 @@ autoconf --warnings=syntax,$WARNINGS,@var{categories}
@noindent
If you want to disable @command{autoconf}'s defaults and @code{WARNING}
but enable the warnings about obsolete constructs, use @samp{-W
but enable the warnings about obsolete constructs, use @option{-W
none,obsolete}.
@cindex Back trace
@cindex Macro invocation stack
@command{autoconf} displays a back trace for errors, but not for
warnings; if you want them, just pass @option{-W error}. For instance
on this @file{configure.in}:
@example
AC_DEFUN([INNER],
[AC_TRY_RUN([true])])
AC_DEFUN([OUTTER],
[INNER])
AC_INIT
OUTTER
@end example
@noindent
you get:
@example
/tmp % ace -Wcross
configure.in:8: warning: AC_TRY_RUN called without default to allow \
cross compiling
/tmp % ace -Wcross,error
configure.in:8: error: AC_TRY_RUN called without default to allow \
cross compiling
acgeneral.m4:3044: AC_TRY_RUN is expanded from...
configure.in:2: INNER is expanded from...
configure.in:5: OUTTER is expanded from...
configure.in:8: the top level
@end example
@item --trace=@var{macro}[:@var{format}]
@itemx -t @var{macro}[:@var{format}]
Do not create the @code{configure} script, but list the calls to

View File

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
.TH AUTOSCAN "1" "October 2000" "GNU autoconf 2.49b" FSF
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH AUTOSCAN "1" "November 2000" "GNU autoconf 2.49b" FSF
.SH NAME
autoscan \- Generate a preliminary configure.in
.SH SYNOPSIS

View File

@ -83,7 +83,8 @@ CLEANFILES = debug-*.sh macro configure configure.in config.status
DISTCLEANFILES = atconfig testsuite
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES = atconfig
DIST_COMMON = README Makefile.am Makefile.in atconfig.in
DIST_COMMON = README Makefile.am Makefile.in atconfig.in configure \
configure.in
PACKAGE = @PACKAGE@