]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.in (AC_CHECK_HEADERS): Add limits.h.
authorMichael Sokolov <msokolov@ivan.Harhan.ORG>
Sun, 23 Jul 2000 19:13:46 +0000 (19:13 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 23 Jul 2000 19:13:46 +0000 (13:13 -0600)
        * configure.in (AC_CHECK_HEADERS): Add limits.h.
        * configure, config.in: Regenerate.
        * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
        * strtol.c, strtoul.c: #include "config.h". Portably #include
        <limits.h> and/or <sys/param.h>.
        * Makefile.in (strtol.o, strtoul.o): Update dependencies.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r35211

libiberty/ChangeLog
libiberty/Makefile.in
libiberty/config.in
libiberty/configure
libiberty/configure.in
libiberty/sort.c
libiberty/strtol.c
libiberty/strtoul.c

index feee64245134d69c9ca5ccf99a0d406f087dfd25..da6798c48e77c0dab60064b19316a08fcb809155 100644 (file)
@@ -5,6 +5,14 @@
        (demangle_array_type): Handle empty and non-constant array length.
 
 2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+           Jeff Law <law@cygnus.com>
+
+       * configure.in (AC_CHECK_HEADERS): Add limits.h.
+       * configure, config.in: Regenerate.
+       * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
+       * strtol.c, strtoul.c: #include "config.h". Portably #include
+       <limits.h> and/or <sys/param.h>.
+       * Makefile.in (strtol.o, strtoul.o): Update dependencies.
 
        * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
        * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
index 1926bad7e645aeb9a79d8db5de77f73b76e42ad9..68aba7120327d4091b076b8e80c0616821c48bff 100644 (file)
@@ -286,6 +286,8 @@ spaces.o: $(INCDIR)/libiberty.h
 splay-tree.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h $(INCDIR)/ansidecl.h
 strerror.o: config.h $(INCDIR)/libiberty.h
 strsignal.o: config.h $(INCDIR)/libiberty.h
+strtol.o: config.h
+strtoul.o: config.h
 vasprintf.o: config.h
 xatexit.o: $(INCDIR)/libiberty.h
 xexit.o: config.h $(INCDIR)/libiberty.h
index f9895c7c57ad7c67e8c9dfce25d89132e58e3122..ca4a90a4c0e56e4123b4e3405788ca4795e3e3e5 100644 (file)
 /* Define if you have the <fcntl.h> header file.  */
 #undef HAVE_FCNTL_H
 
+/* Define if you have the <limits.h> header file.  */
+#undef HAVE_LIMITS_H
+
 /* Define if you have the <stdlib.h> header file.  */
 #undef HAVE_STDLIB_H
 
index 168bd8fc7a519bee58ed4cb319f1b74428482d6b..78ab2f56ed860789a9160284d23213e22ed59c67 100755 (executable)
@@ -1058,7 +1058,7 @@ else
 fi
 echo "$ac_t""$CPP" 1>&6
 
-for ac_hdr in sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h
+for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
index ecae1b1b63b5232af75f4497c1cb61273ac5a610..63aa9e07b4d7c26a1d5ff66ff7f11ab795b10f62 100644 (file)
@@ -109,7 +109,7 @@ AC_SUBST_FILE(host_makefile_frag)
 # It's OK to check for header files.  Although the compiler may not be
 # able to link anything, it had better be able to at least compile
 # something.
-AC_CHECK_HEADERS(sys/file.h sys/param.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h)
+AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h)
 AC_HEADER_SYS_WAIT
 
 libiberty_AC_DECLARE_ERRNO
index da2d660b6f5d743655dc1876a442af38bae46cd9..90c97e04e07f2525cbd8370c49e2ede049d83f5b 100644 (file)
@@ -24,7 +24,12 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "libiberty.h"
 #include "sort.h"
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
+#endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
index b4c66c403f7287a114935a767f2cb21dcd878fb1..c05d0dd76a2e6428385ffbd7e3c271550efadffd 100644 (file)
  * SUCH DAMAGE.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
+#endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #include <ctype.h>
 #include <errno.h>
 #ifdef NEED_DECLARATION_ERRNO
index 59d428cd49e0d38afc63c902cb9480dd29efd2c4..87fa3ffdf93679f48d72e7f4a349a6ac2ce58725 100644 (file)
  * SUCH DAMAGE.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
+#endif
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #include <ctype.h>
 #include <errno.h>
 #ifdef NEED_DECLARATION_ERRNO