mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 10:51:48 +02:00
also test for stdlib.h
don't use STDC_HEADERS in ifdef for stdlib.h
This commit is contained in:
@@ -4,6 +4,7 @@ AC_DEFUN(jm_CHECK_DECLARATION,
|
||||
test -z "$ac_cv_header_memory_h" && AC_CHECK_HEADERS(memory.h)
|
||||
test -z "$ac_cv_header_string_h" && AC_CHECK_HEADERS(string.h)
|
||||
test -z "$ac_cv_header_strings_h" && AC_CHECK_HEADERS(strings.h)
|
||||
test -z "$ac_cv_header_stdlib_h" && AC_CHECK_HEADERS(stdlib.h)
|
||||
test -z "$ac_cv_header_unistd_h" && AC_CHECK_HEADERS(unistd.h)
|
||||
AC_MSG_CHECKING([whether $1 is declared])
|
||||
AC_CACHE_VAL(jm_cv_func_decl_$1,
|
||||
@@ -19,7 +20,7 @@ AC_DEFUN(jm_CHECK_DECLARATION,
|
||||
# include <strings.h>
|
||||
# endif
|
||||
#endif
|
||||
#ifdef STDC_HEADERS
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
|
||||
Reference in New Issue
Block a user