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