1285612Sdelphij# generated automatically by aclocal 1.15 -*- Autoconf -*- 254359Sroberto 3285612Sdelphij# Copyright (C) 1996-2014 Free Software Foundation, Inc. 4285612Sdelphij 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 14285612Sdelphijm4_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 17285612Sdelphijm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18285612Sdelphij[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. 21285612SdelphijTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22200576Sroberto 23285612Sdelphij# serial 9 -*- Autoconf -*- 24285612Sdelphij# Enable extensions on systems that normally disable them. 25182007Sroberto 26285612Sdelphij# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. 27285612Sdelphij# This file is free software; the Free Software Foundation 28285612Sdelphij# gives unlimited permission to copy and/or distribute it, 29285612Sdelphij# with or without modifications, as long as this notice is preserved. 30182007Sroberto 31285612Sdelphij# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS 32285612Sdelphij# Autoconf. Perhaps we can remove this once we can assume Autoconf 33285612Sdelphij# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly 34285612Sdelphij# enough in this area it's likely we'll need to redefine 35285612Sdelphij# AC_USE_SYSTEM_EXTENSIONS for quite some time. 36182007Sroberto 37285612Sdelphij# If autoconf reports a warning 38285612Sdelphij# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 39285612Sdelphij# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 40285612Sdelphij# the fix is 41285612Sdelphij# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked 42285612Sdelphij# but always AC_REQUIREd, 43285612Sdelphij# 2) to ensure that for each occurrence of 44285612Sdelphij# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 45285612Sdelphij# or 46285612Sdelphij# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 47285612Sdelphij# the corresponding gnulib module description has 'extensions' among 48285612Sdelphij# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS 49285612Sdelphij# invocation occurs in gl_EARLY, not in gl_INIT. 50182007Sroberto 51285612Sdelphij# AC_USE_SYSTEM_EXTENSIONS 52182007Sroberto# ------------------------ 53285612Sdelphij# Enable extensions on systems that normally disable them, 54285612Sdelphij# typically due to standards-conformance issues. 55285612Sdelphij# Remember that #undef in AH_VERBATIM gets replaced with #define by 56285612Sdelphij# AC_DEFINE. The goal here is to define all known feature-enabling 57285612Sdelphij# macros, then, if reports of conflicts are made, disable macros that 58285612Sdelphij# cause problems on some platforms (such as __EXTENSIONS__). 59285612SdelphijAC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], 60285612Sdelphij[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 61285612SdelphijAC_BEFORE([$0], [AC_RUN_IFELSE])dnl 6254359Sroberto 63285612Sdelphij AC_REQUIRE([AC_CANONICAL_HOST]) 6482498Sroberto 65285612Sdelphij AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) 66285612Sdelphij if test "$MINIX" = yes; then 67285612Sdelphij AC_DEFINE([_POSIX_SOURCE], [1], 68285612Sdelphij [Define to 1 if you need to in order for `stat' and other 69285612Sdelphij things to work.]) 70285612Sdelphij AC_DEFINE([_POSIX_1_SOURCE], [2], 71285612Sdelphij [Define to 2 if the system does not provide POSIX.1 features 72285612Sdelphij except with this defined.]) 73285612Sdelphij AC_DEFINE([_MINIX], [1], 74285612Sdelphij [Define to 1 if on MINIX.]) 75182007Sroberto fi 7682498Sroberto 77285612Sdelphij dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, 78285612Sdelphij dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already 79285612Sdelphij dnl provided. 80285612Sdelphij case "$host_os" in 81285612Sdelphij hpux*) 82285612Sdelphij AC_DEFINE([_XOPEN_SOURCE], [500], 83285612Sdelphij [Define to 500 only on HP-UX.]) 84182007Sroberto ;; 85182007Sroberto esac 86182007Sroberto 87285612Sdelphij AH_VERBATIM([__EXTENSIONS__], 88285612Sdelphij[/* Enable extensions on AIX 3, Interix. */ 89285612Sdelphij#ifndef _ALL_SOURCE 90285612Sdelphij# undef _ALL_SOURCE 91182007Sroberto#endif 92285612Sdelphij/* Enable GNU extensions on systems that have them. */ 93285612Sdelphij#ifndef _GNU_SOURCE 94285612Sdelphij# undef _GNU_SOURCE 95182007Sroberto#endif 96285612Sdelphij/* Enable threading extensions on Solaris. */ 97285612Sdelphij#ifndef _POSIX_PTHREAD_SEMANTICS 98285612Sdelphij# undef _POSIX_PTHREAD_SEMANTICS 99182007Sroberto#endif 100285612Sdelphij/* Enable extensions on HP NonStop. */ 101285612Sdelphij#ifndef _TANDEM_SOURCE 102285612Sdelphij# undef _TANDEM_SOURCE 103182007Sroberto#endif 104285612Sdelphij/* Enable general extensions on Solaris. */ 105285612Sdelphij#ifndef __EXTENSIONS__ 106285612Sdelphij# undef __EXTENSIONS__ 107285612Sdelphij#endif 108132451Sroberto]) 109285612Sdelphij AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], 110285612Sdelphij [ac_cv_safe_to_define___extensions__], 111285612Sdelphij [AC_COMPILE_IFELSE( 112285612Sdelphij [AC_LANG_PROGRAM([[ 113285612Sdelphij# define __EXTENSIONS__ 1 114285612Sdelphij ]AC_INCLUDES_DEFAULT])], 115285612Sdelphij [ac_cv_safe_to_define___extensions__=yes], 116285612Sdelphij [ac_cv_safe_to_define___extensions__=no])]) 117285612Sdelphij test $ac_cv_safe_to_define___extensions__ = yes && 118285612Sdelphij AC_DEFINE([__EXTENSIONS__]) 119285612Sdelphij AC_DEFINE([_ALL_SOURCE]) 120285612Sdelphij AC_DEFINE([_GNU_SOURCE]) 121285612Sdelphij AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 122285612Sdelphij AC_DEFINE([_TANDEM_SOURCE]) 123285612Sdelphij])# AC_USE_SYSTEM_EXTENSIONS 12454359Sroberto 125285612Sdelphij# gl_USE_SYSTEM_EXTENSIONS 126182007Sroberto# ------------------------ 127285612Sdelphij# Enable extensions on systems that normally disable them, 128285612Sdelphij# typically due to standards-conformance issues. 129285612SdelphijAC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], 130182007Sroberto[ 131285612Sdelphij dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. 132285612Sdelphij dnl gnulib does not need it. But if it gets required by third-party macros 133285612Sdelphij dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a 134285612Sdelphij dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". 135285612Sdelphij dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, 136285612Sdelphij dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. 137285612Sdelphij AC_REQUIRE([AC_GNU_SOURCE]) 138182007Sroberto 139285612Sdelphij AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 14056746Sroberto]) 14154359Sroberto 142285612Sdelphij# 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], 154285612Sdelphij[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. 157285612Sdelphijm4_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], 173285612Sdelphij[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 178285612Sdelphij# Copyright (C) 2011-2014 Free Software Foundation, Inc. 179285612Sdelphij# 180285612Sdelphij# This file is free software; the Free Software Foundation 181285612Sdelphij# gives unlimited permission to copy and/or distribute it, 182285612Sdelphij# with or without modifications, as long as this notice is preserved. 183285612Sdelphij 184285612Sdelphij# AM_PROG_AR([ACT-IF-FAIL]) 185285612Sdelphij# ------------------------- 186285612Sdelphij# Try to determine the archiver interface, and trigger the ar-lib wrapper 187285612Sdelphij# if it is needed. If the detection of archiver interface fails, run 188285612Sdelphij# ACT-IF-FAIL (default is to abort configure with a proper error message). 189285612SdelphijAC_DEFUN([AM_PROG_AR], 190285612Sdelphij[AC_BEFORE([$0], [LT_INIT])dnl 191285612SdelphijAC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl 192285612SdelphijAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 193285612SdelphijAC_REQUIRE_AUX_FILE([ar-lib])dnl 194285612SdelphijAC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) 195285612Sdelphij: ${AR=ar} 196285612Sdelphij 197285612SdelphijAC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], 198285612Sdelphij [AC_LANG_PUSH([C]) 199285612Sdelphij am_cv_ar_interface=ar 200285612Sdelphij AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], 201285612Sdelphij [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 202285612Sdelphij AC_TRY_EVAL([am_ar_try]) 203285612Sdelphij if test "$ac_status" -eq 0; then 204285612Sdelphij am_cv_ar_interface=ar 205285612Sdelphij else 206285612Sdelphij am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 207285612Sdelphij AC_TRY_EVAL([am_ar_try]) 208285612Sdelphij if test "$ac_status" -eq 0; then 209285612Sdelphij am_cv_ar_interface=lib 210285612Sdelphij else 211285612Sdelphij am_cv_ar_interface=unknown 212285612Sdelphij fi 213285612Sdelphij fi 214285612Sdelphij rm -f conftest.lib libconftest.a 215285612Sdelphij ]) 216285612Sdelphij AC_LANG_POP([C])]) 217285612Sdelphij 218285612Sdelphijcase $am_cv_ar_interface in 219285612Sdelphijar) 220285612Sdelphij ;; 221285612Sdelphijlib) 222285612Sdelphij # Microsoft lib, so override with the ar-lib wrapper script. 223285612Sdelphij # FIXME: It is wrong to rewrite AR. 224285612Sdelphij # But if we don't then we get into trouble of one sort or another. 225285612Sdelphij # A longer-term fix would be to have automake use am__AR in this case, 226285612Sdelphij # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 227285612Sdelphij # similar. 228285612Sdelphij AR="$am_aux_dir/ar-lib $AR" 229285612Sdelphij ;; 230285612Sdelphijunknown) 231285612Sdelphij m4_default([$1], 232285612Sdelphij [AC_MSG_ERROR([could not determine $AR interface])]) 233285612Sdelphij ;; 234285612Sdelphijesac 235285612SdelphijAC_SUBST([AR])dnl 236285612Sdelphij]) 237285612Sdelphij 238182007Sroberto# AM_AUX_DIR_EXPAND -*- Autoconf -*- 239182007Sroberto 240285612Sdelphij# 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 247285612Sdelphij# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 248285612Sdelphij# '$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 267285612Sdelphij# 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], 285285612Sdelphij[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 286285612Sdelphij# Expand $ac_aux_dir to an absolute path. 287285612Sdelphijam_aux_dir=`cd "$ac_aux_dir" && pwd` 28882498Sroberto]) 28982498Sroberto 290182007Sroberto# AM_CONDITIONAL -*- Autoconf -*- 291132451Sroberto 292285612Sdelphij# 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], 302285612Sdelphij[AC_PREREQ([2.52])dnl 303285612Sdelphij m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 304285612Sdelphij [$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 323285612Sdelphij# 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 330285612Sdelphij# 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. 340285612Sdelphij# 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 353285612Sdelphijm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 354285612Sdelphij [$1], [CXX], [depcc="$CXX" am_compiler_list=], 355285612Sdelphij [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 356285612Sdelphij [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 357285612Sdelphij [$1], [UPC], [depcc="$UPC" am_compiler_list=], 358285612Sdelphij [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 359285612Sdelphij [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 367285612Sdelphij # making a dummy file named 'D' -- because '-MD' means "put the output 368285612Sdelphij # in D". 369285612Sdelphij 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 408285612Sdelphij # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 409285612Sdelphij # Solaris 10 /bin/sh. 410285612Sdelphij echo '/* dummy */' > sub/conftst$i.h 411132451Sroberto done 412132451Sroberto echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 41382498Sroberto 414285612Sdelphij # 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 416285612Sdelphij # handle '-M -o', and we need to detect this. Also, some Intel 417285612Sdelphij # 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) 426285612Sdelphij # After this tag, mechanisms are not by side-effect, so they'll 427285612Sdelphij # only be used when explicitly requested. 42856746Sroberto if test "x$enable_dependency_tracking" = xyes; then 42956746Sroberto continue 43056746Sroberto else 43156746Sroberto break 43256746Sroberto fi 43356746Sroberto ;; 434285612Sdelphij msvc7 | msvc7msys | msvisualcpp | msvcmsys) 435285612Sdelphij # 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. 483285612Sdelphij# 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], 493285612Sdelphij[AC_ARG_ENABLE([dependency-tracking], [dnl 494285612SdelphijAS_HELP_STRING( 495285612Sdelphij [--enable-dependency-tracking], 496285612Sdelphij [do not reject slow dependency extractors]) 497285612SdelphijAS_HELP_STRING( 498285612Sdelphij [--disable-dependency-tracking], 499285612Sdelphij [speeds up one-time build])]) 500106163Srobertoif test "x$enable_dependency_tracking" != xno; then 50156746Sroberto am_depcomp="$ac_aux_dir/depcomp" 50256746Sroberto AMDEPBACKSLASH='\' 503285612Sdelphij am__nodep='_no' 50456746Srobertofi 505106163SrobertoAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 506200576SrobertoAC_SUBST([AMDEPBACKSLASH])dnl 507200576Sroberto_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 508285612SdelphijAC_SUBST([am__nodep])dnl 509285612Sdelphij_AM_SUBST_NOTMAKE([am__nodep])dnl 51056746Sroberto]) 51156746Sroberto 512182007Sroberto# Generate code to set up dependency tracking. -*- Autoconf -*- 51356746Sroberto 514285612Sdelphij# 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[{ 525285612Sdelphij # 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. 538285612Sdelphij # 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 550285612Sdelphij # 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"` 554285612Sdelphij 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" | \ 562285612Sdelphij 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 580285612Sdelphij# 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 590285612Sdelphij# 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 599285612Sdelphijdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 600285612Sdelphijm4_define([AC_PROG_CC], 601285612Sdelphijm4_defn([AC_PROG_CC]) 602285612Sdelphij[_AM_PROG_CC_C_O 603285612Sdelphij]) 604285612Sdelphij 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], 617285612Sdelphij[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], 646285612Sdelphij[AC_DIAGNOSE([obsolete], 647285612Sdelphij [$0: two- and three-arguments forms are deprecated.]) 648285612Sdelphijm4_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. 653285612Sdelphijm4_if( 654285612Sdelphij m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 655285612Sdelphij [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],, 661285612Sdelphij[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 662285612Sdelphij 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 667285612SdelphijAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 668285612SdelphijAM_MISSING_PROG([AUTOCONF], [autoconf]) 669285612SdelphijAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 670285612SdelphijAM_MISSING_PROG([AUTOHEADER], [autoheader]) 671285612SdelphijAM_MISSING_PROG([MAKEINFO], [makeinfo]) 672200576SrobertoAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 673200576SrobertoAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 674285612SdelphijAC_REQUIRE([AC_PROG_MKDIR_P])dnl 675285612Sdelphij# For better backward compatibility. To be removed once Automake 1.9.x 676285612Sdelphij# dies out for good. For more background, see: 677285612Sdelphij# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 678285612Sdelphij# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 679285612SdelphijAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 680285612Sdelphij# We need awk for the "check" target (and possibly the TAP driver). The 681285612Sdelphij# 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], 690285612Sdelphij [_AM_DEPENDENCIES([CC])], 691285612Sdelphij [m4_define([AC_PROG_CC], 692285612Sdelphij m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 693182007SrobertoAC_PROVIDE_IFELSE([AC_PROG_CXX], 694285612Sdelphij [_AM_DEPENDENCIES([CXX])], 695285612Sdelphij [m4_define([AC_PROG_CXX], 696285612Sdelphij m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 697200576SrobertoAC_PROVIDE_IFELSE([AC_PROG_OBJC], 698285612Sdelphij [_AM_DEPENDENCIES([OBJC])], 699285612Sdelphij [m4_define([AC_PROG_OBJC], 700285612Sdelphij m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 701285612SdelphijAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 702285612Sdelphij [_AM_DEPENDENCIES([OBJCXX])], 703285612Sdelphij [m4_define([AC_PROG_OBJCXX], 704285612Sdelphij m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 705182007Sroberto]) 706285612SdelphijAC_REQUIRE([AM_SILENT_RULES])dnl 707285612Sdelphijdnl The testsuite driver may need to know about EXEEXT, so add the 708285612Sdelphijdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 709285612Sdelphijdnl 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 713285612Sdelphij 714285612Sdelphij# POSIX will say in a future version that running "rm -f" with no argument 715285612Sdelphij# is OK; and we want to be able to make that assumption in our Makefile 716285612Sdelphij# recipes. So use an aggressive probe to check that the usage we want is 717285612Sdelphij# actually supported "in the wild" to an acceptable degree. 718285612Sdelphij# See automake bug#10828. 719285612Sdelphij# To make any issue more visible, cause the running configure to be aborted 720285612Sdelphij# by default if the 'rm' program in use doesn't match our expectations; the 721285612Sdelphij# user can still override this though. 722285612Sdelphijif rm -f && rm -fr && rm -rf; then : OK; else 723285612Sdelphij cat >&2 <<'END' 724285612SdelphijOops! 725285612Sdelphij 726285612SdelphijYour 'rm' program seems unable to run without file operands specified 727285612Sdelphijon the command line, even when the '-f' option is present. This is contrary 728285612Sdelphijto the behaviour of most rm programs out there, and not conforming with 729285612Sdelphijthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 730285612Sdelphij 731285612SdelphijPlease tell bug-automake@gnu.org about your system, including the value 732285612Sdelphijof your $PATH and any error possibly output before this message. This 733285612Sdelphijcan help us improve future automake versions. 734285612Sdelphij 735285612SdelphijEND 736285612Sdelphij if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 737285612Sdelphij echo 'Configuration will proceed anyway, since you have set the' >&2 738285612Sdelphij echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 739285612Sdelphij echo >&2 740285612Sdelphij else 741285612Sdelphij cat >&2 <<'END' 742285612SdelphijAborting the configuration process, to ensure you take notice of the issue. 743285612Sdelphij 744285612SdelphijYou can download and install GNU coreutils to get an 'rm' implementation 745285612Sdelphijthat behaves properly: <http://www.gnu.org/software/coreutils/>. 746285612Sdelphij 747285612SdelphijIf you want to complete the configuration process using your problematic 748285612Sdelphij'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 749285612Sdelphijto "yes", and re-run configure. 750285612Sdelphij 751285612SdelphijEND 752285612Sdelphij AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 753285612Sdelphij fi 754285612Sdelphijfi 755285612Sdelphijdnl The trailing newline in this macro's definition is deliberate, for 756285612Sdelphijdnl backward compatibility and to allow trailing 'dnl'-style comments 757285612Sdelphijdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 758182007Sroberto]) 759182007Sroberto 760285612Sdelphijdnl 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 787285612Sdelphij# 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 798285612Sdelphijif 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 806285612SdelphijAC_SUBST([install_sh])]) 807182007Sroberto 808285612Sdelphij# 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 829285612Sdelphij# 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 852285612Sdelphij# 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 879285612Sdelphij# 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# ------------------ 894285612Sdelphij# Define MISSING if not defined so far and test if it is modern enough. 895285612Sdelphij# 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 908285612Sdelphijif eval "$MISSING --is-lightweight"; then 909285612Sdelphij am_missing_run="$MISSING " 910182007Srobertoelse 911182007Sroberto am_missing_run= 912285612Sdelphij AC_MSG_WARN(['missing' script is too old or missing]) 913182007Srobertofi 914182007Sroberto]) 915132451Sroberto 916182007Sroberto# Helper functions for option handling. -*- Autoconf -*- 917106163Sroberto 918285612Sdelphij# 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) 930285612Sdelphij# -------------------- 931182007Sroberto# Set option NAME. Presently that only means defining a flag for this option. 932182007SrobertoAC_DEFUN([_AM_SET_OPTION], 933285612Sdelphij[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 934132451Sroberto 935182007Sroberto# _AM_SET_OPTIONS(OPTIONS) 936285612Sdelphij# ------------------------ 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 947285612Sdelphij# 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 953285612Sdelphij# _AM_PROG_CC_C_O 954285612Sdelphij# --------------- 955285612Sdelphij# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 956285612Sdelphij# to automatically call this. 957285612SdelphijAC_DEFUN([_AM_PROG_CC_C_O], 958285612Sdelphij[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 959285612SdelphijAC_REQUIRE_AUX_FILE([compile])dnl 960285612SdelphijAC_LANG_PUSH([C])dnl 961285612SdelphijAC_CACHE_CHECK( 962285612Sdelphij [whether $CC understands -c and -o together], 963285612Sdelphij [am_cv_prog_cc_c_o], 964285612Sdelphij [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 965285612Sdelphij # Make sure it works both with $CC and with simple cc. 966285612Sdelphij # Following AC_PROG_CC_C_O, we do the test twice because some 967285612Sdelphij # compilers refuse to overwrite an existing .o file with -o, 968285612Sdelphij # though they will create one. 969285612Sdelphij am_cv_prog_cc_c_o=yes 970285612Sdelphij for am_i in 1 2; do 971285612Sdelphij if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 972285612Sdelphij && test -f conftest2.$ac_objext; then 973285612Sdelphij : OK 974285612Sdelphij else 975285612Sdelphij am_cv_prog_cc_c_o=no 976285612Sdelphij break 977285612Sdelphij fi 978285612Sdelphij done 979285612Sdelphij rm -f core conftest* 980285612Sdelphij unset am_i]) 981285612Sdelphijif test "$am_cv_prog_cc_c_o" != yes; then 982285612Sdelphij # Losing compiler, so override with the script. 983285612Sdelphij # FIXME: It is wrong to rewrite CC. 984285612Sdelphij # But if we don't then we get into trouble of one sort or another. 985285612Sdelphij # A longer-term fix would be to have automake use am__CC in this case, 986285612Sdelphij # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 987285612Sdelphij CC="$am_aux_dir/compile $CC" 98854359Srobertofi 989285612SdelphijAC_LANG_POP([C])]) 99054359Sroberto 991285612Sdelphij# For backward compatibility. 992285612SdelphijAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 99354359Sroberto 994285612Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 995285612Sdelphij# 996285612Sdelphij# This file is free software; the Free Software Foundation 997285612Sdelphij# gives unlimited permission to copy and/or distribute it, 998285612Sdelphij# with or without modifications, as long as this notice is preserved. 999285612Sdelphij 1000285612Sdelphij# AM_RUN_LOG(COMMAND) 1001285612Sdelphij# ------------------- 1002285612Sdelphij# Run COMMAND, save the exit status in ac_status, and log it. 1003285612Sdelphij# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 1004285612SdelphijAC_DEFUN([AM_RUN_LOG], 1005285612Sdelphij[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 1006285612Sdelphij ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 1007285612Sdelphij ac_status=$? 1008285612Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1009285612Sdelphij (exit $ac_status); }]) 1010285612Sdelphij 1011182007Sroberto# Check to make sure that the build environment is sane. -*- Autoconf -*- 101254359Sroberto 1013285612Sdelphij# 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\ \ ]]*) 1033285612Sdelphij AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1034200576Srobertoesac 1035200576Sroberto 1036285612Sdelphij# 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 ( 1042285612Sdelphij am_has_slept=no 1043285612Sdelphij for am_try in 1 2; do 1044285612Sdelphij echo "timestamp, slept: $am_has_slept" > conftest.file 1045285612Sdelphij set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1046285612Sdelphij if test "$[*]" = "X"; then 1047285612Sdelphij # -L didn't work. 1048285612Sdelphij set X `ls -t "$srcdir/configure" conftest.file` 1049285612Sdelphij fi 1050285612Sdelphij if test "$[*]" != "X $srcdir/configure conftest.file" \ 1051285612Sdelphij && test "$[*]" != "X conftest.file $srcdir/configure"; then 1052132451Sroberto 1053285612Sdelphij # If neither matched, then we have a broken ls. This can happen 1054285612Sdelphij # if, for instance, CONFIG_SHELL is bash and it inherits a 1055285612Sdelphij # broken ls alias from the environment. This has actually 1056285612Sdelphij # happened. Such a system could not be considered "sane". 1057285612Sdelphij AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1058285612Sdelphij alias in your environment]) 1059285612Sdelphij fi 1060285612Sdelphij if test "$[2]" = conftest.file || test $am_try -eq 2; then 1061285612Sdelphij break 1062285612Sdelphij fi 1063285612Sdelphij # Just in case. 1064285612Sdelphij sleep 1 1065285612Sdelphij am_has_slept=yes 1066285612Sdelphij 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 1076285612SdelphijAC_MSG_RESULT([yes]) 1077285612Sdelphij# If we didn't sleep, we still need to ensure time stamps of config.status and 1078285612Sdelphij# generated files are strictly newer. 1079285612Sdelphijam_sleep_pid= 1080285612Sdelphijif grep 'slept: no' conftest.file >/dev/null 2>&1; then 1081285612Sdelphij ( sleep 1 ) & 1082285612Sdelphij am_sleep_pid=$! 1083285612Sdelphijfi 1084285612SdelphijAC_CONFIG_COMMANDS_PRE( 1085285612Sdelphij [AC_MSG_CHECKING([that generated files are newer than configure]) 1086285612Sdelphij if test -n "$am_sleep_pid"; then 1087285612Sdelphij # Hide warnings about reused PIDs. 1088285612Sdelphij wait $am_sleep_pid 2>/dev/null 1089285612Sdelphij fi 1090285612Sdelphij AC_MSG_RESULT([done])]) 1091285612Sdelphijrm -f conftest.file 1092285612Sdelphij]) 1093182007Sroberto 1094285612Sdelphij# 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 1100285612Sdelphij# AM_SILENT_RULES([DEFAULT]) 1101285612Sdelphij# -------------------------- 1102285612Sdelphij# Enable less verbose build rules; with the default set to DEFAULT 1103285612Sdelphij# ("yes" being less verbose, "no" or empty being verbose). 1104285612SdelphijAC_DEFUN([AM_SILENT_RULES], 1105285612Sdelphij[AC_ARG_ENABLE([silent-rules], [dnl 1106285612SdelphijAS_HELP_STRING( 1107285612Sdelphij [--enable-silent-rules], 1108285612Sdelphij [less verbose build output (undo: "make V=1")]) 1109285612SdelphijAS_HELP_STRING( 1110285612Sdelphij [--disable-silent-rules], 1111285612Sdelphij [verbose build output (undo: "make V=0")])dnl 1112285612Sdelphij]) 1113285612Sdelphijcase $enable_silent_rules in @%:@ ((( 1114285612Sdelphij yes) AM_DEFAULT_VERBOSITY=0;; 1115285612Sdelphij no) AM_DEFAULT_VERBOSITY=1;; 1116285612Sdelphij *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1117285612Sdelphijesac 1118285612Sdelphijdnl 1119285612Sdelphijdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1120285612Sdelphijdnl do not support nested variable expansions. 1121285612Sdelphijdnl See automake bug#9928 and bug#10237. 1122285612Sdelphijam_make=${MAKE-make} 1123285612SdelphijAC_CACHE_CHECK([whether $am_make supports nested variables], 1124285612Sdelphij [am_cv_make_support_nested_variables], 1125285612Sdelphij [if AS_ECHO([['TRUE=$(BAR$(V)) 1126285612SdelphijBAR0=false 1127285612SdelphijBAR1=true 1128285612SdelphijV=1 1129285612Sdelphijam__doit: 1130285612Sdelphij @$(TRUE) 1131285612Sdelphij.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1132285612Sdelphij am_cv_make_support_nested_variables=yes 1133285612Sdelphijelse 1134285612Sdelphij am_cv_make_support_nested_variables=no 1135285612Sdelphijfi]) 1136285612Sdelphijif test $am_cv_make_support_nested_variables = yes; then 1137285612Sdelphij dnl Using '$V' instead of '$(V)' breaks IRIX make. 1138285612Sdelphij AM_V='$(V)' 1139285612Sdelphij AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1140285612Sdelphijelse 1141285612Sdelphij AM_V=$AM_DEFAULT_VERBOSITY 1142285612Sdelphij AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1143285612Sdelphijfi 1144285612SdelphijAC_SUBST([AM_V])dnl 1145285612SdelphijAM_SUBST_NOTMAKE([AM_V])dnl 1146285612SdelphijAC_SUBST([AM_DEFAULT_V])dnl 1147285612SdelphijAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1148285612SdelphijAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1149285612SdelphijAM_BACKSLASH='\' 1150285612SdelphijAC_SUBST([AM_BACKSLASH])dnl 1151285612Sdelphij_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1152285612Sdelphij]) 1153285612Sdelphij 1154285612Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 1155285612Sdelphij# 1156285612Sdelphij# This file is free software; the Free Software Foundation 1157285612Sdelphij# gives unlimited permission to copy and/or distribute it, 1158285612Sdelphij# with or without modifications, as long as this notice is preserved. 1159285612Sdelphij 1160182007Sroberto# AM_PROG_INSTALL_STRIP 1161182007Sroberto# --------------------- 1162285612Sdelphij# 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 1167285612Sdelphij# 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 1171285612Sdelphij# Installed binaries are usually stripped using 'strip' when the user 1172285612Sdelphij# run "make install-strip". However 'strip' might not be the right 1173182007Sroberto# tool to use in cross-compilation environments, therefore Automake 1174285612Sdelphij# will honor the 'STRIP' environment variable to overrule this program. 1175285612Sdelphijdnl 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 1182285612Sdelphij# 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) 1195285612Sdelphij# -------------------------- 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 1201285612Sdelphij# 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. 1210285612Sdelphij# 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 1220285612Sdelphij# 1221182007SrobertoAC_DEFUN([_AM_PROG_TAR], 1222285612Sdelphij[# Always define AMTAR for backward compatibility. Yes, it's still used 1223285612Sdelphij# in the wild :-( We should find a proper way to deprecate it ... 1224285612SdelphijAC_SUBST([AMTAR], ['$${TAR-tar}']) 1225285612Sdelphij 1226285612Sdelphij# 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 1229285612Sdelphijm4_if([$1], [v7], 1230285612Sdelphij [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1231182007Sroberto 1232285612Sdelphij [m4_case([$1], 1233285612Sdelphij [ustar], 1234285612Sdelphij [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1235285612Sdelphij # There is notably a 21 bits limit for the UID and the GID. In fact, 1236285612Sdelphij # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1237285612Sdelphij # and bug#13588). 1238285612Sdelphij am_max_uid=2097151 # 2^21 - 1 1239285612Sdelphij am_max_gid=$am_max_uid 1240285612Sdelphij # The $UID and $GID variables are not portable, so we need to resort 1241285612Sdelphij # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1242285612Sdelphij # below are definitely unexpected, so allow the users to see them 1243285612Sdelphij # (that is, avoid stderr redirection). 1244285612Sdelphij am_uid=`id -u || echo unknown` 1245285612Sdelphij am_gid=`id -g || echo unknown` 1246285612Sdelphij AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1247285612Sdelphij if test $am_uid -le $am_max_uid; then 1248285612Sdelphij AC_MSG_RESULT([yes]) 1249285612Sdelphij else 1250285612Sdelphij AC_MSG_RESULT([no]) 1251285612Sdelphij _am_tools=none 1252285612Sdelphij fi 1253285612Sdelphij AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1254285612Sdelphij if test $am_gid -le $am_max_gid; then 1255285612Sdelphij AC_MSG_RESULT([yes]) 1256285612Sdelphij else 1257285612Sdelphij AC_MSG_RESULT([no]) 1258285612Sdelphij _am_tools=none 1259285612Sdelphij fi], 1260285612Sdelphij 1261285612Sdelphij [pax], 1262285612Sdelphij [], 1263285612Sdelphij 1264285612Sdelphij [m4_fatal([Unknown tar format])]) 1265285612Sdelphij 1266285612Sdelphij AC_MSG_CHECKING([how to create a $1 tar archive]) 1267285612Sdelphij 1268285612Sdelphij # Go ahead even if we have the value already cached. We do so because we 1269285612Sdelphij # need to set the values for the 'am__tar' and 'am__untar' variables. 1270285612Sdelphij _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1271285612Sdelphij 1272285612Sdelphij for _am_tool in $_am_tools; do 1273285612Sdelphij case $_am_tool in 1274285612Sdelphij gnutar) 1275285612Sdelphij for _am_tar in tar gnutar gtar; do 1276285612Sdelphij AM_RUN_LOG([$_am_tar --version]) && break 1277285612Sdelphij done 1278285612Sdelphij am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1279285612Sdelphij am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1280285612Sdelphij am__untar="$_am_tar -xf -" 1281285612Sdelphij ;; 1282285612Sdelphij plaintar) 1283285612Sdelphij # Must skip GNU tar: if it does not support --format= it doesn't create 1284285612Sdelphij # ustar tarball either. 1285285612Sdelphij (tar --version) >/dev/null 2>&1 && continue 1286285612Sdelphij am__tar='tar chf - "$$tardir"' 1287285612Sdelphij am__tar_='tar chf - "$tardir"' 1288285612Sdelphij am__untar='tar xf -' 1289285612Sdelphij ;; 1290285612Sdelphij pax) 1291285612Sdelphij am__tar='pax -L -x $1 -w "$$tardir"' 1292285612Sdelphij am__tar_='pax -L -x $1 -w "$tardir"' 1293285612Sdelphij am__untar='pax -r' 1294285612Sdelphij ;; 1295285612Sdelphij cpio) 1296285612Sdelphij am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1297285612Sdelphij am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1298285612Sdelphij am__untar='cpio -i -H $1 -d' 1299285612Sdelphij ;; 1300285612Sdelphij none) 1301285612Sdelphij am__tar=false 1302285612Sdelphij am__tar_=false 1303285612Sdelphij am__untar=false 1304285612Sdelphij ;; 1305285612Sdelphij esac 1306285612Sdelphij 1307285612Sdelphij # If the value was cached, stop now. We just wanted to have am__tar 1308285612Sdelphij # and am__untar set. 1309285612Sdelphij test -n "${am_cv_prog_tar_$1}" && break 1310285612Sdelphij 1311285612Sdelphij # tar/untar a dummy directory, and stop if the command works. 1312285612Sdelphij rm -rf conftest.dir 1313285612Sdelphij mkdir conftest.dir 1314285612Sdelphij echo GrepMe > conftest.dir/file 1315285612Sdelphij AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1316285612Sdelphij rm -rf conftest.dir 1317285612Sdelphij if test -s conftest.tar; then 1318285612Sdelphij AM_RUN_LOG([$am__untar <conftest.tar]) 1319285612Sdelphij AM_RUN_LOG([cat conftest.dir/file]) 1320285612Sdelphij grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1321285612Sdelphij fi 1322285612Sdelphij done 1323182007Sroberto rm -rf conftest.dir 132454359Sroberto 1325285612Sdelphij AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1326285612Sdelphij AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1327285612Sdelphij 1328182007SrobertoAC_SUBST([am__tar]) 1329182007SrobertoAC_SUBST([am__untar]) 1330182007Sroberto]) # _AM_PROG_TAR 1331132451Sroberto 1332285612Sdelphijm4_include([sntp/libopts/m4/libopts.m4]) 1333285612Sdelphijm4_include([sntp/libopts/m4/stdnoreturn.m4]) 1334285612Sdelphijm4_include([sntp/m4/ax_c99_struct_init.m4]) 1335285612Sdelphijm4_include([sntp/m4/define_dir.m4]) 1336285612Sdelphijm4_include([sntp/m4/hms_search_lib.m4]) 1337285612Sdelphijm4_include([sntp/m4/libtool.m4]) 1338285612Sdelphijm4_include([sntp/m4/ltoptions.m4]) 1339285612Sdelphijm4_include([sntp/m4/ltsugar.m4]) 1340285612Sdelphijm4_include([sntp/m4/ltversion.m4]) 1341285612Sdelphijm4_include([sntp/m4/lt~obsolete.m4]) 1342330141Sdelphijm4_include([sntp/m4/ntp_af_unspec.m4]) 1343285612Sdelphijm4_include([sntp/m4/ntp_cacheversion.m4]) 1344285612Sdelphijm4_include([sntp/m4/ntp_compiler.m4]) 1345285612Sdelphijm4_include([sntp/m4/ntp_crosscompile.m4]) 1346285612Sdelphijm4_include([sntp/m4/ntp_crypto_rand.m4]) 1347285612Sdelphijm4_include([sntp/m4/ntp_debug.m4]) 1348285612Sdelphijm4_include([sntp/m4/ntp_dir_sep.m4]) 1349285612Sdelphijm4_include([sntp/m4/ntp_facilitynames.m4]) 1350285612Sdelphijm4_include([sntp/m4/ntp_googletest.m4]) 1351316069Sdelphijm4_include([sntp/m4/ntp_harden.m4]) 1352285612Sdelphijm4_include([sntp/m4/ntp_ipv6.m4]) 1353285612Sdelphijm4_include([sntp/m4/ntp_lib_m.m4]) 1354285612Sdelphijm4_include([sntp/m4/ntp_libevent.m4]) 1355285612Sdelphijm4_include([sntp/m4/ntp_libntp.m4]) 1356285612Sdelphijm4_include([sntp/m4/ntp_lineeditlibs.m4]) 1357285612Sdelphijm4_include([sntp/m4/ntp_locinfo.m4]) 1358285612Sdelphijm4_include([sntp/m4/ntp_openssl.m4]) 1359285612Sdelphijm4_include([sntp/m4/ntp_pkg_config.m4]) 1360289997Sglebiusm4_include([sntp/m4/ntp_problemtests.m4]) 1361285612Sdelphijm4_include([sntp/m4/ntp_prog_cc.m4]) 1362285612Sdelphijm4_include([sntp/m4/ntp_rlimit.m4]) 1363285612Sdelphijm4_include([sntp/m4/ntp_sntp.m4]) 1364285612Sdelphijm4_include([sntp/m4/ntp_unitytest.m4]) 1365285612Sdelphijm4_include([sntp/m4/ntp_ver_suffix.m4]) 1366285612Sdelphijm4_include([sntp/m4/ntp_vpathhack.m4]) 1367285612Sdelphijm4_include([sntp/m4/openldap-thread-check.m4]) 1368285612Sdelphijm4_include([sntp/m4/openldap.m4]) 1369285612Sdelphijm4_include([sntp/m4/os_cflags.m4]) 1370285612Sdelphijm4_include([sntp/m4/snprintf.m4]) 1371