2N/A# Configure a replacement for <string.h>.
2N/A# serial 3
2N/A
2N/A# Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
2N/A# This file is free software; the Free Software Foundation
2N/A# gives unlimited permission to copy and/or distribute it,
2N/A# with or without modifications, as long as this notice is preserved.
2N/A
2N/AAC_DEFUN([gl_HEADER_STRINGS_H],
2N/A[
2N/A dnl Use AC_REQUIRE here, so that the default behavior below is expanded
2N/A dnl once only, before all statements that occur in other macros.
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_BODY])
2N/A])
2N/A
2N/AAC_DEFUN([gl_HEADER_STRINGS_H_BODY],
2N/A[
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
2N/A gl_CHECK_NEXT_HEADERS([strings.h])
2N/A
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use.
2N/A gl_WARN_ON_USE_PREPARE([[#include <strings.h>
2N/A ]], [strcasecmp strncasecmp])
2N/A])
2N/A
2N/AAC_DEFUN([gl_STRINGS_MODULE_INDICATOR],
2N/A[
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A])
2N/A
2N/AAC_DEFUN([gl_HEADER_STRINGS_H_DEFAULTS],
2N/A[
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP])
2N/A HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP])
2N/A])