Changeset 4471 for trunk/MagicSoft/AMC/activemirrorcontrol/aclocal.m4
- Timestamp:
- 08/04/04 16:04:56 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/AMC/activemirrorcontrol/aclocal.m4
r3401 r4471 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. 1 dnl aclocal.m4 generated automatically by aclocal 1.4 2 3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 dnl This file is free software; the Free Software Foundation 5 dnl gives unlimited permission to copy and/or distribute it, 6 dnl with or without modifications, as long as this notice is preserved. 7 8 dnl This program is distributed in the hope that it will be useful, 9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 dnl PARTICULAR PURPOSE. 13 12 14 13 … … 4896 4895 # But this isn't really a big deal. 4897 4896 4898 # serial 5 4899 4900 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 4901 # written in clear, in which case automake, when reading aclocal.m4, 4902 # will think it sees a *use*, and therefore will trigger all it's 4903 # C support machinery. Also note that it means that autoscan, seeing 4904 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 4905 4906 4907 # We require 2.13 because we rely on SHELL being computed by configure. 4908 AC_PREREQ([2.13]) 4909 4910 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 4911 # ----------------------------------------------------------- 4912 # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED. 4913 # The purpose of this macro is to provide the user with a means to 4914 # check macros which are provided without letting her know how the 4915 # information is coded. 4916 # If this macro is not defined by Autoconf, define it here. 4917 ifdef([AC_PROVIDE_IFELSE], 4918 [], 4919 [define([AC_PROVIDE_IFELSE], 4920 [ifdef([AC_PROVIDE_$1], 4921 [$2], [$3])])]) 4922 4923 4924 # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE]) 4925 # ---------------------------------------------- 4926 AC_DEFUN([AM_INIT_AUTOMAKE], 4927 [AC_REQUIRE([AC_PROG_INSTALL])dnl 4928 # test to see if srcdir already configured 4929 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 4930 test -f $srcdir/config.status; then 4931 AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first]) 4932 fi 4933 4934 # Define the identity of the package. 4935 PACKAGE=$1 4936 AC_SUBST(PACKAGE)dnl 4937 VERSION=$2 4938 AC_SUBST(VERSION)dnl 4897 # serial 1 4898 4899 dnl Usage: 4900 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) 4901 4902 AC_DEFUN(AM_INIT_AUTOMAKE, 4903 [AC_REQUIRE([AC_PROG_INSTALL]) 4904 PACKAGE=[$1] 4905 AC_SUBST(PACKAGE) 4906 VERSION=[$2] 4907 AC_SUBST(VERSION) 4908 dnl test to see if srcdir already configured 4909 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 4910 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 4911 fi 4939 4912 ifelse([$3],, 4940 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 4941 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) 4942 4943 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 4944 # the ones we care about. 4945 ifdef([m4_pattern_allow], 4946 [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl 4947 4948 # Autoconf 2.50 always computes EXEEXT. However we need to be 4949 # compatible with 2.13, for now. So we always define EXEEXT, but we 4950 # don't compute it. 4951 AC_SUBST(EXEEXT) 4952 # Similar for OBJEXT -- only we only use OBJEXT if the user actually 4953 # requests that it be used. This is a bit dumb. 4954 : ${OBJEXT=o} 4955 AC_SUBST(OBJEXT) 4956 4957 # Some tools Automake needs. 4958 AC_REQUIRE([AM_SANITY_CHECK])dnl 4959 AC_REQUIRE([AC_ARG_PROGRAM])dnl 4960 AM_MISSING_PROG(ACLOCAL, aclocal) 4961 AM_MISSING_PROG(AUTOCONF, autoconf) 4962 AM_MISSING_PROG(AUTOMAKE, automake) 4963 AM_MISSING_PROG(AUTOHEADER, autoheader) 4964 AM_MISSING_PROG(MAKEINFO, makeinfo) 4965 AM_MISSING_PROG(AMTAR, tar) 4966 AM_PROG_INSTALL_SH 4967 AM_PROG_INSTALL_STRIP 4968 # We need awk for the "check" target. The system "awk" is bad on 4969 # some platforms. 4970 AC_REQUIRE([AC_PROG_AWK])dnl 4971 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 4972 AC_REQUIRE([AM_DEP_TRACK])dnl 4973 AC_REQUIRE([AM_SET_DEPDIR])dnl 4974 AC_PROVIDE_IFELSE([AC_PROG_][CC], 4975 [_AM_DEPENDENCIES(CC)], 4976 [define([AC_PROG_][CC], 4977 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl 4978 AC_PROVIDE_IFELSE([AC_PROG_][CXX], 4979 [_AM_DEPENDENCIES(CXX)], 4980 [define([AC_PROG_][CXX], 4981 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 4982 ]) 4913 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 4914 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) 4915 AC_REQUIRE([AM_SANITY_CHECK]) 4916 AC_REQUIRE([AC_ARG_PROGRAM]) 4917 dnl FIXME This is truly gross. 4918 missing_dir=`cd $ac_aux_dir && pwd` 4919 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) 4920 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 4921 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) 4922 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 4923 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) 4924 AC_REQUIRE([AC_PROG_MAKE_SET])]) 4983 4925 4984 4926 # … … 4986 4928 # 4987 4929 4988 # serial 3 4989 4990 # AM_SANITY_CHECK 4991 # --------------- 4992 AC_DEFUN([AM_SANITY_CHECK], 4930 AC_DEFUN(AM_SANITY_CHECK, 4993 4931 [AC_MSG_CHECKING([whether build environment is sane]) 4994 4932 # Just in case 4995 4933 sleep 1 4996 echo timestamp > conftest .file4934 echo timestamp > conftestfile 4997 4935 # Do `set' in a subshell so we don't clobber the current shell's 4998 4936 # arguments. Must try -L first in case configure is actually a … … 5001 4939 # directory). 5002 4940 if ( 5003 set X `ls -Lt $srcdir/configure conftest .file 2> /dev/null`5004 if test " $[*]" = "X"; then4941 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 4942 if test "[$]*" = "X"; then 5005 4943 # -L didn't work. 5006 set X `ls -t $srcdir/configure conftest .file`4944 set X `ls -t $srcdir/configure conftestfile` 5007 4945 fi 5008 rm -f conftest.file 5009 if test "$[*]" != "X $srcdir/configure conftest.file" \ 5010 && test "$[*]" != "X conftest.file $srcdir/configure"; then 4946 if test "[$]*" != "X $srcdir/configure conftestfile" \ 4947 && test "[$]*" != "X conftestfile $srcdir/configure"; then 5011 4948 5012 4949 # If neither matched, then we have a broken ls. This can happen … … 5018 4955 fi 5019 4956 5020 test " $[2]" = conftest.file4957 test "[$]2" = conftestfile 5021 4958 ) 5022 4959 then … … 5027 4964 Check your system clock]) 5028 4965 fi 4966 rm -f conftest* 5029 4967 AC_MSG_RESULT(yes)]) 5030 4968 5031 5032 # serial 2 5033 5034 # AM_MISSING_PROG(NAME, PROGRAM) 5035 # ------------------------------ 5036 AC_DEFUN([AM_MISSING_PROG], 5037 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 5038 $1=${$1-"${am_missing_run}$2"} 4969 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) 4970 dnl The program must properly implement --version. 4971 AC_DEFUN(AM_MISSING_PROG, 4972 [AC_MSG_CHECKING(for working $2) 4973 # Run test in a subshell; some versions of sh will print an error if 4974 # an executable is not found, even if stderr is redirected. 4975 # Redirect stdin to placate older versions of autoconf. Sigh. 4976 if ($2 --version) < /dev/null > /dev/null 2>&1; then 4977 $1=$2 4978 AC_MSG_RESULT(found) 4979 else 4980 $1="$3/missing $2" 4981 AC_MSG_RESULT(missing) 4982 fi 5039 4983 AC_SUBST($1)]) 5040 4984 5041 5042 # AM_MISSING_HAS_RUN5043 # ------------------5044 # Define MISSING if not defined so far and test if it supports --run.5045 # If it does, set am_missing_run to use it, otherwise, to nothing.5046 AC_DEFUN([AM_MISSING_HAS_RUN],5047 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl5048 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"5049 # Use eval to expand $SHELL5050 if eval "$MISSING --run true"; then5051 am_missing_run="$MISSING --run "5052 else5053 am_missing_run=5054 am_backtick='`'5055 AC_MSG_WARN([${am_backtick}missing' script is too old or missing])5056 fi5057 ])5058 5059 # AM_AUX_DIR_EXPAND5060 5061 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets5062 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to5063 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.5064 #5065 # Of course, Automake must honor this variable whenever it calls a5066 # tool from the auxiliary directory. The problem is that $srcdir (and5067 # therefore $ac_aux_dir as well) can be either absolute or relative,5068 # depending on how configure is run. This is pretty annoying, since5069 # it makes $ac_aux_dir quite unusable in subdirectories: in the top5070 # source directory, any form will work fine, but in subdirectories a5071 # relative path needs to be adjusted first.5072 #5073 # $ac_aux_dir/missing5074 # fails when called from a subdirectory if $ac_aux_dir is relative5075 # $top_srcdir/$ac_aux_dir/missing5076 # fails if $ac_aux_dir is absolute,5077 # fails when called from a subdirectory in a VPATH build with5078 # a relative $ac_aux_dir5079 #5080 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir5081 # are both prefixed by $srcdir. In an in-source build this is usually5082 # harmless because $srcdir is `.', but things will broke when you5083 # start a VPATH build or use an absolute $srcdir.5084 #5085 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,5086 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:5087 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`5088 # and then we would define $MISSING as5089 # MISSING="\${SHELL} $am_aux_dir/missing"5090 # This will work as long as MISSING is not called from configure, because5091 # unfortunately $(top_srcdir) has no meaning in configure.5092 # However there are other variables, like CC, which are often used in5093 # configure, and could therefore not use this "fixed" $ac_aux_dir.5094 #5095 # Another solution, used here, is to always expand $ac_aux_dir to an5096 # absolute PATH. The drawback is that using absolute paths prevent a5097 # configured tree to be moved without reconfiguration.5098 5099 AC_DEFUN([AM_AUX_DIR_EXPAND], [5100 # expand $ac_aux_dir to an absolute path5101 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`5102 ])5103 5104 # AM_PROG_INSTALL_SH5105 # ------------------5106 # Define $install_sh.5107 AC_DEFUN([AM_PROG_INSTALL_SH],5108 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl5109 install_sh=${install_sh-"$am_aux_dir/install-sh"}5110 AC_SUBST(install_sh)])5111 5112 # One issue with vendor `install' (even GNU) is that you can't5113 # specify the program used to strip binaries. This is especially5114 # annoying in cross-compiling environments, where the build's strip5115 # is unlikely to handle the host's binaries.5116 # Fortunately install-sh will honor a STRIPPROG variable, so we5117 # always use install-sh in `make install-strip', and initialize5118 # STRIPPROG with the value of the STRIP variable (set by the user).5119 AC_DEFUN([AM_PROG_INSTALL_STRIP],5120 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl5121 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"5122 AC_SUBST([INSTALL_STRIP_PROGRAM])])5123 5124 # serial 4 -*- Autoconf -*-5125 5126 5127 5128 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be5129 # written in clear, in which case automake, when reading aclocal.m4,5130 # will think it sees a *use*, and therefore will trigger all it's5131 # C support machinery. Also note that it means that autoscan, seeing5132 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...5133 5134 5135 5136 # _AM_DEPENDENCIES(NAME)5137 # ---------------------5138 # See how the compiler implements dependency checking.5139 # NAME is "CC", "CXX" or "OBJC".5140 # We try a few techniques and use that to set a single cache variable.5141 #5142 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was5143 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular5144 # dependency, and given that the user is not expected to run this macro,5145 # just rely on AC_PROG_CC.5146 AC_DEFUN([_AM_DEPENDENCIES],5147 [AC_REQUIRE([AM_SET_DEPDIR])dnl5148 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl5149 AC_REQUIRE([AM_MAKE_INCLUDE])dnl5150 AC_REQUIRE([AM_DEP_TRACK])dnl5151 5152 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],5153 [$1], CXX, [depcc="$CXX" am_compiler_list=],5154 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']5155 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],5156 [depcc="$$1" am_compiler_list=])5157 5158 AC_CACHE_CHECK([dependency style of $depcc],5159 [am_cv_$1_dependencies_compiler_type],5160 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then5161 # We make a subdir and do the tests there. Otherwise we can end up5162 # making bogus files that we don't know about and never remove. For5163 # instance it was reported that on HP-UX the gcc test will end up5164 # making a dummy file named `D' -- because `-MD' means `put the output5165 # in D'.5166 mkdir conftest.dir5167 # Copy depcomp to subdir because otherwise we won't find it if we're5168 # using a relative directory.5169 cp "$am_depcomp" conftest.dir5170 cd conftest.dir5171 5172 am_cv_$1_dependencies_compiler_type=none5173 if test "$am_compiler_list" = ""; then5174 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`5175 fi5176 for depmode in $am_compiler_list; do5177 # We need to recreate these files for each test, as the compiler may5178 # overwrite some of them when testing with obscure command lines.5179 # This happens at least with the AIX C compiler.5180 echo '#include "conftest.h"' > conftest.c5181 echo 'int i;' > conftest.h5182 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf5183 5184 case $depmode in5185 nosideeffect)5186 # after this tag, mechanisms are not by side-effect, so they'll5187 # only be used when explicitly requested5188 if test "x$enable_dependency_tracking" = xyes; then5189 continue5190 else5191 break5192 fi5193 ;;5194 none) break ;;5195 esac5196 # We check with `-c' and `-o' for the sake of the "dashmstdout"5197 # mode. It turns out that the SunPro C++ compiler does not properly5198 # handle `-M -o', and we need to detect this.5199 if depmode=$depmode \5200 source=conftest.c object=conftest.o \5201 depfile=conftest.Po tmpdepfile=conftest.TPo \5202 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&5203 grep conftest.h conftest.Po > /dev/null 2>&1 &&5204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then5205 am_cv_$1_dependencies_compiler_type=$depmode5206 break5207 fi5208 done5209 5210 cd ..5211 rm -rf conftest.dir5212 else5213 am_cv_$1_dependencies_compiler_type=none5214 fi5215 ])5216 $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"5217 AC_SUBST([$1DEPMODE])5218 ])5219 5220 5221 # AM_SET_DEPDIR5222 # -------------5223 # Choose a directory name for dependency files.5224 # This macro is AC_REQUIREd in _AM_DEPENDENCIES5225 AC_DEFUN([AM_SET_DEPDIR],5226 [rm -f .deps 2>/dev/null5227 mkdir .deps 2>/dev/null5228 if test -d .deps; then5229 DEPDIR=.deps5230 else5231 # MS-DOS does not allow filenames that begin with a dot.5232 DEPDIR=_deps5233 fi5234 rmdir .deps 2>/dev/null5235 AC_SUBST(DEPDIR)5236 ])5237 5238 5239 # AM_DEP_TRACK5240 # ------------5241 AC_DEFUN([AM_DEP_TRACK],5242 [AC_ARG_ENABLE(dependency-tracking,5243 [ --disable-dependency-tracking Speeds up one-time builds5244 --enable-dependency-tracking Do not reject slow dependency extractors])5245 if test "x$enable_dependency_tracking" != xno; then5246 am_depcomp="$ac_aux_dir/depcomp"5247 AMDEPBACKSLASH='\'5248 fi5249 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])5250 pushdef([subst], defn([AC_SUBST]))5251 subst(AMDEPBACKSLASH)5252 popdef([subst])5253 ])5254 5255 # Generate code to set up dependency tracking.5256 # This macro should only be invoked once -- use via AC_REQUIRE.5257 # Usage:5258 # AM_OUTPUT_DEPENDENCY_COMMANDS5259 5260 #5261 # This code is only required when automatic dependency tracking5262 # is enabled. FIXME. This creates each `.P' file that we will5263 # need in order to bootstrap the dependency handling code.5264 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[5265 AC_OUTPUT_COMMANDS([5266 test x"$AMDEP_TRUE" != x"" ||5267 for mf in $CONFIG_FILES; do5268 case "$mf" in5269 Makefile) dirpart=.;;5270 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;5271 *) continue;;5272 esac5273 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue5274 # Extract the definition of DEP_FILES from the Makefile without5275 # running `make'.5276 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`5277 test -z "$DEPDIR" && continue5278 # When using ansi2knr, U may be empty or an underscore; expand it5279 U=`sed -n -e '/^U = / s///p' < "$mf"`5280 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"5281 # We invoke sed twice because it is the simplest approach to5282 # changing $(DEPDIR) to its actual value in the expansion.5283 for file in `sed -n -e '5284 /^DEP_FILES = .*\\\\$/ {5285 s/^DEP_FILES = //5286 :loop5287 s/\\\\$//5288 p5289 n5290 /\\\\$/ b loop5291 p5292 }5293 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \5294 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do5295 # Make sure the directory exists.5296 test -f "$dirpart/$file" && continue5297 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`5298 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&15299 # echo "creating $dirpart/$file"5300 echo '# dummy' > "$dirpart/$file"5301 done5302 done5303 ], [AMDEP_TRUE="$AMDEP_TRUE"5304 ac_aux_dir="$ac_aux_dir"])])5305 5306 # AM_MAKE_INCLUDE()5307 # -----------------5308 # Check to see how make treats includes.5309 AC_DEFUN([AM_MAKE_INCLUDE],5310 [am_make=${MAKE-make}5311 cat > confinc << 'END'5312 doit:5313 @echo done5314 END5315 # If we don't find an include directive, just comment out the code.5316 AC_MSG_CHECKING([for style of include used by $am_make])5317 am__include='#'5318 am__quote=5319 _am_result=none5320 # First try GNU make style include.5321 echo "include confinc" > confmf5322 # We grep out `Entering directory' and `Leaving directory'5323 # messages which can occur if `w' ends up in MAKEFLAGS.5324 # In particular we don't look at `^make:' because GNU make might5325 # be invoked under some other name (usually "gmake"), in which5326 # case it prints its new name instead of `make'.5327 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then5328 am__include=include5329 am__quote=5330 _am_result=GNU5331 fi5332 # Now try BSD make style include.5333 if test "$am__include" = "#"; then5334 echo '.include "confinc"' > confmf5335 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then5336 am__include=.include5337 am__quote='"'5338 _am_result=BSD5339 fi5340 fi5341 AC_SUBST(am__include)5342 AC_SUBST(am__quote)5343 AC_MSG_RESULT($_am_result)5344 rm -f confinc confmf5345 ])5346 5347 # serial 35348 5349 # AM_CONDITIONAL(NAME, SHELL-CONDITION)5350 # -------------------------------------5351 # Define a conditional.5352 #5353 # FIXME: Once using 2.50, use this:5354 # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl5355 AC_DEFUN([AM_CONDITIONAL],5356 [ifelse([$1], [TRUE],5357 [errprint(__file__:__line__: [$0: invalid condition: $15358 ])dnl5359 m4exit(1)])dnl5360 ifelse([$1], [FALSE],5361 [errprint(__file__:__line__: [$0: invalid condition: $15362 ])dnl5363 m4exit(1)])dnl5364 AC_SUBST([$1_TRUE])5365 AC_SUBST([$1_FALSE])5366 if $2; then5367 $1_TRUE=5368 $1_FALSE='#'5369 else5370 $1_TRUE='#'5371 $1_FALSE=5372 fi])5373 5374 4985 # Like AC_CONFIG_HEADER, but automatically create stamp file. 5375 4986 5376 # serial 3 5377 5378 # When config.status generates a header, we must update the stamp-h file. 5379 # This file resides in the same directory as the config header 5380 # that is generated. We must strip everything past the first ":", 5381 # and everything past the last "/". 5382 5383 AC_PREREQ([2.12]) 5384 5385 AC_DEFUN([AM_CONFIG_HEADER], 5386 [ifdef([AC_FOREACH],dnl 5387 [dnl init our file count if it isn't already 5388 m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0])) 5389 dnl prepare to store our destination file list for use in config.status 5390 AC_FOREACH([_AM_File], [$1], 5391 [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*])) 5392 m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index)) 5393 dnl and add it to the list of files AC keeps track of, along 5394 dnl with our hook 5395 AC_CONFIG_HEADERS(_AM_File, 5396 dnl COMMANDS, [, INIT-CMDS] 5397 [# update the timestamp 5398 echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index[" 5399 ][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS 5400 m4_popdef([_AM_Dest])])],dnl 5401 [AC_CONFIG_HEADER([$1]) 5402 AC_OUTPUT_COMMANDS( 5403 ifelse(patsubst([$1], [[^ ]], []), 5404 [], 5405 [test -z "$CONFIG_HEADERS" || echo timestamp >dnl 5406 patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl 5407 [am_indx=1 5408 for am_file in $1; do 5409 case " \$CONFIG_HEADERS " in 5410 *" \$am_file "*) 5411 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 5412 if test -n "\$am_dir"; then 5413 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 5414 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 5415 am_tmpdir=\$am_tmpdir\$am_subdir/ 5416 if test ! -d \$am_tmpdir; then 5417 mkdir \$am_tmpdir 5418 fi 5419 done 5420 fi 5421 echo timestamp > "\$am_dir"stamp-h\$am_indx 4987 AC_DEFUN(AM_CONFIG_HEADER, 4988 [AC_PREREQ([2.12]) 4989 AC_CONFIG_HEADER([$1]) 4990 dnl When config.status generates a header, we must update the stamp-h file. 4991 dnl This file resides in the same directory as the config header 4992 dnl that is generated. We must strip everything past the first ":", 4993 dnl and everything past the last "/". 4994 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl 4995 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, 4996 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, 4997 <<am_indx=1 4998 for am_file in <<$1>>; do 4999 case " <<$>>CONFIG_HEADERS " in 5000 *" <<$>>am_file "*<<)>> 5001 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx 5422 5002 ;; 5423 5003 esac 5424 am_indx=\`expr \$am_indx + 1\` 5425 done]) 5426 ])]) # AM_CONFIG_HEADER 5427 5428 # _AM_DIRNAME(PATH) 5429 # ----------------- 5430 # Like AS_DIRNAME, only do it during macro expansion 5431 AC_DEFUN([_AM_DIRNAME], 5432 [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, 5433 m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1, 5434 m4_if(m4_regexp([$1], [^/.*]), -1, 5435 [.], 5436 m4_patsubst([$1], [^\(/\).*], [\1])), 5437 m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), 5438 m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl 5439 ]) # _AM_DIRNAME 5440 5004 am_indx=`expr "<<$>>am_indx" + 1` 5005 done<<>>dnl>>) 5006 changequote([,]))]) 5007
Note:
See TracChangeset
for help on using the changeset viewer.