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