do getmsg testing the same way as in krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8953 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
24
configure.in
24
configure.in
@@ -421,7 +421,6 @@ AC_CHECK_FUNCS([ \
|
|||||||
_getpty \
|
_getpty \
|
||||||
_scrsize \
|
_scrsize \
|
||||||
fcntl \
|
fcntl \
|
||||||
getmsg \
|
|
||||||
gettimeofday \
|
gettimeofday \
|
||||||
getuid \
|
getuid \
|
||||||
grantpt \
|
grantpt \
|
||||||
@@ -578,7 +577,28 @@ fi
|
|||||||
#
|
#
|
||||||
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
|
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
|
||||||
|
|
||||||
if test "$ac_cv_func_getmsg" = yes; then
|
AC_CHECK_FUNC(getmsg)
|
||||||
|
|
||||||
|
AC_CACHE_CHECK(for working getmsg, ac_cv_func_getmsg_work,
|
||||||
|
AC_TRY_RUN(
|
||||||
|
[
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
|
||||||
|
if(ret < 0 && errno == ENOSYS)
|
||||||
|
return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
], ac_cv_func_getmsg_work=yes, ac_cv_func_getmsg_work=no,
|
||||||
|
ac_cv_func_getmsg_work=no))
|
||||||
|
test "$ac_cv_func_getmsg_work" = "yes" &&
|
||||||
|
AC_DEFINE(HAVE_GETMSG, 1, [Define if you have a working getmsg.])
|
||||||
|
|
||||||
|
if test "$ac_cv_func_getmsg_work" = yes; then
|
||||||
AC_MSG_CHECKING(for streamspty)
|
AC_MSG_CHECKING(for streamspty)
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[[01]]*)
|
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[[01]]*)
|
||||||
|
Reference in New Issue
Block a user