| 74 |
|
|
| 75 |
|
rm -f "$tmpdepfile" |
| 76 |
|
|
| 77 |
+ |
# Avoid interferences from the environment. |
| 78 |
+ |
gccflag= dashmflag= |
| 79 |
+ |
|
| 80 |
|
# Some modes work just like other modes, but use different flags. We |
| 81 |
|
# parameterize here, but still list the modes in the big case below, |
| 82 |
|
# to make depend.m4 easier to write. Note that we *cannot* use a case |
| 111 |
|
fi |
| 112 |
|
|
| 113 |
|
if test "$depmode" = xlc; then |
| 114 |
< |
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. |
| 114 |
> |
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. |
| 115 |
|
gccflag=-qmakedep=gcc,-MF |
| 116 |
|
depmode=gcc |
| 117 |
|
fi |
| 145 |
|
;; |
| 146 |
|
|
| 147 |
|
gcc) |
| 148 |
+ |
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. |
| 149 |
+ |
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. |
| 150 |
+ |
## (see the conditional assignment to $gccflag above). |
| 151 |
|
## There are various ways to get dependency output from gcc. Here's |
| 152 |
|
## why we pick this rather obscure method: |
| 153 |
|
## - Don't want to use -MD because we'd like the dependencies to end |
| 154 |
|
## up in a subdir. Having to rename by hand is ugly. |
| 155 |
|
## (We might end up doing this anyway to support other compilers.) |
| 156 |
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
| 157 |
< |
## -MM, not -M (despite what the docs say). |
| 157 |
> |
## -MM, not -M (despite what the docs say). Also, it might not be |
| 158 |
> |
## supported by the other compilers which use the 'gcc' depmode. |
| 159 |
|
## - Using -M directly means running the compiler twice (even worse |
| 160 |
|
## than renaming). |
| 161 |
|
if test -z "$gccflag"; then |