From e03bb07275a267f365174aad5a10e1d2d98d4591 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 10 Oct 1993 02:50:18 +0000 Subject: [PATCH] (sys/spinlock.h): Don't copy it if it doesn't exist. (DPS/XDPSlib.h): Change "XDPS.h" to , for AIX. From-SVN: r5701 --- gcc/fixincludes | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gcc/fixincludes b/gcc/fixincludes index 3731319c0bb..79473e0fe95 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -462,7 +462,7 @@ fi # Fix HP's use of ../machine/inline.h to refer to # /usr/include/machine/inline.h file=sys/spinlock.h -if [ ! -r ${LIB}/$file ] ; then +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file fi if [ -r ${LIB}/$file ] ; then @@ -476,6 +476,20 @@ if [ -r ${LIB}/$file ] ; then fi fi +# Fix AIX use of "XDPS.h" to refer to +file=DPS/XDPSlib.h +if [-r $file] && [ ! -r ${LIB}/$file ] ; then + cp $file ${LIB}/$file +fi +if [ -r ${LIB}/$file ] ; then + echo Fixing $file + sed -e 's,"XDPS.h",,' ${LIB}/$file > ${LIB}/${file}.sed + rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + if cmp $file ${LIB}/$file >/dev/null 2>&1; then + rm ${LIB}/$file + fi +fi + # Fix an error in this file: the #if says _cplusplus, not the double # underscore __cplusplus that it should be file=tinfo.h -- 2.30.2