From: Tom Tromey Date: Sun, 27 Aug 2000 23:42:18 +0000 (+0000) Subject: * automake.in (handle_single_transform_list): Only add to X-Git-Tag: Release-1-4b~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=805e5b532cccad95d600a487b476d33261aff2b4;p=thirdparty%2Fautomake.git * automake.in (handle_single_transform_list): Only add to %dep_files if language is found and supports automatic dependency tracking. Fixes PR automake/75. --- diff --git a/ChangeLog b/ChangeLog index ca44054ff..606bb0661 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-08-27 Tom Tromey + * automake.in (handle_single_transform_list): Only add to + %dep_files if language is found and supports automatic dependency + tracking. Fixes PR automake/75. + * automake.in (am_primary_prefixes): Don't set `valid' for configure variables that don't satisfy the other constraints. Fixes PR automake/68. diff --git a/automake.in b/automake.in index 9842b8215..26898de85 100755 --- a/automake.in +++ b/automake.in @@ -1387,10 +1387,13 @@ sub handle_single_transform_list # Transform .o or $o file into .P file (for automatic # dependency code). - local ($depfile) = $object; - $depfile =~ s/\.([^.]*)$/.P$1/; - $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext; - $dep_files{'$(DEPDIR)/' . $depfile} = 1; + if ($lang && $language_map{$lang . '-autodep'} ne 'no') + { + local ($depfile) = $object; + $depfile =~ s/\.([^.]*)$/.P$1/; + $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext; + $dep_files{'$(DEPDIR)/' . $depfile} = 1; + } } }