diff mbox

[v3] Use AC_COMPUTE_INT for EOF, SEEK_CUR, etc.

Message ID 4C4F1AE4.9000405@oracle.com
State New
Headers show

Commit Message

Paolo Carlini July 27, 2010, 5:44 p.m. UTC
... as applied.

Paolo.

/////////////////
2010-07-27  Paolo Carlini  <paolo.carlini@oracle.com>

	* acinclude.m4 ([GLIBCXX_COMPUTE_STDIO_INTEGER_CONSTANTS]): Fix
	messages.
	* configure: Regenerate.

Comments

Paolo Bonzini July 27, 2010, 11:07 p.m. UTC | #1
On Tue, Jul 27, 2010 at 19:44, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> ... as applied.

Great, thanks!!

Paolo
diff mbox

Patch

Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 162577)
+++ acinclude.m4	(working copy)
@@ -1623,32 +1623,27 @@ 
 dnl
 AC_DEFUN([GLIBCXX_COMPUTE_STDIO_INTEGER_CONSTANTS], [
 
-  AC_MSG_CHECKING([For some <stdio.h> integer constants.])
-
-  AC_CACHE_VAL(glibcxx_cv_stdio_eof, [
+  AC_CACHE_CHECK([for the value of EOF], glibcxx_cv_stdio_eof, [
   AC_COMPUTE_INT([glibcxx_cv_stdio_eof], [[EOF]],
                  [#include <stdio.h>],
                  [AC_MSG_ERROR([computing EOF failed])])
   ])
-  AC_MSG_RESULT($glibcxx_cv_stdio_eof)
   AC_DEFINE_UNQUOTED(_GLIBCXX_STDIO_EOF, $glibcxx_cv_stdio_eof,
                      [Define to the value of the EOF integer constant.])
 
-  AC_CACHE_VAL(glibcxx_cv_stdio_seek_cur, [
+  AC_CACHE_CHECK([for the value of SEEK_CUR], glibcxx_cv_stdio_seek_cur, [
   AC_COMPUTE_INT([glibcxx_cv_stdio_seek_cur], [[SEEK_CUR]],
                  [#include <stdio.h>],
                  [AC_MSG_ERROR([computing SEEK_CUR failed])])
   ])
-  AC_MSG_RESULT($glibcxx_cv_stdio_seek_cur)
   AC_DEFINE_UNQUOTED(_GLIBCXX_STDIO_SEEK_CUR, $glibcxx_cv_stdio_seek_cur,
                      [Define to the value of the SEEK_CUR integer constant.])
 
-  AC_CACHE_VAL(glibcxx_cv_stdio_seek_end, [
+  AC_CACHE_CHECK([for the value of SEEK_END], glibcxx_cv_stdio_seek_end, [
   AC_COMPUTE_INT([glibcxx_cv_stdio_seek_end], [[SEEK_END]],
                  [#include <stdio.h>],
                  [AC_MSG_ERROR([computing SEEK_END failed])])
   ])
-  AC_MSG_RESULT($glibcxx_cv_stdio_seek_end)
   AC_DEFINE_UNQUOTED(_GLIBCXX_STDIO_SEEK_END, $glibcxx_cv_stdio_seek_end,
                      [Define to the value of the SEEK_END integer constant.])
 ])