Mercurial > hg > CbC > CbC_gcc
comparison libatomic/aclocal.m4 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.15.1 -*- Autoconf -*- |
2 | 2 |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 # Copyright (C) 1996-2017 Free Software Foundation, Inc. |
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, | 4 |
5 # Inc. | |
6 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
7 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
8 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
9 | 8 |
10 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
13 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
14 | 13 |
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
15 m4_ifndef([AC_AUTOCONF_VERSION], | 15 m4_ifndef([AC_AUTOCONF_VERSION], |
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],, | 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
18 [m4_warning([this file was generated for autoconf 2.64. | 18 [m4_warning([this file was generated for autoconf 2.69. |
19 You have another version of autoconf. It may work, but is not guaranteed to. | 19 You have another version of autoconf. It may work, but is not guaranteed to. |
20 If you have problems, you may need to regenerate the build system entirely. | 20 If you have problems, you may need to regenerate the build system entirely. |
21 To do so, use the procedure documented by the package, typically `autoreconf'.])]) | 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
22 | 22 |
23 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software | 23 # Copyright (C) 2002-2017 Free Software Foundation, Inc. |
24 # Foundation, Inc. | 24 # |
25 # | 25 # This file is free software; the Free Software Foundation |
26 # This file is free software; the Free Software Foundation | 26 # gives unlimited permission to copy and/or distribute it, |
27 # gives unlimited permission to copy and/or distribute it, | 27 # with or without modifications, as long as this notice is preserved. |
28 # with or without modifications, as long as this notice is preserved. | |
29 | |
30 # serial 1 | |
31 | 28 |
32 # AM_AUTOMAKE_VERSION(VERSION) | 29 # AM_AUTOMAKE_VERSION(VERSION) |
33 # ---------------------------- | 30 # ---------------------------- |
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been | 31 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
35 # generated from the m4 files accompanying Automake X.Y. | 32 # generated from the m4 files accompanying Automake X.Y. |
36 # (This private macro should not be called outside this file.) | 33 # (This private macro should not be called outside this file.) |
37 AC_DEFUN([AM_AUTOMAKE_VERSION], | 34 AC_DEFUN([AM_AUTOMAKE_VERSION], |
38 [am__api_version='1.11' | 35 [am__api_version='1.15' |
39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | 36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
40 dnl require some minimum version. Point them to the right macro. | 37 dnl require some minimum version. Point them to the right macro. |
41 m4_if([$1], [1.11.6], [], | 38 m4_if([$1], [1.15.1], [], |
42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
43 ]) | 40 ]) |
44 | 41 |
45 # _AM_AUTOCONF_VERSION(VERSION) | 42 # _AM_AUTOCONF_VERSION(VERSION) |
46 # ----------------------------- | 43 # ----------------------------- |
52 # AM_SET_CURRENT_AUTOMAKE_VERSION | 49 # AM_SET_CURRENT_AUTOMAKE_VERSION |
53 # ------------------------------- | 50 # ------------------------------- |
54 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | 51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | 52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
57 [AM_AUTOMAKE_VERSION([1.11.6])dnl | 54 [AM_AUTOMAKE_VERSION([1.15.1])dnl |
58 m4_ifndef([AC_AUTOCONF_VERSION], | 55 m4_ifndef([AC_AUTOCONF_VERSION], |
59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
60 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | 57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
61 | 58 |
62 # Figure out how to run the assembler. -*- Autoconf -*- | 59 # Figure out how to run the assembler. -*- Autoconf -*- |
63 | 60 |
64 # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 61 # Copyright (C) 2001-2017 Free Software Foundation, Inc. |
65 # | 62 # |
66 # This file is free software; the Free Software Foundation | 63 # This file is free software; the Free Software Foundation |
67 # gives unlimited permission to copy and/or distribute it, | 64 # gives unlimited permission to copy and/or distribute it, |
68 # with or without modifications, as long as this notice is preserved. | 65 # with or without modifications, as long as this notice is preserved. |
69 | |
70 # serial 5 | |
71 | 66 |
72 # AM_PROG_AS | 67 # AM_PROG_AS |
73 # ---------- | 68 # ---------- |
74 AC_DEFUN([AM_PROG_AS], | 69 AC_DEFUN([AM_PROG_AS], |
75 [# By default we simply use the C compiler to build assembly code. | 70 [# By default we simply use the C compiler to build assembly code. |
81 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl | 76 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl |
82 ]) | 77 ]) |
83 | 78 |
84 # AM_AUX_DIR_EXPAND -*- Autoconf -*- | 79 # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
85 | 80 |
86 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | 81 # Copyright (C) 2001-2017 Free Software Foundation, Inc. |
87 # | 82 # |
88 # This file is free software; the Free Software Foundation | 83 # This file is free software; the Free Software Foundation |
89 # gives unlimited permission to copy and/or distribute it, | 84 # gives unlimited permission to copy and/or distribute it, |
90 # with or without modifications, as long as this notice is preserved. | 85 # with or without modifications, as long as this notice is preserved. |
91 | |
92 # serial 1 | |
93 | 86 |
94 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | 87 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
95 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | 88 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
96 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | 89 # '$srcdir', '$srcdir/..', or '$srcdir/../..'. |
97 # | 90 # |
98 # Of course, Automake must honor this variable whenever it calls a | 91 # Of course, Automake must honor this variable whenever it calls a |
99 # tool from the auxiliary directory. The problem is that $srcdir (and | 92 # tool from the auxiliary directory. The problem is that $srcdir (and |
100 # therefore $ac_aux_dir as well) can be either absolute or relative, | 93 # therefore $ac_aux_dir as well) can be either absolute or relative, |
101 # depending on how configure is run. This is pretty annoying, since | 94 # depending on how configure is run. This is pretty annoying, since |
110 # fails when called from a subdirectory in a VPATH build with | 103 # fails when called from a subdirectory in a VPATH build with |
111 # a relative $ac_aux_dir | 104 # a relative $ac_aux_dir |
112 # | 105 # |
113 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | 106 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
114 # are both prefixed by $srcdir. In an in-source build this is usually | 107 # are both prefixed by $srcdir. In an in-source build this is usually |
115 # harmless because $srcdir is `.', but things will broke when you | 108 # harmless because $srcdir is '.', but things will broke when you |
116 # start a VPATH build or use an absolute $srcdir. | 109 # start a VPATH build or use an absolute $srcdir. |
117 # | 110 # |
118 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | 111 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
119 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | 112 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
120 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | 113 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
128 # Another solution, used here, is to always expand $ac_aux_dir to an | 121 # Another solution, used here, is to always expand $ac_aux_dir to an |
129 # absolute PATH. The drawback is that using absolute paths prevent a | 122 # absolute PATH. The drawback is that using absolute paths prevent a |
130 # configured tree to be moved without reconfiguration. | 123 # configured tree to be moved without reconfiguration. |
131 | 124 |
132 AC_DEFUN([AM_AUX_DIR_EXPAND], | 125 AC_DEFUN([AM_AUX_DIR_EXPAND], |
133 [dnl Rely on autoconf to set up CDPATH properly. | 126 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
134 AC_PREREQ([2.50])dnl | 127 # Expand $ac_aux_dir to an absolute path. |
135 # expand $ac_aux_dir to an absolute path | 128 am_aux_dir=`cd "$ac_aux_dir" && pwd` |
136 am_aux_dir=`cd $ac_aux_dir && pwd` | |
137 ]) | 129 ]) |
138 | 130 |
139 # AM_CONDITIONAL -*- Autoconf -*- | 131 # AM_CONDITIONAL -*- Autoconf -*- |
140 | 132 |
141 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | 133 # Copyright (C) 1997-2017 Free Software Foundation, Inc. |
142 # Free Software Foundation, Inc. | 134 # |
143 # | 135 # This file is free software; the Free Software Foundation |
144 # This file is free software; the Free Software Foundation | 136 # gives unlimited permission to copy and/or distribute it, |
145 # gives unlimited permission to copy and/or distribute it, | 137 # with or without modifications, as long as this notice is preserved. |
146 # with or without modifications, as long as this notice is preserved. | |
147 | |
148 # serial 9 | |
149 | 138 |
150 # AM_CONDITIONAL(NAME, SHELL-CONDITION) | 139 # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
151 # ------------------------------------- | 140 # ------------------------------------- |
152 # Define a conditional. | 141 # Define a conditional. |
153 AC_DEFUN([AM_CONDITIONAL], | 142 AC_DEFUN([AM_CONDITIONAL], |
154 [AC_PREREQ(2.52)dnl | 143 [AC_PREREQ([2.52])dnl |
155 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | 144 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
156 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | 145 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
157 AC_SUBST([$1_TRUE])dnl | 146 AC_SUBST([$1_TRUE])dnl |
158 AC_SUBST([$1_FALSE])dnl | 147 AC_SUBST([$1_FALSE])dnl |
159 _AM_SUBST_NOTMAKE([$1_TRUE])dnl | 148 _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
160 _AM_SUBST_NOTMAKE([$1_FALSE])dnl | 149 _AM_SUBST_NOTMAKE([$1_FALSE])dnl |
161 m4_define([_AM_COND_VALUE_$1], [$2])dnl | 150 m4_define([_AM_COND_VALUE_$1], [$2])dnl |
170 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | 159 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
171 AC_MSG_ERROR([[conditional "$1" was never defined. | 160 AC_MSG_ERROR([[conditional "$1" was never defined. |
172 Usually this means the macro was only invoked conditionally.]]) | 161 Usually this means the macro was only invoked conditionally.]]) |
173 fi])]) | 162 fi])]) |
174 | 163 |
175 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, | 164 # Copyright (C) 1999-2017 Free Software Foundation, Inc. |
176 # 2010, 2011 Free Software Foundation, Inc. | 165 # |
177 # | 166 # This file is free software; the Free Software Foundation |
178 # This file is free software; the Free Software Foundation | 167 # gives unlimited permission to copy and/or distribute it, |
179 # gives unlimited permission to copy and/or distribute it, | 168 # with or without modifications, as long as this notice is preserved. |
180 # with or without modifications, as long as this notice is preserved. | 169 |
181 | 170 |
182 # serial 12 | 171 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
183 | |
184 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
185 # written in clear, in which case automake, when reading aclocal.m4, | 172 # written in clear, in which case automake, when reading aclocal.m4, |
186 # will think it sees a *use*, and therefore will trigger all it's | 173 # will think it sees a *use*, and therefore will trigger all it's |
187 # C support machinery. Also note that it means that autoscan, seeing | 174 # C support machinery. Also note that it means that autoscan, seeing |
188 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | 175 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
189 | 176 |
190 | 177 |
191 # _AM_DEPENDENCIES(NAME) | 178 # _AM_DEPENDENCIES(NAME) |
192 # ---------------------- | 179 # ---------------------- |
193 # See how the compiler implements dependency checking. | 180 # See how the compiler implements dependency checking. |
194 # NAME is "CC", "CXX", "GCJ", or "OBJC". | 181 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". |
195 # We try a few techniques and use that to set a single cache variable. | 182 # We try a few techniques and use that to set a single cache variable. |
196 # | 183 # |
197 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | 184 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
198 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | 185 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
199 # dependency, and given that the user is not expected to run this macro, | 186 # dependency, and given that the user is not expected to run this macro, |
202 [AC_REQUIRE([AM_SET_DEPDIR])dnl | 189 [AC_REQUIRE([AM_SET_DEPDIR])dnl |
203 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | 190 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
204 AC_REQUIRE([AM_MAKE_INCLUDE])dnl | 191 AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
205 AC_REQUIRE([AM_DEP_TRACK])dnl | 192 AC_REQUIRE([AM_DEP_TRACK])dnl |
206 | 193 |
207 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | 194 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], |
208 [$1], CXX, [depcc="$CXX" am_compiler_list=], | 195 [$1], [CXX], [depcc="$CXX" am_compiler_list=], |
209 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | 196 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
210 [$1], UPC, [depcc="$UPC" am_compiler_list=], | 197 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], |
211 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | 198 [$1], [UPC], [depcc="$UPC" am_compiler_list=], |
212 [depcc="$$1" am_compiler_list=]) | 199 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
200 [depcc="$$1" am_compiler_list=]) | |
213 | 201 |
214 AC_CACHE_CHECK([dependency style of $depcc], | 202 AC_CACHE_CHECK([dependency style of $depcc], |
215 [am_cv_$1_dependencies_compiler_type], | 203 [am_cv_$1_dependencies_compiler_type], |
216 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 204 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
217 # We make a subdir and do the tests there. Otherwise we can end up | 205 # We make a subdir and do the tests there. Otherwise we can end up |
218 # making bogus files that we don't know about and never remove. For | 206 # making bogus files that we don't know about and never remove. For |
219 # instance it was reported that on HP-UX the gcc test will end up | 207 # instance it was reported that on HP-UX the gcc test will end up |
220 # making a dummy file named `D' -- because `-MD' means `put the output | 208 # making a dummy file named 'D' -- because '-MD' means "put the output |
221 # in D'. | 209 # in D". |
222 rm -rf conftest.dir | 210 rm -rf conftest.dir |
223 mkdir conftest.dir | 211 mkdir conftest.dir |
224 # Copy depcomp to subdir because otherwise we won't find it if we're | 212 # Copy depcomp to subdir because otherwise we won't find it if we're |
225 # using a relative directory. | 213 # using a relative directory. |
226 cp "$am_depcomp" conftest.dir | 214 cp "$am_depcomp" conftest.dir |
256 # overwrite some of them when testing with obscure command lines. | 244 # overwrite some of them when testing with obscure command lines. |
257 # This happens at least with the AIX C compiler. | 245 # This happens at least with the AIX C compiler. |
258 : > sub/conftest.c | 246 : > sub/conftest.c |
259 for i in 1 2 3 4 5 6; do | 247 for i in 1 2 3 4 5 6; do |
260 echo '#include "conftst'$i'.h"' >> sub/conftest.c | 248 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
261 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
262 # Solaris 8's {/usr,}/bin/sh. | 250 # Solaris 10 /bin/sh. |
263 touch sub/conftst$i.h | 251 echo '/* dummy */' > sub/conftst$i.h |
264 done | 252 done |
265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
266 | 254 |
267 # We check with `-c' and `-o' for the sake of the "dashmstdout" | 255 # We check with '-c' and '-o' for the sake of the "dashmstdout" |
268 # mode. It turns out that the SunPro C++ compiler does not properly | 256 # mode. It turns out that the SunPro C++ compiler does not properly |
269 # handle `-M -o', and we need to detect this. Also, some Intel | 257 # handle '-M -o', and we need to detect this. Also, some Intel |
270 # versions had trouble with output in subdirs | 258 # versions had trouble with output in subdirs. |
271 am__obj=sub/conftest.${OBJEXT-o} | 259 am__obj=sub/conftest.${OBJEXT-o} |
272 am__minus_obj="-o $am__obj" | 260 am__minus_obj="-o $am__obj" |
273 case $depmode in | 261 case $depmode in |
274 gcc) | 262 gcc) |
275 # This depmode causes a compiler race in universal mode. | 263 # This depmode causes a compiler race in universal mode. |
276 test "$am__universal" = false || continue | 264 test "$am__universal" = false || continue |
277 ;; | 265 ;; |
278 nosideeffect) | 266 nosideeffect) |
279 # after this tag, mechanisms are not by side-effect, so they'll | 267 # After this tag, mechanisms are not by side-effect, so they'll |
280 # only be used when explicitly requested | 268 # only be used when explicitly requested. |
281 if test "x$enable_dependency_tracking" = xyes; then | 269 if test "x$enable_dependency_tracking" = xyes; then |
282 continue | 270 continue |
283 else | 271 else |
284 break | 272 break |
285 fi | 273 fi |
286 ;; | 274 ;; |
287 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | 275 msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
288 # This compiler won't grok `-c -o', but also, the minuso test has | 276 # This compiler won't grok '-c -o', but also, the minuso test has |
289 # not run yet. These depmodes are late enough in the game, and | 277 # not run yet. These depmodes are late enough in the game, and |
290 # so weak that their functioning should not be impacted. | 278 # so weak that their functioning should not be impacted. |
291 am__obj=conftest.${OBJEXT-o} | 279 am__obj=conftest.${OBJEXT-o} |
292 am__minus_obj= | 280 am__minus_obj= |
293 ;; | 281 ;; |
331 | 319 |
332 | 320 |
333 # AM_SET_DEPDIR | 321 # AM_SET_DEPDIR |
334 # ------------- | 322 # ------------- |
335 # Choose a directory name for dependency files. | 323 # Choose a directory name for dependency files. |
336 # This macro is AC_REQUIREd in _AM_DEPENDENCIES | 324 # This macro is AC_REQUIREd in _AM_DEPENDENCIES. |
337 AC_DEFUN([AM_SET_DEPDIR], | 325 AC_DEFUN([AM_SET_DEPDIR], |
338 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | 326 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
339 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | 327 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
340 ]) | 328 ]) |
341 | 329 |
342 | 330 |
343 # AM_DEP_TRACK | 331 # AM_DEP_TRACK |
344 # ------------ | 332 # ------------ |
345 AC_DEFUN([AM_DEP_TRACK], | 333 AC_DEFUN([AM_DEP_TRACK], |
346 [AC_ARG_ENABLE(dependency-tracking, | 334 [AC_ARG_ENABLE([dependency-tracking], [dnl |
347 [ --disable-dependency-tracking speeds up one-time build | 335 AS_HELP_STRING( |
348 --enable-dependency-tracking do not reject slow dependency extractors]) | 336 [--enable-dependency-tracking], |
337 [do not reject slow dependency extractors]) | |
338 AS_HELP_STRING( | |
339 [--disable-dependency-tracking], | |
340 [speeds up one-time build])]) | |
349 if test "x$enable_dependency_tracking" != xno; then | 341 if test "x$enable_dependency_tracking" != xno; then |
350 am_depcomp="$ac_aux_dir/depcomp" | 342 am_depcomp="$ac_aux_dir/depcomp" |
351 AMDEPBACKSLASH='\' | 343 AMDEPBACKSLASH='\' |
352 am__nodep='_no' | 344 am__nodep='_no' |
353 fi | 345 fi |
358 _AM_SUBST_NOTMAKE([am__nodep])dnl | 350 _AM_SUBST_NOTMAKE([am__nodep])dnl |
359 ]) | 351 ]) |
360 | 352 |
361 # Generate code to set up dependency tracking. -*- Autoconf -*- | 353 # Generate code to set up dependency tracking. -*- Autoconf -*- |
362 | 354 |
363 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | 355 # Copyright (C) 1999-2017 Free Software Foundation, Inc. |
364 # Free Software Foundation, Inc. | 356 # |
365 # | 357 # This file is free software; the Free Software Foundation |
366 # This file is free software; the Free Software Foundation | 358 # gives unlimited permission to copy and/or distribute it, |
367 # gives unlimited permission to copy and/or distribute it, | 359 # with or without modifications, as long as this notice is preserved. |
368 # with or without modifications, as long as this notice is preserved. | 360 |
369 | |
370 #serial 5 | |
371 | 361 |
372 # _AM_OUTPUT_DEPENDENCY_COMMANDS | 362 # _AM_OUTPUT_DEPENDENCY_COMMANDS |
373 # ------------------------------ | 363 # ------------------------------ |
374 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | 364 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
375 [{ | 365 [{ |
376 # Autoconf 2.62 quotes --file arguments for eval, but not when files | 366 # Older Autoconf quotes --file arguments for eval, but not when files |
377 # are listed without --file. Let's play safe and only enable the eval | 367 # are listed without --file. Let's play safe and only enable the eval |
378 # if we detect the quoting. | 368 # if we detect the quoting. |
379 case $CONFIG_FILES in | 369 case $CONFIG_FILES in |
380 *\'*) eval set x "$CONFIG_FILES" ;; | 370 *\'*) eval set x "$CONFIG_FILES" ;; |
381 *) set x $CONFIG_FILES ;; | 371 *) set x $CONFIG_FILES ;; |
384 for mf | 374 for mf |
385 do | 375 do |
386 # Strip MF so we end up with the name of the file. | 376 # Strip MF so we end up with the name of the file. |
387 mf=`echo "$mf" | sed -e 's/:.*$//'` | 377 mf=`echo "$mf" | sed -e 's/:.*$//'` |
388 # Check whether this is an Automake generated Makefile or not. | 378 # Check whether this is an Automake generated Makefile or not. |
389 # We used to match only the files named `Makefile.in', but | 379 # We used to match only the files named 'Makefile.in', but |
390 # some people rename them; so instead we look at the file content. | 380 # some people rename them; so instead we look at the file content. |
391 # Grep'ing the first line is not enough: some people post-process | 381 # Grep'ing the first line is not enough: some people post-process |
392 # each Makefile.in and add a new line on top of each file to say so. | 382 # each Makefile.in and add a new line on top of each file to say so. |
393 # Grep'ing the whole file is not good either: AIX grep has a line | 383 # Grep'ing the whole file is not good either: AIX grep has a line |
394 # limit of 2048, but all sed's we know have understand at least 4000. | 384 # limit of 2048, but all sed's we know have understand at least 4000. |
396 dirpart=`AS_DIRNAME("$mf")` | 386 dirpart=`AS_DIRNAME("$mf")` |
397 else | 387 else |
398 continue | 388 continue |
399 fi | 389 fi |
400 # Extract the definition of DEPDIR, am__include, and am__quote | 390 # Extract the definition of DEPDIR, am__include, and am__quote |
401 # from the Makefile without running `make'. | 391 # from the Makefile without running 'make'. |
402 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | 392 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
403 test -z "$DEPDIR" && continue | 393 test -z "$DEPDIR" && continue |
404 am__include=`sed -n 's/^am__include = //p' < "$mf"` | 394 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
405 test -z "am__include" && continue | 395 test -z "$am__include" && continue |
406 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | 396 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
407 # When using ansi2knr, U may be empty or an underscore; expand it | |
408 U=`sed -n 's/^U = //p' < "$mf"` | |
409 # Find all dependency output files, they are included files with | 397 # Find all dependency output files, they are included files with |
410 # $(DEPDIR) in their names. We invoke sed twice because it is the | 398 # $(DEPDIR) in their names. We invoke sed twice because it is the |
411 # simplest approach to changing $(DEPDIR) to its actual value in the | 399 # simplest approach to changing $(DEPDIR) to its actual value in the |
412 # expansion. | 400 # expansion. |
413 for file in `sed -n " | 401 for file in `sed -n " |
414 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | 402 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
415 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | 403 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
416 # Make sure the directory exists. | 404 # Make sure the directory exists. |
417 test -f "$dirpart/$file" && continue | 405 test -f "$dirpart/$file" && continue |
418 fdir=`AS_DIRNAME(["$file"])` | 406 fdir=`AS_DIRNAME(["$file"])` |
419 AS_MKDIR_P([$dirpart/$fdir]) | 407 AS_MKDIR_P([$dirpart/$fdir]) |
420 # echo "creating $dirpart/$file" | 408 # echo "creating $dirpart/$file" |
428 # AM_OUTPUT_DEPENDENCY_COMMANDS | 416 # AM_OUTPUT_DEPENDENCY_COMMANDS |
429 # ----------------------------- | 417 # ----------------------------- |
430 # This macro should only be invoked once -- use via AC_REQUIRE. | 418 # This macro should only be invoked once -- use via AC_REQUIRE. |
431 # | 419 # |
432 # This code is only required when automatic dependency tracking | 420 # This code is only required when automatic dependency tracking |
433 # is enabled. FIXME. This creates each `.P' file that we will | 421 # is enabled. FIXME. This creates each '.P' file that we will |
434 # need in order to bootstrap the dependency handling code. | 422 # need in order to bootstrap the dependency handling code. |
435 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | 423 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
436 [AC_CONFIG_COMMANDS([depfiles], | 424 [AC_CONFIG_COMMANDS([depfiles], |
437 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | 425 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
438 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | 426 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
439 ]) | 427 ]) |
440 | 428 |
441 # Do all the work for Automake. -*- Autoconf -*- | 429 # Do all the work for Automake. -*- Autoconf -*- |
442 | 430 |
443 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 431 # Copyright (C) 1996-2017 Free Software Foundation, Inc. |
444 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | 432 # |
445 # | 433 # This file is free software; the Free Software Foundation |
446 # This file is free software; the Free Software Foundation | 434 # gives unlimited permission to copy and/or distribute it, |
447 # gives unlimited permission to copy and/or distribute it, | 435 # with or without modifications, as long as this notice is preserved. |
448 # with or without modifications, as long as this notice is preserved. | |
449 | |
450 # serial 16 | |
451 | 436 |
452 # This macro actually does too much. Some checks are only needed if | 437 # This macro actually does too much. Some checks are only needed if |
453 # your package does certain things. But this isn't really a big deal. | 438 # your package does certain things. But this isn't really a big deal. |
439 | |
440 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
441 m4_define([AC_PROG_CC], | |
442 m4_defn([AC_PROG_CC]) | |
443 [_AM_PROG_CC_C_O | |
444 ]) | |
454 | 445 |
455 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | 446 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
456 # AM_INIT_AUTOMAKE([OPTIONS]) | 447 # AM_INIT_AUTOMAKE([OPTIONS]) |
457 # ----------------------------------------------- | 448 # ----------------------------------------------- |
458 # The call with PACKAGE and VERSION arguments is the old style | 449 # The call with PACKAGE and VERSION arguments is the old style |
462 # We support both call styles for the transition. After | 453 # We support both call styles for the transition. After |
463 # the next Automake release, Autoconf can make the AC_INIT | 454 # the next Automake release, Autoconf can make the AC_INIT |
464 # arguments mandatory, and then we can depend on a new Autoconf | 455 # arguments mandatory, and then we can depend on a new Autoconf |
465 # release and drop the old call support. | 456 # release and drop the old call support. |
466 AC_DEFUN([AM_INIT_AUTOMAKE], | 457 AC_DEFUN([AM_INIT_AUTOMAKE], |
467 [AC_PREREQ([2.62])dnl | 458 [AC_PREREQ([2.65])dnl |
468 dnl Autoconf wants to disallow AM_ names. We explicitly allow | 459 dnl Autoconf wants to disallow AM_ names. We explicitly allow |
469 dnl the ones we care about. | 460 dnl the ones we care about. |
470 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | 461 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
471 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 462 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
472 AC_REQUIRE([AC_PROG_INSTALL])dnl | 463 AC_REQUIRE([AC_PROG_INSTALL])dnl |
491 AC_SUBST([CYGPATH_W]) | 482 AC_SUBST([CYGPATH_W]) |
492 | 483 |
493 # Define the identity of the package. | 484 # Define the identity of the package. |
494 dnl Distinguish between old-style and new-style calls. | 485 dnl Distinguish between old-style and new-style calls. |
495 m4_ifval([$2], | 486 m4_ifval([$2], |
496 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | 487 [AC_DIAGNOSE([obsolete], |
488 [$0: two- and three-arguments forms are deprecated.]) | |
489 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
497 AC_SUBST([PACKAGE], [$1])dnl | 490 AC_SUBST([PACKAGE], [$1])dnl |
498 AC_SUBST([VERSION], [$2])], | 491 AC_SUBST([VERSION], [$2])], |
499 [_AM_SET_OPTIONS([$1])dnl | 492 [_AM_SET_OPTIONS([$1])dnl |
500 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | 493 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
501 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | 494 m4_if( |
495 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
496 [ok:ok],, | |
502 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | 497 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
503 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | 498 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
504 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | 499 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
505 | 500 |
506 _AM_IF_OPTION([no-define],, | 501 _AM_IF_OPTION([no-define],, |
507 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | 502 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) |
508 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | 503 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl |
509 | 504 |
510 # Some tools Automake needs. | 505 # Some tools Automake needs. |
511 AC_REQUIRE([AM_SANITY_CHECK])dnl | 506 AC_REQUIRE([AM_SANITY_CHECK])dnl |
512 AC_REQUIRE([AC_ARG_PROGRAM])dnl | 507 AC_REQUIRE([AC_ARG_PROGRAM])dnl |
513 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | 508 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) |
514 AM_MISSING_PROG(AUTOCONF, autoconf) | 509 AM_MISSING_PROG([AUTOCONF], [autoconf]) |
515 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | 510 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) |
516 AM_MISSING_PROG(AUTOHEADER, autoheader) | 511 AM_MISSING_PROG([AUTOHEADER], [autoheader]) |
517 AM_MISSING_PROG(MAKEINFO, makeinfo) | 512 AM_MISSING_PROG([MAKEINFO], [makeinfo]) |
518 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | 513 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
519 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | 514 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
520 AC_REQUIRE([AM_PROG_MKDIR_P])dnl | 515 AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
521 # We need awk for the "check" target. The system "awk" is bad on | 516 # For better backward compatibility. To be removed once Automake 1.9.x |
522 # some platforms. | 517 # dies out for good. For more background, see: |
518 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
519 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
520 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
521 # We need awk for the "check" target (and possibly the TAP driver). The | |
522 # system "awk" is bad on some platforms. | |
523 AC_REQUIRE([AC_PROG_AWK])dnl | 523 AC_REQUIRE([AC_PROG_AWK])dnl |
524 AC_REQUIRE([AC_PROG_MAKE_SET])dnl | 524 AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
525 AC_REQUIRE([AM_SET_LEADING_DOT])dnl | 525 AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
526 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | 526 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
527 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | 527 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
528 [_AM_PROG_TAR([v7])])]) | 528 [_AM_PROG_TAR([v7])])]) |
529 _AM_IF_OPTION([no-dependencies],, | 529 _AM_IF_OPTION([no-dependencies],, |
530 [AC_PROVIDE_IFELSE([AC_PROG_CC], | 530 [AC_PROVIDE_IFELSE([AC_PROG_CC], |
531 [_AM_DEPENDENCIES(CC)], | 531 [_AM_DEPENDENCIES([CC])], |
532 [define([AC_PROG_CC], | 532 [m4_define([AC_PROG_CC], |
533 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | 533 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl |
534 AC_PROVIDE_IFELSE([AC_PROG_CXX], | 534 AC_PROVIDE_IFELSE([AC_PROG_CXX], |
535 [_AM_DEPENDENCIES(CXX)], | 535 [_AM_DEPENDENCIES([CXX])], |
536 [define([AC_PROG_CXX], | 536 [m4_define([AC_PROG_CXX], |
537 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | 537 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl |
538 AC_PROVIDE_IFELSE([AC_PROG_OBJC], | 538 AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
539 [_AM_DEPENDENCIES(OBJC)], | 539 [_AM_DEPENDENCIES([OBJC])], |
540 [define([AC_PROG_OBJC], | 540 [m4_define([AC_PROG_OBJC], |
541 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | 541 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl |
542 ]) | 542 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], |
543 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | 543 [_AM_DEPENDENCIES([OBJCXX])], |
544 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | 544 [m4_define([AC_PROG_OBJCXX], |
545 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | 545 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
546 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | 546 ]) |
547 AC_REQUIRE([AM_SILENT_RULES])dnl | |
548 dnl The testsuite driver may need to know about EXEEXT, so add the | |
549 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
550 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
547 AC_CONFIG_COMMANDS_PRE(dnl | 551 AC_CONFIG_COMMANDS_PRE(dnl |
548 [m4_provide_if([_AM_COMPILER_EXEEXT], | 552 [m4_provide_if([_AM_COMPILER_EXEEXT], |
549 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | 553 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
550 ]) | 554 |
551 | 555 # POSIX will say in a future version that running "rm -f" with no argument |
552 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | 556 # is OK; and we want to be able to make that assumption in our Makefile |
557 # recipes. So use an aggressive probe to check that the usage we want is | |
558 # actually supported "in the wild" to an acceptable degree. | |
559 # See automake bug#10828. | |
560 # To make any issue more visible, cause the running configure to be aborted | |
561 # by default if the 'rm' program in use doesn't match our expectations; the | |
562 # user can still override this though. | |
563 if rm -f && rm -fr && rm -rf; then : OK; else | |
564 cat >&2 <<'END' | |
565 Oops! | |
566 | |
567 Your 'rm' program seems unable to run without file operands specified | |
568 on the command line, even when the '-f' option is present. This is contrary | |
569 to the behaviour of most rm programs out there, and not conforming with | |
570 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
571 | |
572 Please tell bug-automake@gnu.org about your system, including the value | |
573 of your $PATH and any error possibly output before this message. This | |
574 can help us improve future automake versions. | |
575 | |
576 END | |
577 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
578 echo 'Configuration will proceed anyway, since you have set the' >&2 | |
579 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
580 echo >&2 | |
581 else | |
582 cat >&2 <<'END' | |
583 Aborting the configuration process, to ensure you take notice of the issue. | |
584 | |
585 You can download and install GNU coreutils to get an 'rm' implementation | |
586 that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
587 | |
588 If you want to complete the configuration process using your problematic | |
589 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
590 to "yes", and re-run configure. | |
591 | |
592 END | |
593 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
594 fi | |
595 fi | |
596 dnl The trailing newline in this macro's definition is deliberate, for | |
597 dnl backward compatibility and to allow trailing 'dnl'-style comments | |
598 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. | |
599 ]) | |
600 | |
601 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
553 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | 602 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
554 dnl mangled by Autoconf and run in a shell conditional statement. | 603 dnl mangled by Autoconf and run in a shell conditional statement. |
555 m4_define([_AC_COMPILER_EXEEXT], | 604 m4_define([_AC_COMPILER_EXEEXT], |
556 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | 605 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
557 | |
558 | 606 |
559 # When config.status generates a header, we must update the stamp-h file. | 607 # When config.status generates a header, we must update the stamp-h file. |
560 # This file resides in the same directory as the config header | 608 # This file resides in the same directory as the config header |
561 # that is generated. The stamp files are numbered to have different names. | 609 # that is generated. The stamp files are numbered to have different names. |
562 | 610 |
575 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 623 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
576 esac | 624 esac |
577 done | 625 done |
578 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | 626 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
579 | 627 |
580 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, | 628 # Copyright (C) 2001-2017 Free Software Foundation, Inc. |
581 # Inc. | 629 # |
582 # | 630 # This file is free software; the Free Software Foundation |
583 # This file is free software; the Free Software Foundation | 631 # gives unlimited permission to copy and/or distribute it, |
584 # gives unlimited permission to copy and/or distribute it, | 632 # with or without modifications, as long as this notice is preserved. |
585 # with or without modifications, as long as this notice is preserved. | |
586 | |
587 # serial 1 | |
588 | 633 |
589 # AM_PROG_INSTALL_SH | 634 # AM_PROG_INSTALL_SH |
590 # ------------------ | 635 # ------------------ |
591 # Define $install_sh. | 636 # Define $install_sh. |
592 AC_DEFUN([AM_PROG_INSTALL_SH], | 637 AC_DEFUN([AM_PROG_INSTALL_SH], |
593 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 638 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
594 if test x"${install_sh}" != xset; then | 639 if test x"${install_sh+set}" != xset; then |
595 case $am_aux_dir in | 640 case $am_aux_dir in |
596 *\ * | *\ *) | 641 *\ * | *\ *) |
597 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | 642 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
598 *) | 643 *) |
599 install_sh="\${SHELL} $am_aux_dir/install-sh" | 644 install_sh="\${SHELL} $am_aux_dir/install-sh" |
600 esac | 645 esac |
601 fi | 646 fi |
602 AC_SUBST(install_sh)]) | 647 AC_SUBST([install_sh])]) |
603 | 648 |
604 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | 649 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
605 # From Jim Meyering | 650 # From Jim Meyering |
606 | 651 |
607 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, | 652 # Copyright (C) 1996-2017 Free Software Foundation, Inc. |
608 # 2011 Free Software Foundation, Inc. | 653 # |
609 # | 654 # This file is free software; the Free Software Foundation |
610 # This file is free software; the Free Software Foundation | 655 # gives unlimited permission to copy and/or distribute it, |
611 # gives unlimited permission to copy and/or distribute it, | 656 # with or without modifications, as long as this notice is preserved. |
612 # with or without modifications, as long as this notice is preserved. | |
613 | |
614 # serial 5 | |
615 | 657 |
616 # AM_MAINTAINER_MODE([DEFAULT-MODE]) | 658 # AM_MAINTAINER_MODE([DEFAULT-MODE]) |
617 # ---------------------------------- | 659 # ---------------------------------- |
618 # Control maintainer-specific portions of Makefiles. | 660 # Control maintainer-specific portions of Makefiles. |
619 # Default is to disable them, unless `enable' is passed literally. | 661 # Default is to disable them, unless 'enable' is passed literally. |
620 # For symmetry, `disable' may be passed as well. Anyway, the user | 662 # For symmetry, 'disable' may be passed as well. Anyway, the user |
621 # can override the default with the --enable/--disable switch. | 663 # can override the default with the --enable/--disable switch. |
622 AC_DEFUN([AM_MAINTAINER_MODE], | 664 AC_DEFUN([AM_MAINTAINER_MODE], |
623 [m4_case(m4_default([$1], [disable]), | 665 [m4_case(m4_default([$1], [disable]), |
624 [enable], [m4_define([am_maintainer_other], [disable])], | 666 [enable], [m4_define([am_maintainer_other], [disable])], |
625 [disable], [m4_define([am_maintainer_other], [enable])], | 667 [disable], [m4_define([am_maintainer_other], [enable])], |
626 [m4_define([am_maintainer_other], [enable]) | 668 [m4_define([am_maintainer_other], [enable]) |
627 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | 669 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
628 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | 670 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
629 dnl maintainer-mode's default is 'disable' unless 'enable' is passed | 671 dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
630 AC_ARG_ENABLE([maintainer-mode], | 672 AC_ARG_ENABLE([maintainer-mode], |
631 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | 673 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], |
632 (and sometimes confusing) to the casual installer], | 674 am_maintainer_other[ make rules and dependencies not useful |
633 [USE_MAINTAINER_MODE=$enableval], | 675 (and sometimes confusing) to the casual installer])], |
634 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | 676 [USE_MAINTAINER_MODE=$enableval], |
677 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
635 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | 678 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
636 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | 679 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
637 MAINT=$MAINTAINER_MODE_TRUE | 680 MAINT=$MAINTAINER_MODE_TRUE |
638 AC_SUBST([MAINT])dnl | 681 AC_SUBST([MAINT])dnl |
639 ] | 682 ] |
640 ) | 683 ) |
641 | 684 |
642 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
643 | |
644 # Check to see how 'make' treats includes. -*- Autoconf -*- | 685 # Check to see how 'make' treats includes. -*- Autoconf -*- |
645 | 686 |
646 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | 687 # Copyright (C) 2001-2017 Free Software Foundation, Inc. |
647 # | 688 # |
648 # This file is free software; the Free Software Foundation | 689 # This file is free software; the Free Software Foundation |
649 # gives unlimited permission to copy and/or distribute it, | 690 # gives unlimited permission to copy and/or distribute it, |
650 # with or without modifications, as long as this notice is preserved. | 691 # with or without modifications, as long as this notice is preserved. |
651 | |
652 # serial 4 | |
653 | 692 |
654 # AM_MAKE_INCLUDE() | 693 # AM_MAKE_INCLUDE() |
655 # ----------------- | 694 # ----------------- |
656 # Check to see how make treats includes. | 695 # Check to see how make treats includes. |
657 AC_DEFUN([AM_MAKE_INCLUDE], | 696 AC_DEFUN([AM_MAKE_INCLUDE], |
666 am__include="#" | 705 am__include="#" |
667 am__quote= | 706 am__quote= |
668 _am_result=none | 707 _am_result=none |
669 # First try GNU make style include. | 708 # First try GNU make style include. |
670 echo "include confinc" > confmf | 709 echo "include confinc" > confmf |
671 # Ignore all kinds of additional output from `make'. | 710 # Ignore all kinds of additional output from 'make'. |
672 case `$am_make -s -f confmf 2> /dev/null` in #( | 711 case `$am_make -s -f confmf 2> /dev/null` in #( |
673 *the\ am__doit\ target*) | 712 *the\ am__doit\ target*) |
674 am__include=include | 713 am__include=include |
675 am__quote= | 714 am__quote= |
676 _am_result=GNU | 715 _am_result=GNU |
693 rm -f confinc confmf | 732 rm -f confinc confmf |
694 ]) | 733 ]) |
695 | 734 |
696 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | 735 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
697 | 736 |
698 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | 737 # Copyright (C) 1997-2017 Free Software Foundation, Inc. |
699 # Free Software Foundation, Inc. | 738 # |
700 # | 739 # This file is free software; the Free Software Foundation |
701 # This file is free software; the Free Software Foundation | 740 # gives unlimited permission to copy and/or distribute it, |
702 # gives unlimited permission to copy and/or distribute it, | 741 # with or without modifications, as long as this notice is preserved. |
703 # with or without modifications, as long as this notice is preserved. | |
704 | |
705 # serial 6 | |
706 | 742 |
707 # AM_MISSING_PROG(NAME, PROGRAM) | 743 # AM_MISSING_PROG(NAME, PROGRAM) |
708 # ------------------------------ | 744 # ------------------------------ |
709 AC_DEFUN([AM_MISSING_PROG], | 745 AC_DEFUN([AM_MISSING_PROG], |
710 [AC_REQUIRE([AM_MISSING_HAS_RUN]) | 746 [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
711 $1=${$1-"${am_missing_run}$2"} | 747 $1=${$1-"${am_missing_run}$2"} |
712 AC_SUBST($1)]) | 748 AC_SUBST($1)]) |
713 | 749 |
714 | |
715 # AM_MISSING_HAS_RUN | 750 # AM_MISSING_HAS_RUN |
716 # ------------------ | 751 # ------------------ |
717 # Define MISSING if not defined so far and test if it supports --run. | 752 # Define MISSING if not defined so far and test if it is modern enough. |
718 # If it does, set am_missing_run to use it, otherwise, to nothing. | 753 # If it is, set am_missing_run to use it, otherwise, to nothing. |
719 AC_DEFUN([AM_MISSING_HAS_RUN], | 754 AC_DEFUN([AM_MISSING_HAS_RUN], |
720 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 755 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
721 AC_REQUIRE_AUX_FILE([missing])dnl | 756 AC_REQUIRE_AUX_FILE([missing])dnl |
722 if test x"${MISSING+set}" != xset; then | 757 if test x"${MISSING+set}" != xset; then |
723 case $am_aux_dir in | 758 case $am_aux_dir in |
726 *) | 761 *) |
727 MISSING="\${SHELL} $am_aux_dir/missing" ;; | 762 MISSING="\${SHELL} $am_aux_dir/missing" ;; |
728 esac | 763 esac |
729 fi | 764 fi |
730 # Use eval to expand $SHELL | 765 # Use eval to expand $SHELL |
731 if eval "$MISSING --run true"; then | 766 if eval "$MISSING --is-lightweight"; then |
732 am_missing_run="$MISSING --run " | 767 am_missing_run="$MISSING " |
733 else | 768 else |
734 am_missing_run= | 769 am_missing_run= |
735 AC_MSG_WARN([`missing' script is too old or missing]) | 770 AC_MSG_WARN(['missing' script is too old or missing]) |
736 fi | 771 fi |
737 ]) | |
738 | |
739 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, | |
740 # Inc. | |
741 # | |
742 # This file is free software; the Free Software Foundation | |
743 # gives unlimited permission to copy and/or distribute it, | |
744 # with or without modifications, as long as this notice is preserved. | |
745 | |
746 # serial 1 | |
747 | |
748 # AM_PROG_MKDIR_P | |
749 # --------------- | |
750 # Check for `mkdir -p'. | |
751 AC_DEFUN([AM_PROG_MKDIR_P], | |
752 [AC_PREREQ([2.60])dnl | |
753 AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
754 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
755 dnl while keeping a definition of mkdir_p for backward compatibility. | |
756 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
757 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
758 dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
759 dnl adjustment using top_builddir (which is defined more often than | |
760 dnl MKDIR_P). | |
761 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
762 case $mkdir_p in | |
763 [[\\/$]]* | ?:[[\\/]]*) ;; | |
764 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
765 esac | |
766 ]) | 772 ]) |
767 | 773 |
768 # Helper functions for option handling. -*- Autoconf -*- | 774 # Helper functions for option handling. -*- Autoconf -*- |
769 | 775 |
770 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software | 776 # Copyright (C) 2001-2017 Free Software Foundation, Inc. |
771 # Foundation, Inc. | 777 # |
772 # | 778 # This file is free software; the Free Software Foundation |
773 # This file is free software; the Free Software Foundation | 779 # gives unlimited permission to copy and/or distribute it, |
774 # gives unlimited permission to copy and/or distribute it, | 780 # with or without modifications, as long as this notice is preserved. |
775 # with or without modifications, as long as this notice is preserved. | |
776 | |
777 # serial 5 | |
778 | 781 |
779 # _AM_MANGLE_OPTION(NAME) | 782 # _AM_MANGLE_OPTION(NAME) |
780 # ----------------------- | 783 # ----------------------- |
781 AC_DEFUN([_AM_MANGLE_OPTION], | 784 AC_DEFUN([_AM_MANGLE_OPTION], |
782 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | 785 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
783 | 786 |
784 # _AM_SET_OPTION(NAME) | 787 # _AM_SET_OPTION(NAME) |
785 # -------------------- | 788 # -------------------- |
786 # Set option NAME. Presently that only means defining a flag for this option. | 789 # Set option NAME. Presently that only means defining a flag for this option. |
787 AC_DEFUN([_AM_SET_OPTION], | 790 AC_DEFUN([_AM_SET_OPTION], |
788 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | 791 [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) |
789 | 792 |
790 # _AM_SET_OPTIONS(OPTIONS) | 793 # _AM_SET_OPTIONS(OPTIONS) |
791 # ------------------------ | 794 # ------------------------ |
792 # OPTIONS is a space-separated list of Automake options. | 795 # OPTIONS is a space-separated list of Automake options. |
793 AC_DEFUN([_AM_SET_OPTIONS], | 796 AC_DEFUN([_AM_SET_OPTIONS], |
797 # ------------------------------------------- | 800 # ------------------------------------------- |
798 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | 801 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
799 AC_DEFUN([_AM_IF_OPTION], | 802 AC_DEFUN([_AM_IF_OPTION], |
800 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | 803 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
801 | 804 |
805 # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
806 # | |
807 # This file is free software; the Free Software Foundation | |
808 # gives unlimited permission to copy and/or distribute it, | |
809 # with or without modifications, as long as this notice is preserved. | |
810 | |
811 # _AM_PROG_CC_C_O | |
812 # --------------- | |
813 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
814 # to automatically call this. | |
815 AC_DEFUN([_AM_PROG_CC_C_O], | |
816 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
817 AC_REQUIRE_AUX_FILE([compile])dnl | |
818 AC_LANG_PUSH([C])dnl | |
819 AC_CACHE_CHECK( | |
820 [whether $CC understands -c and -o together], | |
821 [am_cv_prog_cc_c_o], | |
822 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
823 # Make sure it works both with $CC and with simple cc. | |
824 # Following AC_PROG_CC_C_O, we do the test twice because some | |
825 # compilers refuse to overwrite an existing .o file with -o, | |
826 # though they will create one. | |
827 am_cv_prog_cc_c_o=yes | |
828 for am_i in 1 2; do | |
829 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
830 && test -f conftest2.$ac_objext; then | |
831 : OK | |
832 else | |
833 am_cv_prog_cc_c_o=no | |
834 break | |
835 fi | |
836 done | |
837 rm -f core conftest* | |
838 unset am_i]) | |
839 if test "$am_cv_prog_cc_c_o" != yes; then | |
840 # Losing compiler, so override with the script. | |
841 # FIXME: It is wrong to rewrite CC. | |
842 # But if we don't then we get into trouble of one sort or another. | |
843 # A longer-term fix would be to have automake use am__CC in this case, | |
844 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
845 CC="$am_aux_dir/compile $CC" | |
846 fi | |
847 AC_LANG_POP([C])]) | |
848 | |
849 # For backward compatibility. | |
850 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
851 | |
852 # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
853 # | |
854 # This file is free software; the Free Software Foundation | |
855 # gives unlimited permission to copy and/or distribute it, | |
856 # with or without modifications, as long as this notice is preserved. | |
857 | |
858 # AM_RUN_LOG(COMMAND) | |
859 # ------------------- | |
860 # Run COMMAND, save the exit status in ac_status, and log it. | |
861 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
862 AC_DEFUN([AM_RUN_LOG], | |
863 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
864 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
865 ac_status=$? | |
866 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
867 (exit $ac_status); }]) | |
868 | |
802 # Check to make sure that the build environment is sane. -*- Autoconf -*- | 869 # Check to make sure that the build environment is sane. -*- Autoconf -*- |
803 | 870 |
804 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | 871 # Copyright (C) 1996-2017 Free Software Foundation, Inc. |
805 # Free Software Foundation, Inc. | 872 # |
806 # | 873 # This file is free software; the Free Software Foundation |
807 # This file is free software; the Free Software Foundation | 874 # gives unlimited permission to copy and/or distribute it, |
808 # gives unlimited permission to copy and/or distribute it, | 875 # with or without modifications, as long as this notice is preserved. |
809 # with or without modifications, as long as this notice is preserved. | |
810 | |
811 # serial 5 | |
812 | 876 |
813 # AM_SANITY_CHECK | 877 # AM_SANITY_CHECK |
814 # --------------- | 878 # --------------- |
815 AC_DEFUN([AM_SANITY_CHECK], | 879 AC_DEFUN([AM_SANITY_CHECK], |
816 [AC_MSG_CHECKING([whether build environment is sane]) | 880 [AC_MSG_CHECKING([whether build environment is sane]) |
817 # Just in case | |
818 sleep 1 | |
819 echo timestamp > conftest.file | |
820 # Reject unsafe characters in $srcdir or the absolute working directory | 881 # Reject unsafe characters in $srcdir or the absolute working directory |
821 # name. Accept space and tab only in the latter. | 882 # name. Accept space and tab only in the latter. |
822 am_lf=' | 883 am_lf=' |
823 ' | 884 ' |
824 case `pwd` in | 885 case `pwd` in |
825 *[[\\\"\#\$\&\'\`$am_lf]]*) | 886 *[[\\\"\#\$\&\'\`$am_lf]]*) |
826 AC_MSG_ERROR([unsafe absolute working directory name]);; | 887 AC_MSG_ERROR([unsafe absolute working directory name]);; |
827 esac | 888 esac |
828 case $srcdir in | 889 case $srcdir in |
829 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | 890 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
830 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | 891 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; |
831 esac | 892 esac |
832 | 893 |
833 # Do `set' in a subshell so we don't clobber the current shell's | 894 # Do 'set' in a subshell so we don't clobber the current shell's |
834 # arguments. Must try -L first in case configure is actually a | 895 # arguments. Must try -L first in case configure is actually a |
835 # symlink; some systems play weird games with the mod time of symlinks | 896 # symlink; some systems play weird games with the mod time of symlinks |
836 # (eg FreeBSD returns the mod time of the symlink's containing | 897 # (eg FreeBSD returns the mod time of the symlink's containing |
837 # directory). | 898 # directory). |
838 if ( | 899 if ( |
839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | 900 am_has_slept=no |
840 if test "$[*]" = "X"; then | 901 for am_try in 1 2; do |
841 # -L didn't work. | 902 echo "timestamp, slept: $am_has_slept" > conftest.file |
842 set X `ls -t "$srcdir/configure" conftest.file` | 903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
843 fi | 904 if test "$[*]" = "X"; then |
844 rm -f conftest.file | 905 # -L didn't work. |
845 if test "$[*]" != "X $srcdir/configure conftest.file" \ | 906 set X `ls -t "$srcdir/configure" conftest.file` |
846 && test "$[*]" != "X conftest.file $srcdir/configure"; then | 907 fi |
847 | 908 if test "$[*]" != "X $srcdir/configure conftest.file" \ |
848 # If neither matched, then we have a broken ls. This can happen | 909 && test "$[*]" != "X conftest.file $srcdir/configure"; then |
849 # if, for instance, CONFIG_SHELL is bash and it inherits a | 910 |
850 # broken ls alias from the environment. This has actually | 911 # If neither matched, then we have a broken ls. This can happen |
851 # happened. Such a system could not be considered "sane". | 912 # if, for instance, CONFIG_SHELL is bash and it inherits a |
852 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | 913 # broken ls alias from the environment. This has actually |
853 alias in your environment]) | 914 # happened. Such a system could not be considered "sane". |
854 fi | 915 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
855 | 916 alias in your environment]) |
917 fi | |
918 if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
919 break | |
920 fi | |
921 # Just in case. | |
922 sleep 1 | |
923 am_has_slept=yes | |
924 done | |
856 test "$[2]" = conftest.file | 925 test "$[2]" = conftest.file |
857 ) | 926 ) |
858 then | 927 then |
859 # Ok. | 928 # Ok. |
860 : | 929 : |
861 else | 930 else |
862 AC_MSG_ERROR([newly created file is older than distributed files! | 931 AC_MSG_ERROR([newly created file is older than distributed files! |
863 Check your system clock]) | 932 Check your system clock]) |
864 fi | 933 fi |
865 AC_MSG_RESULT(yes)]) | 934 AC_MSG_RESULT([yes]) |
866 | 935 # If we didn't sleep, we still need to ensure time stamps of config.status and |
867 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | 936 # generated files are strictly newer. |
868 # | 937 am_sleep_pid= |
869 # This file is free software; the Free Software Foundation | 938 if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
870 # gives unlimited permission to copy and/or distribute it, | 939 ( sleep 1 ) & |
871 # with or without modifications, as long as this notice is preserved. | 940 am_sleep_pid=$! |
872 | 941 fi |
873 # serial 1 | 942 AC_CONFIG_COMMANDS_PRE( |
943 [AC_MSG_CHECKING([that generated files are newer than configure]) | |
944 if test -n "$am_sleep_pid"; then | |
945 # Hide warnings about reused PIDs. | |
946 wait $am_sleep_pid 2>/dev/null | |
947 fi | |
948 AC_MSG_RESULT([done])]) | |
949 rm -f conftest.file | |
950 ]) | |
951 | |
952 # Copyright (C) 2009-2017 Free Software Foundation, Inc. | |
953 # | |
954 # This file is free software; the Free Software Foundation | |
955 # gives unlimited permission to copy and/or distribute it, | |
956 # with or without modifications, as long as this notice is preserved. | |
957 | |
958 # AM_SILENT_RULES([DEFAULT]) | |
959 # -------------------------- | |
960 # Enable less verbose build rules; with the default set to DEFAULT | |
961 # ("yes" being less verbose, "no" or empty being verbose). | |
962 AC_DEFUN([AM_SILENT_RULES], | |
963 [AC_ARG_ENABLE([silent-rules], [dnl | |
964 AS_HELP_STRING( | |
965 [--enable-silent-rules], | |
966 [less verbose build output (undo: "make V=1")]) | |
967 AS_HELP_STRING( | |
968 [--disable-silent-rules], | |
969 [verbose build output (undo: "make V=0")])dnl | |
970 ]) | |
971 case $enable_silent_rules in @%:@ ((( | |
972 yes) AM_DEFAULT_VERBOSITY=0;; | |
973 no) AM_DEFAULT_VERBOSITY=1;; | |
974 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
975 esac | |
976 dnl | |
977 dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
978 dnl do not support nested variable expansions. | |
979 dnl See automake bug#9928 and bug#10237. | |
980 am_make=${MAKE-make} | |
981 AC_CACHE_CHECK([whether $am_make supports nested variables], | |
982 [am_cv_make_support_nested_variables], | |
983 [if AS_ECHO([['TRUE=$(BAR$(V)) | |
984 BAR0=false | |
985 BAR1=true | |
986 V=1 | |
987 am__doit: | |
988 @$(TRUE) | |
989 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
990 am_cv_make_support_nested_variables=yes | |
991 else | |
992 am_cv_make_support_nested_variables=no | |
993 fi]) | |
994 if test $am_cv_make_support_nested_variables = yes; then | |
995 dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
996 AM_V='$(V)' | |
997 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
998 else | |
999 AM_V=$AM_DEFAULT_VERBOSITY | |
1000 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
1001 fi | |
1002 AC_SUBST([AM_V])dnl | |
1003 AM_SUBST_NOTMAKE([AM_V])dnl | |
1004 AC_SUBST([AM_DEFAULT_V])dnl | |
1005 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
1006 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
1007 AM_BACKSLASH='\' | |
1008 AC_SUBST([AM_BACKSLASH])dnl | |
1009 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
1010 ]) | |
1011 | |
1012 # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
1013 # | |
1014 # This file is free software; the Free Software Foundation | |
1015 # gives unlimited permission to copy and/or distribute it, | |
1016 # with or without modifications, as long as this notice is preserved. | |
874 | 1017 |
875 # AM_PROG_INSTALL_STRIP | 1018 # AM_PROG_INSTALL_STRIP |
876 # --------------------- | 1019 # --------------------- |
877 # One issue with vendor `install' (even GNU) is that you can't | 1020 # One issue with vendor 'install' (even GNU) is that you can't |
878 # specify the program used to strip binaries. This is especially | 1021 # specify the program used to strip binaries. This is especially |
879 # annoying in cross-compiling environments, where the build's strip | 1022 # annoying in cross-compiling environments, where the build's strip |
880 # is unlikely to handle the host's binaries. | 1023 # is unlikely to handle the host's binaries. |
881 # Fortunately install-sh will honor a STRIPPROG variable, so we | 1024 # Fortunately install-sh will honor a STRIPPROG variable, so we |
882 # always use install-sh in `make install-strip', and initialize | 1025 # always use install-sh in "make install-strip", and initialize |
883 # STRIPPROG with the value of the STRIP variable (set by the user). | 1026 # STRIPPROG with the value of the STRIP variable (set by the user). |
884 AC_DEFUN([AM_PROG_INSTALL_STRIP], | 1027 AC_DEFUN([AM_PROG_INSTALL_STRIP], |
885 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | 1028 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
886 # Installed binaries are usually stripped using `strip' when the user | 1029 # Installed binaries are usually stripped using 'strip' when the user |
887 # run `make install-strip'. However `strip' might not be the right | 1030 # run "make install-strip". However 'strip' might not be the right |
888 # tool to use in cross-compilation environments, therefore Automake | 1031 # tool to use in cross-compilation environments, therefore Automake |
889 # will honor the `STRIP' environment variable to overrule this program. | 1032 # will honor the 'STRIP' environment variable to overrule this program. |
890 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | 1033 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. |
891 if test "$cross_compiling" != no; then | 1034 if test "$cross_compiling" != no; then |
892 AC_CHECK_TOOL([STRIP], [strip], :) | 1035 AC_CHECK_TOOL([STRIP], [strip], :) |
893 fi | 1036 fi |
894 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | 1037 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
895 AC_SUBST([INSTALL_STRIP_PROGRAM])]) | 1038 AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
896 | 1039 |
897 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | 1040 # Copyright (C) 2006-2017 Free Software Foundation, Inc. |
898 # | 1041 # |
899 # This file is free software; the Free Software Foundation | 1042 # This file is free software; the Free Software Foundation |
900 # gives unlimited permission to copy and/or distribute it, | 1043 # gives unlimited permission to copy and/or distribute it, |
901 # with or without modifications, as long as this notice is preserved. | 1044 # with or without modifications, as long as this notice is preserved. |
902 | |
903 # serial 3 | |
904 | 1045 |
905 # _AM_SUBST_NOTMAKE(VARIABLE) | 1046 # _AM_SUBST_NOTMAKE(VARIABLE) |
906 # --------------------------- | 1047 # --------------------------- |
907 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | 1048 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
908 # This macro is traced by Automake. | 1049 # This macro is traced by Automake. |
913 # Public sister of _AM_SUBST_NOTMAKE. | 1054 # Public sister of _AM_SUBST_NOTMAKE. |
914 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | 1055 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
915 | 1056 |
916 # Check how to create a tarball. -*- Autoconf -*- | 1057 # Check how to create a tarball. -*- Autoconf -*- |
917 | 1058 |
918 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. | 1059 # Copyright (C) 2004-2017 Free Software Foundation, Inc. |
919 # | 1060 # |
920 # This file is free software; the Free Software Foundation | 1061 # This file is free software; the Free Software Foundation |
921 # gives unlimited permission to copy and/or distribute it, | 1062 # gives unlimited permission to copy and/or distribute it, |
922 # with or without modifications, as long as this notice is preserved. | 1063 # with or without modifications, as long as this notice is preserved. |
923 | |
924 # serial 2 | |
925 | 1064 |
926 # _AM_PROG_TAR(FORMAT) | 1065 # _AM_PROG_TAR(FORMAT) |
927 # -------------------- | 1066 # -------------------- |
928 # Check how to create a tarball in format FORMAT. | 1067 # Check how to create a tarball in format FORMAT. |
929 # FORMAT should be one of `v7', `ustar', or `pax'. | 1068 # FORMAT should be one of 'v7', 'ustar', or 'pax'. |
930 # | 1069 # |
931 # Substitute a variable $(am__tar) that is a command | 1070 # Substitute a variable $(am__tar) that is a command |
932 # writing to stdout a FORMAT-tarball containing the directory | 1071 # writing to stdout a FORMAT-tarball containing the directory |
933 # $tardir. | 1072 # $tardir. |
934 # tardir=directory && $(am__tar) > result.tar | 1073 # tardir=directory && $(am__tar) > result.tar |
935 # | 1074 # |
936 # Substitute a variable $(am__untar) that extract such | 1075 # Substitute a variable $(am__untar) that extract such |
937 # a tarball read from stdin. | 1076 # a tarball read from stdin. |
938 # $(am__untar) < result.tar | 1077 # $(am__untar) < result.tar |
1078 # | |
939 AC_DEFUN([_AM_PROG_TAR], | 1079 AC_DEFUN([_AM_PROG_TAR], |
940 [# Always define AMTAR for backward compatibility. Yes, it's still used | 1080 [# Always define AMTAR for backward compatibility. Yes, it's still used |
941 # in the wild :-( We should find a proper way to deprecate it ... | 1081 # in the wild :-( We should find a proper way to deprecate it ... |
942 AC_SUBST([AMTAR], ['$${TAR-tar}']) | 1082 AC_SUBST([AMTAR], ['$${TAR-tar}']) |
1083 | |
1084 # We'll loop over all known methods to create a tar archive until one works. | |
1085 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1086 | |
943 m4_if([$1], [v7], | 1087 m4_if([$1], [v7], |
944 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | 1088 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
945 [m4_case([$1], [ustar],, [pax],, | 1089 |
946 [m4_fatal([Unknown tar format])]) | 1090 [m4_case([$1], |
947 AC_MSG_CHECKING([how to create a $1 tar archive]) | 1091 [ustar], |
948 # Loop over all known methods to create a tar archive until one works. | 1092 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. |
949 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | 1093 # There is notably a 21 bits limit for the UID and the GID. In fact, |
950 _am_tools=${am_cv_prog_tar_$1-$_am_tools} | 1094 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
951 # Do not fold the above two line into one, because Tru64 sh and | 1095 # and bug#13588). |
952 # Solaris sh will not grok spaces in the rhs of `-'. | 1096 am_max_uid=2097151 # 2^21 - 1 |
953 for _am_tool in $_am_tools | 1097 am_max_gid=$am_max_uid |
954 do | 1098 # The $UID and $GID variables are not portable, so we need to resort |
955 case $_am_tool in | 1099 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
956 gnutar) | 1100 # below are definitely unexpected, so allow the users to see them |
957 for _am_tar in tar gnutar gtar; | 1101 # (that is, avoid stderr redirection). |
958 do | 1102 am_uid=`id -u || echo unknown` |
959 AM_RUN_LOG([$_am_tar --version]) && break | 1103 am_gid=`id -g || echo unknown` |
960 done | 1104 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) |
961 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | 1105 if test $am_uid -le $am_max_uid; then |
962 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | 1106 AC_MSG_RESULT([yes]) |
963 am__untar="$_am_tar -xf -" | 1107 else |
964 ;; | 1108 AC_MSG_RESULT([no]) |
965 plaintar) | 1109 _am_tools=none |
966 # Must skip GNU tar: if it does not support --format= it doesn't create | 1110 fi |
967 # ustar tarball either. | 1111 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) |
968 (tar --version) >/dev/null 2>&1 && continue | 1112 if test $am_gid -le $am_max_gid; then |
969 am__tar='tar chf - "$$tardir"' | 1113 AC_MSG_RESULT([yes]) |
970 am__tar_='tar chf - "$tardir"' | 1114 else |
971 am__untar='tar xf -' | 1115 AC_MSG_RESULT([no]) |
972 ;; | 1116 _am_tools=none |
973 pax) | 1117 fi], |
974 am__tar='pax -L -x $1 -w "$$tardir"' | 1118 |
975 am__tar_='pax -L -x $1 -w "$tardir"' | 1119 [pax], |
976 am__untar='pax -r' | 1120 [], |
977 ;; | 1121 |
978 cpio) | 1122 [m4_fatal([Unknown tar format])]) |
979 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | 1123 |
980 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | 1124 AC_MSG_CHECKING([how to create a $1 tar archive]) |
981 am__untar='cpio -i -H $1 -d' | 1125 |
982 ;; | 1126 # Go ahead even if we have the value already cached. We do so because we |
983 none) | 1127 # need to set the values for the 'am__tar' and 'am__untar' variables. |
984 am__tar=false | 1128 _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
985 am__tar_=false | 1129 |
986 am__untar=false | 1130 for _am_tool in $_am_tools; do |
987 ;; | 1131 case $_am_tool in |
988 esac | 1132 gnutar) |
989 | 1133 for _am_tar in tar gnutar gtar; do |
990 # If the value was cached, stop now. We just wanted to have am__tar | 1134 AM_RUN_LOG([$_am_tar --version]) && break |
991 # and am__untar set. | 1135 done |
992 test -n "${am_cv_prog_tar_$1}" && break | 1136 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
993 | 1137 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
994 # tar/untar a dummy directory, and stop if the command works | 1138 am__untar="$_am_tar -xf -" |
1139 ;; | |
1140 plaintar) | |
1141 # Must skip GNU tar: if it does not support --format= it doesn't create | |
1142 # ustar tarball either. | |
1143 (tar --version) >/dev/null 2>&1 && continue | |
1144 am__tar='tar chf - "$$tardir"' | |
1145 am__tar_='tar chf - "$tardir"' | |
1146 am__untar='tar xf -' | |
1147 ;; | |
1148 pax) | |
1149 am__tar='pax -L -x $1 -w "$$tardir"' | |
1150 am__tar_='pax -L -x $1 -w "$tardir"' | |
1151 am__untar='pax -r' | |
1152 ;; | |
1153 cpio) | |
1154 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1155 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1156 am__untar='cpio -i -H $1 -d' | |
1157 ;; | |
1158 none) | |
1159 am__tar=false | |
1160 am__tar_=false | |
1161 am__untar=false | |
1162 ;; | |
1163 esac | |
1164 | |
1165 # If the value was cached, stop now. We just wanted to have am__tar | |
1166 # and am__untar set. | |
1167 test -n "${am_cv_prog_tar_$1}" && break | |
1168 | |
1169 # tar/untar a dummy directory, and stop if the command works. | |
1170 rm -rf conftest.dir | |
1171 mkdir conftest.dir | |
1172 echo GrepMe > conftest.dir/file | |
1173 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1174 rm -rf conftest.dir | |
1175 if test -s conftest.tar; then | |
1176 AM_RUN_LOG([$am__untar <conftest.tar]) | |
1177 AM_RUN_LOG([cat conftest.dir/file]) | |
1178 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1179 fi | |
1180 done | |
995 rm -rf conftest.dir | 1181 rm -rf conftest.dir |
996 mkdir conftest.dir | 1182 |
997 echo GrepMe > conftest.dir/file | 1183 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
998 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | 1184 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
999 rm -rf conftest.dir | 1185 |
1000 if test -s conftest.tar; then | |
1001 AM_RUN_LOG([$am__untar <conftest.tar]) | |
1002 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1003 fi | |
1004 done | |
1005 rm -rf conftest.dir | |
1006 | |
1007 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1008 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1009 AC_SUBST([am__tar]) | 1186 AC_SUBST([am__tar]) |
1010 AC_SUBST([am__untar]) | 1187 AC_SUBST([am__untar]) |
1011 ]) # _AM_PROG_TAR | 1188 ]) # _AM_PROG_TAR |
1012 | 1189 |
1013 m4_include([../config/acx.m4]) | 1190 m4_include([../config/acx.m4]) |
1015 m4_include([../config/lead-dot.m4]) | 1192 m4_include([../config/lead-dot.m4]) |
1016 m4_include([../config/lthostflags.m4]) | 1193 m4_include([../config/lthostflags.m4]) |
1017 m4_include([../config/multi.m4]) | 1194 m4_include([../config/multi.m4]) |
1018 m4_include([../config/override.m4]) | 1195 m4_include([../config/override.m4]) |
1019 m4_include([../config/stdint.m4]) | 1196 m4_include([../config/stdint.m4]) |
1197 m4_include([../config/toolexeclibdir.m4]) | |
1020 m4_include([../config/warnings.m4]) | 1198 m4_include([../config/warnings.m4]) |
1021 m4_include([../ltoptions.m4]) | 1199 m4_include([../ltoptions.m4]) |
1022 m4_include([../ltsugar.m4]) | 1200 m4_include([../ltsugar.m4]) |
1023 m4_include([../ltversion.m4]) | 1201 m4_include([../ltversion.m4]) |
1024 m4_include([../lt~obsolete.m4]) | 1202 m4_include([../lt~obsolete.m4]) |