File: ax_string_strcasecmp.texi

package info (click to toggle)
autoconf-archive 20111221-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,528 kB
  • sloc: sh: 836; python: 62; makefile: 36
file content (43 lines) | stat: -rw-r--r-- 1,298 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@node ax_string_strcasecmp
@unnumberedsec ax_string_strcasecmp

@majorheading Synopsis

@smallexample
AX_STRING_STRCASECMP
@end smallexample

@majorheading Description

This macro tries to find strcasecmp() in string.h.

Use this macro in conjunction with AX_STRINGS_STRCASECMP in your
configure.in like so:

@smallexample
  AX_STRING_STRCASECMP
  if test x"$ac_cv_string_strcasecmp" = "xno" ; then
      AX_STRINGS_STRCASECMP
  fi
@end smallexample

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.

@majorheading Source Code

Download the
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_string_strcasecmp.m4,latest
version of @file{ax_string_strcasecmp.m4}} or browse
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_string_strcasecmp.m4,the
macro's revision history}.

@majorheading License

@w{Copyright @copyright{} 2008 Warren Young @email{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. This file is offered as-is, without any
warranty.