Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_strings_strcasecmp.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_STRINGS_STRCASECMP
  8. #
  9. # DESCRIPTION
  10. #
  11. # This macro tries to find strcasecmp() in strings.h. See the
  12. # AX_STRING_STRCASECMP macro's commentary for usage details.
  13. #
  14. # LICENSE
  15. #
  16. # Copyright (c) 2008 Warren Young <warren@etr-usa.com>
  17. #
  18. # Copying and distribution of this file, with or without modification, are
  19. # permitted in any medium without royalty provided the copyright notice
  20. # and this notice are preserved. This file is offered as-is, without any
  21. # warranty.
  22. #serial 8
  23. AU_ALIAS([ETR_STRINGS_STRCASECMP], [AX_STRINGS_STRCASECMP])
  24. AC_DEFUN([AX_STRINGS_STRCASECMP],
  25. [ AC_CACHE_CHECK([for strcasecmp() in strings.h], ac_cv_strings_strcasecmp, [
  26. AC_TRY_LINK(
  27. [ #include <strings.h> ],
  28. [ strcasecmp("foo", "bar"); ],
  29. ac_cv_strings_strcasecmp=yes,
  30. ac_cv_strings_strcasecmp=no)
  31. ])
  32. if test x"$ac_cv_strings_strcasecmp" = "xyes"
  33. then
  34. AC_DEFINE(HAVE_STRINGS_STRCASECMP, 1,
  35. [ Define if your system has strcasecmp() in strings.h ])
  36. fi
  37. ]) dnl AX_STRINGS_STRCASECMP