annotate m4/include_next.m4 @ 400:573ed4940625 3.0-beta1 3.0-beta1

Fixed inclusion of documentation in make dist
author lost@l-w.ca
date Fri, 23 Jul 2010 17:32:29 -0600
parents 7987ee447833
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
1 # include_next.m4 serial 14
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
2 dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
6
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
7 dnl From Paul Eggert and Derek Price.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
8
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
9 dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
10 dnl
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
11 dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
12 dnl 'include' otherwise.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
13 dnl
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
14 dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
15 dnl supports it in the special case that it is the first include directive in
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
16 dnl the given file, or to 'include' otherwise.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
17 dnl
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
18 dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next,
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
19 dnl so as to avoid GCC warnings when the gcc option -pedantic is used.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
20 dnl '#pragma GCC system_header' has the same effect as if the file was found
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
21 dnl through the include search path specified with '-isystem' options (as
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
22 dnl opposed to the search path specified with '-I' options). Namely, gcc
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
23 dnl does not warn about some things, and on some systems (Solaris and Interix)
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
24 dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
25 dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
26 dnl of plain '__STDC__'.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
27
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
28 AC_DEFUN([gl_INCLUDE_NEXT],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
29 [
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
30 AC_LANG_PREPROC_REQUIRE()
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
31 AC_CACHE_CHECK([whether the preprocessor supports include_next],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
32 [gl_cv_have_include_next],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
33 [rm -rf conftestd1a conftestd1b conftestd2
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
34 mkdir conftestd1a conftestd1b conftestd2
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
35 dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
36 dnl AIX 6.1 support include_next when used as first preprocessor directive
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
37 dnl in a file, but not when preceded by another include directive. Check
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
38 dnl for this bug by including <stdio.h>.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
39 dnl Additionally, with this same compiler, include_next is a no-op when
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
40 dnl used in a header file that was included by specifying its absolute
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
41 dnl file name. Despite these two bugs, include_next is used in the
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
42 dnl compiler's <math.h>. By virtue of the second bug, we need to use
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
43 dnl include_next as well in this case.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
44 cat <<EOF > conftestd1a/conftest.h
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
45 #define DEFINED_IN_CONFTESTD1
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
46 #include_next <conftest.h>
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
47 #ifdef DEFINED_IN_CONFTESTD2
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
48 int foo;
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
49 #else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
50 #error "include_next doesn't work"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
51 #endif
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
52 EOF
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
53 cat <<EOF > conftestd1b/conftest.h
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
54 #define DEFINED_IN_CONFTESTD1
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
55 #include <stdio.h>
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
56 #include_next <conftest.h>
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
57 #ifdef DEFINED_IN_CONFTESTD2
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
58 int foo;
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
59 #else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
60 #error "include_next doesn't work"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
61 #endif
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
62 EOF
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
63 cat <<EOF > conftestd2/conftest.h
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
64 #ifndef DEFINED_IN_CONFTESTD1
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
65 #error "include_next test doesn't work"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
66 #endif
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
67 #define DEFINED_IN_CONFTESTD2
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
68 EOF
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
69 gl_save_CPPFLAGS="$CPPFLAGS"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
70 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
71 AC_COMPILE_IFELSE([#include <conftest.h>],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
72 [gl_cv_have_include_next=yes],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
73 [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
74 AC_COMPILE_IFELSE([#include <conftest.h>],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
75 [gl_cv_have_include_next=buggy],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
76 [gl_cv_have_include_next=no])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
77 ])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
78 CPPFLAGS="$gl_save_CPPFLAGS"
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
79 rm -rf conftestd1a conftestd1b conftestd2
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
80 ])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
81 PRAGMA_SYSTEM_HEADER=
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
82 if test $gl_cv_have_include_next = yes; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
83 INCLUDE_NEXT=include_next
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
84 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
85 if test -n "$GCC"; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
86 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
87 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
88 else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
89 if test $gl_cv_have_include_next = buggy; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
90 INCLUDE_NEXT=include
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
91 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
92 else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
93 INCLUDE_NEXT=include
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
94 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
95 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
96 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
97 AC_SUBST([INCLUDE_NEXT])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
98 AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
99 AC_SUBST([PRAGMA_SYSTEM_HEADER])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
100 ])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
101
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
102 # gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...)
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
103 # ------------------------------------------
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
104 # For each arg foo.h, if #include_next works, define NEXT_FOO_H to be
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
105 # '<foo.h>'; otherwise define it to be
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
106 # '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
107 # Also, if #include_next works as first preprocessing directive in a file,
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
108 # define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be '<foo.h>'; otherwise define it to
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
109 # be
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
110 # '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
111 # That way, a header file with the following line:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
112 # #@INCLUDE_NEXT@ @NEXT_FOO_H@
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
113 # or
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
114 # #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
115 # behaves (after sed substitution) as if it contained
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
116 # #include_next <foo.h>
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
117 # even if the compiler does not support include_next.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
118 # The three "///" are to pacify Sun C 5.8, which otherwise would say
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
119 # "warning: #include of /usr/include/... may be non-portable".
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
120 # Use `""', not `<>', so that the /// cannot be confused with a C99 comment.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
121 # Note: This macro assumes that the header file is not empty after
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
122 # preprocessing, i.e. it does not only define preprocessor macros but also
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
123 # provides some type/enum definitions or function/variable declarations.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
124 AC_DEFUN([gl_CHECK_NEXT_HEADERS],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
125 [
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
126 AC_REQUIRE([gl_INCLUDE_NEXT])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
127 AC_REQUIRE([AC_CANONICAL_HOST])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
128 AC_CHECK_HEADERS_ONCE([$1])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
129
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
130 m4_foreach_w([gl_HEADER_NAME], [$1],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
131 [AS_VAR_PUSHDEF([gl_next_header],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
132 [gl_cv_next_]m4_defn([gl_HEADER_NAME]))
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
133 if test $gl_cv_have_include_next = yes; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
134 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
135 else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
136 AC_CACHE_CHECK(
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
137 [absolute name of <]m4_defn([gl_HEADER_NAME])[>],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
138 m4_defn([gl_next_header]),
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
139 [AS_VAR_PUSHDEF([gl_header_exists],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
140 [ac_cv_header_]m4_defn([gl_HEADER_NAME]))
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
141 if test AS_VAR_GET(gl_header_exists) = yes; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
142 AC_LANG_CONFTEST(
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
143 [AC_LANG_SOURCE(
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
144 [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]]
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
145 )])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
146 dnl AIX "xlc -E" and "cc -E" omit #line directives for header files
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
147 dnl that contain only a #include of other header files and no
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
148 dnl non-comment tokens of their own. This leads to a failure to
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
149 dnl detect the absolute name of <dirent.h>, <signal.h>, <poll.h>
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
150 dnl and others. The workaround is to force preservation of comments
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
151 dnl through option -C. This ensures all necessary #line directives
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
152 dnl are present. GCC supports option -C as well.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
153 case "$host_os" in
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
154 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
155 *) gl_absname_cpp="$ac_cpp" ;;
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
156 esac
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
157 dnl eval is necessary to expand gl_absname_cpp.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
158 dnl Ultrix and Pyramid sh refuse to redirect output of eval,
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
159 dnl so use subshell.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
160 AS_VAR_SET([gl_next_header],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
161 ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
162 sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
163 s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1#
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
164 s#^/[^/]#//&#
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
165 p
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
166 q
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
167 }'`'"'])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
168 else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
169 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
170 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
171 AS_VAR_POPDEF([gl_header_exists])])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
172 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
173 AC_SUBST(
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
174 AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])),
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
175 [AS_VAR_GET([gl_next_header])])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
176 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
178 gl_next_as_first_directive='<'gl_HEADER_NAME'>'
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
179 else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
181 gl_next_as_first_directive=AS_VAR_GET([gl_next_header])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
182 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
183 AC_SUBST(
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
184 AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])),
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
185 [$gl_next_as_first_directive])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
186 AS_VAR_POPDEF([gl_next_header])])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
187 ])