summaryrefslogtreecommitdiffstats
path: root/gl/m4/include_next.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/include_next.m4')
-rw-r--r--gl/m4/include_next.m421
1 files changed, 11 insertions, 10 deletions
diff --git a/gl/m4/include_next.m4 b/gl/m4/include_next.m4
index 062753c..d6101fe 100644
--- a/gl/m4/include_next.m4
+++ b/gl/m4/include_next.m4
@@ -1,5 +1,5 @@
1# include_next.m4 serial 10 1# include_next.m4 serial 12
2dnl Copyright (C) 2006-2008 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2009 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -32,14 +32,15 @@ AC_DEFUN([gl_INCLUDE_NEXT],
32 [gl_cv_have_include_next], 32 [gl_cv_have_include_next],
33 [rm -rf conftestd1a conftestd1b conftestd2 33 [rm -rf conftestd1a conftestd1b conftestd2
34 mkdir conftestd1a conftestd1b conftestd2 34 mkdir conftestd1a conftestd1b conftestd2
35 dnl The include of <stdio.h> is because IBM C 9.0 on AIX 6.1 supports 35 dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on
36 dnl include_next when used as first preprocessor directive in a file, 36 dnl AIX 6.1 support include_next when used as first preprocessor directive
37 dnl but not when preceded by another include directive. Additionally, 37 dnl in a file, but not when preceded by another include directive. Check
38 dnl with this same compiler, include_next is a no-op when used in a 38 dnl for this bug by including <stdio.h>.
39 dnl header file that was included by specifying its absolute file name. 39 dnl Additionally, with this same compiler, include_next is a no-op when
40 dnl Despite these two bugs, include_next is used in the compiler's 40 dnl used in a header file that was included by specifying its absolute
41 dnl <math.h>. By virtue of the second bug, we need to use include_next 41 dnl file name. Despite these two bugs, include_next is used in the
42 dnl as well in this case. 42 dnl compiler's <math.h>. By virtue of the second bug, we need to use
43 dnl include_next as well in this case.
43 cat <<EOF > conftestd1a/conftest.h 44 cat <<EOF > conftestd1a/conftest.h
44#define DEFINED_IN_CONFTESTD1 45#define DEFINED_IN_CONFTESTD1
45#include_next <conftest.h> 46#include_next <conftest.h>