… | |
… | |
48 | fi |
48 | fi |
49 | AC_SUBST(LINKER,[$LINKER]) |
49 | AC_SUBST(LINKER,[$LINKER]) |
50 | |
50 | |
51 | AC_LANG(C++) |
51 | AC_LANG(C++) |
52 | dnl# -------------------------------------------------------------------------- |
52 | dnl# -------------------------------------------------------------------------- |
53 | dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure' |
53 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
54 | dnl# |
54 | dnl# |
55 | if test -z "$orig_CXXFLAGS"; then |
55 | if test -z "$orig_CXXFLAGS"; then |
56 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
56 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
57 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
57 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
58 | AC_COMPILE_IFELSE([int i;], [], [CXXFLAGS="-g -O3"]) |
58 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [], [CXXFLAGS="-g -O3"]) |
59 | else |
59 | else |
60 | CXXFLAGS="-O" |
60 | CXXFLAGS="-O" |
61 | fi |
61 | fi |
62 | CFLAGS="$CXXFLAGS" |
62 | CFLAGS="$CXXFLAGS" |
63 | fi |
63 | fi |
… | |
… | |
531 | sys/byteorder.h \ |
531 | sys/byteorder.h \ |
532 | sys/ioctl.h \ |
532 | sys/ioctl.h \ |
533 | sys/select.h \ |
533 | sys/select.h \ |
534 | sys/sockio.h \ |
534 | sys/sockio.h \ |
535 | sys/strredir.h \ |
535 | sys/strredir.h \ |
536 | sys/stropts.h \ |
536 | sys/stropts.h \ |
537 | sys/time.h \ |
537 | sys/time.h \ |
538 | utmp.h \ |
538 | utmp.h \ |
539 | utmpx.h \ |
539 | utmpx.h \ |
540 | stdint.h \ |
540 | stdint.h \ |
541 | pty.h \ |
541 | pty.h \ |
542 | util.h \ |
542 | util.h \ |
543 | libutil.h \ |
543 | libutil.h \ |
544 | wchar.h \ |
544 | wchar.h \ |
545 | cwchar \ |
545 | cwchar \ |
546 | clocale \ |
546 | clocale \ |
547 | ) |
547 | ) |
548 | |
548 | |
549 | AC_HEADER_TIME |
549 | AC_HEADER_TIME |
550 | |
550 | |
551 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
551 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
626 | dnl AC_CHECK_SIZEOF(long, 4) |
626 | dnl AC_CHECK_SIZEOF(long, 4) |
627 | AC_CHECK_SIZEOF(long long, 8) |
627 | AC_CHECK_SIZEOF(long long, 8) |
628 | AC_CHECK_SIZEOF(int *, 4) |
628 | AC_CHECK_SIZEOF(int *, 4) |
629 | |
629 | |
630 | dnl# see usage below |
630 | dnl# see usage below |
631 | AC_DEFUN(RXVT_CHECK_SIZE, |
631 | AC_DEFUN([RXVT_CHECK_SIZE], |
632 | [AC_CACHE_CHECK([for $2], $1, |
632 | [AC_CACHE_CHECK([for $2], $1, |
633 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
633 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
634 | if test "$ac_cv_sizeof_char" -ge $3; then |
634 | if test "$ac_cv_sizeof_char" -ge $3; then |
635 | $1="$4 char" |
635 | $1="$4 char" |
636 | else |
636 | else |
… | |
… | |
1423 | AC_ARG_PROGRAM |
1423 | AC_ARG_PROGRAM |
1424 | |
1424 | |
1425 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1425 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1426 | |
1426 | |
1427 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1427 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1428 | AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl |
1428 | AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl |
1429 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
1429 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
1430 | $1="#include <$2>" |
1430 | $1="#include <$2>" |
1431 | else |
1431 | else |
1432 | $1="/* #include <$2> */" |
1432 | $1="/* #include <$2> */" |
1433 | fi dnl |
1433 | fi dnl |