diff options
author | Explorer09 <explorer09@gmail.com> | 2017-02-17 23:19:10 +0800 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2017-02-17 16:56:21 -0500 |
commit | d1b195b67171ee246cf589670f1a7db04fa93afc (patch) | |
tree | 132390a841f4730d12d9c056ce6b48b7cc9eb8b6 /configure.ac | |
parent | dbb4e94dc7bacbcfd4acef4f085ef752fe1aa03f (diff) |
build: Include <strings.h>; add strcasecmp() check to configure.
strings.h (not string.h) is the standard-defined include header for
strcasecmp(). Include <strings.h> for portability (even though glibc
exposes strcasecmp() declaration also in <string.h> by default).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0115064..a19b9f2 100644 --- a/configure.ac +++ b/configure.ac @@ -111,7 +111,7 @@ AC_PATH_PROG([INDENT], indent, [\${top_srcdir}/build-aux/missing indent]) # checks for headers -AC_CHECK_HEADERS([regex.h sys/stat.h sys/wait.h unistd.h], [], +AC_CHECK_HEADERS([regex.h strings.h sys/stat.h sys/wait.h unistd.h], [], [AC_MSG_ERROR(required header not found on your system)]) AC_CHECK_HEADERS([inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h]) @@ -153,6 +153,7 @@ AS_IF([test "$cross_compiling" = yes], AC_CHECK_FUNCS([dup2 dnl memset dnl regcomp dnl +strcasecmp dnl strchr dnl strdup dnl strtol dnl |