From: Ian Lance Taylor Date: Thu, 22 Dec 1994 17:16:22 +0000 (+0000) Subject: On a NeXT, is sometimes not in /usr/include, so look elsewhere X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40dc28fcab765420947057434bfc99ef0412cb9a;p=gcc.git On a NeXT, is sometimes not in /usr/include, so look elsewhere From-SVN: r8689 --- diff --git a/gcc/Makefile.in b/gcc/Makefile.in index d3d24e31bd0..47896b1ad95 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -137,6 +137,9 @@ SYSTEM_HEADER_DIR = /usr/include # Control whether to run fixproto. STMP_FIXPROTO = stmp-fixproto +# Test to see whether exists in the system header files. +LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ] + # There may be a premade insn-attrtab.c for this machine. # (You could rebuild it with genattrtab as usual, but it takes a long time.) # PREMADE_ATTRTAB is the file name of the file to use. @@ -679,7 +682,7 @@ enquire.o: $(srcdir)/enquire.c $(GCC_PASSES) stmp-int-hdrs # Build the version of limits.h that we will install. xlimits.h: glimits.h limitx.h limity.h - if [ -f $(SYSTEM_HEADER_DIR)/limits.h ] ; then \ + if $(LIMITS_H_TEST) ; then \ cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \ else \ cat $(srcdir)/glimits.h > tmp-xlimits.h; \ diff --git a/gcc/config/i386/t-next b/gcc/config/i386/t-next index 1992eb04ac2..ec6373f9cea 100644 --- a/gcc/config/i386/t-next +++ b/gcc/config/i386/t-next @@ -4,3 +4,6 @@ CROSS_LIBGCC1=libgcc1.null # Specify other dirs of system header files to be fixed. OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers + +# is sometimes in /usr/include/ansi/limits.h. +LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ] diff --git a/gcc/config/m68k/t-next b/gcc/config/m68k/t-next index 1992eb04ac2..ec6373f9cea 100644 --- a/gcc/config/m68k/t-next +++ b/gcc/config/m68k/t-next @@ -4,3 +4,6 @@ CROSS_LIBGCC1=libgcc1.null # Specify other dirs of system header files to be fixed. OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers + +# is sometimes in /usr/include/ansi/limits.h. +LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ]