diff options
author | Bruno Haible <bruno@clisp.org> | 2008-10-18 01:41:46 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-10-18 01:41:46 +0200 |
commit | d4cf26ba74a9072ac6d68b43272077a9f52d22c4 (patch) | |
tree | 66adf084ecddf6806ff5cca9bd7ce104ba59ca23 /m4/include_next.m4 | |
parent | 916dbd2380c32ea05e01ee9328fdce73197fd691 (diff) | |
download | gnulib-d4cf26ba74a9072ac6d68b43272077a9f52d22c4.tar.gz |
Avoid gcc warnings because of #pragma GCC system_header on older gcc.
Diffstat (limited to 'm4/include_next.m4')
-rw-r--r-- | m4/include_next.m4 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/m4/include_next.m4 b/m4/include_next.m4 index b6e4d3ae7a..91ecbb0965 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 @@ -1,4 +1,4 @@ -# include_next.m4 serial 8 +# include_next.m4 serial 9 dnl Copyright (C) 2006-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,6 +6,8 @@ dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert and Derek Price. +AC_PREREQ([2.60]) + dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER. dnl dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to @@ -59,7 +61,10 @@ EOF if test $gl_cv_have_include_next = yes; then INCLUDE_NEXT=include_next if test -n "$GCC"; then - PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + dnl GCC 3.0 or newer supports #pragma GCC system_header. + PRAGMA_SYSTEM_HEADER='#if __GNUC__ >= 3 +#pragma GCC system_header +#endif' fi else INCLUDE_NEXT=include |