From: Tom Tromey Date: Sun, 4 Feb 2001 03:51:18 +0000 (+0000) Subject: 2001-02-03 Ville Laurikari X-Git-Tag: Release-1-4d~55 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=bb7377f32ec6db5f65df000c05c08db9125af336;p=automake.git 2001-02-03 Ville Laurikari * 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. --- diff --git a/ChangeLog b/ChangeLog index 7c9aafe5..e58cccc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-02-03 Ville Laurikari + + * 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 * automake.texi (Dist): Updated to mention caveat of putting diff --git a/depcomp b/depcomp index 30149973..b0f2e97d 100755 --- a/depcomp +++ b/depcomp @@ -159,6 +159,20 @@ sgi) 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. diff --git a/lib/depcomp b/lib/depcomp index 30149973..b0f2e97d 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -159,6 +159,20 @@ sgi) 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. diff --git a/m4/depend.m4 b/m4/depend.m4 index d4aea487..8f63a3d6 100644 --- a/m4/depend.m4 +++ b/m4/depend.m4 @@ -38,11 +38,15 @@ AC_CACHE_CHECK([dependency style of $depcc], # 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