aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-03 02:15:20 +0000
committerRichard Stallman <rms@gnu.org>1992-10-03 02:15:20 +0000
commit36ad49159d5e11f853f9ee5b929b61125e6807d7 (patch)
treeaa626083ff6defb950103d1cfc7618c1908f4e78
parent9fcedbef6588f4441d67281cd8f042d42af2dfe1 (diff)
downloadgcc-36ad49159d5e11f853f9ee5b929b61125e6807d7.zip
gcc-36ad49159d5e11f853f9ee5b929b61125e6807d7.tar.gz
gcc-36ad49159d5e11f853f9ee5b929b61125e6807d7.tar.bz2
(install-common-headers): Use __eprintf as indicator for GCC's assert.h.
From-SVN: r2310
-rw-r--r--gcc/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 43d04f0..4829aba 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1486,7 +1486,9 @@ install-common-headers: install-dir $(USER_H) gvarargs.h gstdarg.h gstddef.h
$(INSTALL_DATA) `basename $$file` $$shelllibsubdir/include/`basename $$file`; \
chmod a-x $$shelllibsubdir/include/`basename $$file`; \
done
- if [ -f $(includedir)/assert.h ] && ! grep "This is GCC's version of assert.h." $(includedir)/assert.h; \
+# Put assert.h in /usr/local/include, so it won't override GNU libc's assert.h.
+# Don't replace the assert.h already there if it is not from GCC.
+ if [ -f $(includedir)/assert.h ] && ! grep "__eprintf" $(includedir)/assert.h; \
then true; \
else \
rm -f $(includedir)/assert.h; \