diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-02-12 11:07:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-02-12 11:07:18 +0000 |
commit | bd7029a99b0c2974265c6665638ef14a052f42ab (patch) | |
tree | f5661ba73366d81ef6e91f889ea7fec5ebe07b6b /gl/m4/strnlen.m4 | |
parent | f99612320d6eda67644c07be04bb21aa4d7789db (diff) | |
download | monitoring-plugins-bd7029a99b0c2974265c6665638ef14a052f42ab.tar.gz |
Sync to latest Gnulib
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1925 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'gl/m4/strnlen.m4')
-rw-r--r-- | gl/m4/strnlen.m4 | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/gl/m4/strnlen.m4 b/gl/m4/strnlen.m4 index 0213a8ae..d8307eda 100644 --- a/gl/m4/strnlen.m4 +++ b/gl/m4/strnlen.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # strnlen.m4 serial 6 | 1 | # strnlen.m4 serial 9 |
2 | dnl Copyright (C) 2002-2003, 2005, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -7,11 +7,17 @@ dnl with or without modifications, as long as this notice is preserved. | |||
7 | AC_DEFUN([gl_FUNC_STRNLEN], | 7 | AC_DEFUN([gl_FUNC_STRNLEN], |
8 | [ | 8 | [ |
9 | dnl Persuade glibc <string.h> to declare strnlen(). | 9 | dnl Persuade glibc <string.h> to declare strnlen(). |
10 | AC_REQUIRE([AC_GNU_SOURCE]) | 10 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) |
11 | |||
12 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) | ||
13 | AC_CHECK_DECLS_ONCE([strnlen]) | ||
14 | if test $ac_cv_have_decl_strnlen = no; then | ||
15 | HAVE_DECL_STRNLEN=0 | ||
16 | fi | ||
11 | 17 | ||
12 | AC_FUNC_STRNLEN | 18 | AC_FUNC_STRNLEN |
13 | if test $ac_cv_func_strnlen_working = no; then | 19 | if test $ac_cv_func_strnlen_working = no; then |
14 | # This is necessary because automake-1.6.1 doens't understand | 20 | # This is necessary because automake-1.6.1 doesn't understand |
15 | # that the above use of AC_FUNC_STRNLEN means we may have to use | 21 | # that the above use of AC_FUNC_STRNLEN means we may have to use |
16 | # lib/strnlen.c. | 22 | # lib/strnlen.c. |
17 | #AC_LIBOBJ(strnlen) | 23 | #AC_LIBOBJ(strnlen) |
@@ -22,6 +28,4 @@ AC_DEFUN([gl_FUNC_STRNLEN], | |||
22 | ]) | 28 | ]) |
23 | 29 | ||
24 | # Prerequisites of lib/strnlen.c. | 30 | # Prerequisites of lib/strnlen.c. |
25 | AC_DEFUN([gl_PREREQ_STRNLEN], [ | 31 | AC_DEFUN([gl_PREREQ_STRNLEN], [:]) |
26 | AC_CHECK_DECLS_ONCE(strnlen) | ||
27 | ]) | ||