blob: 02e1052a1c072b77c1b0cceb588783b3b39bfc81 [file] [log] [blame]
Jeff Thompsonef3c40b2013-08-02 11:50:15 -07001# generated automatically by aclocal 1.13.3 -*- Autoconf -*-
2
3# Copyright (C) 1996-2013 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
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23# ============================================================================
24# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
25# ============================================================================
26#
27# SYNOPSIS
28#
29# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])
30#
31# DESCRIPTION
32#
33# Check for baseline language coverage in the compiler for the C++11
34# standard; if necessary, add switches to CXXFLAGS to enable support.
35#
36# The first argument, if specified, indicates whether you insist on an
37# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
38# -std=c++11). If neither is specified, you get whatever works, with
39# preference for an extended mode.
40#
41# The second argument, if specified 'mandatory' or if left unspecified,
42# indicates that baseline C++11 support is required and that the macro
43# should error out if no mode with that support is found. If specified
44# 'optional', then configuration proceeds regardless, after defining
45# HAVE_CXX11 if and only if a supporting mode is found.
46#
47# LICENSE
48#
49# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
50# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
51# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
52#
53# Copying and distribution of this file, with or without modification, are
54# permitted in any medium without royalty provided the copyright notice
55# and this notice are preserved. This file is offered as-is, without any
56# warranty.
57
58#serial 3
59
60m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [
61 template <typename T>
62 struct check
63 {
64 static_assert(sizeof(int) <= sizeof(T), "not big enough");
65 };
66
67 typedef check<check<bool>> right_angle_brackets;
68
69 int a;
70 decltype(a) b;
71
72 typedef check<int> check_type;
73 check_type c;
74 check_type&& cr = static_cast<check_type&&>(c);
75
76 auto d = a;
77])
78
79AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
80 m4_if([$1], [], [],
81 [$1], [ext], [],
82 [$1], [noext], [],
83 [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl
84 m4_if([$2], [], [ax_cxx_compile_cxx11_required=true],
85 [$2], [mandatory], [ax_cxx_compile_cxx11_required=true],
86 [$2], [optional], [ax_cxx_compile_cxx11_required=false],
87 [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])dnl
88 AC_LANG_PUSH([C++])dnl
89 ac_success=no
90 AC_CACHE_CHECK(whether $CXX supports C++11 features by default,
91 ax_cv_cxx_compile_cxx11,
92 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
93 [ax_cv_cxx_compile_cxx11=yes],
94 [ax_cv_cxx_compile_cxx11=no])])
95 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
96 ac_success=yes
97 fi
98
99 m4_if([$1], [noext], [], [dnl
100 if test x$ac_success = xno; then
101 for switch in -std=gnu++11 -std=gnu++0x; do
102 cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
103 AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
104 $cachevar,
105 [ac_save_CXXFLAGS="$CXXFLAGS"
106 CXXFLAGS="$CXXFLAGS $switch"
107 AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
108 [eval $cachevar=yes],
109 [eval $cachevar=no])
110 CXXFLAGS="$ac_save_CXXFLAGS"])
111 if eval test x\$$cachevar = xyes; then
112 CXXFLAGS="$CXXFLAGS $switch"
113 ac_success=yes
114 break
115 fi
116 done
117 fi])
118
119 m4_if([$1], [ext], [], [dnl
120 if test x$ac_success = xno; then
121 for switch in -std=c++11 -std=c++0x; do
122 cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
123 AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
124 $cachevar,
125 [ac_save_CXXFLAGS="$CXXFLAGS"
126 CXXFLAGS="$CXXFLAGS $switch"
127 AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
128 [eval $cachevar=yes],
129 [eval $cachevar=no])
130 CXXFLAGS="$ac_save_CXXFLAGS"])
131 if eval test x\$$cachevar = xyes; then
132 CXXFLAGS="$CXXFLAGS $switch"
133 ac_success=yes
134 break
135 fi
136 done
137 fi])
138 AC_LANG_POP([C++])
139 if test x$ax_cxx_compile_cxx11_required = xtrue; then
140 if test x$ac_success = xno; then
141 AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.])
142 fi
143 else
144 if test x$ac_success = xno; then
145 HAVE_CXX11=0
146 AC_MSG_NOTICE([No compiler with C++11 support was found])
147 else
148 HAVE_CXX11=1
149 AC_DEFINE(HAVE_CXX11,1,
150 [define if the compiler supports basic C++11 syntax])
151 fi
152
153 AC_SUBST(HAVE_CXX11)
154 fi
155])
156
157# ===========================================================================
158# http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
159# ===========================================================================
160#
161# SYNOPSIS
162#
163# DX_INIT_DOXYGEN(PROJECT-NAME, DOXYFILE-PATH, [OUTPUT-DIR])
164# DX_DOXYGEN_FEATURE(ON|OFF)
165# DX_DOT_FEATURE(ON|OFF)
166# DX_HTML_FEATURE(ON|OFF)
167# DX_CHM_FEATURE(ON|OFF)
168# DX_CHI_FEATURE(ON|OFF)
169# DX_MAN_FEATURE(ON|OFF)
170# DX_RTF_FEATURE(ON|OFF)
171# DX_XML_FEATURE(ON|OFF)
172# DX_PDF_FEATURE(ON|OFF)
173# DX_PS_FEATURE(ON|OFF)
174#
175# DESCRIPTION
176#
177# The DX_*_FEATURE macros control the default setting for the given
178# Doxygen feature. Supported features are 'DOXYGEN' itself, 'DOT' for
179# generating graphics, 'HTML' for plain HTML, 'CHM' for compressed HTML
180# help (for MS users), 'CHI' for generating a seperate .chi file by the
181# .chm file, and 'MAN', 'RTF', 'XML', 'PDF' and 'PS' for the appropriate
182# output formats. The environment variable DOXYGEN_PAPER_SIZE may be
183# specified to override the default 'a4wide' paper size.
184#
185# By default, HTML, PDF and PS documentation is generated as this seems to
186# be the most popular and portable combination. MAN pages created by
187# Doxygen are usually problematic, though by picking an appropriate subset
188# and doing some massaging they might be better than nothing. CHM and RTF
189# are specific for MS (note that you can't generate both HTML and CHM at
190# the same time). The XML is rather useless unless you apply specialized
191# post-processing to it.
192#
193# The macros mainly control the default state of the feature. The use can
194# override the default by specifying --enable or --disable. The macros
195# ensure that contradictory flags are not given (e.g.,
196# --enable-doxygen-html and --enable-doxygen-chm,
197# --enable-doxygen-anything with --disable-doxygen, etc.) Finally, each
198# feature will be automatically disabled (with a warning) if the required
199# programs are missing.
200#
201# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN
202# with the following parameters: a one-word name for the project for use
203# as a filename base etc., an optional configuration file name (the
204# default is 'Doxyfile', the same as Doxygen's default), and an optional
205# output directory name (the default is 'doxygen-doc').
206#
207# Automake Support
208#
209# The following is a template aminclude.am file for use with Automake.
210# Make targets and variables values are controlled by the various
211# DX_COND_* conditionals set by autoconf.
212#
213# The provided targets are:
214#
215# doxygen-doc: Generate all doxygen documentation.
216#
217# doxygen-run: Run doxygen, which will generate some of the
218# documentation (HTML, CHM, CHI, MAN, RTF, XML)
219# but will not do the post processing required
220# for the rest of it (PS, PDF, and some MAN).
221#
222# doxygen-man: Rename some doxygen generated man pages.
223#
224# doxygen-ps: Generate doxygen PostScript documentation.
225#
226# doxygen-pdf: Generate doxygen PDF documentation.
227#
228# Note that by default these are not integrated into the automake targets.
229# If doxygen is used to generate man pages, you can achieve this
230# integration by setting man3_MANS to the list of man pages generated and
231# then adding the dependency:
232#
233# $(man3_MANS): doxygen-doc
234#
235# This will cause make to run doxygen and generate all the documentation.
236#
237# The following variable is intended for use in Makefile.am:
238#
239# DX_CLEANFILES = everything to clean.
240#
241# Then add this variable to MOSTLYCLEANFILES.
242#
243# ----- begin aminclude.am -------------------------------------
244#
245# ## --------------------------------- ##
246# ## Format-independent Doxygen rules. ##
247# ## --------------------------------- ##
248#
249# if DX_COND_doc
250#
251# ## ------------------------------- ##
252# ## Rules specific for HTML output. ##
253# ## ------------------------------- ##
254#
255# if DX_COND_html
256#
257# DX_CLEAN_HTML = @DX_DOCDIR@/html
258#
259# endif DX_COND_html
260#
261# ## ------------------------------ ##
262# ## Rules specific for CHM output. ##
263# ## ------------------------------ ##
264#
265# if DX_COND_chm
266#
267# DX_CLEAN_CHM = @DX_DOCDIR@/chm
268#
269# if DX_COND_chi
270#
271# DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
272#
273# endif DX_COND_chi
274#
275# endif DX_COND_chm
276#
277# ## ------------------------------ ##
278# ## Rules specific for MAN output. ##
279# ## ------------------------------ ##
280#
281# if DX_COND_man
282#
283# DX_CLEAN_MAN = @DX_DOCDIR@/man
284#
285# endif DX_COND_man
286#
287# ## ------------------------------ ##
288# ## Rules specific for RTF output. ##
289# ## ------------------------------ ##
290#
291# if DX_COND_rtf
292#
293# DX_CLEAN_RTF = @DX_DOCDIR@/rtf
294#
295# endif DX_COND_rtf
296#
297# ## ------------------------------ ##
298# ## Rules specific for XML output. ##
299# ## ------------------------------ ##
300#
301# if DX_COND_xml
302#
303# DX_CLEAN_XML = @DX_DOCDIR@/xml
304#
305# endif DX_COND_xml
306#
307# ## ----------------------------- ##
308# ## Rules specific for PS output. ##
309# ## ----------------------------- ##
310#
311# if DX_COND_ps
312#
313# DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
314#
315# DX_PS_GOAL = doxygen-ps
316#
317# doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
318#
319# @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
320# cd @DX_DOCDIR@/latex; \
321# rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
322# $(DX_LATEX) refman.tex; \
323# $(MAKEINDEX_PATH) refman.idx; \
324# $(DX_LATEX) refman.tex; \
325# countdown=5; \
326# while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
327# refman.log > /dev/null 2>&1 \
328# && test $$countdown -gt 0; do \
329# $(DX_LATEX) refman.tex; \
330# countdown=`expr $$countdown - 1`; \
331# done; \
332# $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
333#
334# endif DX_COND_ps
335#
336# ## ------------------------------ ##
337# ## Rules specific for PDF output. ##
338# ## ------------------------------ ##
339#
340# if DX_COND_pdf
341#
342# DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
343#
344# DX_PDF_GOAL = doxygen-pdf
345#
346# doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
347#
348# @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
349# cd @DX_DOCDIR@/latex; \
350# rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
351# $(DX_PDFLATEX) refman.tex; \
352# $(DX_MAKEINDEX) refman.idx; \
353# $(DX_PDFLATEX) refman.tex; \
354# countdown=5; \
355# while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
356# refman.log > /dev/null 2>&1 \
357# && test $$countdown -gt 0; do \
358# $(DX_PDFLATEX) refman.tex; \
359# countdown=`expr $$countdown - 1`; \
360# done; \
361# mv refman.pdf ../@PACKAGE@.pdf
362#
363# endif DX_COND_pdf
364#
365# ## ------------------------------------------------- ##
366# ## Rules specific for LaTeX (shared for PS and PDF). ##
367# ## ------------------------------------------------- ##
368#
369# if DX_COND_latex
370#
371# DX_CLEAN_LATEX = @DX_DOCDIR@/latex
372#
373# endif DX_COND_latex
374#
375# .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
376#
377# .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
378#
379# doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
380#
381# doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
382#
383# @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
384# rm -rf @DX_DOCDIR@
385# $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
386#
387# DX_CLEANFILES = \
388# @DX_DOCDIR@/@PACKAGE@.tag \
389# -r \
390# $(DX_CLEAN_HTML) \
391# $(DX_CLEAN_CHM) \
392# $(DX_CLEAN_CHI) \
393# $(DX_CLEAN_MAN) \
394# $(DX_CLEAN_RTF) \
395# $(DX_CLEAN_XML) \
396# $(DX_CLEAN_PS) \
397# $(DX_CLEAN_PDF) \
398# $(DX_CLEAN_LATEX)
399#
400# endif DX_COND_doc
401#
402# ----- end aminclude.am ---------------------------------------
403#
404# LICENSE
405#
406# Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
407#
408# Copying and distribution of this file, with or without modification, are
409# permitted in any medium without royalty provided the copyright notice
410# and this notice are preserved. This file is offered as-is, without any
411# warranty.
412
413#serial 12
414
415
416DX_ENV=""
417AC_DEFUN([DX_FEATURE_doc], ON)
418AC_DEFUN([DX_FEATURE_dot], OFF)
419AC_DEFUN([DX_FEATURE_man], OFF)
420AC_DEFUN([DX_FEATURE_html], ON)
421AC_DEFUN([DX_FEATURE_chm], OFF)
422AC_DEFUN([DX_FEATURE_chi], OFF)
423AC_DEFUN([DX_FEATURE_rtf], OFF)
424AC_DEFUN([DX_FEATURE_xml], OFF)
425AC_DEFUN([DX_FEATURE_pdf], ON)
426AC_DEFUN([DX_FEATURE_ps], ON)
427
428
429# DX_ENV_APPEND(VARIABLE, VALUE)
430# ------------------------------
431# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
432AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
433
434# DX_DIRNAME_EXPR
435# ---------------
436# Expand into a shell expression prints the directory part of a path.
437AC_DEFUN([DX_DIRNAME_EXPR],
438 [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
439
440# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
441# -------------------------------------
442# Expands according to the M4 (static) status of the feature.
443AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
444
445# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
446# ----------------------------------
447# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
448AC_DEFUN([DX_REQUIRE_PROG], [
449AC_PATH_TOOL([$1], [$2])
450if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
451 AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
452 AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
453fi
454])
455
456# DX_TEST_FEATURE(FEATURE)
457# ------------------------
458# Expand to a shell expression testing whether the feature is active.
459AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
460
461# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
462# -------------------------------------------------
463# Verify that a required features has the right state before trying to turn on
464# the DX_CURRENT_FEATURE.
465AC_DEFUN([DX_CHECK_DEPEND], [
466test "$DX_FLAG_$1" = "$2" \
467|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
468 requires, contradicts) doxygen-DX_CURRENT_FEATURE])
469])
470
471# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
472# ----------------------------------------------------------
473# Turn off the DX_CURRENT_FEATURE if the required feature is off.
474AC_DEFUN([DX_CLEAR_DEPEND], [
475test "$DX_FLAG_$1" = "$2" || AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
476])
477
478# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
479# CHECK_DEPEND, CLEAR_DEPEND,
480# REQUIRE, DO-IF-ON, DO-IF-OFF)
481# --------------------------------------------
482# Parse the command-line option controlling a feature. CHECK_DEPEND is called
483# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
484# otherwise CLEAR_DEPEND is called to turn off the default state if a required
485# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
486# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
487# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
488AC_DEFUN([DX_ARG_ABLE], [
489 AC_DEFUN([DX_CURRENT_FEATURE], [$1])
490 AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
491 AC_ARG_ENABLE(doxygen-$1,
492 [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
493 [--enable-doxygen-$1]),
494 DX_IF_FEATURE([$1], [don't $2], [$2]))],
495 [
496case "$enableval" in
497#(
498y|Y|yes|Yes|YES)
499 AC_SUBST([DX_FLAG_$1], 1)
500 $3
501;; #(
502n|N|no|No|NO)
503 AC_SUBST([DX_FLAG_$1], 0)
504;; #(
505*)
506 AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
507;;
508esac
509], [
510AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
511$4
512])
513if DX_TEST_FEATURE([$1]); then
514 $5
515 :
516fi
517AM_CONDITIONAL(DX_COND_$1, DX_TEST_FEATURE([$1]))
518if DX_TEST_FEATURE([$1]); then
519 $6
520 :
521else
522 $7
523 :
524fi
525])
526
527
528# DX_XXX_FEATURE(DEFAULT_STATE)
529# -----------------------------
530AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
531AC_DEFUN([DX_DOT_FEATURE], [AC_DEFUN([DX_FEATURE_dot], [$1])])
532AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
533AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
534AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
535AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
536AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
537AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
538AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
539AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
540AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
541
542# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
543# ---------------------------------------------------------
544# PROJECT also serves as the base name for the documentation files.
545# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
546AC_DEFUN([DX_INIT_DOXYGEN], [
547
548# Files:
549AC_SUBST([DX_PROJECT], [$1])
550AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
551AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
552
553# Environment variables used inside doxygen.cfg:
554DX_ENV_APPEND(SRCDIR, $srcdir)
555DX_ENV_APPEND(PROJECT, $DX_PROJECT)
556DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
557DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
558
559# Doxygen itself:
560DX_ARG_ABLE(doc, [generate any doxygen documentation],
561 [],
562 [],
563 [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
564 DX_REQUIRE_PROG([DX_PERL], perl)],
565 [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
566
567# Dot for graphics:
568DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
569 [DX_CHECK_DEPEND(doc, 1)],
570 [DX_CLEAR_DEPEND(doc, 1)],
571 [DX_REQUIRE_PROG([DX_DOT], dot)],
572 [DX_ENV_APPEND(HAVE_DOT, YES)
573 DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
574 [DX_ENV_APPEND(HAVE_DOT, NO)])
575
576# Man pages generation:
577DX_ARG_ABLE(man, [generate doxygen manual pages],
578 [DX_CHECK_DEPEND(doc, 1)],
579 [DX_CLEAR_DEPEND(doc, 1)],
580 [],
581 [DX_ENV_APPEND(GENERATE_MAN, YES)],
582 [DX_ENV_APPEND(GENERATE_MAN, NO)])
583
584# RTF file generation:
585DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
586 [DX_CHECK_DEPEND(doc, 1)],
587 [DX_CLEAR_DEPEND(doc, 1)],
588 [],
589 [DX_ENV_APPEND(GENERATE_RTF, YES)],
590 [DX_ENV_APPEND(GENERATE_RTF, NO)])
591
592# XML file generation:
593DX_ARG_ABLE(xml, [generate doxygen XML documentation],
594 [DX_CHECK_DEPEND(doc, 1)],
595 [DX_CLEAR_DEPEND(doc, 1)],
596 [],
597 [DX_ENV_APPEND(GENERATE_XML, YES)],
598 [DX_ENV_APPEND(GENERATE_XML, NO)])
599
600# (Compressed) HTML help generation:
601DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
602 [DX_CHECK_DEPEND(doc, 1)],
603 [DX_CLEAR_DEPEND(doc, 1)],
604 [DX_REQUIRE_PROG([DX_HHC], hhc)],
605 [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
606 DX_ENV_APPEND(GENERATE_HTML, YES)
607 DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
608 [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
609
610# Seperate CHI file generation.
611DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
612 [DX_CHECK_DEPEND(chm, 1)],
613 [DX_CLEAR_DEPEND(chm, 1)],
614 [],
615 [DX_ENV_APPEND(GENERATE_CHI, YES)],
616 [DX_ENV_APPEND(GENERATE_CHI, NO)])
617
618# Plain HTML pages generation:
619DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
620 [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
621 [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
622 [],
623 [DX_ENV_APPEND(GENERATE_HTML, YES)],
624 [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
625
626# PostScript file generation:
627DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
628 [DX_CHECK_DEPEND(doc, 1)],
629 [DX_CLEAR_DEPEND(doc, 1)],
630 [DX_REQUIRE_PROG([DX_LATEX], latex)
631 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
632 DX_REQUIRE_PROG([DX_DVIPS], dvips)
633 DX_REQUIRE_PROG([DX_EGREP], egrep)])
634
635# PDF file generation:
636DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
637 [DX_CHECK_DEPEND(doc, 1)],
638 [DX_CLEAR_DEPEND(doc, 1)],
639 [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
640 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
641 DX_REQUIRE_PROG([DX_EGREP], egrep)])
642
643# LaTeX generation for PS and/or PDF:
644AM_CONDITIONAL(DX_COND_latex, DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf))
645if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
646 DX_ENV_APPEND(GENERATE_LATEX, YES)
647else
648 DX_ENV_APPEND(GENERATE_LATEX, NO)
649fi
650
651# Paper size for PS and/or PDF:
652AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
653 [a4wide (default), a4, letter, legal or executive])
654case "$DOXYGEN_PAPER_SIZE" in
655#(
656"")
657 AC_SUBST(DOXYGEN_PAPER_SIZE, "")
658;; #(
659a4wide|a4|letter|legal|executive)
660 DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
661;; #(
662*)
663 AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
664;;
665esac
666
667#For debugging:
668#echo DX_FLAG_doc=$DX_FLAG_doc
669#echo DX_FLAG_dot=$DX_FLAG_dot
670#echo DX_FLAG_man=$DX_FLAG_man
671#echo DX_FLAG_html=$DX_FLAG_html
672#echo DX_FLAG_chm=$DX_FLAG_chm
673#echo DX_FLAG_chi=$DX_FLAG_chi
674#echo DX_FLAG_rtf=$DX_FLAG_rtf
675#echo DX_FLAG_xml=$DX_FLAG_xml
676#echo DX_FLAG_pdf=$DX_FLAG_pdf
677#echo DX_FLAG_ps=$DX_FLAG_ps
678#echo DX_ENV=$DX_ENV
679])
680
681# Copyright (C) 2002-2013 Free Software Foundation, Inc.
682#
683# This file is free software; the Free Software Foundation
684# gives unlimited permission to copy and/or distribute it,
685# with or without modifications, as long as this notice is preserved.
686
687# AM_AUTOMAKE_VERSION(VERSION)
688# ----------------------------
689# Automake X.Y traces this macro to ensure aclocal.m4 has been
690# generated from the m4 files accompanying Automake X.Y.
691# (This private macro should not be called outside this file.)
692AC_DEFUN([AM_AUTOMAKE_VERSION],
693[am__api_version='1.13'
694dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
695dnl require some minimum version. Point them to the right macro.
696m4_if([$1], [1.13.3], [],
697 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
698])
699
700# _AM_AUTOCONF_VERSION(VERSION)
701# -----------------------------
702# aclocal traces this macro to find the Autoconf version.
703# This is a private macro too. Using m4_define simplifies
704# the logic in aclocal, which can simply ignore this definition.
705m4_define([_AM_AUTOCONF_VERSION], [])
706
707# AM_SET_CURRENT_AUTOMAKE_VERSION
708# -------------------------------
709# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
710# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
711AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
712[AM_AUTOMAKE_VERSION([1.13.3])dnl
713m4_ifndef([AC_AUTOCONF_VERSION],
714 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
715_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
716
717# Copyright (C) 2011-2013 Free Software Foundation, Inc.
718#
719# This file is free software; the Free Software Foundation
720# gives unlimited permission to copy and/or distribute it,
721# with or without modifications, as long as this notice is preserved.
722
723# AM_PROG_AR([ACT-IF-FAIL])
724# -------------------------
725# Try to determine the archiver interface, and trigger the ar-lib wrapper
726# if it is needed. If the detection of archiver interface fails, run
727# ACT-IF-FAIL (default is to abort configure with a proper error message).
728AC_DEFUN([AM_PROG_AR],
729[AC_BEFORE([$0], [LT_INIT])dnl
730AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
731AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
732AC_REQUIRE_AUX_FILE([ar-lib])dnl
733AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
734: ${AR=ar}
735
736AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
737 [am_cv_ar_interface=ar
738 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
739 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
740 AC_TRY_EVAL([am_ar_try])
741 if test "$ac_status" -eq 0; then
742 am_cv_ar_interface=ar
743 else
744 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
745 AC_TRY_EVAL([am_ar_try])
746 if test "$ac_status" -eq 0; then
747 am_cv_ar_interface=lib
748 else
749 am_cv_ar_interface=unknown
750 fi
751 fi
752 rm -f conftest.lib libconftest.a
753 ])
754 ])
755
756case $am_cv_ar_interface in
757ar)
758 ;;
759lib)
760 # Microsoft lib, so override with the ar-lib wrapper script.
761 # FIXME: It is wrong to rewrite AR.
762 # But if we don't then we get into trouble of one sort or another.
763 # A longer-term fix would be to have automake use am__AR in this case,
764 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
765 # similar.
766 AR="$am_aux_dir/ar-lib $AR"
767 ;;
768unknown)
769 m4_default([$1],
770 [AC_MSG_ERROR([could not determine $AR interface])])
771 ;;
772esac
773AC_SUBST([AR])dnl
774])
775
776# AM_AUX_DIR_EXPAND -*- Autoconf -*-
777
778# Copyright (C) 2001-2013 Free Software Foundation, Inc.
779#
780# This file is free software; the Free Software Foundation
781# gives unlimited permission to copy and/or distribute it,
782# with or without modifications, as long as this notice is preserved.
783
784# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
785# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
786# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
787#
788# Of course, Automake must honor this variable whenever it calls a
789# tool from the auxiliary directory. The problem is that $srcdir (and
790# therefore $ac_aux_dir as well) can be either absolute or relative,
791# depending on how configure is run. This is pretty annoying, since
792# it makes $ac_aux_dir quite unusable in subdirectories: in the top
793# source directory, any form will work fine, but in subdirectories a
794# relative path needs to be adjusted first.
795#
796# $ac_aux_dir/missing
797# fails when called from a subdirectory if $ac_aux_dir is relative
798# $top_srcdir/$ac_aux_dir/missing
799# fails if $ac_aux_dir is absolute,
800# fails when called from a subdirectory in a VPATH build with
801# a relative $ac_aux_dir
802#
803# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
804# are both prefixed by $srcdir. In an in-source build this is usually
805# harmless because $srcdir is '.', but things will broke when you
806# start a VPATH build or use an absolute $srcdir.
807#
808# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
809# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
810# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
811# and then we would define $MISSING as
812# MISSING="\${SHELL} $am_aux_dir/missing"
813# This will work as long as MISSING is not called from configure, because
814# unfortunately $(top_srcdir) has no meaning in configure.
815# However there are other variables, like CC, which are often used in
816# configure, and could therefore not use this "fixed" $ac_aux_dir.
817#
818# Another solution, used here, is to always expand $ac_aux_dir to an
819# absolute PATH. The drawback is that using absolute paths prevent a
820# configured tree to be moved without reconfiguration.
821
822AC_DEFUN([AM_AUX_DIR_EXPAND],
823[dnl Rely on autoconf to set up CDPATH properly.
824AC_PREREQ([2.50])dnl
825# expand $ac_aux_dir to an absolute path
826am_aux_dir=`cd $ac_aux_dir && pwd`
827])
828
829# AM_CONDITIONAL -*- Autoconf -*-
830
831# Copyright (C) 1997-2013 Free Software Foundation, Inc.
832#
833# This file is free software; the Free Software Foundation
834# gives unlimited permission to copy and/or distribute it,
835# with or without modifications, as long as this notice is preserved.
836
837# AM_CONDITIONAL(NAME, SHELL-CONDITION)
838# -------------------------------------
839# Define a conditional.
840AC_DEFUN([AM_CONDITIONAL],
841[AC_PREREQ([2.52])dnl
842 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
843 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
844AC_SUBST([$1_TRUE])dnl
845AC_SUBST([$1_FALSE])dnl
846_AM_SUBST_NOTMAKE([$1_TRUE])dnl
847_AM_SUBST_NOTMAKE([$1_FALSE])dnl
848m4_define([_AM_COND_VALUE_$1], [$2])dnl
849if $2; then
850 $1_TRUE=
851 $1_FALSE='#'
852else
853 $1_TRUE='#'
854 $1_FALSE=
855fi
856AC_CONFIG_COMMANDS_PRE(
857[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858 AC_MSG_ERROR([[conditional "$1" was never defined.
859Usually this means the macro was only invoked conditionally.]])
860fi])])
861
862# Copyright (C) 1999-2013 Free Software Foundation, Inc.
863#
864# This file is free software; the Free Software Foundation
865# gives unlimited permission to copy and/or distribute it,
866# with or without modifications, as long as this notice is preserved.
867
868
869# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
870# written in clear, in which case automake, when reading aclocal.m4,
871# will think it sees a *use*, and therefore will trigger all it's
872# C support machinery. Also note that it means that autoscan, seeing
873# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
874
875
876# _AM_DEPENDENCIES(NAME)
877# ----------------------
878# See how the compiler implements dependency checking.
879# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
880# We try a few techniques and use that to set a single cache variable.
881#
882# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
883# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
884# dependency, and given that the user is not expected to run this macro,
885# just rely on AC_PROG_CC.
886AC_DEFUN([_AM_DEPENDENCIES],
887[AC_REQUIRE([AM_SET_DEPDIR])dnl
888AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
889AC_REQUIRE([AM_MAKE_INCLUDE])dnl
890AC_REQUIRE([AM_DEP_TRACK])dnl
891
892m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
893 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
894 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
895 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
896 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
897 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
898 [depcc="$$1" am_compiler_list=])
899
900AC_CACHE_CHECK([dependency style of $depcc],
901 [am_cv_$1_dependencies_compiler_type],
902[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
903 # We make a subdir and do the tests there. Otherwise we can end up
904 # making bogus files that we don't know about and never remove. For
905 # instance it was reported that on HP-UX the gcc test will end up
906 # making a dummy file named 'D' -- because '-MD' means "put the output
907 # in D".
908 rm -rf conftest.dir
909 mkdir conftest.dir
910 # Copy depcomp to subdir because otherwise we won't find it if we're
911 # using a relative directory.
912 cp "$am_depcomp" conftest.dir
913 cd conftest.dir
914 # We will build objects and dependencies in a subdirectory because
915 # it helps to detect inapplicable dependency modes. For instance
916 # both Tru64's cc and ICC support -MD to output dependencies as a
917 # side effect of compilation, but ICC will put the dependencies in
918 # the current directory while Tru64 will put them in the object
919 # directory.
920 mkdir sub
921
922 am_cv_$1_dependencies_compiler_type=none
923 if test "$am_compiler_list" = ""; then
924 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
925 fi
926 am__universal=false
927 m4_case([$1], [CC],
928 [case " $depcc " in #(
929 *\ -arch\ *\ -arch\ *) am__universal=true ;;
930 esac],
931 [CXX],
932 [case " $depcc " in #(
933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
934 esac])
935
936 for depmode in $am_compiler_list; do
937 # Setup a source with many dependencies, because some compilers
938 # like to wrap large dependency lists on column 80 (with \), and
939 # we should not choose a depcomp mode which is confused by this.
940 #
941 # We need to recreate these files for each test, as the compiler may
942 # overwrite some of them when testing with obscure command lines.
943 # This happens at least with the AIX C compiler.
944 : > sub/conftest.c
945 for i in 1 2 3 4 5 6; do
946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
947 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
948 # Solaris 10 /bin/sh.
949 echo '/* dummy */' > sub/conftst$i.h
950 done
951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
952
953 # We check with '-c' and '-o' for the sake of the "dashmstdout"
954 # mode. It turns out that the SunPro C++ compiler does not properly
955 # handle '-M -o', and we need to detect this. Also, some Intel
956 # versions had trouble with output in subdirs.
957 am__obj=sub/conftest.${OBJEXT-o}
958 am__minus_obj="-o $am__obj"
959 case $depmode in
960 gcc)
961 # This depmode causes a compiler race in universal mode.
962 test "$am__universal" = false || continue
963 ;;
964 nosideeffect)
965 # After this tag, mechanisms are not by side-effect, so they'll
966 # only be used when explicitly requested.
967 if test "x$enable_dependency_tracking" = xyes; then
968 continue
969 else
970 break
971 fi
972 ;;
973 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
974 # This compiler won't grok '-c -o', but also, the minuso test has
975 # not run yet. These depmodes are late enough in the game, and
976 # so weak that their functioning should not be impacted.
977 am__obj=conftest.${OBJEXT-o}
978 am__minus_obj=
979 ;;
980 none) break ;;
981 esac
982 if depmode=$depmode \
983 source=sub/conftest.c object=$am__obj \
984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
986 >/dev/null 2>conftest.err &&
987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
991 # icc doesn't choke on unknown options, it will just issue warnings
992 # or remarks (even with -Werror). So we grep stderr for any message
993 # that says an option was ignored or not supported.
994 # When given -MP, icc 7.0 and 7.1 complain thusly:
995 # icc: Command line warning: ignoring option '-M'; no argument required
996 # The diagnosis changed in icc 8.0:
997 # icc: Command line remark: option '-MP' not supported
998 if (grep 'ignoring option' conftest.err ||
999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1000 am_cv_$1_dependencies_compiler_type=$depmode
1001 break
1002 fi
1003 fi
1004 done
1005
1006 cd ..
1007 rm -rf conftest.dir
1008else
1009 am_cv_$1_dependencies_compiler_type=none
1010fi
1011])
1012AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1013AM_CONDITIONAL([am__fastdep$1], [
1014 test "x$enable_dependency_tracking" != xno \
1015 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1016])
1017
1018
1019# AM_SET_DEPDIR
1020# -------------
1021# Choose a directory name for dependency files.
1022# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1023AC_DEFUN([AM_SET_DEPDIR],
1024[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1025AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1026])
1027
1028
1029# AM_DEP_TRACK
1030# ------------
1031AC_DEFUN([AM_DEP_TRACK],
1032[AC_ARG_ENABLE([dependency-tracking], [dnl
1033AS_HELP_STRING(
1034 [--enable-dependency-tracking],
1035 [do not reject slow dependency extractors])
1036AS_HELP_STRING(
1037 [--disable-dependency-tracking],
1038 [speeds up one-time build])])
1039if test "x$enable_dependency_tracking" != xno; then
1040 am_depcomp="$ac_aux_dir/depcomp"
1041 AMDEPBACKSLASH='\'
1042 am__nodep='_no'
1043fi
1044AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1045AC_SUBST([AMDEPBACKSLASH])dnl
1046_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1047AC_SUBST([am__nodep])dnl
1048_AM_SUBST_NOTMAKE([am__nodep])dnl
1049])
1050
1051# Generate code to set up dependency tracking. -*- Autoconf -*-
1052
1053# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1054#
1055# This file is free software; the Free Software Foundation
1056# gives unlimited permission to copy and/or distribute it,
1057# with or without modifications, as long as this notice is preserved.
1058
1059
1060# _AM_OUTPUT_DEPENDENCY_COMMANDS
1061# ------------------------------
1062AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1063[{
1064 # Older Autoconf quotes --file arguments for eval, but not when files
1065 # are listed without --file. Let's play safe and only enable the eval
1066 # if we detect the quoting.
1067 case $CONFIG_FILES in
1068 *\'*) eval set x "$CONFIG_FILES" ;;
1069 *) set x $CONFIG_FILES ;;
1070 esac
1071 shift
1072 for mf
1073 do
1074 # Strip MF so we end up with the name of the file.
1075 mf=`echo "$mf" | sed -e 's/:.*$//'`
1076 # Check whether this is an Automake generated Makefile or not.
1077 # We used to match only the files named 'Makefile.in', but
1078 # some people rename them; so instead we look at the file content.
1079 # Grep'ing the first line is not enough: some people post-process
1080 # each Makefile.in and add a new line on top of each file to say so.
1081 # Grep'ing the whole file is not good either: AIX grep has a line
1082 # limit of 2048, but all sed's we know have understand at least 4000.
1083 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1084 dirpart=`AS_DIRNAME("$mf")`
1085 else
1086 continue
1087 fi
1088 # Extract the definition of DEPDIR, am__include, and am__quote
1089 # from the Makefile without running 'make'.
1090 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1091 test -z "$DEPDIR" && continue
1092 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1093 test -z "$am__include" && continue
1094 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1095 # Find all dependency output files, they are included files with
1096 # $(DEPDIR) in their names. We invoke sed twice because it is the
1097 # simplest approach to changing $(DEPDIR) to its actual value in the
1098 # expansion.
1099 for file in `sed -n "
1100 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1101 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1102 # Make sure the directory exists.
1103 test -f "$dirpart/$file" && continue
1104 fdir=`AS_DIRNAME(["$file"])`
1105 AS_MKDIR_P([$dirpart/$fdir])
1106 # echo "creating $dirpart/$file"
1107 echo '# dummy' > "$dirpart/$file"
1108 done
1109 done
1110}
1111])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1112
1113
1114# AM_OUTPUT_DEPENDENCY_COMMANDS
1115# -----------------------------
1116# This macro should only be invoked once -- use via AC_REQUIRE.
1117#
1118# This code is only required when automatic dependency tracking
1119# is enabled. FIXME. This creates each '.P' file that we will
1120# need in order to bootstrap the dependency handling code.
1121AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1122[AC_CONFIG_COMMANDS([depfiles],
1123 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1124 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1125])
1126
1127# Do all the work for Automake. -*- Autoconf -*-
1128
1129# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1130#
1131# This file is free software; the Free Software Foundation
1132# gives unlimited permission to copy and/or distribute it,
1133# with or without modifications, as long as this notice is preserved.
1134
1135# This macro actually does too much. Some checks are only needed if
1136# your package does certain things. But this isn't really a big deal.
1137
1138# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1139# AM_INIT_AUTOMAKE([OPTIONS])
1140# -----------------------------------------------
1141# The call with PACKAGE and VERSION arguments is the old style
1142# call (pre autoconf-2.50), which is being phased out. PACKAGE
1143# and VERSION should now be passed to AC_INIT and removed from
1144# the call to AM_INIT_AUTOMAKE.
1145# We support both call styles for the transition. After
1146# the next Automake release, Autoconf can make the AC_INIT
1147# arguments mandatory, and then we can depend on a new Autoconf
1148# release and drop the old call support.
1149AC_DEFUN([AM_INIT_AUTOMAKE],
1150[AC_PREREQ([2.65])dnl
1151dnl Autoconf wants to disallow AM_ names. We explicitly allow
1152dnl the ones we care about.
1153m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1154AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1155AC_REQUIRE([AC_PROG_INSTALL])dnl
1156if test "`cd $srcdir && pwd`" != "`pwd`"; then
1157 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1158 # is not polluted with repeated "-I."
1159 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1160 # test to see if srcdir already configured
1161 if test -f $srcdir/config.status; then
1162 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1163 fi
1164fi
1165
1166# test whether we have cygpath
1167if test -z "$CYGPATH_W"; then
1168 if (cygpath --version) >/dev/null 2>/dev/null; then
1169 CYGPATH_W='cygpath -w'
1170 else
1171 CYGPATH_W=echo
1172 fi
1173fi
1174AC_SUBST([CYGPATH_W])
1175
1176# Define the identity of the package.
1177dnl Distinguish between old-style and new-style calls.
1178m4_ifval([$2],
1179[AC_DIAGNOSE([obsolete],
1180 [$0: two- and three-arguments forms are deprecated.])
1181m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1182 AC_SUBST([PACKAGE], [$1])dnl
1183 AC_SUBST([VERSION], [$2])],
1184[_AM_SET_OPTIONS([$1])dnl
1185dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1186m4_if(
1187 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1188 [ok:ok],,
1189 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1190 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1191 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1192
1193_AM_IF_OPTION([no-define],,
1194[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1195 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1196
1197# Some tools Automake needs.
1198AC_REQUIRE([AM_SANITY_CHECK])dnl
1199AC_REQUIRE([AC_ARG_PROGRAM])dnl
1200AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1201AM_MISSING_PROG([AUTOCONF], [autoconf])
1202AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1203AM_MISSING_PROG([AUTOHEADER], [autoheader])
1204AM_MISSING_PROG([MAKEINFO], [makeinfo])
1205AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1206AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1207AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1208# For better backward compatibility. To be removed once Automake 1.9.x
1209# dies out for good. For more background, see:
1210# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1212AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1213# We need awk for the "check" target. The system "awk" is bad on
1214# some platforms.
1215AC_REQUIRE([AC_PROG_AWK])dnl
1216AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1217AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1218_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1219 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1220 [_AM_PROG_TAR([v7])])])
1221_AM_IF_OPTION([no-dependencies],,
1222[AC_PROVIDE_IFELSE([AC_PROG_CC],
1223 [_AM_DEPENDENCIES([CC])],
1224 [m4_define([AC_PROG_CC],
1225 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1226AC_PROVIDE_IFELSE([AC_PROG_CXX],
1227 [_AM_DEPENDENCIES([CXX])],
1228 [m4_define([AC_PROG_CXX],
1229 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1230AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1231 [_AM_DEPENDENCIES([OBJC])],
1232 [m4_define([AC_PROG_OBJC],
1233 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1234AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1235 [_AM_DEPENDENCIES([OBJCXX])],
1236 [m4_define([AC_PROG_OBJCXX],
1237 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1238])
1239AC_REQUIRE([AM_SILENT_RULES])dnl
1240dnl The testsuite driver may need to know about EXEEXT, so add the
1241dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1242dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1243AC_CONFIG_COMMANDS_PRE(dnl
1244[m4_provide_if([_AM_COMPILER_EXEEXT],
1245 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1246])
1247
1248dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1249dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1250dnl mangled by Autoconf and run in a shell conditional statement.
1251m4_define([_AC_COMPILER_EXEEXT],
1252m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1253
1254
1255# When config.status generates a header, we must update the stamp-h file.
1256# This file resides in the same directory as the config header
1257# that is generated. The stamp files are numbered to have different names.
1258
1259# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1260# loop where config.status creates the headers, so we can generate
1261# our stamp files there.
1262AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1263[# Compute $1's index in $config_headers.
1264_am_arg=$1
1265_am_stamp_count=1
1266for _am_header in $config_headers :; do
1267 case $_am_header in
1268 $_am_arg | $_am_arg:* )
1269 break ;;
1270 * )
1271 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1272 esac
1273done
1274echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1275
1276# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1277#
1278# This file is free software; the Free Software Foundation
1279# gives unlimited permission to copy and/or distribute it,
1280# with or without modifications, as long as this notice is preserved.
1281
1282# AM_PROG_INSTALL_SH
1283# ------------------
1284# Define $install_sh.
1285AC_DEFUN([AM_PROG_INSTALL_SH],
1286[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1287if test x"${install_sh}" != xset; then
1288 case $am_aux_dir in
1289 *\ * | *\ *)
1290 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1291 *)
1292 install_sh="\${SHELL} $am_aux_dir/install-sh"
1293 esac
1294fi
1295AC_SUBST([install_sh])])
1296
1297# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1298#
1299# This file is free software; the Free Software Foundation
1300# gives unlimited permission to copy and/or distribute it,
1301# with or without modifications, as long as this notice is preserved.
1302
1303# Check whether the underlying file-system supports filenames
1304# with a leading dot. For instance MS-DOS doesn't.
1305AC_DEFUN([AM_SET_LEADING_DOT],
1306[rm -rf .tst 2>/dev/null
1307mkdir .tst 2>/dev/null
1308if test -d .tst; then
1309 am__leading_dot=.
1310else
1311 am__leading_dot=_
1312fi
1313rmdir .tst 2>/dev/null
1314AC_SUBST([am__leading_dot])])
1315
Jeff Thompson47053ad2013-08-05 10:36:53 -07001316# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1317# From Jim Meyering
1318
1319# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1320#
1321# This file is free software; the Free Software Foundation
1322# gives unlimited permission to copy and/or distribute it,
1323# with or without modifications, as long as this notice is preserved.
1324
1325# AM_MAINTAINER_MODE([DEFAULT-MODE])
1326# ----------------------------------
1327# Control maintainer-specific portions of Makefiles.
1328# Default is to disable them, unless 'enable' is passed literally.
1329# For symmetry, 'disable' may be passed as well. Anyway, the user
1330# can override the default with the --enable/--disable switch.
1331AC_DEFUN([AM_MAINTAINER_MODE],
1332[m4_case(m4_default([$1], [disable]),
1333 [enable], [m4_define([am_maintainer_other], [disable])],
1334 [disable], [m4_define([am_maintainer_other], [enable])],
1335 [m4_define([am_maintainer_other], [enable])
1336 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1337AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1338 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1339 AC_ARG_ENABLE([maintainer-mode],
1340 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1341 am_maintainer_other[ make rules and dependencies not useful
1342 (and sometimes confusing) to the casual installer])],
1343 [USE_MAINTAINER_MODE=$enableval],
1344 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1345 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1346 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1347 MAINT=$MAINTAINER_MODE_TRUE
1348 AC_SUBST([MAINT])dnl
1349]
1350)
1351
Jeff Thompsonef3c40b2013-08-02 11:50:15 -07001352# Check to see how 'make' treats includes. -*- Autoconf -*-
1353
1354# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1355#
1356# This file is free software; the Free Software Foundation
1357# gives unlimited permission to copy and/or distribute it,
1358# with or without modifications, as long as this notice is preserved.
1359
1360# AM_MAKE_INCLUDE()
1361# -----------------
1362# Check to see how make treats includes.
1363AC_DEFUN([AM_MAKE_INCLUDE],
1364[am_make=${MAKE-make}
1365cat > confinc << 'END'
1366am__doit:
1367 @echo this is the am__doit target
1368.PHONY: am__doit
1369END
1370# If we don't find an include directive, just comment out the code.
1371AC_MSG_CHECKING([for style of include used by $am_make])
1372am__include="#"
1373am__quote=
1374_am_result=none
1375# First try GNU make style include.
1376echo "include confinc" > confmf
1377# Ignore all kinds of additional output from 'make'.
1378case `$am_make -s -f confmf 2> /dev/null` in #(
1379*the\ am__doit\ target*)
1380 am__include=include
1381 am__quote=
1382 _am_result=GNU
1383 ;;
1384esac
1385# Now try BSD make style include.
1386if test "$am__include" = "#"; then
1387 echo '.include "confinc"' > confmf
1388 case `$am_make -s -f confmf 2> /dev/null` in #(
1389 *the\ am__doit\ target*)
1390 am__include=.include
1391 am__quote="\""
1392 _am_result=BSD
1393 ;;
1394 esac
1395fi
1396AC_SUBST([am__include])
1397AC_SUBST([am__quote])
1398AC_MSG_RESULT([$_am_result])
1399rm -f confinc confmf
1400])
1401
1402# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1403#
1404# This file is free software; the Free Software Foundation
1405# gives unlimited permission to copy and/or distribute it,
1406# with or without modifications, as long as this notice is preserved.
1407
1408# AM_PROG_CC_C_O
1409# --------------
1410# Like AC_PROG_CC_C_O, but changed for automake.
1411AC_DEFUN([AM_PROG_CC_C_O],
1412[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1413AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1414AC_REQUIRE_AUX_FILE([compile])dnl
1415# FIXME: we rely on the cache variable name because
1416# there is no other way.
1417set dummy $CC
1418am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1419eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1420if test "$am_t" != yes; then
1421 # Losing compiler, so override with the script.
1422 # FIXME: It is wrong to rewrite CC.
1423 # But if we don't then we get into trouble of one sort or another.
1424 # A longer-term fix would be to have automake use am__CC in this case,
1425 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1426 CC="$am_aux_dir/compile $CC"
1427fi
1428dnl Make sure AC_PROG_CC is never called again, or it will override our
1429dnl setting of CC.
1430m4_define([AC_PROG_CC],
1431 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1432])
1433
1434# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1435
1436# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1437#
1438# This file is free software; the Free Software Foundation
1439# gives unlimited permission to copy and/or distribute it,
1440# with or without modifications, as long as this notice is preserved.
1441
1442# AM_MISSING_PROG(NAME, PROGRAM)
1443# ------------------------------
1444AC_DEFUN([AM_MISSING_PROG],
1445[AC_REQUIRE([AM_MISSING_HAS_RUN])
1446$1=${$1-"${am_missing_run}$2"}
1447AC_SUBST($1)])
1448
1449# AM_MISSING_HAS_RUN
1450# ------------------
1451# Define MISSING if not defined so far and test if it is modern enough.
1452# If it is, set am_missing_run to use it, otherwise, to nothing.
1453AC_DEFUN([AM_MISSING_HAS_RUN],
1454[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1455AC_REQUIRE_AUX_FILE([missing])dnl
1456if test x"${MISSING+set}" != xset; then
1457 case $am_aux_dir in
1458 *\ * | *\ *)
1459 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1460 *)
1461 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1462 esac
1463fi
1464# Use eval to expand $SHELL
1465if eval "$MISSING --is-lightweight"; then
1466 am_missing_run="$MISSING "
1467else
1468 am_missing_run=
1469 AC_MSG_WARN(['missing' script is too old or missing])
1470fi
1471])
1472
1473# Helper functions for option handling. -*- Autoconf -*-
1474
1475# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1476#
1477# This file is free software; the Free Software Foundation
1478# gives unlimited permission to copy and/or distribute it,
1479# with or without modifications, as long as this notice is preserved.
1480
1481# _AM_MANGLE_OPTION(NAME)
1482# -----------------------
1483AC_DEFUN([_AM_MANGLE_OPTION],
1484[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1485
1486# _AM_SET_OPTION(NAME)
1487# --------------------
1488# Set option NAME. Presently that only means defining a flag for this option.
1489AC_DEFUN([_AM_SET_OPTION],
1490[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1491
1492# _AM_SET_OPTIONS(OPTIONS)
1493# ------------------------
1494# OPTIONS is a space-separated list of Automake options.
1495AC_DEFUN([_AM_SET_OPTIONS],
1496[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1497
1498# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1499# -------------------------------------------
1500# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1501AC_DEFUN([_AM_IF_OPTION],
1502[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1503
1504# Check to make sure that the build environment is sane. -*- Autoconf -*-
1505
1506# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1507#
1508# This file is free software; the Free Software Foundation
1509# gives unlimited permission to copy and/or distribute it,
1510# with or without modifications, as long as this notice is preserved.
1511
1512# AM_SANITY_CHECK
1513# ---------------
1514AC_DEFUN([AM_SANITY_CHECK],
1515[AC_MSG_CHECKING([whether build environment is sane])
1516# Reject unsafe characters in $srcdir or the absolute working directory
1517# name. Accept space and tab only in the latter.
1518am_lf='
1519'
1520case `pwd` in
1521 *[[\\\"\#\$\&\'\`$am_lf]]*)
1522 AC_MSG_ERROR([unsafe absolute working directory name]);;
1523esac
1524case $srcdir in
1525 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1526 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1527esac
1528
1529# Do 'set' in a subshell so we don't clobber the current shell's
1530# arguments. Must try -L first in case configure is actually a
1531# symlink; some systems play weird games with the mod time of symlinks
1532# (eg FreeBSD returns the mod time of the symlink's containing
1533# directory).
1534if (
1535 am_has_slept=no
1536 for am_try in 1 2; do
1537 echo "timestamp, slept: $am_has_slept" > conftest.file
1538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1539 if test "$[*]" = "X"; then
1540 # -L didn't work.
1541 set X `ls -t "$srcdir/configure" conftest.file`
1542 fi
1543 if test "$[*]" != "X $srcdir/configure conftest.file" \
1544 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1545
1546 # If neither matched, then we have a broken ls. This can happen
1547 # if, for instance, CONFIG_SHELL is bash and it inherits a
1548 # broken ls alias from the environment. This has actually
1549 # happened. Such a system could not be considered "sane".
1550 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1551 alias in your environment])
1552 fi
1553 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1554 break
1555 fi
1556 # Just in case.
1557 sleep 1
1558 am_has_slept=yes
1559 done
1560 test "$[2]" = conftest.file
1561 )
1562then
1563 # Ok.
1564 :
1565else
1566 AC_MSG_ERROR([newly created file is older than distributed files!
1567Check your system clock])
1568fi
1569AC_MSG_RESULT([yes])
1570# If we didn't sleep, we still need to ensure time stamps of config.status and
1571# generated files are strictly newer.
1572am_sleep_pid=
1573if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1574 ( sleep 1 ) &
1575 am_sleep_pid=$!
1576fi
1577AC_CONFIG_COMMANDS_PRE(
1578 [AC_MSG_CHECKING([that generated files are newer than configure])
1579 if test -n "$am_sleep_pid"; then
1580 # Hide warnings about reused PIDs.
1581 wait $am_sleep_pid 2>/dev/null
1582 fi
1583 AC_MSG_RESULT([done])])
1584rm -f conftest.file
1585])
1586
1587# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1588#
1589# This file is free software; the Free Software Foundation
1590# gives unlimited permission to copy and/or distribute it,
1591# with or without modifications, as long as this notice is preserved.
1592
1593# AM_SILENT_RULES([DEFAULT])
1594# --------------------------
1595# Enable less verbose build rules; with the default set to DEFAULT
1596# ("yes" being less verbose, "no" or empty being verbose).
1597AC_DEFUN([AM_SILENT_RULES],
1598[AC_ARG_ENABLE([silent-rules], [dnl
1599AS_HELP_STRING(
1600 [--enable-silent-rules],
1601 [less verbose build output (undo: "make V=1")])
1602AS_HELP_STRING(
1603 [--disable-silent-rules],
1604 [verbose build output (undo: "make V=0")])dnl
1605])
1606case $enable_silent_rules in @%:@ (((
1607 yes) AM_DEFAULT_VERBOSITY=0;;
1608 no) AM_DEFAULT_VERBOSITY=1;;
1609 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1610esac
1611dnl
1612dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1613dnl do not support nested variable expansions.
1614dnl See automake bug#9928 and bug#10237.
1615am_make=${MAKE-make}
1616AC_CACHE_CHECK([whether $am_make supports nested variables],
1617 [am_cv_make_support_nested_variables],
1618 [if AS_ECHO([['TRUE=$(BAR$(V))
1619BAR0=false
1620BAR1=true
1621V=1
1622am__doit:
1623 @$(TRUE)
1624.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1625 am_cv_make_support_nested_variables=yes
1626else
1627 am_cv_make_support_nested_variables=no
1628fi])
1629if test $am_cv_make_support_nested_variables = yes; then
1630 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1631 AM_V='$(V)'
1632 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1633else
1634 AM_V=$AM_DEFAULT_VERBOSITY
1635 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1636fi
1637AC_SUBST([AM_V])dnl
1638AM_SUBST_NOTMAKE([AM_V])dnl
1639AC_SUBST([AM_DEFAULT_V])dnl
1640AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1641AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1642AM_BACKSLASH='\'
1643AC_SUBST([AM_BACKSLASH])dnl
1644_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1645])
1646
1647# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1648#
1649# This file is free software; the Free Software Foundation
1650# gives unlimited permission to copy and/or distribute it,
1651# with or without modifications, as long as this notice is preserved.
1652
1653# AM_PROG_INSTALL_STRIP
1654# ---------------------
1655# One issue with vendor 'install' (even GNU) is that you can't
1656# specify the program used to strip binaries. This is especially
1657# annoying in cross-compiling environments, where the build's strip
1658# is unlikely to handle the host's binaries.
1659# Fortunately install-sh will honor a STRIPPROG variable, so we
1660# always use install-sh in "make install-strip", and initialize
1661# STRIPPROG with the value of the STRIP variable (set by the user).
1662AC_DEFUN([AM_PROG_INSTALL_STRIP],
1663[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1664# Installed binaries are usually stripped using 'strip' when the user
1665# run "make install-strip". However 'strip' might not be the right
1666# tool to use in cross-compilation environments, therefore Automake
1667# will honor the 'STRIP' environment variable to overrule this program.
1668dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1669if test "$cross_compiling" != no; then
1670 AC_CHECK_TOOL([STRIP], [strip], :)
1671fi
1672INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1673AC_SUBST([INSTALL_STRIP_PROGRAM])])
1674
1675# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1676#
1677# This file is free software; the Free Software Foundation
1678# gives unlimited permission to copy and/or distribute it,
1679# with or without modifications, as long as this notice is preserved.
1680
1681# _AM_SUBST_NOTMAKE(VARIABLE)
1682# ---------------------------
1683# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1684# This macro is traced by Automake.
1685AC_DEFUN([_AM_SUBST_NOTMAKE])
1686
1687# AM_SUBST_NOTMAKE(VARIABLE)
1688# --------------------------
1689# Public sister of _AM_SUBST_NOTMAKE.
1690AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1691
1692# Check how to create a tarball. -*- Autoconf -*-
1693
1694# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1695#
1696# This file is free software; the Free Software Foundation
1697# gives unlimited permission to copy and/or distribute it,
1698# with or without modifications, as long as this notice is preserved.
1699
1700# _AM_PROG_TAR(FORMAT)
1701# --------------------
1702# Check how to create a tarball in format FORMAT.
1703# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1704#
1705# Substitute a variable $(am__tar) that is a command
1706# writing to stdout a FORMAT-tarball containing the directory
1707# $tardir.
1708# tardir=directory && $(am__tar) > result.tar
1709#
1710# Substitute a variable $(am__untar) that extract such
1711# a tarball read from stdin.
1712# $(am__untar) < result.tar
1713#
1714AC_DEFUN([_AM_PROG_TAR],
1715[# Always define AMTAR for backward compatibility. Yes, it's still used
1716# in the wild :-( We should find a proper way to deprecate it ...
1717AC_SUBST([AMTAR], ['$${TAR-tar}'])
1718
1719# We'll loop over all known methods to create a tar archive until one works.
1720_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1721
1722m4_if([$1], [v7],
1723 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1724
1725 [m4_case([$1],
1726 [ustar],
1727 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1728 # There is notably a 21 bits limit for the UID and the GID. In fact,
1729 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1730 # and bug#13588).
1731 am_max_uid=2097151 # 2^21 - 1
1732 am_max_gid=$am_max_uid
1733 # The $UID and $GID variables are not portable, so we need to resort
1734 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1735 # below are definitely unexpected, so allow the users to see them
1736 # (that is, avoid stderr redirection).
1737 am_uid=`id -u || echo unknown`
1738 am_gid=`id -g || echo unknown`
1739 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1740 if test $am_uid -le $am_max_uid; then
1741 AC_MSG_RESULT([yes])
1742 else
1743 AC_MSG_RESULT([no])
1744 _am_tools=none
1745 fi
1746 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1747 if test $am_gid -le $am_max_gid; then
1748 AC_MSG_RESULT([yes])
1749 else
1750 AC_MSG_RESULT([no])
1751 _am_tools=none
1752 fi],
1753
1754 [pax],
1755 [],
1756
1757 [m4_fatal([Unknown tar format])])
1758
1759 AC_MSG_CHECKING([how to create a $1 tar archive])
1760
1761 # Go ahead even if we have the value already cached. We do so because we
1762 # need to set the values for the 'am__tar' and 'am__untar' variables.
1763 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1764
1765 for _am_tool in $_am_tools; do
1766 case $_am_tool in
1767 gnutar)
1768 for _am_tar in tar gnutar gtar; do
1769 AM_RUN_LOG([$_am_tar --version]) && break
1770 done
1771 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1772 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1773 am__untar="$_am_tar -xf -"
1774 ;;
1775 plaintar)
1776 # Must skip GNU tar: if it does not support --format= it doesn't create
1777 # ustar tarball either.
1778 (tar --version) >/dev/null 2>&1 && continue
1779 am__tar='tar chf - "$$tardir"'
1780 am__tar_='tar chf - "$tardir"'
1781 am__untar='tar xf -'
1782 ;;
1783 pax)
1784 am__tar='pax -L -x $1 -w "$$tardir"'
1785 am__tar_='pax -L -x $1 -w "$tardir"'
1786 am__untar='pax -r'
1787 ;;
1788 cpio)
1789 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1790 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1791 am__untar='cpio -i -H $1 -d'
1792 ;;
1793 none)
1794 am__tar=false
1795 am__tar_=false
1796 am__untar=false
1797 ;;
1798 esac
1799
1800 # If the value was cached, stop now. We just wanted to have am__tar
1801 # and am__untar set.
1802 test -n "${am_cv_prog_tar_$1}" && break
1803
1804 # tar/untar a dummy directory, and stop if the command works.
1805 rm -rf conftest.dir
1806 mkdir conftest.dir
1807 echo GrepMe > conftest.dir/file
1808 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1809 rm -rf conftest.dir
1810 if test -s conftest.tar; then
1811 AM_RUN_LOG([$am__untar <conftest.tar])
1812 AM_RUN_LOG([cat conftest.dir/file])
1813 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1814 fi
1815 done
1816 rm -rf conftest.dir
1817
1818 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1819 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1820
1821AC_SUBST([am__tar])
1822AC_SUBST([am__untar])
1823]) # _AM_PROG_TAR
1824