| 365 |
AC_HEADER_STDC |
AC_HEADER_STDC |
| 366 |
AC_HEADER_SYS_WAIT |
AC_HEADER_SYS_WAIT |
| 367 |
AC_HEADER_TIME |
AC_HEADER_TIME |
| 368 |
AC_CHECK_HEADERS(fcntl.h syslog.h unistd.h utmp.h \ |
AC_CHECK_HEADERS(fcntl.h syslog.h unistd.h utmp.h utmpx.h \ |
| 369 |
sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \ |
sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \ |
| 370 |
malloc.h strings.h memory.h \ |
malloc.h strings.h memory.h \ |
| 371 |
curses.h ncurses.h sgtty.h term.h termio.h termios.h \ |
curses.h ncurses.h sgtty.h term.h termio.h termios.h \ |
| 379 |
AC_TYPE_MODE_T |
AC_TYPE_MODE_T |
| 380 |
AC_HEADER_TIME |
AC_HEADER_TIME |
| 381 |
|
|
| 382 |
AC_CHECK_TYPES(time_t, AC_DEFINE(time_t, long, [Define missing time_t.])) |
dnl AC_CHECK_TYPES(time_t, |
| 383 |
|
dnl AC_DEFINE(time_t, long, [Define missing time_t.]), |
| 384 |
|
dnl [INCLUDES = time.h]) |
| 385 |
AC_CHECK_TYPES(socklen_t, |
AC_CHECK_TYPES(socklen_t, |
| 386 |
AC_DEFINE(socklen_t, int, [Define missing socklen_t.]), [INCLUDES = sys/socket.h]) |
AC_DEFINE(socklen_t, int, [Define missing socklen_t.]), |
| 387 |
|
[INCLUDES = sys/socket.h]) |
| 388 |
|
|
| 389 |
dnl |
dnl |
| 390 |
dnl Checks for symbol |
dnl Checks for symbol |
| 402 |
fi |
fi |
| 403 |
|
|
| 404 |
AC_FUNC_MEMCMP |
AC_FUNC_MEMCMP |
| 405 |
AC_CHECK_FUNCS(wait3 setpgrp) |
AC_CHECK_FUNCS(getpgid getpgrp setpgrp wait3) |
| 406 |
|
AC_FUNC_GETPGRP |
| 407 |
AC_FUNC_SETPGRP |
AC_FUNC_SETPGRP |
| 408 |
dnl FreeWnn do not use the 3rd parameter of wait3(). |
dnl FreeWnn do not use the 3rd parameter of wait3(). |
| 409 |
dnl AC_FUNC_WAIT3 |
dnl AC_FUNC_WAIT3 |
| 410 |
|
|
| 411 |
AC_CHECK_FUNCS(random drand48 fchmod getopt \ |
AC_CHECK_FUNCS(random drand48 fchmod getopt killpg \ |
|
gethostname select socket closesocket setsockopt send recv \ |
|
| 412 |
FD_SET \ |
FD_SET \ |
| 413 |
|
gethostname select socket closesocket setsockopt send recv \ |
| 414 |
getdtablesize getrlimit syslog vsyslog setenv snprintf) |
getdtablesize getrlimit syslog vsyslog setenv snprintf) |
| 415 |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
dnl for bcopy/index -> memcpy/strchr conversion (preparation): |
| 416 |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
AC_CHECK_FUNCS(bcopy bzero bcmp index rindex \ |
| 424 |
|
|
| 425 |
|
|
| 426 |
dnl |
dnl |
| 427 |
|
dnl TCP Wrapper. |
| 428 |
|
dnl |
| 429 |
|
AC_MSG_CHECKING(whether to use libwrap) |
| 430 |
|
AC_ARG_WITH(libwrap, |
| 431 |
|
[ --with-libwrap[=PATH] Compile in libwrap (tcp_wrappers) support.], |
| 432 |
|
[ case "$withval" in |
| 433 |
|
no) |
| 434 |
|
AC_MSG_RESULT(no) |
| 435 |
|
;; |
| 436 |
|
yes) |
| 437 |
|
AC_MSG_RESULT(yes) |
| 438 |
|
AC_CHECK_LIB(wrap, request_init, [ |
| 439 |
|
LIBS="-lwrap $LIBS" |
| 440 |
|
AC_DEFINE(HAVE_LIBWRAP, 1, |
| 441 |
|
[Define libwrap (TCP Wrapper) support.]) ]) |
| 442 |
|
CFLAGS="-DHAVE_LIBWRAP $CFLAGS" |
| 443 |
|
;; |
| 444 |
|
*) |
| 445 |
|
AC_MSG_RESULT(yes) |
| 446 |
|
if test -d "$withval"; then |
| 447 |
|
WRAPINCLUDES="-I$withval" |
| 448 |
|
WRAPLIBS="-L$withval -lwrap" |
| 449 |
|
else |
| 450 |
|
WRAPINCLUDES="$withval" |
| 451 |
|
fi |
| 452 |
|
OLDLIBS="$LIBS" |
| 453 |
|
CFLAGS="-DHAVE_LIBWRAP $WRAPINCLUDES $CFLAGS" |
| 454 |
|
LIBS="$WRAPLIBS $LIBS" |
| 455 |
|
|
| 456 |
|
AC_TRY_LINK([ int allow_severity; int deny_severity; ], |
| 457 |
|
[ hosts_access(); ], |
| 458 |
|
[], |
| 459 |
|
[ AC_MSG_ERROR(Could not find the $withval library. You must first install tcp_wrappers.) ]) |
| 460 |
|
;; |
| 461 |
|
esac ], |
| 462 |
|
AC_MSG_RESULT(no) |
| 463 |
|
) |
| 464 |
|
|
| 465 |
|
|
| 466 |
|
dnl |
| 467 |
dnl Creating Makefiles. |
dnl Creating Makefiles. |
| 468 |
dnl |
dnl |
| 469 |
# mkdir -p Contrib/dic/gerodic in case builddir != srcdir |
# mkdir -p Contrib/dic/gerodic in case builddir != srcdir |