--- ../automake-1.6.3/automake Tue Aug 20 13:02:03 2002 +++ automake Tue Aug 20 13:28:58 2002 @@ -8194,6 +8194,7 @@ # can, copy if we must. Note: delete the file # first, in case it is a dangling symlink. $message = "installing `$errfile'"; + # Windows Perl will hang if we try to delete a # file that doesn't exist. unlink ($errfile) if -f $errfile; @@ -8205,11 +8206,20 @@ $trailer = "; error while making link: $!"; } } - elsif (system ('cp', "$libdir/$file", $errfile)) - { - $suppress = 0; - $trailer = "\n error while copying"; - } + + if (! -f $errfile){ + # Symlinking didn't create the file for some + # reason + if(system ('cp', "$libdir/$file", $errfile)) + { + $suppress = 0; + $trailer = "$trailer; copy failed: $!"; + } + else + { + $trailer = "$trailer; copy succeeded"; + } + } } if (! maybe_push_required_file (dirname ($errfile),