[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Avoid poor request for a header bug report when using old AC_INIT
From: |
Noah Misch |
Subject: |
Avoid poor request for a header bug report when using old AC_INIT |
Date: |
Mon, 3 Apr 2006 10:23:54 -0700 |
User-agent: |
Mutt/1.5.6i |
If a package uses the zero- or one-argument form of AC_INIT, the warning for
present-but-not-usable headers looks like this:
configure: WARNING: foo.h: present but cannot be compiled
configure: WARNING: foo.h: check for missing prerequisite headers?
configure: WARNING: foo.h: see the Autoconf documentation
configure: WARNING: foo.h: section "Present But Cannot Be Compiled"
configure: WARNING: foo.h: proceeding with the preprocessor's result
configure: WARNING: foo.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
(With the rare two-argument form of AC_INIT, one would see the package name
above.)
This patch makes `configure' omit the report request when we have no
bug report address to provide. Ok?
2006-04-03 Noah Misch <address@hidden>
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
report request when we have no AC_PACKAGE_BUGREPORT.
diff -urp -X dontdiff ac-clean/lib/autoconf/headers.m4
ac-oldinit_headers/lib/autoconf/headers.m4
--- ac-clean/lib/autoconf/headers.m4 2006-04-03 09:53:04.000000000 -0400
+++ ac-oldinit_headers/lib/autoconf/headers.m4 2006-04-03 12:29:48.000000000
-0400
@@ -135,12 +135,9 @@ case $ac_header_compiler:$ac_header_prep
AC_MSG_WARN([$1: section "Present But Cannot Be Compiled"])
AC_MSG_WARN([$1: proceeding with the preprocessor's result])
AC_MSG_WARN([$1: in the future, the compiler will take precedence])
- (
- AS_BOX([Report this to ]m4_ifset([AC_PACKAGE_BUGREPORT],
- [AC_PACKAGE_BUGREPORT],
- [the AC_PACKAGE_NAME lists. ]))
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
+ m4_ifset([AC_PACKAGE_BUGREPORT],
+ [( AS_BOX([Report this to ]AC_PACKAGE_BUGREPORT)
+ ) | sed "s/^/$as_me: WARNING: /" >&2])
;;
esac
AC_CACHE_CHECK([for $1], ac_Header,
- Avoid poor request for a header bug report when using old AC_INIT,
Noah Misch <=