diff options
author | Bruno Haible <bruno@clisp.org> | 2008-04-29 02:55:59 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-04-29 02:55:59 +0200 |
commit | b52ae09f3a74d02e4f203c4b7703416d3b3b5461 (patch) | |
tree | 2c3af01d1cdda4496a4800c90b220ac37026bb0e /m4 | |
parent | cdf60d1ad704f2d17ca677af9dc093e7a81bd28e (diff) | |
download | gnulib-b52ae09f3a74d02e4f203c4b7703416d3b3b5461.tar.gz |
Declare rpmatch.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/rpmatch.m4 | 7 | ||||
-rw-r--r-- | m4/stdlib_h.m4 | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/m4/rpmatch.m4 b/m4/rpmatch.m4 index e0f36a3d40..e4c986d8ec 100644 --- a/m4/rpmatch.m4 +++ b/m4/rpmatch.m4 @@ -1,4 +1,4 @@ -# rpmatch.m4 serial 6 +# rpmatch.m4 serial 7 dnl Copyright (C) 2002-2003, 2007-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,8 +6,13 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_RPMATCH], [ + dnl Persuade glibc <stdlib.h> to declare rpmatch(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REPLACE_FUNCS(rpmatch) if test $ac_cv_func_rpmatch = no; then + HAVE_RPMATCH=0 gl_PREREQ_RPMATCH fi ]) diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4 index d9240b46a0..95e679f797 100644 --- a/m4/stdlib_h.m4 +++ b/m4/stdlib_h.m4 @@ -1,4 +1,4 @@ -# stdlib_h.m4 serial 6 +# stdlib_h.m4 serial 7 dnl Copyright (C) 2007, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -26,6 +26,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP]) GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV]) + GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH]) GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV]) GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD]) GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV]) @@ -35,6 +36,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX]) HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX]) + HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH]) HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV]) |