Mercurial > hg > octave-kai > gnulib-hg
comparison m4/strings_h.m4 @ 15488:d9061bf1cead
strings: Add support for Minix.
* lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
* m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
* doc/posix-headers/strings.texi: Document the Minix problem.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 31 Jul 2011 23:03:25 +0200 |
parents | 25fd80a52583 |
children | 4adac94541e0 |
comparison
equal
deleted
inserted
replaced
15487:fe7627541c17 | 15488:d9061bf1cead |
---|---|
1 # Configure a replacement for <strings.h>. | 1 # Configure a replacement for <strings.h>. |
2 # serial 4 | 2 # serial 5 |
3 | 3 |
4 # Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. | 4 # Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. |
5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
18 AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS]) | 18 AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS]) |
19 gl_CHECK_NEXT_HEADERS([strings.h]) | 19 gl_CHECK_NEXT_HEADERS([strings.h]) |
20 | 20 |
21 dnl Check for declarations of anything we want to poison if the | 21 dnl Check for declarations of anything we want to poison if the |
22 dnl corresponding gnulib module is not in use. | 22 dnl corresponding gnulib module is not in use. |
23 gl_WARN_ON_USE_PREPARE([[#include <strings.h> | 23 gl_WARN_ON_USE_PREPARE([[ |
24 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before | |
25 <strings.h>. */ | |
26 #include <sys/types.h> | |
27 #include <strings.h> | |
24 ]], [ffs strcasecmp strncasecmp]) | 28 ]], [ffs strcasecmp strncasecmp]) |
25 ]) | 29 ]) |
26 | 30 |
27 AC_DEFUN([gl_STRINGS_MODULE_INDICATOR], | 31 AC_DEFUN([gl_STRINGS_MODULE_INDICATOR], |
28 [ | 32 [ |