… | |
… | |
25 | echo "" |
25 | echo "" |
26 | |
26 | |
27 | orig_CXXFLAGS="$CXXFLAGS" |
27 | orig_CXXFLAGS="$CXXFLAGS" |
28 | |
28 | |
29 | dnl# Checks for programs. |
29 | dnl# Checks for programs. |
30 | dnl AC_MAKE_SET |
|
|
31 | |
|
|
32 | AC_PROG_CC |
30 | AC_PROG_CC |
33 | AC_PROG_CXX |
31 | AC_PROG_CXX |
34 | AC_PROG_CPP |
32 | AC_PROG_CPP |
35 | AC_PROG_INSTALL |
33 | AC_PROG_INSTALL |
36 | |
34 | |
… | |
… | |
482 | fi |
480 | fi |
483 | |
481 | |
484 | dnl# -------------------------------------------------------------------------- |
482 | dnl# -------------------------------------------------------------------------- |
485 | dnl# CHECKING FOR HEADER FILES |
483 | dnl# CHECKING FOR HEADER FILES |
486 | dnl# -------------------------------------------------------------------------- |
484 | dnl# -------------------------------------------------------------------------- |
487 | AC_HEADER_SYS_WAIT |
|
|
488 | AC_CHECK_HEADERS( \ |
485 | AC_CHECK_HEADERS( \ |
489 | assert.h \ |
486 | assert.h \ |
490 | fcntl.h \ |
487 | fcntl.h \ |
491 | stdarg.h \ |
488 | stdarg.h \ |
492 | stdlib.h \ |
489 | stdlib.h \ |
… | |
… | |
503 | wchar.h \ |
500 | wchar.h \ |
504 | cwchar \ |
501 | cwchar \ |
505 | clocale \ |
502 | clocale \ |
506 | ) |
503 | ) |
507 | |
504 | |
508 | AC_HEADER_TIME |
|
|
509 | |
|
|
510 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
505 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
511 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
506 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
512 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
507 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
513 | #include <sys/ioctl.h> |
508 | #include <sys/ioctl.h> |
514 | #ifdef HAVE_TERMIOS_H |
509 | #ifdef HAVE_TERMIOS_H |
… | |
… | |
533 | [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] |
528 | [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] |
534 | )]) |
529 | )]) |
535 | if test x$rxvt_xlib_illegal_access = xyes; then |
530 | if test x$rxvt_xlib_illegal_access = xyes; then |
536 | AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
531 | AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
537 | fi |
532 | fi |
538 | |
|
|
539 | AC_C_CONST |
|
|
540 | AC_C_INLINE |
|
|
541 | |
|
|
542 | dnl> AC_HEADER_STDC dnl# skip this test, Sun always fails anyhow. |
|
|
543 | |
533 | |
544 | dnl# -------------------------------------------------------------------------- |
534 | dnl# -------------------------------------------------------------------------- |
545 | dnl# CHECKING FOR MISSING TYPEDEFS |
535 | dnl# CHECKING FOR MISSING TYPEDEFS |
546 | dnl# -------------------------------------------------------------------------- |
536 | dnl# -------------------------------------------------------------------------- |
547 | dnl# Missing typedefs and replacements |
537 | dnl# Missing typedefs and replacements |
… | |
… | |
631 | AC_SUBST(rxvt_u_intp_define) |
621 | AC_SUBST(rxvt_u_intp_define) |
632 | |
622 | |
633 | dnl# -------------------------------------------------------------------------- |
623 | dnl# -------------------------------------------------------------------------- |
634 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
624 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
635 | dnl# -------------------------------------------------------------------------- |
625 | dnl# -------------------------------------------------------------------------- |
636 | AC_TYPE_SIGNAL |
|
|
637 | dnl> AC_FUNC_VPRINTF |
|
|
638 | |
|
|
639 | AC_CHECK_FUNCS(unsetenv) |
626 | AC_CHECK_FUNCS(unsetenv) |
640 | |
627 | |
641 | UTMP_CHECK |
628 | UTMP_CHECK |
642 | |
629 | |
643 | dnl# -------------------------------------------------------------------------- |
630 | dnl# -------------------------------------------------------------------------- |