]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Improve config output for --enable-cstdio [PR104301]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 31 Jan 2022 11:00:18 +0000 (11:00 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 4 Apr 2022 11:45:28 +0000 (12:45 +0100)
Currently we just print "checking for underlying I/O to use... stdio"
unconditionally, whether configured to use stdio_pure or stdio_posix. We
should make it clear that the user's configure option chose the right
thing.

libstdc++-v3/ChangeLog:

PR libstdc++/104301
* acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Print different messages
for stdio_pure and stdio_posix options.
* configure: Regenerate.

(cherry picked from commit 19b8946dbda5fda4389ef8e3ea162c3df2b1998d)

libstdc++-v3/acinclude.m4
libstdc++-v3/configure

index 56405328844422f880b7f80bfb665b5ccebe2069..15c975ff86e51ac8ae854a424d08967a0c41699e 100644 (file)
@@ -2857,11 +2857,13 @@ AC_DEFUN([GLIBCXX_ENABLE_CSTDIO], [
       CSTDIO_H=config/io/c_io_stdio.h
       BASIC_FILE_H=config/io/basic_file_stdio.h
       BASIC_FILE_CC=config/io/basic_file_stdio.cc
-      AC_MSG_RESULT(stdio)
 
       if test "x$enable_cstdio" = "xstdio_pure" ; then
+       AC_MSG_RESULT([stdio (without POSIX read/write)])
        AC_DEFINE(_GLIBCXX_USE_STDIO_PURE, 1,
                  [Define to restrict std::__basic_file<> to stdio APIs.])
+      else
+       AC_MSG_RESULT([stdio (with POSIX read/write)])
       fi
       ;;
   esac
index acf20989c9ee01d3df67483fd71fa1a222de1f88..6c9125e39e4c41d9d9307d3e3efa03dc9d6664e5 100755 (executable)
       CSTDIO_H=config/io/c_io_stdio.h
       BASIC_FILE_H=config/io/basic_file_stdio.h
       BASIC_FILE_CC=config/io/basic_file_stdio.cc
-      { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio" >&5
-$as_echo "stdio" >&6; }
 
       if test "x$enable_cstdio" = "xstdio_pure" ; then
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (without POSIX read/write)" >&5
+$as_echo "stdio (without POSIX read/write)" >&6; }
 
 $as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h
 
+      else
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (with POSIX read/write)" >&5
+$as_echo "stdio (with POSIX read/write)" >&6; }
       fi
       ;;
   esac