]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autoconf: clarify "checking" message for GNU-compatible compiliers
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Sep 2014 16:25:08 +0000 (09:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Sep 2014 16:25:51 +0000 (09:25 -0700)
Problem reported by Bastien Chevreux in:
http://lists.gnu.org/archive/html/autoconf/2014-09/msg00022.html
and idea for fix by Eric Blake in:
http://lists.gnu.org/archive/html/autoconf/2014-09/msg00025.html
* doc/autoconf.texi (Running the Preprocessor)
(Present But Cannot Be Compiled):
Adjust examples to match current behavior.
* lib/autoconf/lang.m4 (_AC_LANG_COMPILER_GNU): Say
"checking whether the compiler supports GNU C", not
"checking whether we are using the GNU C compiler".

doc/autoconf.texi
lib/autoconf/lang.m4

index 83e664314803d6f34ad2a348a1b8632c47965124..ebb0a01339fad2bde760be658c3c2b74a82f61ad 100644 (file)
@@ -9261,7 +9261,7 @@ checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
-checking whether we are using the GNU C compiler... yes
+checking whether the compiler supports GNU C... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to enable C11 features... -std=gnu11
 checking how to run the C preprocessor... gcc -std=gnu11 -E
@@ -25976,32 +25976,15 @@ checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
-checking whether we are using the GNU C compiler... yes
+checking whether the compiler supports GNU C... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to enable C11 features... -std=gnu11
-checking how to run the C preprocessor... gcc -std=gnu11 -E
-checking for grep that handles long lines and -e... /usr/bin/grep
-checking for egrep... /usr/bin/grep -E
-checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
-checking for stdlib.h... yes
-checking for string.h... yes
-checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
-checking pi.h usability... no
-checking pi.h presence... yes
-configure: WARNING: pi.h: present but cannot be compiled
-configure: WARNING: pi.h:     check for missing prerequisite headers?
-configure: WARNING: pi.h: see the Autoconf documentation
-configure: WARNING: pi.h:     section "Present But Cannot Be Compiled"
-configure: WARNING: pi.h: proceeding with the compiler's result
-configure: WARNING:     ## --------------------------------------- ##
-configure: WARNING:     ## Report this to bug-example@@example.org ##
-configure: WARNING:     ## --------------------------------------- ##
 checking for pi.h... no
 @end smallexample
 
@@ -26025,7 +26008,7 @@ checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
-checking whether we are using the GNU C compiler... yes
+checking whether the compiler supports GNU C... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to enable C11 features... -std=gnu11
 checking for number.h... yes
index 434a0e9aa1a5f69142d06750a3f0204f62722a40..318f621e8f286f39e6ff2c9e2d30ce1a3b29ec39 100644 (file)
@@ -343,7 +343,7 @@ AC_DEFUN([AC_LANG_COMPILER_REQUIRE],
 # some Fortran compilers (e.g., SGI) might consider it's a
 # continuation line, and warn instead of reporting an error.
 m4_define([_AC_LANG_COMPILER_GNU],
-[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
+[AC_CACHE_CHECK([whether the compiler supports GNU _AC_LANG],
                [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
 [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
        choke me