729 |
# Define `USG' if string functions are in strings.h. |
# Define `USG' if string functions are in strings.h. |
730 |
AU_DEFUN([AC_USG], |
AU_DEFUN([AC_USG], |
731 |
[AC_DIAGNOSE([obsolete], |
[AC_DIAGNOSE([obsolete], |
732 |
[$0: Remove `AC_MSG_CHECKING', `AC_TRY_LINK' and this `AC_WARNING' |
[$0: Remove `AC_MSG_CHECKING', `AC_LINK_IFELSE' and this `AC_WARNING' |
733 |
when you adjust your code to use HAVE_STRING_H.])dnl |
when you adjust your code to use HAVE_STRING_H.])dnl |
734 |
AC_MSG_CHECKING([for BSD string and memory functions]) |
AC_MSG_CHECKING([for BSD string and memory functions]) |
735 |
AC_TRY_LINK([@%:@include <strings.h>], [rindex(0, 0); bzero(0, 0);], |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <strings.h>]], |
736 |
[AC_MSG_RESULT(yes)], |
[[rindex(0, 0); bzero(0, 0);]])], |
737 |
[AC_MSG_RESULT(no) |
[AC_MSG_RESULT(yes)], |
738 |
AC_DEFINE(USG, 1, |
[AC_MSG_RESULT(no) |
739 |
[Define to 1 if you do not have <strings.h>, index, bzero, etc... |
AC_DEFINE(USG, 1, |
740 |
This symbol is obsolete, you should not depend upon it.])]) |
[Define to 1 if you do not have <strings.h>, index, |
741 |
AC_CHECK_HEADERS(string.h)]) |
bzero, etc... This symbol is obsolete, you should |
742 |
|
not depend upon it.])]) |
743 |
|
AC_CHECK_HEADERS(string.h) |
744 |
|
])# AU::AC_USG |
745 |
|
|
746 |
|
|
747 |
# AU::AC_MEMORY_H |
# AU::AC_MEMORY_H |