+2001-02-03 Ville Laurikari <vlaurika@hutcs.cs.hut.fi>
+
+ * depcomp (aix): New side-effect dependency tracking mode, for
+ the C for AIX compiler.
+ * m4/depend.m4 (AM_DEPENDENCIES): Recreate `conftest.c' and
+ `conftest.h' for each test.
+
2001-02-03 Tom Tromey <tromey@redhat.com>
* automake.texi (Dist): Updated to mention caveat of putting
rm -f "$tmpdepfile"
;;
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file.
+ tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
+ if test "$libtool" = yes; then
+ "$@" -Wc,-M
+ else
+ "$@" -M
+ fi
+ if test $? -eq 0 && test -f "$tmpdepfile"; then
+ mv "$tmpdepfile" "$depfile"
+ fi
+ ;;
+
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
rm -f "$tmpdepfile"
;;
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file.
+ tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
+ if test "$libtool" = yes; then
+ "$@" -Wc,-M
+ else
+ "$@" -M
+ fi
+ if test $? -eq 0 && test -f "$tmpdepfile"; then
+ mv "$tmpdepfile" "$depfile"
+ fi
+ ;;
+
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
# in D'.
mkdir confdir
cd confdir
- echo '#include "conftest.h"' > conftest.c
- echo 'int i;' > conftest.h
am_cv_$1_dependencies_compiler_type=none
for depmode in `sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < "$am_depcomp"`; do
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ echo '#include "conftest.h"' > conftest.c
+ echo 'int i;' > conftest.h
+
case "$depmode" in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll