summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hofmannm <hofma@googlemail.com>2012-03-05 20:05:37 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-03-06 21:01:27 +0100
commitb0887067fb2f6511e154c9feb62c5243dfc095cb (patch)
tree303a3c380c609ac14e80604b0da554bd5eb5aaa5
parent51f61dfb1e861062aaa1d73fab71278c85fe0594 (diff)
downloadautomake-b0887067fb2f6511e154c9feb62c5243dfc095cb.tar.gz
depcomp: add support for IBM xlc/xlC compilers
* lib/depcomp (xlc): New depmode. * NEWS, THANKS: Update. Copyright-paperwork-exempt: yes
-rw-r--r--NEWS3
-rw-r--r--THANKS1
-rwxr-xr-xlib/depcomp13
3 files changed, 17 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index eb9af221f..ffb4cb70c 100644
--- a/NEWS
+++ b/NEWS
@@ -40,6 +40,9 @@ New in 1.11.0a:
* Miscellaneous changes:
+ - Automatic dependency tracking now works also with the IBM XL C/C++
+ compilers, thanks to the new new depmode 'xlc'.
+
- Automake's own build system is more silent by default, making use of
the 'silent-rules' option.
diff --git a/THANKS b/THANKS
index d54e9d437..418ad719c 100644
--- a/THANKS
+++ b/THANKS
@@ -234,6 +234,7 @@ Maxim Sinev good@goods.ru
Maynard Johnson maynardj@us.ibm.com
Merijn de Jonge M.de.Jonge@cwi.nl
Michael Brantley Michael-Brantley@deshaw.com
+Michael Hofmann mhofma@googlemail.com
Michael Ploujnikov ploujj@gmail.com
Michel de Ruiter mdruiter@cs.vu.nl
Mike Castle dalgoda@ix.netcom.com
diff --git a/lib/depcomp b/lib/depcomp
index 5621fd4df..0122c0447 100755
--- a/lib/depcomp
+++ b/lib/depcomp
@@ -94,6 +94,12 @@ if test "$depmode" = msvcmsys; then
depmode=msvisualcpp
fi
+if test "$depmode" = xlc; then
+ # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
+ gccflag=-qmakedep=gcc,-MF
+ depmode=gcc
+fi
+
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
@@ -218,6 +224,13 @@ sgi)
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,
+ # since it is checked for above.
+ exit 1
+ ;;
+
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the