*** depcomp.old	2011-04-18 01:09:21.000000000 +0400
--- depcomp.new	2011-06-24 18:38:33.000000000 +0400
***************
*** 276,281 ****
--- 276,326 ----
    rm -f "$tmpdepfile"
    ;;
  
+ hp2)
+   # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+   # compilers, which have integrated preprocessors.  The correct option
+   # to use with these is +Maked; it writes dependencies to a file named
+   # 'foo.d', which lands next to the object file, wherever that
+   # happens to be.
+   # Much of this is similar to the tru64 case; see comments there.
+   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+   test "x$dir" = "x$object" && dir=
+   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+   if test "$libtool" = yes; then
+     tmpdepfile1=$dir$base.d
+     tmpdepfile2=$dir.libs/$base.d
+     "$@" -Wc,+Maked
+   else
+     tmpdepfile1=$dir$base.d
+     tmpdepfile2=$dir$base.d
+     "$@" +Maked
+   fi
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+      rm -f "$tmpdepfile1" "$tmpdepfile2"
+      exit $stat
+   fi
+ 
+   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+   do
+     test -f "$tmpdepfile" && break
+   done
+   if test -f "$tmpdepfile"; then
+     sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+     # Add `dependent.h:' lines.
+     sed -ne '2,${
+                s/^ *//
+                s/ \\*$//
+                s/$/:/
+                p
+              }' "$tmpdepfile" >> "$depfile"
+   else
+     echo "#dummy" > "$depfile"
+   fi
+   rm -f "$tmpdepfile" "$tmpdepfile2"
+   ;;
+ 
  tru64)
     # The Tru64 compiler uses -MD to generate dependencies as a side
     # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
