Macros by Category | Revision History |
ETR_STRING_STRCASECMP
This macro tries to find strcasecmp() in string.h.
Use this macro in conjunction with ETR_STRINGS_STRCASECMP in your configure.in like so:
ETR_STRING_STRCASECMP if test x"$ac_cv_string_strcasecmp" = "xno" ; then ETR_STRINGS_STRCASECMP fi
This will cause either HAVE_STRING_STRCASECMP or HAVE_STRINGS_STRCASECMP to be defined in config.h, which will tell your code what header to include to get strcasecmp()'s prototype.
http://autoconf-archive.cryp.to/etr_string_strcasecmp.m4
Copyright © 2008 Warren Young <warren@etr-usa.com>
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.