diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-12-25 15:37:50 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-12-25 15:37:50 +0000 |
commit | 5b4a13bd983e11abef75e2c611614cccbf7393cb (patch) | |
tree | c71656b18d6b20bb8aef9dcd434dbef2ca4b2262 /Build/source/build-aux/depcomp | |
parent | da41adb311640c5decf656f6b411bd0ab84bcf84 (diff) |
automake 1.14.1
git-svn-id: svn://tug.org/texlive/trunk@32482 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/build-aux/depcomp')
-rwxr-xr-x | Build/source/build-aux/depcomp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/build-aux/depcomp b/Build/source/build-aux/depcomp index 31788017b8f..4ebd5b3a2f2 100755 --- a/Build/source/build-aux/depcomp +++ b/Build/source/build-aux/depcomp @@ -251,6 +251,41 @@ hp) exit 1 ;; +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like '#:fec' to the end of the + # dependency line. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ + | tr "$nl" ' ' >> "$depfile" + echo >> "$depfile" + # The second pass generates a dummy entry for each header file. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" + ;; + xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, |