annotate src/fftw-3.3.5/aclocal.m4 @ 169:223a55898ab9 tip default

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