732 |
# Define `USG' if string functions are in strings.h. |
# Define `USG' if string functions are in strings.h. |
733 |
AU_DEFUN([AC_USG], |
AU_DEFUN([AC_USG], |
734 |
[AC_DIAGNOSE([obsolete], |
[AC_DIAGNOSE([obsolete], |
735 |
[$0: Remove `AC_MSG_CHECKING', `AC_LINK_IFELSE' and this `AC_WARNING' |
[$0: Remove `AC_MSG_CHECKING', `AC_LINK_IFELSE' and this `AC_DIAGNOSE' |
736 |
when you adjust your code to use HAVE_STRING_H.])dnl |
when you adjust your code to use HAVE_STRING_H.])dnl |
737 |
AC_MSG_CHECKING([for BSD string and memory functions]) |
AC_MSG_CHECKING([for BSD string and memory functions]) |
738 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <strings.h>]], |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <strings.h>]], |
761 |
# But it is better to check for both headers, and alias NEED_MEMORY_H to |
# But it is better to check for both headers, and alias NEED_MEMORY_H to |
762 |
# HAVE_MEMORY_H. |
# HAVE_MEMORY_H. |
763 |
AU_DEFUN([AC_MEMORY_H], |
AU_DEFUN([AC_MEMORY_H], |
764 |
[AC_DIAGNOSE([obsolete], [$0: Remove this warning and |
[AC_DIAGNOSE([obsolete], [$0: Remove this `AC_DIAGNOSE' and |
765 |
`AC_CHECK_HEADER(memory.h, AC_DEFINE(...))' when you adjust your code to |
`AC_CHECK_HEADER(memory.h, AC_DEFINE(...))' when you adjust your code to |
766 |
use and HAVE_STRING_H and HAVE_MEMORY_H, not NEED_MEMORY_H.])dnl |
use and HAVE_STRING_H and HAVE_MEMORY_H, not NEED_MEMORY_H.])dnl |
767 |
AC_CHECK_HEADER(memory.h, |
AC_CHECK_HEADER(memory.h, |
780 |
[AC_HEADER_DIRENT |
[AC_HEADER_DIRENT |
781 |
AC_FUNC_CLOSEDIR_VOID |
AC_FUNC_CLOSEDIR_VOID |
782 |
AC_DIAGNOSE([obsolete], |
AC_DIAGNOSE([obsolete], |
783 |
[$0: Remove this warning and the four `AC_DEFINE' when you |
[$0: Remove this `AC_DIAGNOSE' and the four `AC_DEFINE' when you |
784 |
adjust your code to use `AC_HEADER_DIRENT'.]) |
adjust your code to use `AC_HEADER_DIRENT'.]) |
785 |
test ac_cv_header_dirent_dirent_h && |
test ac_cv_header_dirent_dirent_h && |
786 |
AC_DEFINE([DIRENT], 1, [Same as `HAVE_DIRENT_H', don't depend on me.]) |
AC_DEFINE([DIRENT], 1, [Same as `HAVE_DIRENT_H', don't depend on me.]) |