| 1 | # aclocal.m4 generated automatically by aclocal 1.5 |
|---|
| 2 | |
|---|
| 3 | # Copyright 1996, 1997, 1998, 1999, 2000, 2001 |
|---|
| 4 | # 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 | # Like AC_CONFIG_HEADER, but automatically create stamp file. |
|---|
| 15 | |
|---|
| 16 | # serial 3 |
|---|
| 17 | |
|---|
| 18 | # When config.status generates a header, we must update the stamp-h file. |
|---|
| 19 | # This file resides in the same directory as the config header |
|---|
| 20 | # that is generated. We must strip everything past the first ":", |
|---|
| 21 | # and everything past the last "/". |
|---|
| 22 | |
|---|
| 23 | AC_PREREQ([2.12]) |
|---|
| 24 | |
|---|
| 25 | AC_DEFUN([AM_CONFIG_HEADER], |
|---|
| 26 | [ifdef([AC_FOREACH],dnl |
|---|
| 27 | [dnl init our file count if it isn't already |
|---|
| 28 | m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0])) |
|---|
| 29 | dnl prepare to store our destination file list for use in config.status |
|---|
| 30 | AC_FOREACH([_AM_File], [$1], |
|---|
| 31 | [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*])) |
|---|
| 32 | m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index)) |
|---|
| 33 | dnl and add it to the list of files AC keeps track of, along |
|---|
| 34 | dnl with our hook |
|---|
| 35 | AC_CONFIG_HEADERS(_AM_File, |
|---|
| 36 | dnl COMMANDS, [, INIT-CMDS] |
|---|
| 37 | [# update the timestamp |
|---|
| 38 | echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index[" |
|---|
| 39 | ][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS |
|---|
| 40 | m4_popdef([_AM_Dest])])],dnl |
|---|
| 41 | [AC_CONFIG_HEADER([$1]) |
|---|
| 42 | AC_OUTPUT_COMMANDS( |
|---|
| 43 | ifelse(patsubst([$1], [[^ ]], []), |
|---|
| 44 | [], |
|---|
| 45 | [test -z "$CONFIG_HEADERS" || echo timestamp >dnl |
|---|
| 46 | patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl |
|---|
| 47 | [am_indx=1 |
|---|
| 48 | for am_file in $1; do |
|---|
| 49 | case " \$CONFIG_HEADERS " in |
|---|
| 50 | *" \$am_file "*) |
|---|
| 51 | am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` |
|---|
| 52 | if test -n "\$am_dir"; then |
|---|
| 53 | am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` |
|---|
| 54 | for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do |
|---|
| 55 | am_tmpdir=\$am_tmpdir\$am_subdir/ |
|---|
| 56 | if test ! -d \$am_tmpdir; then |
|---|
| 57 | mkdir \$am_tmpdir |
|---|
| 58 | fi |
|---|
| 59 | done |
|---|
| 60 | fi |
|---|
| 61 | echo timestamp > "\$am_dir"stamp-h\$am_indx |
|---|
| 62 | ;; |
|---|
| 63 | esac |
|---|
| 64 | am_indx=\`expr \$am_indx + 1\` |
|---|
| 65 | done]) |
|---|
| 66 | ])]) # AM_CONFIG_HEADER |
|---|
| 67 | |
|---|
| 68 | # _AM_DIRNAME(PATH) |
|---|
| 69 | # ----------------- |
|---|
| 70 | # Like AS_DIRNAME, only do it during macro expansion |
|---|
| 71 | AC_DEFUN([_AM_DIRNAME], |
|---|
| 72 | [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, |
|---|
| 73 | m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1, |
|---|
| 74 | m4_if(m4_regexp([$1], [^/.*]), -1, |
|---|
| 75 | [.], |
|---|
| 76 | m4_patsubst([$1], [^\(/\).*], [\1])), |
|---|
| 77 | m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), |
|---|
| 78 | m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl |
|---|
| 79 | ]) # _AM_DIRNAME |
|---|
| 80 | |
|---|
| 81 | # Do all the work for Automake. This macro actually does too much -- |
|---|
| 82 | # some checks are only needed if your package does certain things. |
|---|
| 83 | # But this isn't really a big deal. |
|---|
| 84 | |
|---|
| 85 | # serial 5 |
|---|
| 86 | |
|---|
| 87 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|---|
| 88 | # written in clear, in which case automake, when reading aclocal.m4, |
|---|
| 89 | # will think it sees a *use*, and therefore will trigger all it's |
|---|
| 90 | # C support machinery. Also note that it means that autoscan, seeing |
|---|
| 91 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
|---|
| 92 | |
|---|
| 93 | |
|---|
| 94 | # We require 2.13 because we rely on SHELL being computed by configure. |
|---|
| 95 | AC_PREREQ([2.13]) |
|---|
| 96 | |
|---|
| 97 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
|---|
| 98 | # ----------------------------------------------------------- |
|---|
| 99 | # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED. |
|---|
| 100 | # The purpose of this macro is to provide the user with a means to |
|---|
| 101 | # check macros which are provided without letting her know how the |
|---|
| 102 | # information is coded. |
|---|
| 103 | # If this macro is not defined by Autoconf, define it here. |
|---|
| 104 | ifdef([AC_PROVIDE_IFELSE], |
|---|
| 105 | [], |
|---|
| 106 | [define([AC_PROVIDE_IFELSE], |
|---|
| 107 | [ifdef([AC_PROVIDE_$1], |
|---|
| 108 | [$2], [$3])])]) |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE]) |
|---|
| 112 | # ---------------------------------------------- |
|---|
| 113 | AC_DEFUN([AM_INIT_AUTOMAKE], |
|---|
| 114 | [AC_REQUIRE([AC_PROG_INSTALL])dnl |
|---|
| 115 | # test to see if srcdir already configured |
|---|
| 116 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && |
|---|
| 117 | test -f $srcdir/config.status; then |
|---|
| 118 | AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first]) |
|---|
| 119 | fi |
|---|
| 120 | |
|---|
| 121 | # Define the identity of the package. |
|---|
| 122 | PACKAGE=$1 |
|---|
| 123 | AC_SUBST(PACKAGE)dnl |
|---|
| 124 | VERSION=$2 |
|---|
| 125 | AC_SUBST(VERSION)dnl |
|---|
| 126 | ifelse([$3],, |
|---|
| 127 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
|---|
| 128 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) |
|---|
| 129 | |
|---|
| 130 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
|---|
| 131 | # the ones we care about. |
|---|
| 132 | ifdef([m4_pattern_allow], |
|---|
| 133 | [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl |
|---|
| 134 | |
|---|
| 135 | # Autoconf 2.50 always computes EXEEXT. However we need to be |
|---|
| 136 | # compatible with 2.13, for now. So we always define EXEEXT, but we |
|---|
| 137 | # don't compute it. |
|---|
| 138 | AC_SUBST(EXEEXT) |
|---|
| 139 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually |
|---|
| 140 | # requests that it be used. This is a bit dumb. |
|---|
| 141 | : ${OBJEXT=o} |
|---|
| 142 | AC_SUBST(OBJEXT) |
|---|
| 143 | |
|---|
| 144 | # Some tools Automake needs. |
|---|
| 145 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
|---|
| 146 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
|---|
| 147 | AM_MISSING_PROG(ACLOCAL, aclocal) |
|---|
| 148 | AM_MISSING_PROG(AUTOCONF, autoconf) |
|---|
| 149 | AM_MISSING_PROG(AUTOMAKE, automake) |
|---|
| 150 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
|---|
| 151 | AM_MISSING_PROG(MAKEINFO, makeinfo) |
|---|
| 152 | AM_MISSING_PROG(AMTAR, tar) |
|---|
| 153 | AM_PROG_INSTALL_SH |
|---|
| 154 | AM_PROG_INSTALL_STRIP |
|---|
| 155 | # We need awk for the "check" target. The system "awk" is bad on |
|---|
| 156 | # some platforms. |
|---|
| 157 | AC_REQUIRE([AC_PROG_AWK])dnl |
|---|
| 158 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
|---|
| 159 | AC_REQUIRE([AM_DEP_TRACK])dnl |
|---|
| 160 | AC_REQUIRE([AM_SET_DEPDIR])dnl |
|---|
| 161 | AC_PROVIDE_IFELSE([AC_PROG_][CC], |
|---|
| 162 | [_AM_DEPENDENCIES(CC)], |
|---|
| 163 | [define([AC_PROG_][CC], |
|---|
| 164 | defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl |
|---|
| 165 | AC_PROVIDE_IFELSE([AC_PROG_][CXX], |
|---|
| 166 | [_AM_DEPENDENCIES(CXX)], |
|---|
| 167 | [define([AC_PROG_][CXX], |
|---|
| 168 | defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
|---|
| 169 | ]) |
|---|
| 170 | |
|---|
| 171 | # |
|---|
| 172 | # Check to make sure that the build environment is sane. |
|---|
| 173 | # |
|---|
| 174 | |
|---|
| 175 | # serial 3 |
|---|
| 176 | |
|---|
| 177 | # AM_SANITY_CHECK |
|---|
| 178 | # --------------- |
|---|
| 179 | AC_DEFUN([AM_SANITY_CHECK], |
|---|
| 180 | [AC_MSG_CHECKING([whether build environment is sane]) |
|---|
| 181 | # Just in case |
|---|
| 182 | sleep 1 |
|---|
| 183 | echo timestamp > conftest.file |
|---|
| 184 | # Do `set' in a subshell so we don't clobber the current shell's |
|---|
| 185 | # arguments. Must try -L first in case configure is actually a |
|---|
| 186 | # symlink; some systems play weird games with the mod time of symlinks |
|---|
| 187 | # (eg FreeBSD returns the mod time of the symlink's containing |
|---|
| 188 | # directory). |
|---|
| 189 | if ( |
|---|
| 190 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|---|
| 191 | if test "$[*]" = "X"; then |
|---|
| 192 | # -L didn't work. |
|---|
| 193 | set X `ls -t $srcdir/configure conftest.file` |
|---|
| 194 | fi |
|---|
| 195 | rm -f conftest.file |
|---|
| 196 | if test "$[*]" != "X $srcdir/configure conftest.file" \ |
|---|
| 197 | && test "$[*]" != "X conftest.file $srcdir/configure"; then |
|---|
| 198 | |
|---|
| 199 | # If neither matched, then we have a broken ls. This can happen |
|---|
| 200 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
|---|
| 201 | # broken ls alias from the environment. This has actually |
|---|
| 202 | # happened. Such a system could not be considered "sane". |
|---|
| 203 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
|---|
| 204 | alias in your environment]) |
|---|
| 205 | fi |
|---|
| 206 | |
|---|
| 207 | test "$[2]" = conftest.file |
|---|
| 208 | ) |
|---|
| 209 | then |
|---|
| 210 | # Ok. |
|---|
| 211 | : |
|---|
| 212 | else |
|---|
| 213 | AC_MSG_ERROR([newly created file is older than distributed files! |
|---|
| 214 | Check your system clock]) |
|---|
| 215 | fi |
|---|
| 216 | AC_MSG_RESULT(yes)]) |
|---|
| 217 | |
|---|
| 218 | |
|---|
| 219 | # serial 2 |
|---|
| 220 | |
|---|
| 221 | # AM_MISSING_PROG(NAME, PROGRAM) |
|---|
| 222 | # ------------------------------ |
|---|
| 223 | AC_DEFUN([AM_MISSING_PROG], |
|---|
| 224 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|---|
| 225 | $1=${$1-"${am_missing_run}$2"} |
|---|
| 226 | AC_SUBST($1)]) |
|---|
| 227 | |
|---|
| 228 | |
|---|
| 229 | # AM_MISSING_HAS_RUN |
|---|
| 230 | # ------------------ |
|---|
| 231 | # Define MISSING if not defined so far and test if it supports --run. |
|---|
| 232 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
|---|
| 233 | AC_DEFUN([AM_MISSING_HAS_RUN], |
|---|
| 234 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|---|
| 235 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|---|
| 236 | # Use eval to expand $SHELL |
|---|
| 237 | if eval "$MISSING --run true"; then |
|---|
| 238 | am_missing_run="$MISSING --run " |
|---|
| 239 | else |
|---|
| 240 | am_missing_run= |
|---|
| 241 | am_backtick='`' |
|---|
| 242 | AC_MSG_WARN([${am_backtick}missing' script is too old or missing]) |
|---|
| 243 | fi |
|---|
| 244 | ]) |
|---|
| 245 | |
|---|
| 246 | # AM_AUX_DIR_EXPAND |
|---|
| 247 | |
|---|
| 248 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
|---|
| 249 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
|---|
| 250 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
|---|
| 251 | # |
|---|
| 252 | # Of course, Automake must honor this variable whenever it calls a |
|---|
| 253 | # tool from the auxiliary directory. The problem is that $srcdir (and |
|---|
| 254 | # therefore $ac_aux_dir as well) can be either absolute or relative, |
|---|
| 255 | # depending on how configure is run. This is pretty annoying, since |
|---|
| 256 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
|---|
| 257 | # source directory, any form will work fine, but in subdirectories a |
|---|
| 258 | # relative path needs to be adjusted first. |
|---|
| 259 | # |
|---|
| 260 | # $ac_aux_dir/missing |
|---|
| 261 | # fails when called from a subdirectory if $ac_aux_dir is relative |
|---|
| 262 | # $top_srcdir/$ac_aux_dir/missing |
|---|
| 263 | # fails if $ac_aux_dir is absolute, |
|---|
| 264 | # fails when called from a subdirectory in a VPATH build with |
|---|
| 265 | # a relative $ac_aux_dir |
|---|
| 266 | # |
|---|
| 267 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
|---|
| 268 | # are both prefixed by $srcdir. In an in-source build this is usually |
|---|
| 269 | # harmless because $srcdir is `.', but things will broke when you |
|---|
| 270 | # start a VPATH build or use an absolute $srcdir. |
|---|
| 271 | # |
|---|
| 272 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
|---|
| 273 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
|---|
| 274 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
|---|
| 275 | # and then we would define $MISSING as |
|---|
| 276 | # MISSING="\${SHELL} $am_aux_dir/missing" |
|---|
| 277 | # This will work as long as MISSING is not called from configure, because |
|---|
| 278 | # unfortunately $(top_srcdir) has no meaning in configure. |
|---|
| 279 | # However there are other variables, like CC, which are often used in |
|---|
| 280 | # configure, and could therefore not use this "fixed" $ac_aux_dir. |
|---|
| 281 | # |
|---|
| 282 | # Another solution, used here, is to always expand $ac_aux_dir to an |
|---|
| 283 | # absolute PATH. The drawback is that using absolute paths prevent a |
|---|
| 284 | # configured tree to be moved without reconfiguration. |
|---|
| 285 | |
|---|
| 286 | AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
|---|
| 287 | # expand $ac_aux_dir to an absolute path |
|---|
| 288 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` |
|---|
| 289 | ]) |
|---|
| 290 | |
|---|
| 291 | # AM_PROG_INSTALL_SH |
|---|
| 292 | # ------------------ |
|---|
| 293 | # Define $install_sh. |
|---|
| 294 | AC_DEFUN([AM_PROG_INSTALL_SH], |
|---|
| 295 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|---|
| 296 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
|---|
| 297 | AC_SUBST(install_sh)]) |
|---|
| 298 | |
|---|
| 299 | # One issue with vendor `install' (even GNU) is that you can't |
|---|
| 300 | # specify the program used to strip binaries. This is especially |
|---|
| 301 | # annoying in cross-compiling environments, where the build's strip |
|---|
| 302 | # is unlikely to handle the host's binaries. |
|---|
| 303 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
|---|
| 304 | # always use install-sh in `make install-strip', and initialize |
|---|
| 305 | # STRIPPROG with the value of the STRIP variable (set by the user). |
|---|
| 306 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
|---|
| 307 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|---|
| 308 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|---|
| 309 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
|---|
| 310 | |
|---|
| 311 | # serial 4 -*- Autoconf -*- |
|---|
| 312 | |
|---|
| 313 | |
|---|
| 314 | |
|---|
| 315 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|---|
| 316 | # written in clear, in which case automake, when reading aclocal.m4, |
|---|
| 317 | # will think it sees a *use*, and therefore will trigger all it's |
|---|
| 318 | # C support machinery. Also note that it means that autoscan, seeing |
|---|
| 319 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
|---|
| 320 | |
|---|
| 321 | |
|---|
| 322 | |
|---|
| 323 | # _AM_DEPENDENCIES(NAME) |
|---|
| 324 | # --------------------- |
|---|
| 325 | # See how the compiler implements dependency checking. |
|---|
| 326 | # NAME is "CC", "CXX" or "OBJC". |
|---|
| 327 | # We try a few techniques and use that to set a single cache variable. |
|---|
| 328 | # |
|---|
| 329 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|---|
| 330 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
|---|
| 331 | # dependency, and given that the user is not expected to run this macro, |
|---|
| 332 | # just rely on AC_PROG_CC. |
|---|
| 333 | AC_DEFUN([_AM_DEPENDENCIES], |
|---|
| 334 | [AC_REQUIRE([AM_SET_DEPDIR])dnl |
|---|
| 335 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
|---|
| 336 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
|---|
| 337 | AC_REQUIRE([AM_DEP_TRACK])dnl |
|---|
| 338 | |
|---|
| 339 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
|---|
| 340 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
|---|
| 341 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'] |
|---|
| 342 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
|---|
| 343 | [depcc="$$1" am_compiler_list=]) |
|---|
| 344 | |
|---|
| 345 | AC_CACHE_CHECK([dependency style of $depcc], |
|---|
| 346 | [am_cv_$1_dependencies_compiler_type], |
|---|
| 347 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|---|
| 348 | # We make a subdir and do the tests there. Otherwise we can end up |
|---|
| 349 | # making bogus files that we don't know about and never remove. For |
|---|
| 350 | # instance it was reported that on HP-UX the gcc test will end up |
|---|
| 351 | # making a dummy file named `D' -- because `-MD' means `put the output |
|---|
| 352 | # in D'. |
|---|
| 353 | mkdir conftest.dir |
|---|
| 354 | # Copy depcomp to subdir because otherwise we won't find it if we're |
|---|
| 355 | # using a relative directory. |
|---|
| 356 | cp "$am_depcomp" conftest.dir |
|---|
| 357 | cd conftest.dir |
|---|
| 358 | |
|---|
| 359 | am_cv_$1_dependencies_compiler_type=none |
|---|
| 360 | if test "$am_compiler_list" = ""; then |
|---|
| 361 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
|---|
| 362 | fi |
|---|
| 363 | for depmode in $am_compiler_list; do |
|---|
| 364 | # We need to recreate these files for each test, as the compiler may |
|---|
| 365 | # overwrite some of them when testing with obscure command lines. |
|---|
| 366 | # This happens at least with the AIX C compiler. |
|---|
| 367 | echo '#include "conftest.h"' > conftest.c |
|---|
| 368 | echo 'int i;' > conftest.h |
|---|
| 369 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
|---|
| 370 | |
|---|
| 371 | case $depmode in |
|---|
| 372 | nosideeffect) |
|---|
| 373 | # after this tag, mechanisms are not by side-effect, so they'll |
|---|
| 374 | # only be used when explicitly requested |
|---|
| 375 | if test "x$enable_dependency_tracking" = xyes; then |
|---|
| 376 | continue |
|---|
| 377 | else |
|---|
| 378 | break |
|---|
| 379 | fi |
|---|
| 380 | ;; |
|---|
| 381 | none) break ;; |
|---|
| 382 | esac |
|---|
| 383 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|---|
| 384 | # mode. It turns out that the SunPro C++ compiler does not properly |
|---|
| 385 | # handle `-M -o', and we need to detect this. |
|---|
| 386 | if depmode=$depmode \ |
|---|
| 387 | source=conftest.c object=conftest.o \ |
|---|
| 388 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
|---|
| 389 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
|---|
| 390 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
|---|
| 391 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|---|
| 392 | am_cv_$1_dependencies_compiler_type=$depmode |
|---|
| 393 | break |
|---|
| 394 | fi |
|---|
| 395 | done |
|---|
| 396 | |
|---|
| 397 | cd .. |
|---|
| 398 | rm -rf conftest.dir |
|---|
| 399 | else |
|---|
| 400 | am_cv_$1_dependencies_compiler_type=none |
|---|
| 401 | fi |
|---|
| 402 | ]) |
|---|
| 403 | $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type" |
|---|
| 404 | AC_SUBST([$1DEPMODE]) |
|---|
| 405 | ]) |
|---|
| 406 | |
|---|
| 407 | |
|---|
| 408 | # AM_SET_DEPDIR |
|---|
| 409 | # ------------- |
|---|
| 410 | # Choose a directory name for dependency files. |
|---|
| 411 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES |
|---|
| 412 | AC_DEFUN([AM_SET_DEPDIR], |
|---|
| 413 | [rm -f .deps 2>/dev/null |
|---|
| 414 | mkdir .deps 2>/dev/null |
|---|
| 415 | if test -d .deps; then |
|---|
| 416 | DEPDIR=.deps |
|---|
| 417 | else |
|---|
| 418 | # MS-DOS does not allow filenames that begin with a dot. |
|---|
| 419 | DEPDIR=_deps |
|---|
| 420 | fi |
|---|
| 421 | rmdir .deps 2>/dev/null |
|---|
| 422 | AC_SUBST(DEPDIR) |
|---|
| 423 | ]) |
|---|
| 424 | |
|---|
| 425 | |
|---|
| 426 | # AM_DEP_TRACK |
|---|
| 427 | # ------------ |
|---|
| 428 | AC_DEFUN([AM_DEP_TRACK], |
|---|
| 429 | [AC_ARG_ENABLE(dependency-tracking, |
|---|
| 430 | [ --disable-dependency-tracking Speeds up one-time builds |
|---|
| 431 | --enable-dependency-tracking Do not reject slow dependency extractors]) |
|---|
| 432 | if test "x$enable_dependency_tracking" != xno; then |
|---|
| 433 | am_depcomp="$ac_aux_dir/depcomp" |
|---|
| 434 | AMDEPBACKSLASH='\' |
|---|
| 435 | fi |
|---|
| 436 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|---|
| 437 | pushdef([subst], defn([AC_SUBST])) |
|---|
| 438 | subst(AMDEPBACKSLASH) |
|---|
| 439 | popdef([subst]) |
|---|
| 440 | ]) |
|---|
| 441 | |
|---|
| 442 | # Generate code to set up dependency tracking. |
|---|
| 443 | # This macro should only be invoked once -- use via AC_REQUIRE. |
|---|
| 444 | # Usage: |
|---|
| 445 | # AM_OUTPUT_DEPENDENCY_COMMANDS |
|---|
| 446 | |
|---|
| 447 | # |
|---|
| 448 | # This code is only required when automatic dependency tracking |
|---|
| 449 | # is enabled. FIXME. This creates each `.P' file that we will |
|---|
| 450 | # need in order to bootstrap the dependency handling code. |
|---|
| 451 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[ |
|---|
| 452 | AC_OUTPUT_COMMANDS([ |
|---|
| 453 | test x"$AMDEP_TRUE" != x"" || |
|---|
| 454 | for mf in $CONFIG_FILES; do |
|---|
| 455 | case "$mf" in |
|---|
| 456 | Makefile) dirpart=.;; |
|---|
| 457 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; |
|---|
| 458 | *) continue;; |
|---|
| 459 | esac |
|---|
| 460 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
|---|
| 461 | # Extract the definition of DEP_FILES from the Makefile without |
|---|
| 462 | # running `make'. |
|---|
| 463 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
|---|
| 464 | test -z "$DEPDIR" && continue |
|---|
| 465 | # When using ansi2knr, U may be empty or an underscore; expand it |
|---|
| 466 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
|---|
| 467 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
|---|
| 468 | # We invoke sed twice because it is the simplest approach to |
|---|
| 469 | # changing $(DEPDIR) to its actual value in the expansion. |
|---|
| 470 | for file in `sed -n -e ' |
|---|
| 471 | /^DEP_FILES = .*\\\\$/ { |
|---|
| 472 | s/^DEP_FILES = // |
|---|
| 473 | :loop |
|---|
| 474 | s/\\\\$// |
|---|
| 475 | p |
|---|
| 476 | n |
|---|
| 477 | /\\\\$/ b loop |
|---|
| 478 | p |
|---|
| 479 | } |
|---|
| 480 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
|---|
| 481 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|---|
| 482 | # Make sure the directory exists. |
|---|
| 483 | test -f "$dirpart/$file" && continue |
|---|
| 484 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` |
|---|
| 485 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 |
|---|
| 486 | # echo "creating $dirpart/$file" |
|---|
| 487 | echo '# dummy' > "$dirpart/$file" |
|---|
| 488 | done |
|---|
| 489 | done |
|---|
| 490 | ], [AMDEP_TRUE="$AMDEP_TRUE" |
|---|
| 491 | ac_aux_dir="$ac_aux_dir"])]) |
|---|
| 492 | |
|---|
| 493 | # AM_MAKE_INCLUDE() |
|---|
| 494 | # ----------------- |
|---|
| 495 | # Check to see how make treats includes. |
|---|
| 496 | AC_DEFUN([AM_MAKE_INCLUDE], |
|---|
| 497 | [am_make=${MAKE-make} |
|---|
| 498 | cat > confinc << 'END' |
|---|
| 499 | doit: |
|---|
| 500 | @echo done |
|---|
| 501 | END |
|---|
| 502 | # If we don't find an include directive, just comment out the code. |
|---|
| 503 | AC_MSG_CHECKING([for style of include used by $am_make]) |
|---|
| 504 | am__include='#' |
|---|
| 505 | am__quote= |
|---|
| 506 | _am_result=none |
|---|
| 507 | # First try GNU make style include. |
|---|
| 508 | echo "include confinc" > confmf |
|---|
| 509 | # We grep out `Entering directory' and `Leaving directory' |
|---|
| 510 | # messages which can occur if `w' ends up in MAKEFLAGS. |
|---|
| 511 | # In particular we don't look at `^make:' because GNU make might |
|---|
| 512 | # be invoked under some other name (usually "gmake"), in which |
|---|
| 513 | # case it prints its new name instead of `make'. |
|---|
| 514 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
|---|
| 515 | am__include=include |
|---|
| 516 | am__quote= |
|---|
| 517 | _am_result=GNU |
|---|
| 518 | fi |
|---|
| 519 | # Now try BSD make style include. |
|---|
| 520 | if test "$am__include" = "#"; then |
|---|
| 521 | echo '.include "confinc"' > confmf |
|---|
| 522 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|---|
| 523 | am__include=.include |
|---|
| 524 | am__quote='"' |
|---|
| 525 | _am_result=BSD |
|---|
| 526 | fi |
|---|
| 527 | fi |
|---|
| 528 | AC_SUBST(am__include) |
|---|
| 529 | AC_SUBST(am__quote) |
|---|
| 530 | AC_MSG_RESULT($_am_result) |
|---|
| 531 | rm -f confinc confmf |
|---|
| 532 | ]) |
|---|
| 533 | |
|---|
| 534 | # serial 3 |
|---|
| 535 | |
|---|
| 536 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
|---|
| 537 | # ------------------------------------- |
|---|
| 538 | # Define a conditional. |
|---|
| 539 | # |
|---|
| 540 | # FIXME: Once using 2.50, use this: |
|---|
| 541 | # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl |
|---|
| 542 | AC_DEFUN([AM_CONDITIONAL], |
|---|
| 543 | [ifelse([$1], [TRUE], |
|---|
| 544 | [errprint(__file__:__line__: [$0: invalid condition: $1 |
|---|
| 545 | ])dnl |
|---|
| 546 | m4exit(1)])dnl |
|---|
| 547 | ifelse([$1], [FALSE], |
|---|
| 548 | [errprint(__file__:__line__: [$0: invalid condition: $1 |
|---|
| 549 | ])dnl |
|---|
| 550 | m4exit(1)])dnl |
|---|
| 551 | AC_SUBST([$1_TRUE]) |
|---|
| 552 | AC_SUBST([$1_FALSE]) |
|---|
| 553 | if $2; then |
|---|
| 554 | $1_TRUE= |
|---|
| 555 | $1_FALSE='#' |
|---|
| 556 | else |
|---|
| 557 | $1_TRUE='#' |
|---|
| 558 | $1_FALSE= |
|---|
| 559 | fi]) |
|---|
| 560 | |
|---|