1290001Sglebius# generated automatically by aclocal 1.15 -*- Autoconf -*- 254359Sroberto 3290001Sglebius# Copyright (C) 1996-2014 Free Software Foundation, Inc. 4290001Sglebius 582498Sroberto# This file is free software; the Free Software Foundation 682498Sroberto# gives unlimited permission to copy and/or distribute it, 782498Sroberto# with or without modifications, as long as this notice is preserved. 854359Sroberto 982498Sroberto# This program is distributed in the hope that it will be useful, 1082498Sroberto# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1182498Sroberto# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1282498Sroberto# PARTICULAR PURPOSE. 1354359Sroberto 14290001Sglebiusm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15200576Srobertom4_ifndef([AC_AUTOCONF_VERSION], 16200576Sroberto [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17290001Sglebiusm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18290001Sglebius[m4_warning([this file was generated for autoconf 2.69. 19200576SrobertoYou have another version of autoconf. It may work, but is not guaranteed to. 20200576SrobertoIf you have problems, you may need to regenerate the build system entirely. 21290001SglebiusTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22200576Sroberto 23290001Sglebius# serial 9 -*- Autoconf -*- 24290001Sglebius# Enable extensions on systems that normally disable them. 25182007Sroberto 26290001Sglebius# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. 27290001Sglebius# This file is free software; the Free Software Foundation 28290001Sglebius# gives unlimited permission to copy and/or distribute it, 29290001Sglebius# with or without modifications, as long as this notice is preserved. 30182007Sroberto 31290001Sglebius# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS 32290001Sglebius# Autoconf. Perhaps we can remove this once we can assume Autoconf 33290001Sglebius# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly 34290001Sglebius# enough in this area it's likely we'll need to redefine 35290001Sglebius# AC_USE_SYSTEM_EXTENSIONS for quite some time. 36182007Sroberto 37290001Sglebius# If autoconf reports a warning 38290001Sglebius# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 39290001Sglebius# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 40290001Sglebius# the fix is 41290001Sglebius# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked 42290001Sglebius# but always AC_REQUIREd, 43290001Sglebius# 2) to ensure that for each occurrence of 44290001Sglebius# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 45290001Sglebius# or 46290001Sglebius# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 47290001Sglebius# the corresponding gnulib module description has 'extensions' among 48290001Sglebius# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS 49290001Sglebius# invocation occurs in gl_EARLY, not in gl_INIT. 50182007Sroberto 51290001Sglebius# AC_USE_SYSTEM_EXTENSIONS 52182007Sroberto# ------------------------ 53290001Sglebius# Enable extensions on systems that normally disable them, 54290001Sglebius# typically due to standards-conformance issues. 55290001Sglebius# Remember that #undef in AH_VERBATIM gets replaced with #define by 56290001Sglebius# AC_DEFINE. The goal here is to define all known feature-enabling 57290001Sglebius# macros, then, if reports of conflicts are made, disable macros that 58290001Sglebius# cause problems on some platforms (such as __EXTENSIONS__). 59290001SglebiusAC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], 60290001Sglebius[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 61290001SglebiusAC_BEFORE([$0], [AC_RUN_IFELSE])dnl 6254359Sroberto 63290001Sglebius AC_REQUIRE([AC_CANONICAL_HOST]) 6482498Sroberto 65290001Sglebius AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) 66290001Sglebius if test "$MINIX" = yes; then 67290001Sglebius AC_DEFINE([_POSIX_SOURCE], [1], 68290001Sglebius [Define to 1 if you need to in order for `stat' and other 69290001Sglebius things to work.]) 70290001Sglebius AC_DEFINE([_POSIX_1_SOURCE], [2], 71290001Sglebius [Define to 2 if the system does not provide POSIX.1 features 72290001Sglebius except with this defined.]) 73290001Sglebius AC_DEFINE([_MINIX], [1], 74290001Sglebius [Define to 1 if on MINIX.]) 75182007Sroberto fi 7682498Sroberto 77290001Sglebius dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, 78290001Sglebius dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already 79290001Sglebius dnl provided. 80290001Sglebius case "$host_os" in 81290001Sglebius hpux*) 82290001Sglebius AC_DEFINE([_XOPEN_SOURCE], [500], 83290001Sglebius [Define to 500 only on HP-UX.]) 84182007Sroberto ;; 85182007Sroberto esac 86182007Sroberto 87290001Sglebius AH_VERBATIM([__EXTENSIONS__], 88290001Sglebius[/* Enable extensions on AIX 3, Interix. */ 89290001Sglebius#ifndef _ALL_SOURCE 90290001Sglebius# undef _ALL_SOURCE 91182007Sroberto#endif 92290001Sglebius/* Enable GNU extensions on systems that have them. */ 93290001Sglebius#ifndef _GNU_SOURCE 94290001Sglebius# undef _GNU_SOURCE 95182007Sroberto#endif 96290001Sglebius/* Enable threading extensions on Solaris. */ 97290001Sglebius#ifndef _POSIX_PTHREAD_SEMANTICS 98290001Sglebius# undef _POSIX_PTHREAD_SEMANTICS 99182007Sroberto#endif 100290001Sglebius/* Enable extensions on HP NonStop. */ 101290001Sglebius#ifndef _TANDEM_SOURCE 102290001Sglebius# undef _TANDEM_SOURCE 103182007Sroberto#endif 104290001Sglebius/* Enable general extensions on Solaris. */ 105290001Sglebius#ifndef __EXTENSIONS__ 106290001Sglebius# undef __EXTENSIONS__ 107290001Sglebius#endif 108132451Sroberto]) 109290001Sglebius AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], 110290001Sglebius [ac_cv_safe_to_define___extensions__], 111290001Sglebius [AC_COMPILE_IFELSE( 112290001Sglebius [AC_LANG_PROGRAM([[ 113290001Sglebius# define __EXTENSIONS__ 1 114290001Sglebius ]AC_INCLUDES_DEFAULT])], 115290001Sglebius [ac_cv_safe_to_define___extensions__=yes], 116290001Sglebius [ac_cv_safe_to_define___extensions__=no])]) 117290001Sglebius test $ac_cv_safe_to_define___extensions__ = yes && 118290001Sglebius AC_DEFINE([__EXTENSIONS__]) 119290001Sglebius AC_DEFINE([_ALL_SOURCE]) 120290001Sglebius AC_DEFINE([_GNU_SOURCE]) 121290001Sglebius AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 122290001Sglebius AC_DEFINE([_TANDEM_SOURCE]) 123290001Sglebius])# AC_USE_SYSTEM_EXTENSIONS 12454359Sroberto 125290001Sglebius# gl_USE_SYSTEM_EXTENSIONS 126182007Sroberto# ------------------------ 127290001Sglebius# Enable extensions on systems that normally disable them, 128290001Sglebius# typically due to standards-conformance issues. 129290001SglebiusAC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], 130182007Sroberto[ 131290001Sglebius dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. 132290001Sglebius dnl gnulib does not need it. But if it gets required by third-party macros 133290001Sglebius dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a 134290001Sglebius dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". 135290001Sglebius dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, 136290001Sglebius dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. 137290001Sglebius AC_REQUIRE([AC_GNU_SOURCE]) 138182007Sroberto 139290001Sglebius AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 14056746Sroberto]) 14154359Sroberto 142290001Sglebius# Copyright (C) 2002-2014 Free Software Foundation, Inc. 143182007Sroberto# 144182007Sroberto# This file is free software; the Free Software Foundation 145182007Sroberto# gives unlimited permission to copy and/or distribute it, 146182007Sroberto# with or without modifications, as long as this notice is preserved. 147182007Sroberto 148182007Sroberto# AM_AUTOMAKE_VERSION(VERSION) 149182007Sroberto# ---------------------------- 150182007Sroberto# Automake X.Y traces this macro to ensure aclocal.m4 has been 151182007Sroberto# generated from the m4 files accompanying Automake X.Y. 152200576Sroberto# (This private macro should not be called outside this file.) 153200576SrobertoAC_DEFUN([AM_AUTOMAKE_VERSION], 154290001Sglebius[am__api_version='1.15' 155200576Srobertodnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 156200576Srobertodnl require some minimum version. Point them to the right macro. 157290001Sglebiusm4_if([$1], [1.15], [], 158200576Sroberto [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 159200576Sroberto]) 160182007Sroberto 161200576Sroberto# _AM_AUTOCONF_VERSION(VERSION) 162200576Sroberto# ----------------------------- 163200576Sroberto# aclocal traces this macro to find the Autoconf version. 164200576Sroberto# This is a private macro too. Using m4_define simplifies 165200576Sroberto# the logic in aclocal, which can simply ignore this definition. 166200576Srobertom4_define([_AM_AUTOCONF_VERSION], []) 167200576Sroberto 168182007Sroberto# AM_SET_CURRENT_AUTOMAKE_VERSION 169182007Sroberto# ------------------------------- 170200576Sroberto# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 171200576Sroberto# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 172182007SrobertoAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 173290001Sglebius[AM_AUTOMAKE_VERSION([1.15])dnl 174200576Srobertom4_ifndef([AC_AUTOCONF_VERSION], 175200576Sroberto [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 176200576Sroberto_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 177182007Sroberto 178290001Sglebius# Copyright (C) 2011-2014 Free Software Foundation, Inc. 179290001Sglebius# 180290001Sglebius# This file is free software; the Free Software Foundation 181290001Sglebius# gives unlimited permission to copy and/or distribute it, 182290001Sglebius# with or without modifications, as long as this notice is preserved. 183290001Sglebius 184290001Sglebius# AM_PROG_AR([ACT-IF-FAIL]) 185290001Sglebius# ------------------------- 186290001Sglebius# Try to determine the archiver interface, and trigger the ar-lib wrapper 187290001Sglebius# if it is needed. If the detection of archiver interface fails, run 188290001Sglebius# ACT-IF-FAIL (default is to abort configure with a proper error message). 189290001SglebiusAC_DEFUN([AM_PROG_AR], 190290001Sglebius[AC_BEFORE([$0], [LT_INIT])dnl 191290001SglebiusAC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl 192290001SglebiusAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 193290001SglebiusAC_REQUIRE_AUX_FILE([ar-lib])dnl 194290001SglebiusAC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) 195290001Sglebius: ${AR=ar} 196290001Sglebius 197290001SglebiusAC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], 198290001Sglebius [AC_LANG_PUSH([C]) 199290001Sglebius am_cv_ar_interface=ar 200290001Sglebius AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], 201290001Sglebius [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 202290001Sglebius AC_TRY_EVAL([am_ar_try]) 203290001Sglebius if test "$ac_status" -eq 0; then 204290001Sglebius am_cv_ar_interface=ar 205290001Sglebius else 206290001Sglebius am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 207290001Sglebius AC_TRY_EVAL([am_ar_try]) 208290001Sglebius if test "$ac_status" -eq 0; then 209290001Sglebius am_cv_ar_interface=lib 210290001Sglebius else 211290001Sglebius am_cv_ar_interface=unknown 212290001Sglebius fi 213290001Sglebius fi 214290001Sglebius rm -f conftest.lib libconftest.a 215290001Sglebius ]) 216290001Sglebius AC_LANG_POP([C])]) 217290001Sglebius 218290001Sglebiuscase $am_cv_ar_interface in 219290001Sglebiusar) 220290001Sglebius ;; 221290001Sglebiuslib) 222290001Sglebius # Microsoft lib, so override with the ar-lib wrapper script. 223290001Sglebius # FIXME: It is wrong to rewrite AR. 224290001Sglebius # But if we don't then we get into trouble of one sort or another. 225290001Sglebius # A longer-term fix would be to have automake use am__AR in this case, 226290001Sglebius # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 227290001Sglebius # similar. 228290001Sglebius AR="$am_aux_dir/ar-lib $AR" 229290001Sglebius ;; 230290001Sglebiusunknown) 231290001Sglebius m4_default([$1], 232290001Sglebius [AC_MSG_ERROR([could not determine $AR interface])]) 233290001Sglebius ;; 234290001Sglebiusesac 235290001SglebiusAC_SUBST([AR])dnl 236290001Sglebius]) 237290001Sglebius 238182007Sroberto# AM_AUX_DIR_EXPAND -*- Autoconf -*- 239182007Sroberto 240290001Sglebius# Copyright (C) 2001-2014 Free Software Foundation, Inc. 241182007Sroberto# 242182007Sroberto# This file is free software; the Free Software Foundation 243182007Sroberto# gives unlimited permission to copy and/or distribute it, 244182007Sroberto# with or without modifications, as long as this notice is preserved. 245182007Sroberto 24682498Sroberto# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 247290001Sglebius# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 248290001Sglebius# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 24982498Sroberto# 250106163Sroberto# Of course, Automake must honor this variable whenever it calls a 251106163Sroberto# tool from the auxiliary directory. The problem is that $srcdir (and 252106163Sroberto# therefore $ac_aux_dir as well) can be either absolute or relative, 253106163Sroberto# depending on how configure is run. This is pretty annoying, since 254106163Sroberto# it makes $ac_aux_dir quite unusable in subdirectories: in the top 255106163Sroberto# source directory, any form will work fine, but in subdirectories a 256106163Sroberto# relative path needs to be adjusted first. 257106163Sroberto# 258106163Sroberto# $ac_aux_dir/missing 259106163Sroberto# fails when called from a subdirectory if $ac_aux_dir is relative 260106163Sroberto# $top_srcdir/$ac_aux_dir/missing 261106163Sroberto# fails if $ac_aux_dir is absolute, 262106163Sroberto# fails when called from a subdirectory in a VPATH build with 263106163Sroberto# a relative $ac_aux_dir 264106163Sroberto# 265106163Sroberto# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 266106163Sroberto# are both prefixed by $srcdir. In an in-source build this is usually 267290001Sglebius# harmless because $srcdir is '.', but things will broke when you 268106163Sroberto# start a VPATH build or use an absolute $srcdir. 269106163Sroberto# 270106163Sroberto# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 271106163Sroberto# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 272106163Sroberto# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 273106163Sroberto# and then we would define $MISSING as 274106163Sroberto# MISSING="\${SHELL} $am_aux_dir/missing" 275106163Sroberto# This will work as long as MISSING is not called from configure, because 276106163Sroberto# unfortunately $(top_srcdir) has no meaning in configure. 277106163Sroberto# However there are other variables, like CC, which are often used in 278106163Sroberto# configure, and could therefore not use this "fixed" $ac_aux_dir. 279106163Sroberto# 280106163Sroberto# Another solution, used here, is to always expand $ac_aux_dir to an 281106163Sroberto# absolute PATH. The drawback is that using absolute paths prevent a 282106163Sroberto# configured tree to be moved without reconfiguration. 28356746Sroberto 284182007SrobertoAC_DEFUN([AM_AUX_DIR_EXPAND], 285290001Sglebius[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 286290001Sglebius# Expand $ac_aux_dir to an absolute path. 287290001Sglebiusam_aux_dir=`cd "$ac_aux_dir" && pwd` 28882498Sroberto]) 28982498Sroberto 290182007Sroberto# AM_CONDITIONAL -*- Autoconf -*- 291132451Sroberto 292290001Sglebius# Copyright (C) 1997-2014 Free Software Foundation, Inc. 293182007Sroberto# 294182007Sroberto# This file is free software; the Free Software Foundation 295182007Sroberto# gives unlimited permission to copy and/or distribute it, 296182007Sroberto# with or without modifications, as long as this notice is preserved. 297132451Sroberto 298182007Sroberto# AM_CONDITIONAL(NAME, SHELL-CONDITION) 299182007Sroberto# ------------------------------------- 300182007Sroberto# Define a conditional. 301182007SrobertoAC_DEFUN([AM_CONDITIONAL], 302290001Sglebius[AC_PREREQ([2.52])dnl 303290001Sglebius m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 304290001Sglebius [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 305200576SrobertoAC_SUBST([$1_TRUE])dnl 306200576SrobertoAC_SUBST([$1_FALSE])dnl 307200576Sroberto_AM_SUBST_NOTMAKE([$1_TRUE])dnl 308200576Sroberto_AM_SUBST_NOTMAKE([$1_FALSE])dnl 309200576Srobertom4_define([_AM_COND_VALUE_$1], [$2])dnl 310182007Srobertoif $2; then 311182007Sroberto $1_TRUE= 312182007Sroberto $1_FALSE='#' 313132451Srobertoelse 314182007Sroberto $1_TRUE='#' 315182007Sroberto $1_FALSE= 316132451Srobertofi 317182007SrobertoAC_CONFIG_COMMANDS_PRE( 318182007Sroberto[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 319182007Sroberto AC_MSG_ERROR([[conditional "$1" was never defined. 320182007SrobertoUsually this means the macro was only invoked conditionally.]]) 321182007Srobertofi])]) 322132451Sroberto 323290001Sglebius# Copyright (C) 1999-2014 Free Software Foundation, Inc. 324182007Sroberto# 325182007Sroberto# This file is free software; the Free Software Foundation 326182007Sroberto# gives unlimited permission to copy and/or distribute it, 327182007Sroberto# with or without modifications, as long as this notice is preserved. 328132451Sroberto 329132451Sroberto 330290001Sglebius# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 33182498Sroberto# written in clear, in which case automake, when reading aclocal.m4, 33282498Sroberto# will think it sees a *use*, and therefore will trigger all it's 33382498Sroberto# C support machinery. Also note that it means that autoscan, seeing 33482498Sroberto# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 33582498Sroberto 336106163Sroberto 337106163Sroberto# _AM_DEPENDENCIES(NAME) 338132451Sroberto# ---------------------- 33982498Sroberto# See how the compiler implements dependency checking. 340290001Sglebius# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 34182498Sroberto# We try a few techniques and use that to set a single cache variable. 342106163Sroberto# 343106163Sroberto# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 344106163Sroberto# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 345106163Sroberto# dependency, and given that the user is not expected to run this macro, 346106163Sroberto# just rely on AC_PROG_CC. 347106163SrobertoAC_DEFUN([_AM_DEPENDENCIES], 34882498Sroberto[AC_REQUIRE([AM_SET_DEPDIR])dnl 34982498SrobertoAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 350106163SrobertoAC_REQUIRE([AM_MAKE_INCLUDE])dnl 351106163SrobertoAC_REQUIRE([AM_DEP_TRACK])dnl 35256746Sroberto 353290001Sglebiusm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 354290001Sglebius [$1], [CXX], [depcc="$CXX" am_compiler_list=], 355290001Sglebius [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 356290001Sglebius [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 357290001Sglebius [$1], [UPC], [depcc="$UPC" am_compiler_list=], 358290001Sglebius [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 359290001Sglebius [depcc="$$1" am_compiler_list=]) 36082498Sroberto 36182498SrobertoAC_CACHE_CHECK([dependency style of $depcc], 36282498Sroberto [am_cv_$1_dependencies_compiler_type], 363106163Sroberto[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 36482498Sroberto # We make a subdir and do the tests there. Otherwise we can end up 36582498Sroberto # making bogus files that we don't know about and never remove. For 36682498Sroberto # instance it was reported that on HP-UX the gcc test will end up 367290001Sglebius # making a dummy file named 'D' -- because '-MD' means "put the output 368290001Sglebius # in D". 369290001Sglebius rm -rf conftest.dir 370106163Sroberto mkdir conftest.dir 37182498Sroberto # Copy depcomp to subdir because otherwise we won't find it if we're 37282498Sroberto # using a relative directory. 373106163Sroberto cp "$am_depcomp" conftest.dir 374106163Sroberto cd conftest.dir 375132451Sroberto # We will build objects and dependencies in a subdirectory because 376132451Sroberto # it helps to detect inapplicable dependency modes. For instance 377132451Sroberto # both Tru64's cc and ICC support -MD to output dependencies as a 378132451Sroberto # side effect of compilation, but ICC will put the dependencies in 379132451Sroberto # the current directory while Tru64 will put them in the object 380132451Sroberto # directory. 381132451Sroberto mkdir sub 38282498Sroberto 38382498Sroberto am_cv_$1_dependencies_compiler_type=none 384106163Sroberto if test "$am_compiler_list" = ""; then 385106163Sroberto am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 386106163Sroberto fi 387200576Sroberto am__universal=false 388200576Sroberto m4_case([$1], [CC], 389200576Sroberto [case " $depcc " in #( 390200576Sroberto *\ -arch\ *\ -arch\ *) am__universal=true ;; 391200576Sroberto esac], 392200576Sroberto [CXX], 393200576Sroberto [case " $depcc " in #( 394200576Sroberto *\ -arch\ *\ -arch\ *) am__universal=true ;; 395200576Sroberto esac]) 396200576Sroberto 397106163Sroberto for depmode in $am_compiler_list; do 398132451Sroberto # Setup a source with many dependencies, because some compilers 399132451Sroberto # like to wrap large dependency lists on column 80 (with \), and 400132451Sroberto # we should not choose a depcomp mode which is confused by this. 401132451Sroberto # 40282498Sroberto # We need to recreate these files for each test, as the compiler may 40382498Sroberto # overwrite some of them when testing with obscure command lines. 40482498Sroberto # This happens at least with the AIX C compiler. 405132451Sroberto : > sub/conftest.c 406132451Sroberto for i in 1 2 3 4 5 6; do 407132451Sroberto echo '#include "conftst'$i'.h"' >> sub/conftest.c 408290001Sglebius # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 409290001Sglebius # Solaris 10 /bin/sh. 410290001Sglebius echo '/* dummy */' > sub/conftst$i.h 411132451Sroberto done 412132451Sroberto echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 41382498Sroberto 414290001Sglebius # We check with '-c' and '-o' for the sake of the "dashmstdout" 415200576Sroberto # mode. It turns out that the SunPro C++ compiler does not properly 416290001Sglebius # handle '-M -o', and we need to detect this. Also, some Intel 417290001Sglebius # versions had trouble with output in subdirs. 418200576Sroberto am__obj=sub/conftest.${OBJEXT-o} 419200576Sroberto am__minus_obj="-o $am__obj" 420106163Sroberto case $depmode in 421200576Sroberto gcc) 422200576Sroberto # This depmode causes a compiler race in universal mode. 423200576Sroberto test "$am__universal" = false || continue 424200576Sroberto ;; 42556746Sroberto nosideeffect) 426290001Sglebius # After this tag, mechanisms are not by side-effect, so they'll 427290001Sglebius # only be used when explicitly requested. 42856746Sroberto if test "x$enable_dependency_tracking" = xyes; then 42956746Sroberto continue 43056746Sroberto else 43156746Sroberto break 43256746Sroberto fi 43356746Sroberto ;; 434290001Sglebius msvc7 | msvc7msys | msvisualcpp | msvcmsys) 435290001Sglebius # This compiler won't grok '-c -o', but also, the minuso test has 436200576Sroberto # not run yet. These depmodes are late enough in the game, and 437200576Sroberto # so weak that their functioning should not be impacted. 438200576Sroberto am__obj=conftest.${OBJEXT-o} 439200576Sroberto am__minus_obj= 440200576Sroberto ;; 44156746Sroberto none) break ;; 44256746Sroberto esac 443106163Sroberto if depmode=$depmode \ 444200576Sroberto source=sub/conftest.c object=$am__obj \ 445132451Sroberto depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 446200576Sroberto $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 447132451Sroberto >/dev/null 2>conftest.err && 448200576Sroberto grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 449132451Sroberto grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 450200576Sroberto grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 451106163Sroberto ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 452132451Sroberto # icc doesn't choke on unknown options, it will just issue warnings 453182007Sroberto # or remarks (even with -Werror). So we grep stderr for any message 454182007Sroberto # that says an option was ignored or not supported. 455182007Sroberto # When given -MP, icc 7.0 and 7.1 complain thusly: 456182007Sroberto # icc: Command line warning: ignoring option '-M'; no argument required 457182007Sroberto # The diagnosis changed in icc 8.0: 458182007Sroberto # icc: Command line remark: option '-MP' not supported 459182007Sroberto if (grep 'ignoring option' conftest.err || 460182007Sroberto grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 461132451Sroberto am_cv_$1_dependencies_compiler_type=$depmode 462132451Sroberto break 463132451Sroberto fi 46456746Sroberto fi 46556746Sroberto done 46656746Sroberto 46782498Sroberto cd .. 468106163Sroberto rm -rf conftest.dir 46956746Srobertoelse 47082498Sroberto am_cv_$1_dependencies_compiler_type=none 47156746Srobertofi 47256746Sroberto]) 473132451SrobertoAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 474132451SrobertoAM_CONDITIONAL([am__fastdep$1], [ 475132451Sroberto test "x$enable_dependency_tracking" != xno \ 476132451Sroberto && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 47756746Sroberto]) 47856746Sroberto 47956746Sroberto 48082498Sroberto# AM_SET_DEPDIR 48182498Sroberto# ------------- 48282498Sroberto# Choose a directory name for dependency files. 483290001Sglebius# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 48482498SrobertoAC_DEFUN([AM_SET_DEPDIR], 485132451Sroberto[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 486132451SrobertoAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 48756746Sroberto]) 48856746Sroberto 48982498Sroberto 49082498Sroberto# AM_DEP_TRACK 49182498Sroberto# ------------ 49282498SrobertoAC_DEFUN([AM_DEP_TRACK], 493290001Sglebius[AC_ARG_ENABLE([dependency-tracking], [dnl 494290001SglebiusAS_HELP_STRING( 495290001Sglebius [--enable-dependency-tracking], 496290001Sglebius [do not reject slow dependency extractors]) 497290001SglebiusAS_HELP_STRING( 498290001Sglebius [--disable-dependency-tracking], 499290001Sglebius [speeds up one-time build])]) 500106163Srobertoif test "x$enable_dependency_tracking" != xno; then 50156746Sroberto am_depcomp="$ac_aux_dir/depcomp" 50256746Sroberto AMDEPBACKSLASH='\' 503290001Sglebius am__nodep='_no' 50456746Srobertofi 505106163SrobertoAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 506200576SrobertoAC_SUBST([AMDEPBACKSLASH])dnl 507200576Sroberto_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 508290001SglebiusAC_SUBST([am__nodep])dnl 509290001Sglebius_AM_SUBST_NOTMAKE([am__nodep])dnl 51056746Sroberto]) 51156746Sroberto 512182007Sroberto# Generate code to set up dependency tracking. -*- Autoconf -*- 51356746Sroberto 514290001Sglebius# Copyright (C) 1999-2014 Free Software Foundation, Inc. 515182007Sroberto# 516182007Sroberto# This file is free software; the Free Software Foundation 517182007Sroberto# gives unlimited permission to copy and/or distribute it, 518182007Sroberto# with or without modifications, as long as this notice is preserved. 519132451Sroberto 520132451Sroberto 521132451Sroberto# _AM_OUTPUT_DEPENDENCY_COMMANDS 522132451Sroberto# ------------------------------ 523132451SrobertoAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 524200576Sroberto[{ 525290001Sglebius # Older Autoconf quotes --file arguments for eval, but not when files 526200576Sroberto # are listed without --file. Let's play safe and only enable the eval 527200576Sroberto # if we detect the quoting. 528200576Sroberto case $CONFIG_FILES in 529200576Sroberto *\'*) eval set x "$CONFIG_FILES" ;; 530200576Sroberto *) set x $CONFIG_FILES ;; 531200576Sroberto esac 532200576Sroberto shift 533200576Sroberto for mf 534200576Sroberto do 535200576Sroberto # Strip MF so we end up with the name of the file. 536200576Sroberto mf=`echo "$mf" | sed -e 's/:.*$//'` 537200576Sroberto # Check whether this is an Automake generated Makefile or not. 538290001Sglebius # We used to match only the files named 'Makefile.in', but 539200576Sroberto # some people rename them; so instead we look at the file content. 540200576Sroberto # Grep'ing the first line is not enough: some people post-process 541200576Sroberto # each Makefile.in and add a new line on top of each file to say so. 542200576Sroberto # Grep'ing the whole file is not good either: AIX grep has a line 543200576Sroberto # limit of 2048, but all sed's we know have understand at least 4000. 544200576Sroberto if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 545200576Sroberto dirpart=`AS_DIRNAME("$mf")` 546200576Sroberto else 547200576Sroberto continue 548200576Sroberto fi 549200576Sroberto # Extract the definition of DEPDIR, am__include, and am__quote 550290001Sglebius # from the Makefile without running 'make'. 551200576Sroberto DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 552200576Sroberto test -z "$DEPDIR" && continue 553200576Sroberto am__include=`sed -n 's/^am__include = //p' < "$mf"` 554290001Sglebius test -z "$am__include" && continue 555200576Sroberto am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 556200576Sroberto # Find all dependency output files, they are included files with 557200576Sroberto # $(DEPDIR) in their names. We invoke sed twice because it is the 558200576Sroberto # simplest approach to changing $(DEPDIR) to its actual value in the 559200576Sroberto # expansion. 560200576Sroberto for file in `sed -n " 561200576Sroberto s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 562290001Sglebius sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 563200576Sroberto # Make sure the directory exists. 564200576Sroberto test -f "$dirpart/$file" && continue 565200576Sroberto fdir=`AS_DIRNAME(["$file"])` 566200576Sroberto AS_MKDIR_P([$dirpart/$fdir]) 567200576Sroberto # echo "creating $dirpart/$file" 568200576Sroberto echo '# dummy' > "$dirpart/$file" 569200576Sroberto done 57056746Sroberto done 571200576Sroberto} 572132451Sroberto])# _AM_OUTPUT_DEPENDENCY_COMMANDS 57356746Sroberto 574132451Sroberto 575132451Sroberto# AM_OUTPUT_DEPENDENCY_COMMANDS 576132451Sroberto# ----------------------------- 577132451Sroberto# This macro should only be invoked once -- use via AC_REQUIRE. 578132451Sroberto# 579132451Sroberto# This code is only required when automatic dependency tracking 580290001Sglebius# is enabled. FIXME. This creates each '.P' file that we will 581132451Sroberto# need in order to bootstrap the dependency handling code. 582132451SrobertoAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 583132451Sroberto[AC_CONFIG_COMMANDS([depfiles], 584132451Sroberto [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 585132451Sroberto [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 586132451Sroberto]) 587132451Sroberto 588182007Sroberto# Do all the work for Automake. -*- Autoconf -*- 589132451Sroberto 590290001Sglebius# Copyright (C) 1996-2014 Free Software Foundation, Inc. 591182007Sroberto# 592182007Sroberto# This file is free software; the Free Software Foundation 593182007Sroberto# gives unlimited permission to copy and/or distribute it, 594182007Sroberto# with or without modifications, as long as this notice is preserved. 595132451Sroberto 596182007Sroberto# This macro actually does too much. Some checks are only needed if 597182007Sroberto# your package does certain things. But this isn't really a big deal. 598182007Sroberto 599290001Sglebiusdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 600290001Sglebiusm4_define([AC_PROG_CC], 601290001Sglebiusm4_defn([AC_PROG_CC]) 602290001Sglebius[_AM_PROG_CC_C_O 603290001Sglebius]) 604290001Sglebius 605182007Sroberto# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 606182007Sroberto# AM_INIT_AUTOMAKE([OPTIONS]) 607182007Sroberto# ----------------------------------------------- 608182007Sroberto# The call with PACKAGE and VERSION arguments is the old style 609182007Sroberto# call (pre autoconf-2.50), which is being phased out. PACKAGE 610182007Sroberto# and VERSION should now be passed to AC_INIT and removed from 611182007Sroberto# the call to AM_INIT_AUTOMAKE. 612182007Sroberto# We support both call styles for the transition. After 613182007Sroberto# the next Automake release, Autoconf can make the AC_INIT 614182007Sroberto# arguments mandatory, and then we can depend on a new Autoconf 615182007Sroberto# release and drop the old call support. 616182007SrobertoAC_DEFUN([AM_INIT_AUTOMAKE], 617290001Sglebius[AC_PREREQ([2.65])dnl 618182007Srobertodnl Autoconf wants to disallow AM_ names. We explicitly allow 619182007Srobertodnl the ones we care about. 620182007Srobertom4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 621182007SrobertoAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 622182007SrobertoAC_REQUIRE([AC_PROG_INSTALL])dnl 623200576Srobertoif test "`cd $srcdir && pwd`" != "`pwd`"; then 624200576Sroberto # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 625200576Sroberto # is not polluted with repeated "-I." 626200576Sroberto AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 627200576Sroberto # test to see if srcdir already configured 628200576Sroberto if test -f $srcdir/config.status; then 629200576Sroberto AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 630200576Sroberto fi 631182007Srobertofi 632182007Sroberto 633182007Sroberto# test whether we have cygpath 634182007Srobertoif test -z "$CYGPATH_W"; then 635182007Sroberto if (cygpath --version) >/dev/null 2>/dev/null; then 636182007Sroberto CYGPATH_W='cygpath -w' 637182007Sroberto else 638182007Sroberto CYGPATH_W=echo 639182007Sroberto fi 640182007Srobertofi 641182007SrobertoAC_SUBST([CYGPATH_W]) 642182007Sroberto 643182007Sroberto# Define the identity of the package. 644182007Srobertodnl Distinguish between old-style and new-style calls. 645182007Srobertom4_ifval([$2], 646290001Sglebius[AC_DIAGNOSE([obsolete], 647290001Sglebius [$0: two- and three-arguments forms are deprecated.]) 648290001Sglebiusm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 649182007Sroberto AC_SUBST([PACKAGE], [$1])dnl 650182007Sroberto AC_SUBST([VERSION], [$2])], 651182007Sroberto[_AM_SET_OPTIONS([$1])dnl 652200576Srobertodnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 653290001Sglebiusm4_if( 654290001Sglebius m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 655290001Sglebius [ok:ok],, 656200576Sroberto [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 657182007Sroberto AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 658182007Sroberto AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 659182007Sroberto 660182007Sroberto_AM_IF_OPTION([no-define],, 661290001Sglebius[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 662290001Sglebius AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 663182007Sroberto 664182007Sroberto# Some tools Automake needs. 665182007SrobertoAC_REQUIRE([AM_SANITY_CHECK])dnl 666182007SrobertoAC_REQUIRE([AC_ARG_PROGRAM])dnl 667290001SglebiusAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 668290001SglebiusAM_MISSING_PROG([AUTOCONF], [autoconf]) 669290001SglebiusAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 670290001SglebiusAM_MISSING_PROG([AUTOHEADER], [autoheader]) 671290001SglebiusAM_MISSING_PROG([MAKEINFO], [makeinfo]) 672200576SrobertoAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 673200576SrobertoAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 674290001SglebiusAC_REQUIRE([AC_PROG_MKDIR_P])dnl 675290001Sglebius# For better backward compatibility. To be removed once Automake 1.9.x 676290001Sglebius# dies out for good. For more background, see: 677290001Sglebius# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 678290001Sglebius# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 679290001SglebiusAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 680290001Sglebius# We need awk for the "check" target (and possibly the TAP driver). The 681290001Sglebius# system "awk" is bad on some platforms. 682182007SrobertoAC_REQUIRE([AC_PROG_AWK])dnl 683182007SrobertoAC_REQUIRE([AC_PROG_MAKE_SET])dnl 684182007SrobertoAC_REQUIRE([AM_SET_LEADING_DOT])dnl 685182007Sroberto_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 686200576Sroberto [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 687200576Sroberto [_AM_PROG_TAR([v7])])]) 688182007Sroberto_AM_IF_OPTION([no-dependencies],, 689182007Sroberto[AC_PROVIDE_IFELSE([AC_PROG_CC], 690290001Sglebius [_AM_DEPENDENCIES([CC])], 691290001Sglebius [m4_define([AC_PROG_CC], 692290001Sglebius m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 693182007SrobertoAC_PROVIDE_IFELSE([AC_PROG_CXX], 694290001Sglebius [_AM_DEPENDENCIES([CXX])], 695290001Sglebius [m4_define([AC_PROG_CXX], 696290001Sglebius m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 697200576SrobertoAC_PROVIDE_IFELSE([AC_PROG_OBJC], 698290001Sglebius [_AM_DEPENDENCIES([OBJC])], 699290001Sglebius [m4_define([AC_PROG_OBJC], 700290001Sglebius m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 701290001SglebiusAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 702290001Sglebius [_AM_DEPENDENCIES([OBJCXX])], 703290001Sglebius [m4_define([AC_PROG_OBJCXX], 704290001Sglebius m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 705182007Sroberto]) 706290001SglebiusAC_REQUIRE([AM_SILENT_RULES])dnl 707290001Sglebiusdnl The testsuite driver may need to know about EXEEXT, so add the 708290001Sglebiusdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 709290001Sglebiusdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 710200576SrobertoAC_CONFIG_COMMANDS_PRE(dnl 711200576Sroberto[m4_provide_if([_AM_COMPILER_EXEEXT], 712200576Sroberto [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 713290001Sglebius 714290001Sglebius# POSIX will say in a future version that running "rm -f" with no argument 715290001Sglebius# is OK; and we want to be able to make that assumption in our Makefile 716290001Sglebius# recipes. So use an aggressive probe to check that the usage we want is 717290001Sglebius# actually supported "in the wild" to an acceptable degree. 718290001Sglebius# See automake bug#10828. 719290001Sglebius# To make any issue more visible, cause the running configure to be aborted 720290001Sglebius# by default if the 'rm' program in use doesn't match our expectations; the 721290001Sglebius# user can still override this though. 722290001Sglebiusif rm -f && rm -fr && rm -rf; then : OK; else 723290001Sglebius cat >&2 <<'END' 724290001SglebiusOops! 725290001Sglebius 726290001SglebiusYour 'rm' program seems unable to run without file operands specified 727290001Sglebiuson the command line, even when the '-f' option is present. This is contrary 728290001Sglebiusto the behaviour of most rm programs out there, and not conforming with 729290001Sglebiusthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 730290001Sglebius 731290001SglebiusPlease tell bug-automake@gnu.org about your system, including the value 732290001Sglebiusof your $PATH and any error possibly output before this message. This 733290001Sglebiuscan help us improve future automake versions. 734290001Sglebius 735290001SglebiusEND 736290001Sglebius if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 737290001Sglebius echo 'Configuration will proceed anyway, since you have set the' >&2 738290001Sglebius echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 739290001Sglebius echo >&2 740290001Sglebius else 741290001Sglebius cat >&2 <<'END' 742290001SglebiusAborting the configuration process, to ensure you take notice of the issue. 743290001Sglebius 744290001SglebiusYou can download and install GNU coreutils to get an 'rm' implementation 745290001Sglebiusthat behaves properly: <http://www.gnu.org/software/coreutils/>. 746290001Sglebius 747290001SglebiusIf you want to complete the configuration process using your problematic 748290001Sglebius'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 749290001Sglebiusto "yes", and re-run configure. 750290001Sglebius 751290001SglebiusEND 752290001Sglebius AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 753290001Sglebius fi 754290001Sglebiusfi 755290001Sglebiusdnl The trailing newline in this macro's definition is deliberate, for 756290001Sglebiusdnl backward compatibility and to allow trailing 'dnl'-style comments 757290001Sglebiusdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 758182007Sroberto]) 759182007Sroberto 760290001Sglebiusdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 761200576Srobertodnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 762200576Srobertodnl mangled by Autoconf and run in a shell conditional statement. 763200576Srobertom4_define([_AC_COMPILER_EXEEXT], 764200576Srobertom4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 765182007Sroberto 766182007Sroberto# When config.status generates a header, we must update the stamp-h file. 767182007Sroberto# This file resides in the same directory as the config header 768182007Sroberto# that is generated. The stamp files are numbered to have different names. 769182007Sroberto 770182007Sroberto# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 771182007Sroberto# loop where config.status creates the headers, so we can generate 772182007Sroberto# our stamp files there. 773182007SrobertoAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 774182007Sroberto[# Compute $1's index in $config_headers. 775200576Sroberto_am_arg=$1 776182007Sroberto_am_stamp_count=1 777182007Srobertofor _am_header in $config_headers :; do 778182007Sroberto case $_am_header in 779200576Sroberto $_am_arg | $_am_arg:* ) 780182007Sroberto break ;; 781182007Sroberto * ) 782182007Sroberto _am_stamp_count=`expr $_am_stamp_count + 1` ;; 783182007Sroberto esac 784182007Srobertodone 785200576Srobertoecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 786182007Sroberto 787290001Sglebius# Copyright (C) 2001-2014 Free Software Foundation, Inc. 788182007Sroberto# 789182007Sroberto# This file is free software; the Free Software Foundation 790182007Sroberto# gives unlimited permission to copy and/or distribute it, 791182007Sroberto# with or without modifications, as long as this notice is preserved. 792182007Sroberto 793182007Sroberto# AM_PROG_INSTALL_SH 794182007Sroberto# ------------------ 795182007Sroberto# Define $install_sh. 796182007SrobertoAC_DEFUN([AM_PROG_INSTALL_SH], 797182007Sroberto[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 798290001Sglebiusif test x"${install_sh+set}" != xset; then 799200576Sroberto case $am_aux_dir in 800200576Sroberto *\ * | *\ *) 801200576Sroberto install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 802200576Sroberto *) 803200576Sroberto install_sh="\${SHELL} $am_aux_dir/install-sh" 804200576Sroberto esac 805200576Srobertofi 806290001SglebiusAC_SUBST([install_sh])]) 807182007Sroberto 808290001Sglebius# Copyright (C) 2003-2014 Free Software Foundation, Inc. 809182007Sroberto# 810182007Sroberto# This file is free software; the Free Software Foundation 811182007Sroberto# gives unlimited permission to copy and/or distribute it, 812182007Sroberto# with or without modifications, as long as this notice is preserved. 813182007Sroberto 814182007Sroberto# Check whether the underlying file-system supports filenames 815182007Sroberto# with a leading dot. For instance MS-DOS doesn't. 816182007SrobertoAC_DEFUN([AM_SET_LEADING_DOT], 817182007Sroberto[rm -rf .tst 2>/dev/null 818182007Srobertomkdir .tst 2>/dev/null 819182007Srobertoif test -d .tst; then 820182007Sroberto am__leading_dot=. 821182007Srobertoelse 822182007Sroberto am__leading_dot=_ 823182007Srobertofi 824182007Srobertormdir .tst 2>/dev/null 825182007SrobertoAC_SUBST([am__leading_dot])]) 826182007Sroberto 827182007Sroberto# Check to see how 'make' treats includes. -*- Autoconf -*- 828182007Sroberto 829290001Sglebius# Copyright (C) 2001-2014 Free Software Foundation, Inc. 830182007Sroberto# 831182007Sroberto# This file is free software; the Free Software Foundation 832182007Sroberto# gives unlimited permission to copy and/or distribute it, 833182007Sroberto# with or without modifications, as long as this notice is preserved. 834182007Sroberto 83582498Sroberto# AM_MAKE_INCLUDE() 83682498Sroberto# ----------------- 83782498Sroberto# Check to see how make treats includes. 83882498SrobertoAC_DEFUN([AM_MAKE_INCLUDE], 83982498Sroberto[am_make=${MAKE-make} 84082498Srobertocat > confinc << 'END' 841132451Srobertoam__doit: 842200576Sroberto @echo this is the am__doit target 843132451Sroberto.PHONY: am__doit 84482498SrobertoEND 84582498Sroberto# If we don't find an include directive, just comment out the code. 84682498SrobertoAC_MSG_CHECKING([for style of include used by $am_make]) 847132451Srobertoam__include="#" 848106163Srobertoam__quote= 849106163Sroberto_am_result=none 850106163Sroberto# First try GNU make style include. 851106163Srobertoecho "include confinc" > confmf 852290001Sglebius# Ignore all kinds of additional output from 'make'. 853200576Srobertocase `$am_make -s -f confmf 2> /dev/null` in #( 854200576Sroberto*the\ am__doit\ target*) 855200576Sroberto am__include=include 856200576Sroberto am__quote= 857200576Sroberto _am_result=GNU 858200576Sroberto ;; 859200576Srobertoesac 860106163Sroberto# Now try BSD make style include. 861106163Srobertoif test "$am__include" = "#"; then 862106163Sroberto echo '.include "confinc"' > confmf 863200576Sroberto case `$am_make -s -f confmf 2> /dev/null` in #( 864200576Sroberto *the\ am__doit\ target*) 865200576Sroberto am__include=.include 866200576Sroberto am__quote="\"" 867200576Sroberto _am_result=BSD 868200576Sroberto ;; 869200576Sroberto esac 870106163Srobertofi 871132451SrobertoAC_SUBST([am__include]) 872132451SrobertoAC_SUBST([am__quote]) 873132451SrobertoAC_MSG_RESULT([$_am_result]) 87482498Srobertorm -f confinc confmf 87582498Sroberto]) 87656746Sroberto 877182007Sroberto# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 87882498Sroberto 879290001Sglebius# Copyright (C) 1997-2014 Free Software Foundation, Inc. 880182007Sroberto# 881182007Sroberto# This file is free software; the Free Software Foundation 882182007Sroberto# gives unlimited permission to copy and/or distribute it, 883182007Sroberto# with or without modifications, as long as this notice is preserved. 884132451Sroberto 885182007Sroberto# AM_MISSING_PROG(NAME, PROGRAM) 886182007Sroberto# ------------------------------ 887182007SrobertoAC_DEFUN([AM_MISSING_PROG], 888182007Sroberto[AC_REQUIRE([AM_MISSING_HAS_RUN]) 889182007Sroberto$1=${$1-"${am_missing_run}$2"} 890182007SrobertoAC_SUBST($1)]) 891132451Sroberto 892182007Sroberto# AM_MISSING_HAS_RUN 893182007Sroberto# ------------------ 894290001Sglebius# Define MISSING if not defined so far and test if it is modern enough. 895290001Sglebius# If it is, set am_missing_run to use it, otherwise, to nothing. 896182007SrobertoAC_DEFUN([AM_MISSING_HAS_RUN], 897182007Sroberto[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 898200576SrobertoAC_REQUIRE_AUX_FILE([missing])dnl 899200576Srobertoif test x"${MISSING+set}" != xset; then 900200576Sroberto case $am_aux_dir in 901200576Sroberto *\ * | *\ *) 902200576Sroberto MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 903200576Sroberto *) 904200576Sroberto MISSING="\${SHELL} $am_aux_dir/missing" ;; 905200576Sroberto esac 906200576Srobertofi 907182007Sroberto# Use eval to expand $SHELL 908290001Sglebiusif eval "$MISSING --is-lightweight"; then 909290001Sglebius am_missing_run="$MISSING " 910182007Srobertoelse 911182007Sroberto am_missing_run= 912290001Sglebius AC_MSG_WARN(['missing' script is too old or missing]) 913182007Srobertofi 914182007Sroberto]) 915132451Sroberto 916182007Sroberto# Helper functions for option handling. -*- Autoconf -*- 917106163Sroberto 918290001Sglebius# Copyright (C) 2001-2014 Free Software Foundation, Inc. 919182007Sroberto# 920182007Sroberto# This file is free software; the Free Software Foundation 921182007Sroberto# gives unlimited permission to copy and/or distribute it, 922182007Sroberto# with or without modifications, as long as this notice is preserved. 92354359Sroberto 924182007Sroberto# _AM_MANGLE_OPTION(NAME) 925182007Sroberto# ----------------------- 926182007SrobertoAC_DEFUN([_AM_MANGLE_OPTION], 927182007Sroberto[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 928132451Sroberto 929182007Sroberto# _AM_SET_OPTION(NAME) 930290001Sglebius# -------------------- 931182007Sroberto# Set option NAME. Presently that only means defining a flag for this option. 932182007SrobertoAC_DEFUN([_AM_SET_OPTION], 933290001Sglebius[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 934132451Sroberto 935182007Sroberto# _AM_SET_OPTIONS(OPTIONS) 936290001Sglebius# ------------------------ 937182007Sroberto# OPTIONS is a space-separated list of Automake options. 938182007SrobertoAC_DEFUN([_AM_SET_OPTIONS], 939200576Sroberto[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 940132451Sroberto 941182007Sroberto# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 942182007Sroberto# ------------------------------------------- 943182007Sroberto# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 944182007SrobertoAC_DEFUN([_AM_IF_OPTION], 945182007Sroberto[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 946182007Sroberto 947290001Sglebius# Copyright (C) 1999-2014 Free Software Foundation, Inc. 948182007Sroberto# 949182007Sroberto# This file is free software; the Free Software Foundation 950182007Sroberto# gives unlimited permission to copy and/or distribute it, 951182007Sroberto# with or without modifications, as long as this notice is preserved. 952182007Sroberto 953290001Sglebius# _AM_PROG_CC_C_O 954290001Sglebius# --------------- 955290001Sglebius# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 956290001Sglebius# to automatically call this. 957290001SglebiusAC_DEFUN([_AM_PROG_CC_C_O], 958290001Sglebius[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 959290001SglebiusAC_REQUIRE_AUX_FILE([compile])dnl 960290001SglebiusAC_LANG_PUSH([C])dnl 961290001SglebiusAC_CACHE_CHECK( 962290001Sglebius [whether $CC understands -c and -o together], 963290001Sglebius [am_cv_prog_cc_c_o], 964290001Sglebius [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 965290001Sglebius # Make sure it works both with $CC and with simple cc. 966290001Sglebius # Following AC_PROG_CC_C_O, we do the test twice because some 967290001Sglebius # compilers refuse to overwrite an existing .o file with -o, 968290001Sglebius # though they will create one. 969290001Sglebius am_cv_prog_cc_c_o=yes 970290001Sglebius for am_i in 1 2; do 971290001Sglebius if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 972290001Sglebius && test -f conftest2.$ac_objext; then 973290001Sglebius : OK 974290001Sglebius else 975290001Sglebius am_cv_prog_cc_c_o=no 976290001Sglebius break 977290001Sglebius fi 978290001Sglebius done 979290001Sglebius rm -f core conftest* 980290001Sglebius unset am_i]) 981290001Sglebiusif test "$am_cv_prog_cc_c_o" != yes; then 982290001Sglebius # Losing compiler, so override with the script. 983290001Sglebius # FIXME: It is wrong to rewrite CC. 984290001Sglebius # But if we don't then we get into trouble of one sort or another. 985290001Sglebius # A longer-term fix would be to have automake use am__CC in this case, 986290001Sglebius # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 987290001Sglebius CC="$am_aux_dir/compile $CC" 98854359Srobertofi 989290001SglebiusAC_LANG_POP([C])]) 99054359Sroberto 991290001Sglebius# For backward compatibility. 992290001SglebiusAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 99354359Sroberto 994290001Sglebius# Copyright (C) 2001-2014 Free Software Foundation, Inc. 995290001Sglebius# 996290001Sglebius# This file is free software; the Free Software Foundation 997290001Sglebius# gives unlimited permission to copy and/or distribute it, 998290001Sglebius# with or without modifications, as long as this notice is preserved. 999290001Sglebius 1000290001Sglebius# AM_RUN_LOG(COMMAND) 1001290001Sglebius# ------------------- 1002290001Sglebius# Run COMMAND, save the exit status in ac_status, and log it. 1003290001Sglebius# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 1004290001SglebiusAC_DEFUN([AM_RUN_LOG], 1005290001Sglebius[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 1006290001Sglebius ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 1007290001Sglebius ac_status=$? 1008290001Sglebius echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1009290001Sglebius (exit $ac_status); }]) 1010290001Sglebius 1011182007Sroberto# Check to make sure that the build environment is sane. -*- Autoconf -*- 101254359Sroberto 1013290001Sglebius# Copyright (C) 1996-2014 Free Software Foundation, Inc. 1014182007Sroberto# 1015182007Sroberto# This file is free software; the Free Software Foundation 1016182007Sroberto# gives unlimited permission to copy and/or distribute it, 1017182007Sroberto# with or without modifications, as long as this notice is preserved. 1018132451Sroberto 1019182007Sroberto# AM_SANITY_CHECK 1020182007Sroberto# --------------- 1021182007SrobertoAC_DEFUN([AM_SANITY_CHECK], 1022182007Sroberto[AC_MSG_CHECKING([whether build environment is sane]) 1023200576Sroberto# Reject unsafe characters in $srcdir or the absolute working directory 1024200576Sroberto# name. Accept space and tab only in the latter. 1025200576Srobertoam_lf=' 1026200576Sroberto' 1027200576Srobertocase `pwd` in 1028200576Sroberto *[[\\\"\#\$\&\'\`$am_lf]]*) 1029200576Sroberto AC_MSG_ERROR([unsafe absolute working directory name]);; 1030200576Srobertoesac 1031200576Srobertocase $srcdir in 1032200576Sroberto *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1033290001Sglebius AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1034200576Srobertoesac 1035200576Sroberto 1036290001Sglebius# Do 'set' in a subshell so we don't clobber the current shell's 1037182007Sroberto# arguments. Must try -L first in case configure is actually a 1038182007Sroberto# symlink; some systems play weird games with the mod time of symlinks 1039182007Sroberto# (eg FreeBSD returns the mod time of the symlink's containing 1040182007Sroberto# directory). 1041182007Srobertoif ( 1042290001Sglebius am_has_slept=no 1043290001Sglebius for am_try in 1 2; do 1044290001Sglebius echo "timestamp, slept: $am_has_slept" > conftest.file 1045290001Sglebius set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1046290001Sglebius if test "$[*]" = "X"; then 1047290001Sglebius # -L didn't work. 1048290001Sglebius set X `ls -t "$srcdir/configure" conftest.file` 1049290001Sglebius fi 1050290001Sglebius if test "$[*]" != "X $srcdir/configure conftest.file" \ 1051290001Sglebius && test "$[*]" != "X conftest.file $srcdir/configure"; then 1052132451Sroberto 1053290001Sglebius # If neither matched, then we have a broken ls. This can happen 1054290001Sglebius # if, for instance, CONFIG_SHELL is bash and it inherits a 1055290001Sglebius # broken ls alias from the environment. This has actually 1056290001Sglebius # happened. Such a system could not be considered "sane". 1057290001Sglebius AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1058290001Sglebius alias in your environment]) 1059290001Sglebius fi 1060290001Sglebius if test "$[2]" = conftest.file || test $am_try -eq 2; then 1061290001Sglebius break 1062290001Sglebius fi 1063290001Sglebius # Just in case. 1064290001Sglebius sleep 1 1065290001Sglebius am_has_slept=yes 1066290001Sglebius done 1067182007Sroberto test "$[2]" = conftest.file 1068182007Sroberto ) 1069182007Srobertothen 1070182007Sroberto # Ok. 1071182007Sroberto : 1072182007Srobertoelse 1073182007Sroberto AC_MSG_ERROR([newly created file is older than distributed files! 1074182007SrobertoCheck your system clock]) 1075182007Srobertofi 1076290001SglebiusAC_MSG_RESULT([yes]) 1077290001Sglebius# If we didn't sleep, we still need to ensure time stamps of config.status and 1078290001Sglebius# generated files are strictly newer. 1079290001Sglebiusam_sleep_pid= 1080290001Sglebiusif grep 'slept: no' conftest.file >/dev/null 2>&1; then 1081290001Sglebius ( sleep 1 ) & 1082290001Sglebius am_sleep_pid=$! 1083290001Sglebiusfi 1084290001SglebiusAC_CONFIG_COMMANDS_PRE( 1085290001Sglebius [AC_MSG_CHECKING([that generated files are newer than configure]) 1086290001Sglebius if test -n "$am_sleep_pid"; then 1087290001Sglebius # Hide warnings about reused PIDs. 1088290001Sglebius wait $am_sleep_pid 2>/dev/null 1089290001Sglebius fi 1090290001Sglebius AC_MSG_RESULT([done])]) 1091290001Sglebiusrm -f conftest.file 1092290001Sglebius]) 1093182007Sroberto 1094290001Sglebius# Copyright (C) 2009-2014 Free Software Foundation, Inc. 1095182007Sroberto# 1096182007Sroberto# This file is free software; the Free Software Foundation 1097182007Sroberto# gives unlimited permission to copy and/or distribute it, 1098182007Sroberto# with or without modifications, as long as this notice is preserved. 1099182007Sroberto 1100290001Sglebius# AM_SILENT_RULES([DEFAULT]) 1101290001Sglebius# -------------------------- 1102290001Sglebius# Enable less verbose build rules; with the default set to DEFAULT 1103290001Sglebius# ("yes" being less verbose, "no" or empty being verbose). 1104290001SglebiusAC_DEFUN([AM_SILENT_RULES], 1105290001Sglebius[AC_ARG_ENABLE([silent-rules], [dnl 1106290001SglebiusAS_HELP_STRING( 1107290001Sglebius [--enable-silent-rules], 1108290001Sglebius [less verbose build output (undo: "make V=1")]) 1109290001SglebiusAS_HELP_STRING( 1110290001Sglebius [--disable-silent-rules], 1111290001Sglebius [verbose build output (undo: "make V=0")])dnl 1112290001Sglebius]) 1113290001Sglebiuscase $enable_silent_rules in @%:@ ((( 1114290001Sglebius yes) AM_DEFAULT_VERBOSITY=0;; 1115290001Sglebius no) AM_DEFAULT_VERBOSITY=1;; 1116290001Sglebius *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1117290001Sglebiusesac 1118290001Sglebiusdnl 1119290001Sglebiusdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1120290001Sglebiusdnl do not support nested variable expansions. 1121290001Sglebiusdnl See automake bug#9928 and bug#10237. 1122290001Sglebiusam_make=${MAKE-make} 1123290001SglebiusAC_CACHE_CHECK([whether $am_make supports nested variables], 1124290001Sglebius [am_cv_make_support_nested_variables], 1125290001Sglebius [if AS_ECHO([['TRUE=$(BAR$(V)) 1126290001SglebiusBAR0=false 1127290001SglebiusBAR1=true 1128290001SglebiusV=1 1129290001Sglebiusam__doit: 1130290001Sglebius @$(TRUE) 1131290001Sglebius.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1132290001Sglebius am_cv_make_support_nested_variables=yes 1133290001Sglebiuselse 1134290001Sglebius am_cv_make_support_nested_variables=no 1135290001Sglebiusfi]) 1136290001Sglebiusif test $am_cv_make_support_nested_variables = yes; then 1137290001Sglebius dnl Using '$V' instead of '$(V)' breaks IRIX make. 1138290001Sglebius AM_V='$(V)' 1139290001Sglebius AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1140290001Sglebiuselse 1141290001Sglebius AM_V=$AM_DEFAULT_VERBOSITY 1142290001Sglebius AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1143290001Sglebiusfi 1144290001SglebiusAC_SUBST([AM_V])dnl 1145290001SglebiusAM_SUBST_NOTMAKE([AM_V])dnl 1146290001SglebiusAC_SUBST([AM_DEFAULT_V])dnl 1147290001SglebiusAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1148290001SglebiusAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1149290001SglebiusAM_BACKSLASH='\' 1150290001SglebiusAC_SUBST([AM_BACKSLASH])dnl 1151290001Sglebius_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1152290001Sglebius]) 1153290001Sglebius 1154290001Sglebius# Copyright (C) 2001-2014 Free Software Foundation, Inc. 1155290001Sglebius# 1156290001Sglebius# This file is free software; the Free Software Foundation 1157290001Sglebius# gives unlimited permission to copy and/or distribute it, 1158290001Sglebius# with or without modifications, as long as this notice is preserved. 1159290001Sglebius 1160182007Sroberto# AM_PROG_INSTALL_STRIP 1161182007Sroberto# --------------------- 1162290001Sglebius# One issue with vendor 'install' (even GNU) is that you can't 1163182007Sroberto# specify the program used to strip binaries. This is especially 1164182007Sroberto# annoying in cross-compiling environments, where the build's strip 1165182007Sroberto# is unlikely to handle the host's binaries. 1166182007Sroberto# Fortunately install-sh will honor a STRIPPROG variable, so we 1167290001Sglebius# always use install-sh in "make install-strip", and initialize 1168182007Sroberto# STRIPPROG with the value of the STRIP variable (set by the user). 1169182007SrobertoAC_DEFUN([AM_PROG_INSTALL_STRIP], 1170182007Sroberto[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1171290001Sglebius# Installed binaries are usually stripped using 'strip' when the user 1172290001Sglebius# run "make install-strip". However 'strip' might not be the right 1173182007Sroberto# tool to use in cross-compilation environments, therefore Automake 1174290001Sglebius# will honor the 'STRIP' environment variable to overrule this program. 1175290001Sglebiusdnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1176182007Srobertoif test "$cross_compiling" != no; then 1177182007Sroberto AC_CHECK_TOOL([STRIP], [strip], :) 1178182007Srobertofi 1179200576SrobertoINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1180182007SrobertoAC_SUBST([INSTALL_STRIP_PROGRAM])]) 1181182007Sroberto 1182290001Sglebius# Copyright (C) 2006-2014 Free Software Foundation, Inc. 1183200576Sroberto# 1184200576Sroberto# This file is free software; the Free Software Foundation 1185200576Sroberto# gives unlimited permission to copy and/or distribute it, 1186200576Sroberto# with or without modifications, as long as this notice is preserved. 1187200576Sroberto 1188200576Sroberto# _AM_SUBST_NOTMAKE(VARIABLE) 1189200576Sroberto# --------------------------- 1190200576Sroberto# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1191200576Sroberto# This macro is traced by Automake. 1192200576SrobertoAC_DEFUN([_AM_SUBST_NOTMAKE]) 1193200576Sroberto 1194200576Sroberto# AM_SUBST_NOTMAKE(VARIABLE) 1195290001Sglebius# -------------------------- 1196200576Sroberto# Public sister of _AM_SUBST_NOTMAKE. 1197200576SrobertoAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1198200576Sroberto 1199182007Sroberto# Check how to create a tarball. -*- Autoconf -*- 1200182007Sroberto 1201290001Sglebius# Copyright (C) 2004-2014 Free Software Foundation, Inc. 1202182007Sroberto# 1203182007Sroberto# This file is free software; the Free Software Foundation 1204182007Sroberto# gives unlimited permission to copy and/or distribute it, 1205182007Sroberto# with or without modifications, as long as this notice is preserved. 1206182007Sroberto 1207182007Sroberto# _AM_PROG_TAR(FORMAT) 1208182007Sroberto# -------------------- 1209182007Sroberto# Check how to create a tarball in format FORMAT. 1210290001Sglebius# FORMAT should be one of 'v7', 'ustar', or 'pax'. 121154359Sroberto# 1212182007Sroberto# Substitute a variable $(am__tar) that is a command 1213182007Sroberto# writing to stdout a FORMAT-tarball containing the directory 1214182007Sroberto# $tardir. 1215182007Sroberto# tardir=directory && $(am__tar) > result.tar 1216182007Sroberto# 1217182007Sroberto# Substitute a variable $(am__untar) that extract such 1218182007Sroberto# a tarball read from stdin. 1219182007Sroberto# $(am__untar) < result.tar 1220290001Sglebius# 1221182007SrobertoAC_DEFUN([_AM_PROG_TAR], 1222290001Sglebius[# Always define AMTAR for backward compatibility. Yes, it's still used 1223290001Sglebius# in the wild :-( We should find a proper way to deprecate it ... 1224290001SglebiusAC_SUBST([AMTAR], ['$${TAR-tar}']) 1225290001Sglebius 1226290001Sglebius# We'll loop over all known methods to create a tar archive until one works. 1227182007Sroberto_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 122854359Sroberto 1229290001Sglebiusm4_if([$1], [v7], 1230290001Sglebius [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1231182007Sroberto 1232290001Sglebius [m4_case([$1], 1233290001Sglebius [ustar], 1234290001Sglebius [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1235290001Sglebius # There is notably a 21 bits limit for the UID and the GID. In fact, 1236290001Sglebius # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1237290001Sglebius # and bug#13588). 1238290001Sglebius am_max_uid=2097151 # 2^21 - 1 1239290001Sglebius am_max_gid=$am_max_uid 1240290001Sglebius # The $UID and $GID variables are not portable, so we need to resort 1241290001Sglebius # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1242290001Sglebius # below are definitely unexpected, so allow the users to see them 1243290001Sglebius # (that is, avoid stderr redirection). 1244290001Sglebius am_uid=`id -u || echo unknown` 1245290001Sglebius am_gid=`id -g || echo unknown` 1246290001Sglebius AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1247290001Sglebius if test $am_uid -le $am_max_uid; then 1248290001Sglebius AC_MSG_RESULT([yes]) 1249290001Sglebius else 1250290001Sglebius AC_MSG_RESULT([no]) 1251290001Sglebius _am_tools=none 1252290001Sglebius fi 1253290001Sglebius AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1254290001Sglebius if test $am_gid -le $am_max_gid; then 1255290001Sglebius AC_MSG_RESULT([yes]) 1256290001Sglebius else 1257290001Sglebius AC_MSG_RESULT([no]) 1258290001Sglebius _am_tools=none 1259290001Sglebius fi], 1260290001Sglebius 1261290001Sglebius [pax], 1262290001Sglebius [], 1263290001Sglebius 1264290001Sglebius [m4_fatal([Unknown tar format])]) 1265290001Sglebius 1266290001Sglebius AC_MSG_CHECKING([how to create a $1 tar archive]) 1267290001Sglebius 1268290001Sglebius # Go ahead even if we have the value already cached. We do so because we 1269290001Sglebius # need to set the values for the 'am__tar' and 'am__untar' variables. 1270290001Sglebius _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1271290001Sglebius 1272290001Sglebius for _am_tool in $_am_tools; do 1273290001Sglebius case $_am_tool in 1274290001Sglebius gnutar) 1275290001Sglebius for _am_tar in tar gnutar gtar; do 1276290001Sglebius AM_RUN_LOG([$_am_tar --version]) && break 1277290001Sglebius done 1278290001Sglebius am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1279290001Sglebius am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1280290001Sglebius am__untar="$_am_tar -xf -" 1281290001Sglebius ;; 1282290001Sglebius plaintar) 1283290001Sglebius # Must skip GNU tar: if it does not support --format= it doesn't create 1284290001Sglebius # ustar tarball either. 1285290001Sglebius (tar --version) >/dev/null 2>&1 && continue 1286290001Sglebius am__tar='tar chf - "$$tardir"' 1287290001Sglebius am__tar_='tar chf - "$tardir"' 1288290001Sglebius am__untar='tar xf -' 1289290001Sglebius ;; 1290290001Sglebius pax) 1291290001Sglebius am__tar='pax -L -x $1 -w "$$tardir"' 1292290001Sglebius am__tar_='pax -L -x $1 -w "$tardir"' 1293290001Sglebius am__untar='pax -r' 1294290001Sglebius ;; 1295290001Sglebius cpio) 1296290001Sglebius am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1297290001Sglebius am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1298290001Sglebius am__untar='cpio -i -H $1 -d' 1299290001Sglebius ;; 1300290001Sglebius none) 1301290001Sglebius am__tar=false 1302290001Sglebius am__tar_=false 1303290001Sglebius am__untar=false 1304290001Sglebius ;; 1305290001Sglebius esac 1306290001Sglebius 1307290001Sglebius # If the value was cached, stop now. We just wanted to have am__tar 1308290001Sglebius # and am__untar set. 1309290001Sglebius test -n "${am_cv_prog_tar_$1}" && break 1310290001Sglebius 1311290001Sglebius # tar/untar a dummy directory, and stop if the command works. 1312290001Sglebius rm -rf conftest.dir 1313290001Sglebius mkdir conftest.dir 1314290001Sglebius echo GrepMe > conftest.dir/file 1315290001Sglebius AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1316290001Sglebius rm -rf conftest.dir 1317290001Sglebius if test -s conftest.tar; then 1318290001Sglebius AM_RUN_LOG([$am__untar <conftest.tar]) 1319290001Sglebius AM_RUN_LOG([cat conftest.dir/file]) 1320290001Sglebius grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1321290001Sglebius fi 1322290001Sglebius done 1323182007Sroberto rm -rf conftest.dir 132454359Sroberto 1325290001Sglebius AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1326290001Sglebius AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1327290001Sglebius 1328182007SrobertoAC_SUBST([am__tar]) 1329182007SrobertoAC_SUBST([am__untar]) 1330182007Sroberto]) # _AM_PROG_TAR 1331132451Sroberto 1332290001Sglebiusm4_include([sntp/libopts/m4/libopts.m4]) 1333290001Sglebiusm4_include([sntp/libopts/m4/stdnoreturn.m4]) 1334290001Sglebiusm4_include([sntp/m4/ax_c99_struct_init.m4]) 1335290001Sglebiusm4_include([sntp/m4/define_dir.m4]) 1336290001Sglebiusm4_include([sntp/m4/hms_search_lib.m4]) 1337290001Sglebiusm4_include([sntp/m4/libtool.m4]) 1338290001Sglebiusm4_include([sntp/m4/ltoptions.m4]) 1339290001Sglebiusm4_include([sntp/m4/ltsugar.m4]) 1340290001Sglebiusm4_include([sntp/m4/ltversion.m4]) 1341290001Sglebiusm4_include([sntp/m4/lt~obsolete.m4]) 1342290001Sglebiusm4_include([sntp/m4/ntp_cacheversion.m4]) 1343290001Sglebiusm4_include([sntp/m4/ntp_compiler.m4]) 1344290001Sglebiusm4_include([sntp/m4/ntp_crosscompile.m4]) 1345290001Sglebiusm4_include([sntp/m4/ntp_crypto_rand.m4]) 1346290001Sglebiusm4_include([sntp/m4/ntp_debug.m4]) 1347290001Sglebiusm4_include([sntp/m4/ntp_dir_sep.m4]) 1348290001Sglebiusm4_include([sntp/m4/ntp_facilitynames.m4]) 1349290001Sglebiusm4_include([sntp/m4/ntp_googletest.m4]) 1350290001Sglebiusm4_include([sntp/m4/ntp_ipv6.m4]) 1351290001Sglebiusm4_include([sntp/m4/ntp_lib_m.m4]) 1352290001Sglebiusm4_include([sntp/m4/ntp_libevent.m4]) 1353290001Sglebiusm4_include([sntp/m4/ntp_libntp.m4]) 1354290001Sglebiusm4_include([sntp/m4/ntp_lineeditlibs.m4]) 1355290001Sglebiusm4_include([sntp/m4/ntp_locinfo.m4]) 1356290001Sglebiusm4_include([sntp/m4/ntp_openssl.m4]) 1357290001Sglebiusm4_include([sntp/m4/ntp_pkg_config.m4]) 1358290001Sglebiusm4_include([sntp/m4/ntp_problemtests.m4]) 1359290001Sglebiusm4_include([sntp/m4/ntp_prog_cc.m4]) 1360290001Sglebiusm4_include([sntp/m4/ntp_rlimit.m4]) 1361290001Sglebiusm4_include([sntp/m4/ntp_sntp.m4]) 1362290001Sglebiusm4_include([sntp/m4/ntp_unitytest.m4]) 1363290001Sglebiusm4_include([sntp/m4/ntp_ver_suffix.m4]) 1364290001Sglebiusm4_include([sntp/m4/ntp_vpathhack.m4]) 1365290001Sglebiusm4_include([sntp/m4/openldap-thread-check.m4]) 1366290001Sglebiusm4_include([sntp/m4/openldap.m4]) 1367290001Sglebiusm4_include([sntp/m4/os_cflags.m4]) 1368290001Sglebiusm4_include([sntp/m4/snprintf.m4]) 1369