annotate aclocal.m4 @ 1778:818d4097e2ed

Lighter-weight encoding of window function use
author Adam Chlipala <adam@chlipala.net>
date Sun, 03 Jun 2012 11:29:31 -0400
parents 4cca386e5766
children 40557fb08e98
rev   line source
adam@1693 1 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
adamc@1141 2
adamc@1141 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
adam@1693 4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
adam@1693 5 # Inc.
adamc@1141 6 # This file is free software; the Free Software Foundation
adamc@1141 7 # gives unlimited permission to copy and/or distribute it,
adamc@1141 8 # with or without modifications, as long as this notice is preserved.
adamc@1141 9
adamc@1141 10 # This program is distributed in the hope that it will be useful,
adamc@1141 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
adamc@1141 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
adamc@1141 13 # PARTICULAR PURPOSE.
adamc@1141 14
adamc@1141 15 m4_ifndef([AC_AUTOCONF_VERSION],
adamc@1141 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
adam@1771 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
adam@1771 18 [m4_warning([this file was generated for autoconf 2.69.
adamc@1141 19 You have another version of autoconf. It may work, but is not guaranteed to.
adamc@1141 20 If you have problems, you may need to regenerate the build system entirely.
adamc@1141 21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
adamc@1141 22
adam@1693 23 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
adam@1693 24 # Foundation, Inc.
adamc@1141 25 #
adamc@1141 26 # This file is free software; the Free Software Foundation
adamc@1141 27 # gives unlimited permission to copy and/or distribute it,
adamc@1141 28 # with or without modifications, as long as this notice is preserved.
adamc@1141 29
adam@1693 30 # serial 1
adam@1693 31
adamc@1141 32 # AM_AUTOMAKE_VERSION(VERSION)
adamc@1141 33 # ----------------------------
adamc@1141 34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
adamc@1141 35 # generated from the m4 files accompanying Automake X.Y.
adamc@1141 36 # (This private macro should not be called outside this file.)
adamc@1141 37 AC_DEFUN([AM_AUTOMAKE_VERSION],
adamc@1141 38 [am__api_version='1.11'
adamc@1141 39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
adamc@1141 40 dnl require some minimum version. Point them to the right macro.
adam@1693 41 m4_if([$1], [1.11.3], [],
adamc@1141 42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
adamc@1141 43 ])
adamc@1141 44
adamc@1141 45 # _AM_AUTOCONF_VERSION(VERSION)
adamc@1141 46 # -----------------------------
adamc@1141 47 # aclocal traces this macro to find the Autoconf version.
adamc@1141 48 # This is a private macro too. Using m4_define simplifies
adamc@1141 49 # the logic in aclocal, which can simply ignore this definition.
adamc@1141 50 m4_define([_AM_AUTOCONF_VERSION], [])
adamc@1141 51
adamc@1141 52 # AM_SET_CURRENT_AUTOMAKE_VERSION
adamc@1141 53 # -------------------------------
adamc@1141 54 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
adamc@1141 55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
adamc@1141 56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
adam@1693 57 [AM_AUTOMAKE_VERSION([1.11.3])dnl
adamc@1141 58 m4_ifndef([AC_AUTOCONF_VERSION],
adamc@1141 59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
adamc@1141 60 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
adamc@1141 61
adam@1760 62 # Copyright (C) 2011 Free Software Foundation, Inc.
adam@1760 63 #
adam@1760 64 # This file is free software; the Free Software Foundation
adam@1760 65 # gives unlimited permission to copy and/or distribute it,
adam@1760 66 # with or without modifications, as long as this notice is preserved.
adam@1760 67
adam@1760 68 # serial 1
adam@1760 69
adam@1760 70 # AM_PROG_AR([ACT-IF-FAIL])
adam@1760 71 # -------------------------
adam@1760 72 # Try to determine the archiver interface, and trigger the ar-lib wrapper
adam@1760 73 # if it is needed. If the detection of archiver interface fails, run
adam@1760 74 # ACT-IF-FAIL (default is to abort configure with a proper error message).
adam@1760 75 AC_DEFUN([AM_PROG_AR],
adam@1760 76 [AC_BEFORE([$0], [LT_INIT])dnl
adam@1760 77 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
adam@1760 78 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
adam@1760 79 AC_REQUIRE_AUX_FILE([ar-lib])dnl
adam@1760 80 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
adam@1760 81 : ${AR=ar}
adam@1760 82
adam@1760 83 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
adam@1760 84 [am_cv_ar_interface=ar
adam@1760 85 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
adam@1760 86 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
adam@1760 87 AC_TRY_EVAL([am_ar_try])
adam@1760 88 if test "$ac_status" -eq 0; then
adam@1760 89 am_cv_ar_interface=ar
adam@1760 90 else
adam@1760 91 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
adam@1760 92 AC_TRY_EVAL([am_ar_try])
adam@1760 93 if test "$ac_status" -eq 0; then
adam@1760 94 am_cv_ar_interface=lib
adam@1760 95 else
adam@1760 96 am_cv_ar_interface=unknown
adam@1760 97 fi
adam@1760 98 fi
adam@1760 99 rm -f conftest.lib libconftest.a
adam@1760 100 ])
adam@1760 101 ])
adam@1760 102
adam@1760 103 case $am_cv_ar_interface in
adam@1760 104 ar)
adam@1760 105 ;;
adam@1760 106 lib)
adam@1760 107 # Microsoft lib, so override with the ar-lib wrapper script.
adam@1760 108 # FIXME: It is wrong to rewrite AR.
adam@1760 109 # But if we don't then we get into trouble of one sort or another.
adam@1760 110 # A longer-term fix would be to have automake use am__AR in this case,
adam@1760 111 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
adam@1760 112 # similar.
adam@1760 113 AR="$am_aux_dir/ar-lib $AR"
adam@1760 114 ;;
adam@1760 115 unknown)
adam@1760 116 m4_default([$1],
adam@1760 117 [AC_MSG_ERROR([could not determine $AR interface])])
adam@1760 118 ;;
adam@1760 119 esac
adam@1760 120 AC_SUBST([AR])dnl
adam@1760 121 ])
adam@1760 122
adamc@1141 123 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
adamc@1141 124
adam@1693 125 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
adamc@1141 126 #
adamc@1141 127 # This file is free software; the Free Software Foundation
adamc@1141 128 # gives unlimited permission to copy and/or distribute it,
adamc@1141 129 # with or without modifications, as long as this notice is preserved.
adamc@1141 130
adam@1693 131 # serial 1
adam@1693 132
adamc@1141 133 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
adamc@1141 134 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
adamc@1141 135 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
adamc@1141 136 #
adamc@1141 137 # Of course, Automake must honor this variable whenever it calls a
adamc@1141 138 # tool from the auxiliary directory. The problem is that $srcdir (and
adamc@1141 139 # therefore $ac_aux_dir as well) can be either absolute or relative,
adamc@1141 140 # depending on how configure is run. This is pretty annoying, since
adamc@1141 141 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
adamc@1141 142 # source directory, any form will work fine, but in subdirectories a
adamc@1141 143 # relative path needs to be adjusted first.
adamc@1141 144 #
adamc@1141 145 # $ac_aux_dir/missing
adamc@1141 146 # fails when called from a subdirectory if $ac_aux_dir is relative
adamc@1141 147 # $top_srcdir/$ac_aux_dir/missing
adamc@1141 148 # fails if $ac_aux_dir is absolute,
adamc@1141 149 # fails when called from a subdirectory in a VPATH build with
adamc@1141 150 # a relative $ac_aux_dir
adamc@1141 151 #
adamc@1141 152 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
adamc@1141 153 # are both prefixed by $srcdir. In an in-source build this is usually
adamc@1141 154 # harmless because $srcdir is `.', but things will broke when you
adamc@1141 155 # start a VPATH build or use an absolute $srcdir.
adamc@1141 156 #
adamc@1141 157 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
adamc@1141 158 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
adamc@1141 159 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
adamc@1141 160 # and then we would define $MISSING as
adamc@1141 161 # MISSING="\${SHELL} $am_aux_dir/missing"
adamc@1141 162 # This will work as long as MISSING is not called from configure, because
adamc@1141 163 # unfortunately $(top_srcdir) has no meaning in configure.
adamc@1141 164 # However there are other variables, like CC, which are often used in
adamc@1141 165 # configure, and could therefore not use this "fixed" $ac_aux_dir.
adamc@1141 166 #
adamc@1141 167 # Another solution, used here, is to always expand $ac_aux_dir to an
adamc@1141 168 # absolute PATH. The drawback is that using absolute paths prevent a
adamc@1141 169 # configured tree to be moved without reconfiguration.
adamc@1141 170
adamc@1141 171 AC_DEFUN([AM_AUX_DIR_EXPAND],
adamc@1141 172 [dnl Rely on autoconf to set up CDPATH properly.
adamc@1141 173 AC_PREREQ([2.50])dnl
adamc@1141 174 # expand $ac_aux_dir to an absolute path
adamc@1141 175 am_aux_dir=`cd $ac_aux_dir && pwd`
adamc@1141 176 ])
adamc@1141 177
adamc@1141 178 # AM_CONDITIONAL -*- Autoconf -*-
adamc@1141 179
adamc@1141 180 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
adamc@1141 181 # Free Software Foundation, Inc.
adamc@1141 182 #
adamc@1141 183 # This file is free software; the Free Software Foundation
adamc@1141 184 # gives unlimited permission to copy and/or distribute it,
adamc@1141 185 # with or without modifications, as long as this notice is preserved.
adamc@1141 186
adamc@1141 187 # serial 9
adamc@1141 188
adamc@1141 189 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
adamc@1141 190 # -------------------------------------
adamc@1141 191 # Define a conditional.
adamc@1141 192 AC_DEFUN([AM_CONDITIONAL],
adamc@1141 193 [AC_PREREQ(2.52)dnl
adamc@1141 194 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
adamc@1141 195 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
adamc@1141 196 AC_SUBST([$1_TRUE])dnl
adamc@1141 197 AC_SUBST([$1_FALSE])dnl
adamc@1141 198 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
adamc@1141 199 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
adamc@1141 200 m4_define([_AM_COND_VALUE_$1], [$2])dnl
adamc@1141 201 if $2; then
adamc@1141 202 $1_TRUE=
adamc@1141 203 $1_FALSE='#'
adamc@1141 204 else
adamc@1141 205 $1_TRUE='#'
adamc@1141 206 $1_FALSE=
adamc@1141 207 fi
adamc@1141 208 AC_CONFIG_COMMANDS_PRE(
adamc@1141 209 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
adamc@1141 210 AC_MSG_ERROR([[conditional "$1" was never defined.
adamc@1141 211 Usually this means the macro was only invoked conditionally.]])
adamc@1141 212 fi])])
adamc@1141 213
adam@1693 214 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
adam@1693 215 # 2010, 2011 Free Software Foundation, Inc.
adamc@1141 216 #
adamc@1141 217 # This file is free software; the Free Software Foundation
adamc@1141 218 # gives unlimited permission to copy and/or distribute it,
adamc@1141 219 # with or without modifications, as long as this notice is preserved.
adamc@1141 220
adam@1693 221 # serial 12
adamc@1141 222
adamc@1141 223 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
adamc@1141 224 # written in clear, in which case automake, when reading aclocal.m4,
adamc@1141 225 # will think it sees a *use*, and therefore will trigger all it's
adamc@1141 226 # C support machinery. Also note that it means that autoscan, seeing
adamc@1141 227 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
adamc@1141 228
adamc@1141 229
adamc@1141 230 # _AM_DEPENDENCIES(NAME)
adamc@1141 231 # ----------------------
adamc@1141 232 # See how the compiler implements dependency checking.
adamc@1141 233 # NAME is "CC", "CXX", "GCJ", or "OBJC".
adamc@1141 234 # We try a few techniques and use that to set a single cache variable.
adamc@1141 235 #
adamc@1141 236 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
adamc@1141 237 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
adamc@1141 238 # dependency, and given that the user is not expected to run this macro,
adamc@1141 239 # just rely on AC_PROG_CC.
adamc@1141 240 AC_DEFUN([_AM_DEPENDENCIES],
adamc@1141 241 [AC_REQUIRE([AM_SET_DEPDIR])dnl
adamc@1141 242 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
adamc@1141 243 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
adamc@1141 244 AC_REQUIRE([AM_DEP_TRACK])dnl
adamc@1141 245
adamc@1141 246 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
adamc@1141 247 [$1], CXX, [depcc="$CXX" am_compiler_list=],
adamc@1141 248 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
adamc@1141 249 [$1], UPC, [depcc="$UPC" am_compiler_list=],
adamc@1141 250 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
adamc@1141 251 [depcc="$$1" am_compiler_list=])
adamc@1141 252
adamc@1141 253 AC_CACHE_CHECK([dependency style of $depcc],
adamc@1141 254 [am_cv_$1_dependencies_compiler_type],
adamc@1141 255 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
adamc@1141 256 # We make a subdir and do the tests there. Otherwise we can end up
adamc@1141 257 # making bogus files that we don't know about and never remove. For
adamc@1141 258 # instance it was reported that on HP-UX the gcc test will end up
adamc@1141 259 # making a dummy file named `D' -- because `-MD' means `put the output
adamc@1141 260 # in D'.
adam@1693 261 rm -rf conftest.dir
adamc@1141 262 mkdir conftest.dir
adamc@1141 263 # Copy depcomp to subdir because otherwise we won't find it if we're
adamc@1141 264 # using a relative directory.
adamc@1141 265 cp "$am_depcomp" conftest.dir
adamc@1141 266 cd conftest.dir
adamc@1141 267 # We will build objects and dependencies in a subdirectory because
adamc@1141 268 # it helps to detect inapplicable dependency modes. For instance
adamc@1141 269 # both Tru64's cc and ICC support -MD to output dependencies as a
adamc@1141 270 # side effect of compilation, but ICC will put the dependencies in
adamc@1141 271 # the current directory while Tru64 will put them in the object
adamc@1141 272 # directory.
adamc@1141 273 mkdir sub
adamc@1141 274
adamc@1141 275 am_cv_$1_dependencies_compiler_type=none
adamc@1141 276 if test "$am_compiler_list" = ""; then
adamc@1141 277 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
adamc@1141 278 fi
adamc@1141 279 am__universal=false
adamc@1141 280 m4_case([$1], [CC],
adamc@1141 281 [case " $depcc " in #(
adamc@1141 282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
adamc@1141 283 esac],
adamc@1141 284 [CXX],
adamc@1141 285 [case " $depcc " in #(
adamc@1141 286 *\ -arch\ *\ -arch\ *) am__universal=true ;;
adamc@1141 287 esac])
adamc@1141 288
adamc@1141 289 for depmode in $am_compiler_list; do
adamc@1141 290 # Setup a source with many dependencies, because some compilers
adamc@1141 291 # like to wrap large dependency lists on column 80 (with \), and
adamc@1141 292 # we should not choose a depcomp mode which is confused by this.
adamc@1141 293 #
adamc@1141 294 # We need to recreate these files for each test, as the compiler may
adamc@1141 295 # overwrite some of them when testing with obscure command lines.
adamc@1141 296 # This happens at least with the AIX C compiler.
adamc@1141 297 : > sub/conftest.c
adamc@1141 298 for i in 1 2 3 4 5 6; do
adamc@1141 299 echo '#include "conftst'$i'.h"' >> sub/conftest.c
adamc@1141 300 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
adamc@1141 301 # Solaris 8's {/usr,}/bin/sh.
adamc@1141 302 touch sub/conftst$i.h
adamc@1141 303 done
adamc@1141 304 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
adamc@1141 305
adamc@1141 306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
adamc@1141 307 # mode. It turns out that the SunPro C++ compiler does not properly
adamc@1141 308 # handle `-M -o', and we need to detect this. Also, some Intel
adamc@1141 309 # versions had trouble with output in subdirs
adamc@1141 310 am__obj=sub/conftest.${OBJEXT-o}
adamc@1141 311 am__minus_obj="-o $am__obj"
adamc@1141 312 case $depmode in
adamc@1141 313 gcc)
adamc@1141 314 # This depmode causes a compiler race in universal mode.
adamc@1141 315 test "$am__universal" = false || continue
adamc@1141 316 ;;
adamc@1141 317 nosideeffect)
adamc@1141 318 # after this tag, mechanisms are not by side-effect, so they'll
adamc@1141 319 # only be used when explicitly requested
adamc@1141 320 if test "x$enable_dependency_tracking" = xyes; then
adamc@1141 321 continue
adamc@1141 322 else
adamc@1141 323 break
adamc@1141 324 fi
adamc@1141 325 ;;
adam@1693 326 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
adamc@1141 327 # This compiler won't grok `-c -o', but also, the minuso test has
adamc@1141 328 # not run yet. These depmodes are late enough in the game, and
adamc@1141 329 # so weak that their functioning should not be impacted.
adamc@1141 330 am__obj=conftest.${OBJEXT-o}
adamc@1141 331 am__minus_obj=
adamc@1141 332 ;;
adamc@1141 333 none) break ;;
adamc@1141 334 esac
adamc@1141 335 if depmode=$depmode \
adamc@1141 336 source=sub/conftest.c object=$am__obj \
adamc@1141 337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
adamc@1141 338 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
adamc@1141 339 >/dev/null 2>conftest.err &&
adamc@1141 340 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1141 341 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1141 342 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
adamc@1141 343 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
adamc@1141 344 # icc doesn't choke on unknown options, it will just issue warnings
adamc@1141 345 # or remarks (even with -Werror). So we grep stderr for any message
adamc@1141 346 # that says an option was ignored or not supported.
adamc@1141 347 # When given -MP, icc 7.0 and 7.1 complain thusly:
adamc@1141 348 # icc: Command line warning: ignoring option '-M'; no argument required
adamc@1141 349 # The diagnosis changed in icc 8.0:
adamc@1141 350 # icc: Command line remark: option '-MP' not supported
adamc@1141 351 if (grep 'ignoring option' conftest.err ||
adamc@1141 352 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
adamc@1141 353 am_cv_$1_dependencies_compiler_type=$depmode
adamc@1141 354 break
adamc@1141 355 fi
adamc@1141 356 fi
adamc@1141 357 done
adamc@1141 358
adamc@1141 359 cd ..
adamc@1141 360 rm -rf conftest.dir
adamc@1141 361 else
adamc@1141 362 am_cv_$1_dependencies_compiler_type=none
adamc@1141 363 fi
adamc@1141 364 ])
adamc@1141 365 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
adamc@1141 366 AM_CONDITIONAL([am__fastdep$1], [
adamc@1141 367 test "x$enable_dependency_tracking" != xno \
adamc@1141 368 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
adamc@1141 369 ])
adamc@1141 370
adamc@1141 371
adamc@1141 372 # AM_SET_DEPDIR
adamc@1141 373 # -------------
adamc@1141 374 # Choose a directory name for dependency files.
adamc@1141 375 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
adamc@1141 376 AC_DEFUN([AM_SET_DEPDIR],
adamc@1141 377 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
adamc@1141 378 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
adamc@1141 379 ])
adamc@1141 380
adamc@1141 381
adamc@1141 382 # AM_DEP_TRACK
adamc@1141 383 # ------------
adamc@1141 384 AC_DEFUN([AM_DEP_TRACK],
adamc@1141 385 [AC_ARG_ENABLE(dependency-tracking,
adamc@1141 386 [ --disable-dependency-tracking speeds up one-time build
adamc@1141 387 --enable-dependency-tracking do not reject slow dependency extractors])
adamc@1141 388 if test "x$enable_dependency_tracking" != xno; then
adamc@1141 389 am_depcomp="$ac_aux_dir/depcomp"
adamc@1141 390 AMDEPBACKSLASH='\'
adam@1693 391 am__nodep='_no'
adamc@1141 392 fi
adamc@1141 393 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
adamc@1141 394 AC_SUBST([AMDEPBACKSLASH])dnl
adamc@1141 395 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
adam@1693 396 AC_SUBST([am__nodep])dnl
adam@1693 397 _AM_SUBST_NOTMAKE([am__nodep])dnl
adamc@1141 398 ])
adamc@1141 399
adamc@1141 400 # Generate code to set up dependency tracking. -*- Autoconf -*-
adamc@1141 401
adamc@1141 402 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
adamc@1141 403 # Free Software Foundation, Inc.
adamc@1141 404 #
adamc@1141 405 # This file is free software; the Free Software Foundation
adamc@1141 406 # gives unlimited permission to copy and/or distribute it,
adamc@1141 407 # with or without modifications, as long as this notice is preserved.
adamc@1141 408
adamc@1141 409 #serial 5
adamc@1141 410
adamc@1141 411 # _AM_OUTPUT_DEPENDENCY_COMMANDS
adamc@1141 412 # ------------------------------
adamc@1141 413 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
adamc@1141 414 [{
adamc@1141 415 # Autoconf 2.62 quotes --file arguments for eval, but not when files
adamc@1141 416 # are listed without --file. Let's play safe and only enable the eval
adamc@1141 417 # if we detect the quoting.
adamc@1141 418 case $CONFIG_FILES in
adamc@1141 419 *\'*) eval set x "$CONFIG_FILES" ;;
adamc@1141 420 *) set x $CONFIG_FILES ;;
adamc@1141 421 esac
adamc@1141 422 shift
adamc@1141 423 for mf
adamc@1141 424 do
adamc@1141 425 # Strip MF so we end up with the name of the file.
adamc@1141 426 mf=`echo "$mf" | sed -e 's/:.*$//'`
adamc@1141 427 # Check whether this is an Automake generated Makefile or not.
adamc@1141 428 # We used to match only the files named `Makefile.in', but
adamc@1141 429 # some people rename them; so instead we look at the file content.
adamc@1141 430 # Grep'ing the first line is not enough: some people post-process
adamc@1141 431 # each Makefile.in and add a new line on top of each file to say so.
adamc@1141 432 # Grep'ing the whole file is not good either: AIX grep has a line
adamc@1141 433 # limit of 2048, but all sed's we know have understand at least 4000.
adamc@1141 434 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
adamc@1141 435 dirpart=`AS_DIRNAME("$mf")`
adamc@1141 436 else
adamc@1141 437 continue
adamc@1141 438 fi
adamc@1141 439 # Extract the definition of DEPDIR, am__include, and am__quote
adamc@1141 440 # from the Makefile without running `make'.
adamc@1141 441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
adamc@1141 442 test -z "$DEPDIR" && continue
adamc@1141 443 am__include=`sed -n 's/^am__include = //p' < "$mf"`
adamc@1141 444 test -z "am__include" && continue
adamc@1141 445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
adamc@1141 446 # When using ansi2knr, U may be empty or an underscore; expand it
adamc@1141 447 U=`sed -n 's/^U = //p' < "$mf"`
adamc@1141 448 # Find all dependency output files, they are included files with
adamc@1141 449 # $(DEPDIR) in their names. We invoke sed twice because it is the
adamc@1141 450 # simplest approach to changing $(DEPDIR) to its actual value in the
adamc@1141 451 # expansion.
adamc@1141 452 for file in `sed -n "
adamc@1141 453 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
adamc@1141 454 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
adamc@1141 455 # Make sure the directory exists.
adamc@1141 456 test -f "$dirpart/$file" && continue
adamc@1141 457 fdir=`AS_DIRNAME(["$file"])`
adamc@1141 458 AS_MKDIR_P([$dirpart/$fdir])
adamc@1141 459 # echo "creating $dirpart/$file"
adamc@1141 460 echo '# dummy' > "$dirpart/$file"
adamc@1141 461 done
adamc@1141 462 done
adamc@1141 463 }
adamc@1141 464 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
adamc@1141 465
adamc@1141 466
adamc@1141 467 # AM_OUTPUT_DEPENDENCY_COMMANDS
adamc@1141 468 # -----------------------------
adamc@1141 469 # This macro should only be invoked once -- use via AC_REQUIRE.
adamc@1141 470 #
adamc@1141 471 # This code is only required when automatic dependency tracking
adamc@1141 472 # is enabled. FIXME. This creates each `.P' file that we will
adamc@1141 473 # need in order to bootstrap the dependency handling code.
adamc@1141 474 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
adamc@1141 475 [AC_CONFIG_COMMANDS([depfiles],
adamc@1141 476 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
adamc@1141 477 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
adamc@1141 478 ])
adamc@1141 479
adamc@1141 480 # Do all the work for Automake. -*- Autoconf -*-
adamc@1141 481
adamc@1141 482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
adamc@1141 483 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
adamc@1141 484 #
adamc@1141 485 # This file is free software; the Free Software Foundation
adamc@1141 486 # gives unlimited permission to copy and/or distribute it,
adamc@1141 487 # with or without modifications, as long as this notice is preserved.
adamc@1141 488
adamc@1141 489 # serial 16
adamc@1141 490
adamc@1141 491 # This macro actually does too much. Some checks are only needed if
adamc@1141 492 # your package does certain things. But this isn't really a big deal.
adamc@1141 493
adamc@1141 494 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
adamc@1141 495 # AM_INIT_AUTOMAKE([OPTIONS])
adamc@1141 496 # -----------------------------------------------
adamc@1141 497 # The call with PACKAGE and VERSION arguments is the old style
adamc@1141 498 # call (pre autoconf-2.50), which is being phased out. PACKAGE
adamc@1141 499 # and VERSION should now be passed to AC_INIT and removed from
adamc@1141 500 # the call to AM_INIT_AUTOMAKE.
adamc@1141 501 # We support both call styles for the transition. After
adamc@1141 502 # the next Automake release, Autoconf can make the AC_INIT
adamc@1141 503 # arguments mandatory, and then we can depend on a new Autoconf
adamc@1141 504 # release and drop the old call support.
adamc@1141 505 AC_DEFUN([AM_INIT_AUTOMAKE],
adamc@1141 506 [AC_PREREQ([2.62])dnl
adamc@1141 507 dnl Autoconf wants to disallow AM_ names. We explicitly allow
adamc@1141 508 dnl the ones we care about.
adamc@1141 509 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
adamc@1141 510 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
adamc@1141 511 AC_REQUIRE([AC_PROG_INSTALL])dnl
adamc@1141 512 if test "`cd $srcdir && pwd`" != "`pwd`"; then
adamc@1141 513 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
adamc@1141 514 # is not polluted with repeated "-I."
adamc@1141 515 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
adamc@1141 516 # test to see if srcdir already configured
adamc@1141 517 if test -f $srcdir/config.status; then
adamc@1141 518 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
adamc@1141 519 fi
adamc@1141 520 fi
adamc@1141 521
adamc@1141 522 # test whether we have cygpath
adamc@1141 523 if test -z "$CYGPATH_W"; then
adamc@1141 524 if (cygpath --version) >/dev/null 2>/dev/null; then
adamc@1141 525 CYGPATH_W='cygpath -w'
adamc@1141 526 else
adamc@1141 527 CYGPATH_W=echo
adamc@1141 528 fi
adamc@1141 529 fi
adamc@1141 530 AC_SUBST([CYGPATH_W])
adamc@1141 531
adamc@1141 532 # Define the identity of the package.
adamc@1141 533 dnl Distinguish between old-style and new-style calls.
adamc@1141 534 m4_ifval([$2],
adamc@1141 535 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
adamc@1141 536 AC_SUBST([PACKAGE], [$1])dnl
adamc@1141 537 AC_SUBST([VERSION], [$2])],
adamc@1141 538 [_AM_SET_OPTIONS([$1])dnl
adamc@1141 539 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
adamc@1141 540 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
adamc@1141 541 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
adamc@1141 542 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
adamc@1141 543 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
adamc@1141 544
adamc@1141 545 _AM_IF_OPTION([no-define],,
adamc@1141 546 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
adamc@1141 547 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
adamc@1141 548
adamc@1141 549 # Some tools Automake needs.
adamc@1141 550 AC_REQUIRE([AM_SANITY_CHECK])dnl
adamc@1141 551 AC_REQUIRE([AC_ARG_PROGRAM])dnl
adamc@1141 552 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
adamc@1141 553 AM_MISSING_PROG(AUTOCONF, autoconf)
adamc@1141 554 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
adamc@1141 555 AM_MISSING_PROG(AUTOHEADER, autoheader)
adamc@1141 556 AM_MISSING_PROG(MAKEINFO, makeinfo)
adamc@1141 557 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
adamc@1141 558 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
adamc@1141 559 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
adamc@1141 560 # We need awk for the "check" target. The system "awk" is bad on
adamc@1141 561 # some platforms.
adamc@1141 562 AC_REQUIRE([AC_PROG_AWK])dnl
adamc@1141 563 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
adamc@1141 564 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
adamc@1141 565 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
adamc@1141 566 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
adamc@1141 567 [_AM_PROG_TAR([v7])])])
adamc@1141 568 _AM_IF_OPTION([no-dependencies],,
adamc@1141 569 [AC_PROVIDE_IFELSE([AC_PROG_CC],
adamc@1141 570 [_AM_DEPENDENCIES(CC)],
adamc@1141 571 [define([AC_PROG_CC],
adamc@1141 572 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
adamc@1141 573 AC_PROVIDE_IFELSE([AC_PROG_CXX],
adamc@1141 574 [_AM_DEPENDENCIES(CXX)],
adamc@1141 575 [define([AC_PROG_CXX],
adamc@1141 576 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
adamc@1141 577 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
adamc@1141 578 [_AM_DEPENDENCIES(OBJC)],
adamc@1141 579 [define([AC_PROG_OBJC],
adamc@1141 580 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
adamc@1141 581 ])
adamc@1141 582 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
adamc@1141 583 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
adamc@1141 584 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
adamc@1141 585 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
adamc@1141 586 AC_CONFIG_COMMANDS_PRE(dnl
adamc@1141 587 [m4_provide_if([_AM_COMPILER_EXEEXT],
adamc@1141 588 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
adamc@1141 589 ])
adamc@1141 590
adamc@1141 591 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
adamc@1141 592 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
adamc@1141 593 dnl mangled by Autoconf and run in a shell conditional statement.
adamc@1141 594 m4_define([_AC_COMPILER_EXEEXT],
adamc@1141 595 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
adamc@1141 596
adamc@1141 597
adamc@1141 598 # When config.status generates a header, we must update the stamp-h file.
adamc@1141 599 # This file resides in the same directory as the config header
adamc@1141 600 # that is generated. The stamp files are numbered to have different names.
adamc@1141 601
adamc@1141 602 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
adamc@1141 603 # loop where config.status creates the headers, so we can generate
adamc@1141 604 # our stamp files there.
adamc@1141 605 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
adamc@1141 606 [# Compute $1's index in $config_headers.
adamc@1141 607 _am_arg=$1
adamc@1141 608 _am_stamp_count=1
adamc@1141 609 for _am_header in $config_headers :; do
adamc@1141 610 case $_am_header in
adamc@1141 611 $_am_arg | $_am_arg:* )
adamc@1141 612 break ;;
adamc@1141 613 * )
adamc@1141 614 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
adamc@1141 615 esac
adamc@1141 616 done
adamc@1141 617 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
adamc@1141 618
adam@1693 619 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
adam@1693 620 # Inc.
adamc@1141 621 #
adamc@1141 622 # This file is free software; the Free Software Foundation
adamc@1141 623 # gives unlimited permission to copy and/or distribute it,
adamc@1141 624 # with or without modifications, as long as this notice is preserved.
adamc@1141 625
adam@1693 626 # serial 1
adam@1693 627
adamc@1141 628 # AM_PROG_INSTALL_SH
adamc@1141 629 # ------------------
adamc@1141 630 # Define $install_sh.
adamc@1141 631 AC_DEFUN([AM_PROG_INSTALL_SH],
adamc@1141 632 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
adamc@1141 633 if test x"${install_sh}" != xset; then
adamc@1141 634 case $am_aux_dir in
adamc@1141 635 *\ * | *\ *)
adamc@1141 636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
adamc@1141 637 *)
adamc@1141 638 install_sh="\${SHELL} $am_aux_dir/install-sh"
adamc@1141 639 esac
adamc@1141 640 fi
adamc@1141 641 AC_SUBST(install_sh)])
adamc@1141 642
adamc@1141 643 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
adamc@1141 644 #
adamc@1141 645 # This file is free software; the Free Software Foundation
adamc@1141 646 # gives unlimited permission to copy and/or distribute it,
adamc@1141 647 # with or without modifications, as long as this notice is preserved.
adamc@1141 648
adamc@1141 649 # serial 2
adamc@1141 650
adamc@1141 651 # Check whether the underlying file-system supports filenames
adamc@1141 652 # with a leading dot. For instance MS-DOS doesn't.
adamc@1141 653 AC_DEFUN([AM_SET_LEADING_DOT],
adamc@1141 654 [rm -rf .tst 2>/dev/null
adamc@1141 655 mkdir .tst 2>/dev/null
adamc@1141 656 if test -d .tst; then
adamc@1141 657 am__leading_dot=.
adamc@1141 658 else
adamc@1141 659 am__leading_dot=_
adamc@1141 660 fi
adamc@1141 661 rmdir .tst 2>/dev/null
adamc@1141 662 AC_SUBST([am__leading_dot])])
adamc@1141 663
adamc@1141 664 # Check to see how 'make' treats includes. -*- Autoconf -*-
adamc@1141 665
adamc@1141 666 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
adamc@1141 667 #
adamc@1141 668 # This file is free software; the Free Software Foundation
adamc@1141 669 # gives unlimited permission to copy and/or distribute it,
adamc@1141 670 # with or without modifications, as long as this notice is preserved.
adamc@1141 671
adamc@1141 672 # serial 4
adamc@1141 673
adamc@1141 674 # AM_MAKE_INCLUDE()
adamc@1141 675 # -----------------
adamc@1141 676 # Check to see how make treats includes.
adamc@1141 677 AC_DEFUN([AM_MAKE_INCLUDE],
adamc@1141 678 [am_make=${MAKE-make}
adamc@1141 679 cat > confinc << 'END'
adamc@1141 680 am__doit:
adamc@1141 681 @echo this is the am__doit target
adamc@1141 682 .PHONY: am__doit
adamc@1141 683 END
adamc@1141 684 # If we don't find an include directive, just comment out the code.
adamc@1141 685 AC_MSG_CHECKING([for style of include used by $am_make])
adamc@1141 686 am__include="#"
adamc@1141 687 am__quote=
adamc@1141 688 _am_result=none
adamc@1141 689 # First try GNU make style include.
adamc@1141 690 echo "include confinc" > confmf
adamc@1141 691 # Ignore all kinds of additional output from `make'.
adamc@1141 692 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1141 693 *the\ am__doit\ target*)
adamc@1141 694 am__include=include
adamc@1141 695 am__quote=
adamc@1141 696 _am_result=GNU
adamc@1141 697 ;;
adamc@1141 698 esac
adamc@1141 699 # Now try BSD make style include.
adamc@1141 700 if test "$am__include" = "#"; then
adamc@1141 701 echo '.include "confinc"' > confmf
adamc@1141 702 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1141 703 *the\ am__doit\ target*)
adamc@1141 704 am__include=.include
adamc@1141 705 am__quote="\""
adamc@1141 706 _am_result=BSD
adamc@1141 707 ;;
adamc@1141 708 esac
adamc@1141 709 fi
adamc@1141 710 AC_SUBST([am__include])
adamc@1141 711 AC_SUBST([am__quote])
adamc@1141 712 AC_MSG_RESULT([$_am_result])
adamc@1141 713 rm -f confinc confmf
adamc@1141 714 ])
adamc@1141 715
adamc@1141 716 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
adamc@1141 717
adamc@1141 718 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
adamc@1141 719 # Free Software Foundation, Inc.
adamc@1141 720 #
adamc@1141 721 # This file is free software; the Free Software Foundation
adamc@1141 722 # gives unlimited permission to copy and/or distribute it,
adamc@1141 723 # with or without modifications, as long as this notice is preserved.
adamc@1141 724
adamc@1141 725 # serial 6
adamc@1141 726
adamc@1141 727 # AM_MISSING_PROG(NAME, PROGRAM)
adamc@1141 728 # ------------------------------
adamc@1141 729 AC_DEFUN([AM_MISSING_PROG],
adamc@1141 730 [AC_REQUIRE([AM_MISSING_HAS_RUN])
adamc@1141 731 $1=${$1-"${am_missing_run}$2"}
adamc@1141 732 AC_SUBST($1)])
adamc@1141 733
adamc@1141 734
adamc@1141 735 # AM_MISSING_HAS_RUN
adamc@1141 736 # ------------------
adamc@1141 737 # Define MISSING if not defined so far and test if it supports --run.
adamc@1141 738 # If it does, set am_missing_run to use it, otherwise, to nothing.
adamc@1141 739 AC_DEFUN([AM_MISSING_HAS_RUN],
adamc@1141 740 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
adamc@1141 741 AC_REQUIRE_AUX_FILE([missing])dnl
adamc@1141 742 if test x"${MISSING+set}" != xset; then
adamc@1141 743 case $am_aux_dir in
adamc@1141 744 *\ * | *\ *)
adamc@1141 745 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
adamc@1141 746 *)
adamc@1141 747 MISSING="\${SHELL} $am_aux_dir/missing" ;;
adamc@1141 748 esac
adamc@1141 749 fi
adamc@1141 750 # Use eval to expand $SHELL
adamc@1141 751 if eval "$MISSING --run true"; then
adamc@1141 752 am_missing_run="$MISSING --run "
adamc@1141 753 else
adamc@1141 754 am_missing_run=
adamc@1141 755 AC_MSG_WARN([`missing' script is too old or missing])
adamc@1141 756 fi
adamc@1141 757 ])
adamc@1141 758
adam@1693 759 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
adam@1693 760 # Inc.
adamc@1141 761 #
adamc@1141 762 # This file is free software; the Free Software Foundation
adamc@1141 763 # gives unlimited permission to copy and/or distribute it,
adamc@1141 764 # with or without modifications, as long as this notice is preserved.
adamc@1141 765
adam@1693 766 # serial 1
adam@1693 767
adamc@1141 768 # AM_PROG_MKDIR_P
adamc@1141 769 # ---------------
adamc@1141 770 # Check for `mkdir -p'.
adamc@1141 771 AC_DEFUN([AM_PROG_MKDIR_P],
adamc@1141 772 [AC_PREREQ([2.60])dnl
adamc@1141 773 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
adamc@1141 774 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
adamc@1141 775 dnl while keeping a definition of mkdir_p for backward compatibility.
adamc@1141 776 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
adamc@1141 777 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
adamc@1141 778 dnl Makefile.ins that do not define MKDIR_P, so we do our own
adamc@1141 779 dnl adjustment using top_builddir (which is defined more often than
adamc@1141 780 dnl MKDIR_P).
adamc@1141 781 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
adamc@1141 782 case $mkdir_p in
adamc@1141 783 [[\\/$]]* | ?:[[\\/]]*) ;;
adamc@1141 784 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
adamc@1141 785 esac
adamc@1141 786 ])
adamc@1141 787
adamc@1141 788 # Helper functions for option handling. -*- Autoconf -*-
adamc@1141 789
adam@1693 790 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
adam@1693 791 # Foundation, Inc.
adamc@1141 792 #
adamc@1141 793 # This file is free software; the Free Software Foundation
adamc@1141 794 # gives unlimited permission to copy and/or distribute it,
adamc@1141 795 # with or without modifications, as long as this notice is preserved.
adamc@1141 796
adam@1693 797 # serial 5
adamc@1141 798
adamc@1141 799 # _AM_MANGLE_OPTION(NAME)
adamc@1141 800 # -----------------------
adamc@1141 801 AC_DEFUN([_AM_MANGLE_OPTION],
adamc@1141 802 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
adamc@1141 803
adamc@1141 804 # _AM_SET_OPTION(NAME)
adam@1693 805 # --------------------
adamc@1141 806 # Set option NAME. Presently that only means defining a flag for this option.
adamc@1141 807 AC_DEFUN([_AM_SET_OPTION],
adamc@1141 808 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
adamc@1141 809
adamc@1141 810 # _AM_SET_OPTIONS(OPTIONS)
adam@1693 811 # ------------------------
adamc@1141 812 # OPTIONS is a space-separated list of Automake options.
adamc@1141 813 AC_DEFUN([_AM_SET_OPTIONS],
adamc@1141 814 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
adamc@1141 815
adamc@1141 816 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
adamc@1141 817 # -------------------------------------------
adamc@1141 818 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
adamc@1141 819 AC_DEFUN([_AM_IF_OPTION],
adamc@1141 820 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
adamc@1141 821
adamc@1141 822 # Check to make sure that the build environment is sane. -*- Autoconf -*-
adamc@1141 823
adamc@1141 824 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
adamc@1141 825 # Free Software Foundation, Inc.
adamc@1141 826 #
adamc@1141 827 # This file is free software; the Free Software Foundation
adamc@1141 828 # gives unlimited permission to copy and/or distribute it,
adamc@1141 829 # with or without modifications, as long as this notice is preserved.
adamc@1141 830
adamc@1141 831 # serial 5
adamc@1141 832
adamc@1141 833 # AM_SANITY_CHECK
adamc@1141 834 # ---------------
adamc@1141 835 AC_DEFUN([AM_SANITY_CHECK],
adamc@1141 836 [AC_MSG_CHECKING([whether build environment is sane])
adamc@1141 837 # Just in case
adamc@1141 838 sleep 1
adamc@1141 839 echo timestamp > conftest.file
adamc@1141 840 # Reject unsafe characters in $srcdir or the absolute working directory
adamc@1141 841 # name. Accept space and tab only in the latter.
adamc@1141 842 am_lf='
adamc@1141 843 '
adamc@1141 844 case `pwd` in
adamc@1141 845 *[[\\\"\#\$\&\'\`$am_lf]]*)
adamc@1141 846 AC_MSG_ERROR([unsafe absolute working directory name]);;
adamc@1141 847 esac
adamc@1141 848 case $srcdir in
adamc@1141 849 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
adamc@1141 850 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
adamc@1141 851 esac
adamc@1141 852
adamc@1141 853 # Do `set' in a subshell so we don't clobber the current shell's
adamc@1141 854 # arguments. Must try -L first in case configure is actually a
adamc@1141 855 # symlink; some systems play weird games with the mod time of symlinks
adamc@1141 856 # (eg FreeBSD returns the mod time of the symlink's containing
adamc@1141 857 # directory).
adamc@1141 858 if (
adamc@1141 859 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
adamc@1141 860 if test "$[*]" = "X"; then
adamc@1141 861 # -L didn't work.
adamc@1141 862 set X `ls -t "$srcdir/configure" conftest.file`
adamc@1141 863 fi
adamc@1141 864 rm -f conftest.file
adamc@1141 865 if test "$[*]" != "X $srcdir/configure conftest.file" \
adamc@1141 866 && test "$[*]" != "X conftest.file $srcdir/configure"; then
adamc@1141 867
adamc@1141 868 # If neither matched, then we have a broken ls. This can happen
adamc@1141 869 # if, for instance, CONFIG_SHELL is bash and it inherits a
adamc@1141 870 # broken ls alias from the environment. This has actually
adamc@1141 871 # happened. Such a system could not be considered "sane".
adamc@1141 872 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
adamc@1141 873 alias in your environment])
adamc@1141 874 fi
adamc@1141 875
adamc@1141 876 test "$[2]" = conftest.file
adamc@1141 877 )
adamc@1141 878 then
adamc@1141 879 # Ok.
adamc@1141 880 :
adamc@1141 881 else
adamc@1141 882 AC_MSG_ERROR([newly created file is older than distributed files!
adamc@1141 883 Check your system clock])
adamc@1141 884 fi
adamc@1141 885 AC_MSG_RESULT(yes)])
adamc@1141 886
adam@1693 887 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
adamc@1141 888 #
adamc@1141 889 # This file is free software; the Free Software Foundation
adamc@1141 890 # gives unlimited permission to copy and/or distribute it,
adamc@1141 891 # with or without modifications, as long as this notice is preserved.
adamc@1141 892
adam@1693 893 # serial 1
adam@1693 894
adamc@1141 895 # AM_PROG_INSTALL_STRIP
adamc@1141 896 # ---------------------
adamc@1141 897 # One issue with vendor `install' (even GNU) is that you can't
adamc@1141 898 # specify the program used to strip binaries. This is especially
adamc@1141 899 # annoying in cross-compiling environments, where the build's strip
adamc@1141 900 # is unlikely to handle the host's binaries.
adamc@1141 901 # Fortunately install-sh will honor a STRIPPROG variable, so we
adamc@1141 902 # always use install-sh in `make install-strip', and initialize
adamc@1141 903 # STRIPPROG with the value of the STRIP variable (set by the user).
adamc@1141 904 AC_DEFUN([AM_PROG_INSTALL_STRIP],
adamc@1141 905 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
adamc@1141 906 # Installed binaries are usually stripped using `strip' when the user
adamc@1141 907 # run `make install-strip'. However `strip' might not be the right
adamc@1141 908 # tool to use in cross-compilation environments, therefore Automake
adamc@1141 909 # will honor the `STRIP' environment variable to overrule this program.
adamc@1141 910 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
adamc@1141 911 if test "$cross_compiling" != no; then
adamc@1141 912 AC_CHECK_TOOL([STRIP], [strip], :)
adamc@1141 913 fi
adamc@1141 914 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
adamc@1141 915 AC_SUBST([INSTALL_STRIP_PROGRAM])])
adamc@1141 916
adam@1693 917 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
adamc@1141 918 #
adamc@1141 919 # This file is free software; the Free Software Foundation
adamc@1141 920 # gives unlimited permission to copy and/or distribute it,
adamc@1141 921 # with or without modifications, as long as this notice is preserved.
adamc@1141 922
adam@1693 923 # serial 3
adamc@1141 924
adamc@1141 925 # _AM_SUBST_NOTMAKE(VARIABLE)
adamc@1141 926 # ---------------------------
adamc@1141 927 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
adamc@1141 928 # This macro is traced by Automake.
adamc@1141 929 AC_DEFUN([_AM_SUBST_NOTMAKE])
adamc@1141 930
adamc@1141 931 # AM_SUBST_NOTMAKE(VARIABLE)
adam@1693 932 # --------------------------
adamc@1141 933 # Public sister of _AM_SUBST_NOTMAKE.
adamc@1141 934 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
adamc@1141 935
adamc@1141 936 # Check how to create a tarball. -*- Autoconf -*-
adamc@1141 937
adam@1693 938 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
adamc@1141 939 #
adamc@1141 940 # This file is free software; the Free Software Foundation
adamc@1141 941 # gives unlimited permission to copy and/or distribute it,
adamc@1141 942 # with or without modifications, as long as this notice is preserved.
adamc@1141 943
adamc@1141 944 # serial 2
adamc@1141 945
adamc@1141 946 # _AM_PROG_TAR(FORMAT)
adamc@1141 947 # --------------------
adamc@1141 948 # Check how to create a tarball in format FORMAT.
adamc@1141 949 # FORMAT should be one of `v7', `ustar', or `pax'.
adamc@1141 950 #
adamc@1141 951 # Substitute a variable $(am__tar) that is a command
adamc@1141 952 # writing to stdout a FORMAT-tarball containing the directory
adamc@1141 953 # $tardir.
adamc@1141 954 # tardir=directory && $(am__tar) > result.tar
adamc@1141 955 #
adamc@1141 956 # Substitute a variable $(am__untar) that extract such
adamc@1141 957 # a tarball read from stdin.
adamc@1141 958 # $(am__untar) < result.tar
adamc@1141 959 AC_DEFUN([_AM_PROG_TAR],
adam@1693 960 [# Always define AMTAR for backward compatibility. Yes, it's still used
adam@1693 961 # in the wild :-( We should find a proper way to deprecate it ...
adam@1693 962 AC_SUBST([AMTAR], ['$${TAR-tar}'])
adamc@1141 963 m4_if([$1], [v7],
adam@1693 964 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
adamc@1141 965 [m4_case([$1], [ustar],, [pax],,
adamc@1141 966 [m4_fatal([Unknown tar format])])
adamc@1141 967 AC_MSG_CHECKING([how to create a $1 tar archive])
adamc@1141 968 # Loop over all known methods to create a tar archive until one works.
adamc@1141 969 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
adamc@1141 970 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
adamc@1141 971 # Do not fold the above two line into one, because Tru64 sh and
adamc@1141 972 # Solaris sh will not grok spaces in the rhs of `-'.
adamc@1141 973 for _am_tool in $_am_tools
adamc@1141 974 do
adamc@1141 975 case $_am_tool in
adamc@1141 976 gnutar)
adamc@1141 977 for _am_tar in tar gnutar gtar;
adamc@1141 978 do
adamc@1141 979 AM_RUN_LOG([$_am_tar --version]) && break
adamc@1141 980 done
adamc@1141 981 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
adamc@1141 982 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
adamc@1141 983 am__untar="$_am_tar -xf -"
adamc@1141 984 ;;
adamc@1141 985 plaintar)
adamc@1141 986 # Must skip GNU tar: if it does not support --format= it doesn't create
adamc@1141 987 # ustar tarball either.
adamc@1141 988 (tar --version) >/dev/null 2>&1 && continue
adamc@1141 989 am__tar='tar chf - "$$tardir"'
adamc@1141 990 am__tar_='tar chf - "$tardir"'
adamc@1141 991 am__untar='tar xf -'
adamc@1141 992 ;;
adamc@1141 993 pax)
adamc@1141 994 am__tar='pax -L -x $1 -w "$$tardir"'
adamc@1141 995 am__tar_='pax -L -x $1 -w "$tardir"'
adamc@1141 996 am__untar='pax -r'
adamc@1141 997 ;;
adamc@1141 998 cpio)
adamc@1141 999 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
adamc@1141 1000 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
adamc@1141 1001 am__untar='cpio -i -H $1 -d'
adamc@1141 1002 ;;
adamc@1141 1003 none)
adamc@1141 1004 am__tar=false
adamc@1141 1005 am__tar_=false
adamc@1141 1006 am__untar=false
adamc@1141 1007 ;;
adamc@1141 1008 esac
adamc@1141 1009
adamc@1141 1010 # If the value was cached, stop now. We just wanted to have am__tar
adamc@1141 1011 # and am__untar set.
adamc@1141 1012 test -n "${am_cv_prog_tar_$1}" && break
adamc@1141 1013
adamc@1141 1014 # tar/untar a dummy directory, and stop if the command works
adamc@1141 1015 rm -rf conftest.dir
adamc@1141 1016 mkdir conftest.dir
adamc@1141 1017 echo GrepMe > conftest.dir/file
adamc@1141 1018 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
adamc@1141 1019 rm -rf conftest.dir
adamc@1141 1020 if test -s conftest.tar; then
adamc@1141 1021 AM_RUN_LOG([$am__untar <conftest.tar])
adamc@1141 1022 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
adamc@1141 1023 fi
adamc@1141 1024 done
adamc@1141 1025 rm -rf conftest.dir
adamc@1141 1026
adamc@1141 1027 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
adamc@1141 1028 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
adamc@1141 1029 AC_SUBST([am__tar])
adamc@1141 1030 AC_SUBST([am__untar])
adamc@1141 1031 ]) # _AM_PROG_TAR
adamc@1141 1032
adam@1368 1033 m4_include([m4/ax_check_openssl.m4])
adamc@1141 1034 m4_include([m4/libtool.m4])
adamc@1141 1035 m4_include([m4/ltoptions.m4])
adamc@1141 1036 m4_include([m4/ltsugar.m4])
adamc@1141 1037 m4_include([m4/ltversion.m4])
adamc@1141 1038 m4_include([m4/lt~obsolete.m4])
adam@1528 1039 m4_include([m4/m4_ax_pthread.m4])