Debian Codegraph @

aclocal.m4

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