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