]> gcc.gnu.org Git - gcc.git/commitdiff
On a NeXT, <limits.h> is sometimes not in /usr/include, so look elsewhere
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 22 Dec 1994 17:16:22 +0000 (17:16 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 22 Dec 1994 17:16:22 +0000 (17:16 +0000)
From-SVN: r8689

gcc/Makefile.in
gcc/config/i386/t-next
gcc/config/m68k/t-next

index d3d24e31bd0decaba92a240ff04ed80783edca7e..47896b1ad953dcfffe88459e5a5c9ade3c49b3aa 100644 (file)
@@ -137,6 +137,9 @@ SYSTEM_HEADER_DIR = /usr/include
 # Control whether to run fixproto.
 STMP_FIXPROTO = stmp-fixproto
 
+# Test to see whether <limits.h> 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; \
index 1992eb04ac237946df35012c944b7df256a3bab6..ec6373f9cea0b90ee7b189fc6e3cbf446f1ba0e0 100644 (file)
@@ -4,3 +4,6 @@ CROSS_LIBGCC1=libgcc1.null
 
 # Specify other dirs of system header files to be fixed.
 OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers
+
+# <limits.h> 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 ]
index 1992eb04ac237946df35012c944b7df256a3bab6..ec6373f9cea0b90ee7b189fc6e3cbf446f1ba0e0 100644 (file)
@@ -4,3 +4,6 @@ CROSS_LIBGCC1=libgcc1.null
 
 # Specify other dirs of system header files to be fixed.
 OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers
+
+# <limits.h> 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 ]
This page took 0.063127 seconds and 5 git commands to generate.