toolkit/crashreporter/google-breakpad/src/third_party/glog/aclocal.m4

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial