| 84 |
*) AC_MSG_ERROR(bad value for --enable-client) ;; |
*) AC_MSG_ERROR(bad value for --enable-client) ;; |
| 85 |
esac], client=false) |
esac], client=false) |
| 86 |
|
|
| 87 |
|
AC_ARG_ENABLE(client-utmp, |
| 88 |
|
[ --enable-client-utmp write utmp with client [[default=yes if not modern BSD]]], |
| 89 |
|
[case "${enableval}" in |
| 90 |
|
yes) client_utmp=true ;; |
| 91 |
|
no) client_utmp=false ;; |
| 92 |
|
*) AC_MSG_ERROR(bad value for --enable-client-utmp) ;; |
| 93 |
|
esac], |
| 94 |
|
client_utmp=auto |
| 95 |
|
) |
| 96 |
|
|
| 97 |
if test $libraries = true; then |
if test $libraries = true; then |
| 98 |
SUBDIRS="\$(LIB_SUBDIRS)" |
SUBDIRS="\$(LIB_SUBDIRS)" |
| 99 |
WNNMANDIR="\$(LIB_WNNMANDIR)" |
WNNMANDIR="\$(LIB_WNNMANDIR)" |
| 332 |
dnl Checking if we use gcc or not |
dnl Checking if we use gcc or not |
| 333 |
if test $debug = true; then |
if test $debug = true; then |
| 334 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 335 |
CDEBUGFLAGS=${CDEBUGFLAGS:-"-g2 -O2 -Wall -fstack-check"} |
# FIXME: gcc -fstack-check doesn't work well on Linux/i386 ... |
| 336 |
|
CDEBUGFLAGS=${CDEBUGFLAGS:-"-g2 -O2 -Wall"} |
| 337 |
else |
else |
| 338 |
CDEBUGFLAGS=${CDEBUGFLAGS:-""} |
CDEBUGFLAGS=${CDEBUGFLAGS:-""} |
| 339 |
fi |
fi |
| 401 |
dnl FIXME: cross compilation |
dnl FIXME: cross compilation |
| 402 |
dnl |
dnl |
| 403 |
olibs="$LIBS" |
olibs="$LIBS" |
| 404 |
|
CNVFILE_SUBDIR=bsd |
| 405 |
AC_MSG_CHECKING(--with-term-libs argument) |
AC_MSG_CHECKING(--with-term-libs argument) |
| 406 |
AC_ARG_WITH(tlib, |
AC_ARG_WITH(tlib, |
| 407 |
[ --with-term-libs=-lLIB terminal library to be used ],) |
[ --with-term-libs=-lLIB terminal library to be used ],) |
| 465 |
AC_SUBST(TERMLIB) |
AC_SUBST(TERMLIB) |
| 466 |
AC_SUBST(CNVFILE_SUBDIR) |
AC_SUBST(CNVFILE_SUBDIR) |
| 467 |
|
|
| 468 |
|
dnl delayed check for --enable-client-utmp |
| 469 |
|
if test $client = true; then |
| 470 |
|
if test $client_utmp = auto; then |
| 471 |
|
AC_EGREP_CPP(yes, [ |
| 472 |
|
#if HAVE_SYS_PARAM_H |
| 473 |
|
# include <sys/param.h> |
| 474 |
|
#endif |
| 475 |
|
#if defined(BSD) && (BSD >= 199306) |
| 476 |
|
yes |
| 477 |
|
#endif |
| 478 |
|
], client_utmp=false, client_utmp=true) |
| 479 |
|
fi |
| 480 |
|
|
| 481 |
|
dnl for Debug |
| 482 |
|
AC_MSG_CHECKING([whether we're using utmp with uum]) |
| 483 |
|
if test $client_utmp = true; then |
| 484 |
|
dnl We need to look again if we introduce libspt check |
| 485 |
|
AC_DEFINE(USE_UTMP, 1, [Define to 1 if uum writes utmp entry]) |
| 486 |
|
AC_MSG_RESULT(yes) |
| 487 |
|
else |
| 488 |
|
AC_MSG_RESULT(no) |
| 489 |
|
fi |
| 490 |
|
fi |
| 491 |
|
|
| 492 |
dnl |
dnl |
| 493 |
dnl Checks for typedefs, structures, and compiler characteristics. |
dnl Checks for typedefs, structures, and compiler characteristics. |
| 505 |
#endif |
#endif |
| 506 |
#include <sys/socket.h>]) |
#include <sys/socket.h>]) |
| 507 |
|
|
| 508 |
|
AC_CHECK_MEMBERS([struct utmp.ut_user, struct utmp.ut_name],,,[ |
| 509 |
|
#include <sys/types.h> |
| 510 |
|
#if HAVE_UTMPX_H |
| 511 |
|
# include <utmpx.h> |
| 512 |
|
#endif |
| 513 |
|
#if HAVE_UTMP_H |
| 514 |
|
# include <utmp.h> |
| 515 |
|
#endif]) |
| 516 |
|
|
| 517 |
dnl |
dnl |
| 518 |
dnl Checks for symbol |
dnl Checks for symbol |
| 519 |
dnl |
dnl |
| 542 |
FD_SET \ |
FD_SET \ |
| 543 |
gethostname select socket closesocket setsockopt send recv \ |
gethostname select socket closesocket setsockopt send recv \ |
| 544 |
getdtablesize getrlimit syslog vsyslog setenv snprintf \ |
getdtablesize getrlimit syslog vsyslog setenv snprintf \ |
| 545 |
ptsname openpty) |
ptsname openpty pututxline pututline) |
| 546 |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
| 547 |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
| 548 |
memcpy memmove memset strchr strrchr) |
memcpy memmove memset strchr strrchr) |