##### http://autoconf-archive.cryp.to/etr_strings_strcasecmp.html # # SYNOPSIS # # ETR_STRINGS_STRCASECMP # # DESCRIPTION # # This macro tries to find strcasecmp() in strings.h. See the # ETR_STRING_STRCASECMP macro's commentary for usage details. # # LAST MODIFICATION # # 2001-05-25 # # COPYLEFT # # Copyright (c) 2001 Warren Young # # Copying and distribution of this file, with or without # modification, are permitted in any medium without royalty provided # the copyright notice and this notice are preserved. AC_DEFUN([ETR_STRINGS_STRCASECMP], [ AC_CACHE_CHECK([for strcasecmp() in strings.h], ac_cv_strings_strcasecmp, [ AC_TRY_LINK( [ #include ], [ strcasecmp("foo", "bar"); ], ac_cv_strings_strcasecmp=yes, ac_cv_strings_strcasecmp=no) ]) if test x"$ac_cv_strings_strcasecmp" = "xyes" then AC_DEFINE(HAVE_STRINGS_STRCASECMP, 1, [ Define if your system has strcasecmp() in strings.h ]) fi ]) dnl ETR_STRINGS_STRCASECMP