diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-01-25 10:32:39 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-01-26 10:55:16 -0800 |
| commit | 5819a7cdcf44f0277c538353672fb27701c764f9 (patch) | |
| tree | 7d450323b81fc7119af77128b5d13970ac052b5e /acinclude.m4 | |
| parent | 1fa5a1050f4e148575d418bf16343a39357ada39 (diff) | |
| download | openvswitch-5819a7cdcf44f0277c538353672fb27701c764f9.tar.gz | |
configure: Silence check for broken strtok_r().
The check for strtok_r() prints a line of text on stdout as part of its
run. This is noticeable when running "configure", especially with -q.
This commit fixes it.
(The apparent alternative of not printing anything at all seems like a bad
idea because this might encourage the compiler to completely optimize
everything out of main().)
Diffstat (limited to 'acinclude.m4')
| -rw-r--r-- | acinclude.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e074c7d47..a254c2328 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,6 +1,6 @@ # -*- autoconf -*- -# Copyright (c) 2008, 2009 Nicira Networks. +# Copyright (c) 2008, 2009, 2010 Nicira Networks. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -191,6 +191,7 @@ AC_DEFUN([OVS_CHECK_STRTOK_R], char *token1, *token2; token1 = strtok_r(string, ":", &save_ptr); token2 = strtok_r(NULL, ":", &save_ptr); + freopen ("/dev/null", "w", stdout); printf ("%s %s\n", token1, token2); return 0; ]])], |
