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