… | |
… | |
13 | |
13 | |
14 | dnl RXVT version |
14 | dnl RXVT version |
15 | changequote(, )dnl |
15 | changequote(, )dnl |
16 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
19 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
20 | changequote([, ])dnl |
19 | changequote([, ])dnl |
21 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(VERSION)dnl |
22 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(DATE)dnl |
23 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LSMDATE)dnl |
24 | AC_SUBST(LIBVERSION)dnl |
23 | AC_SUBST(LIBVERSION)dnl |
… | |
… | |
82 | |
81 | |
83 | dnl solaris needs to link libnsl and socket |
82 | dnl solaris needs to link libnsl and socket |
84 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
83 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
85 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
84 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
86 | |
85 | |
87 | AC_ENABLE_SHARED(no)dnl# libtool |
86 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
88 | AC_ENABLE_STATIC(yes)dnl# libtool |
87 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
89 | AC_PROG_LIBTOOL()dnl# libtool |
88 | dnl AC_PROG_LIBTOOL()dnl# libtool |
90 | |
89 | |
91 | MALLOC_TYPE=S |
90 | MALLOC_TYPE=S |
92 | support_addstrings=no |
91 | support_addstrings=no |
93 | support_frills=no |
92 | support_frills=no |
94 | support_inheritpixmap=no |
93 | support_inheritpixmap=no |
… | |
… | |
519 | sys/time.h \ |
518 | sys/time.h \ |
520 | utmp.h \ |
519 | utmp.h \ |
521 | utmpx.h \ |
520 | utmpx.h \ |
522 | stdint.h \ |
521 | stdint.h \ |
523 | pty.h \ |
522 | pty.h \ |
|
|
523 | wchar.h \ |
|
|
524 | cwchar \ |
|
|
525 | clocale \ |
524 | ) |
526 | ) |
525 | |
527 | |
526 | AC_HEADER_TIME |
528 | AC_HEADER_TIME |
527 | |
529 | |
528 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
530 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
606 | |
608 | |
607 | dnl# see usage below |
609 | dnl# see usage below |
608 | AC_DEFUN(RXVT_CHECK_SIZE, |
610 | AC_DEFUN(RXVT_CHECK_SIZE, |
609 | [AC_CACHE_CHECK([for $2], $1, |
611 | [AC_CACHE_CHECK([for $2], $1, |
610 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
612 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
611 | if test $ac_cv_sizeof_char -ge $3; then |
613 | if test "$ac_cv_sizeof_char" -ge $3; then |
612 | $1="$4 char" |
614 | $1="$4 char" |
613 | else |
615 | else |
614 | if test $ac_cv_sizeof_short -ge $3; then |
616 | if test "$ac_cv_sizeof_short" -ge $3; then |
615 | $1="$4 short" |
617 | $1="$4 short" |
616 | else |
618 | else |
617 | if test $ac_cv_sizeof_int -ge $3; then |
619 | if test "$ac_cv_sizeof_int" -ge $3; then |
618 | $1="$4 int" |
620 | $1="$4 int" |
619 | else |
621 | else |
620 | if test $ac_cv_sizeof_long -ge $3; then |
622 | if test "$ac_cv_sizeof_long" -ge $3; then |
621 | $1="$4 long" |
623 | $1="$4 long" |
622 | else |
624 | else |
623 | if test $ac_cv_sizeof_long_long -ge $3; then |
625 | if test "$ac_cv_sizeof_long_long" -ge $3; then |
624 | $1="$4 long long" |
626 | $1="$4 long long" |
625 | else |
627 | else |
626 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
628 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
627 | fi |
629 | fi |
628 | fi |
630 | fi |
… | |
… | |
655 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
657 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
656 | dnl AC_SUBST(rxvt_uint64_typedef) |
658 | dnl AC_SUBST(rxvt_uint64_typedef) |
657 | dnl# |
659 | dnl# |
658 | dnl# Now look for another we use |
660 | dnl# Now look for another we use |
659 | dnl# |
661 | dnl# |
660 | if test $ac_cv_sizeof_int_p -eq 8; then |
662 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
661 | rxvt_intp_define="#define intp_t int64_t" |
663 | rxvt_intp_define="#define intp_t int64_t" |
662 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
664 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
663 | else |
665 | else |
664 | if test $ac_cv_sizeof_int_p -eq 4; then |
666 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
665 | rxvt_intp_define="#define intp_t int32_t" |
667 | rxvt_intp_define="#define intp_t int32_t" |
666 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
668 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
667 | else |
669 | else |
668 | if test $ac_cv_sizeof_int_p -eq 2; then |
670 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
669 | rxvt_intp_define="#define intp_t int16_t" |
671 | rxvt_intp_define="#define intp_t int16_t" |
670 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
672 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
671 | else |
673 | else |
672 | rxvt_intp_define="#error set intp_t" |
674 | rxvt_intp_define="#error set intp_t" |
673 | rxvt_u_intp_define="#error set u_intp_t" |
675 | rxvt_u_intp_define="#error set u_intp_t" |